| /PHP_5_4/ext/standard/ |
| H A D | crypt_sha256.c | 360 size_t key_len; local 390 key_len = strlen(key); 393 char *tmp = (char *) alloca(key_len + __alignof__(uint32_t)); 394 key = copied_key = memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__(uint32_t), key, key_len); 408 sha256_process_bytes(key, key_len, &ctx); 421 sha256_process_bytes(key, key_len, &alt_ctx); 427 sha256_process_bytes(key, key_len, &alt_ctx); 434 for (cnt = key_len; cnt > 32; cnt -= 32) { 441 for (cnt = key_len; cnt > 0; cnt >>= 1) { 445 sha256_process_bytes(key, key_len, [all...] |
| H A D | crypt_sha512.c | 393 size_t key_len; local 424 key_len = strlen(key); 427 char *tmp = (char *) alloca (key_len + __alignof__ (uint64_t)); 429 memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_t), key, key_len); 442 sha512_process_bytes(key, key_len, &ctx); 455 sha512_process_bytes(key, key_len, &alt_ctx); 461 sha512_process_bytes(key, key_len, &alt_ctx); 468 for (cnt = key_len; cnt > 64; cnt -= 64) { 475 for (cnt = key_len; cnt > 0; cnt >>= 1) { 479 sha512_process_bytes(key, key_len, [all...] |
| H A D | basic_functions.h | 248 int key_len; member in struct:__anon224
|
| H A D | http.c | 37 uint key_len; local 59 (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTANT; 62 if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') { 64 key_len -= 1; 72 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) != SUCCESS) { 76 zend_unmangle_property_name(key, key_len-1, &tmp, (const char**)&key); 77 key_len = strlen(key); 87 ekey = php_raw_url_encode(key, key_len, &ekey_len); 89 ekey = php_url_encode(key, key_len, [all...] |
| H A D | var.c | 359 int key_len, tmp_len; local 360 key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength - 1, &key_len, 0, "'\\", 2 TSRMLS_CC); 361 tmp_str = php_str_to_str_ex(key, key_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len, 0, NULL); 857 uint key_len; local 862 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 875 php_var_serialize_string(buf, key, key_len - 1);
|
| H A D | streamsfuncs.c | 661 uint key_len; local 670 &key, &key_len, &num_ind, 0, NULL); 693 zend_hash_update(new_hash, key, key_len, (void *)elem, sizeof(zval *), (void **)&dest_elem);
|
| /PHP_5_4/ext/intl/collator/ |
| H A D | collator_sort.c | 552 int key_len = 0; local 599 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0); 600 if(!key_len) { 604 key = emalloc(key_len); 605 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len); 607 if(!key_len) { 610 RETURN_STRINGL((char *)key, key_len - 1, 0);
|
| /PHP_5_4/ext/dba/ |
| H A D | dba.c | 242 size_t key_len; \ 246 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 253 size_t key_len; \ 269 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 549 size_t key_len; local 555 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) { 563 if (info->hnd->update(info, key_str, key_len, val, val_len, mode TSRMLS_CC) == SUCCESS) { 979 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) { 1020 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len TSRMLS_CC)) != NULL) { 1035 int key_len; local [all...] |
| /PHP_5_4/ext/hash/ |
| H A D | hash.c | 208 int algo_len, data_len, key_len, i; local 215 &key, &key_len, &raw_output) == FAILURE) { 238 if (key_len > ops->block_size) { 240 ops->hash_update(context, (unsigned char *) key, key_len); 245 memcpy(K, key, key_len); 323 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); local 329 if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) { 340 key_len <= 0) { 361 if (key_len > ops->block_size) { 363 ops->hash_update(context, (unsigned char *) key, key_len); [all...] |
| /PHP_5_4/ext/json/ |
| H A D | json.c | 170 uint key_len; local 176 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 255 uint key_len; local 262 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 301 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);
|
| /PHP_5_4/ext/mcrypt/ |
| H A D | mcrypt.c | 369 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \ 586 int key_len, iv_len; local 593 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) { 602 if (key_len == 0) { 606 key_s = emalloc(key_len); 607 memset(key_s, 0, key_len); 612 if (key_len > max_key_size) { 613 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Key size too large; supplied length: %d, max: %d", key_len, max_key_size); 616 key_size = key_len; 618 memcpy(key_s, key, key_len); 1168 php_mcrypt_do_crypt(char* cipher, const char *key, int key_len, const char *data, int data_len, char *mode, const char *iv, int iv_len, int argc, int dencrypt, zval* return_value TSRMLS_DC) argument 1281 int cipher_len, key_len, data_len, iv_len = 0; local 1297 int cipher_len, key_len, data_len, iv_len = 0; local 1313 int cipher_len, key_len, data_len, iv_len = 0; local 1329 int cipher_len, key_len, data_len, iv_len = 0; local 1345 int cipher_len, key_len, data_len, iv_len = 0; local 1361 int cipher_len, key_len, data_len, iv_len = 0; local [all...] |
| H A D | mcrypt_filter.c | 154 int encrypt = 1, iv_len, key_len, keyl, result; local 204 key_len = Z_STRLEN_PP(tmpzval); 217 if (keyl < key_len) { 218 key_len = keyl; 236 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv);
|
| /PHP_5_4/ext/session/ |
| H A D | mod_files.c | 101 size_t key_len; local 106 key_len = strlen(key); 107 if (key_len <= data->dirdepth || 108 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { 122 memcpy(buf + n, key, key_len); 123 n += key_len;
|
| H A D | mod_user_class.c | 75 int key_len, val_len; local 79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { 99 int key_len, val_len; local 103 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAILURE) { 116 int key_len; local 120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) {
|
| /PHP_5_4/ext/soap/ |
| H A D | php_schema.c | 2101 uint key_len; local 2120 zend_hash_get_current_key_ex((*tmp)->attributes, &key, &key_len, NULL, 0, NULL); 2121 zend_hash_add(ht, key, key_len, &newAttr, sizeof(sdlAttributePtr), NULL);
|
| /PHP_5_4/ext/wddx/ |
| H A D | wddx.c | 507 uint key_len; local 531 if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) { 534 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); 537 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); 538 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); 559 uint key_len; local 604 ent_type = zend_hash_get_current_key_ex(target_hash, &key, &key_len, &idx, 0, NULL); 607 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC); 609 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); 610 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_C [all...] |
| /PHP_5_4/ext/phar/ |
| H A D | dirstream.c | 577 uint key_len; local 640 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL); 645 if (key_len > path_len && 661 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL); 666 if (key_len > path_len &&
|
| H A D | stream.c | 915 uint key_len, new_key_len; local 921 HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL)) && 928 key_len > from_len && 932 new_key_len = key_len + to_len - from_len; 935 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); 955 HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL)); 960 if (key_len >= from_len && 962 (key_len == from_len || IS_SLASH(str_key[from_len]))) { 964 new_key_len = key_len + to_len - from_len; 967 memcpy(new_str_key + to_len, str_key + from_len, key_len [all...] |
| H A D | phar_object.c | 3105 int key_len = 0; local 3115 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "l|s", &algo, &key, &key_len) != SUCCESS) { 3137 PHAR_G(openssl_privatekey_len) = key_len;
|
| H A D | util.c | 41 static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC); 1657 static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC) /* {{{ */ argument 1669 ZVAL_STRINGL(zkey, key, key_len, 1);
|
| /PHP_5_4/main/ |
| H A D | php_ini.c | 283 uint key_len; local 289 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; 300 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; 303 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ 309 if (key && key_len > 0) { 311 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) { 312 key_len--; 313 key[key_len] [all...] |
| /PHP_5_4/Zend/ |
| H A D | zend_builtin_functions.c | 910 uint key_len; local 915 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos); 990 uint key_len; local 1015 if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_STRING) { 1016 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) { 1017 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); 1077 uint key_len; local 1082 if (zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING) { 1088 zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) { 1092 (len != key_len [all...] |
| /PHP_5_4/ext/zip/ |
| H A D | php_zip.c | 1026 uint key_len; local 1039 zend_hash_get_current_key_ex(obj->prop_handler, &key, &key_len, &num_key, 0, &pos); 1045 zend_hash_update(props, key, key_len, (void *)&val, sizeof(zval *), NULL);
|
| /PHP_5_4/ext/snmp/ |
| H A D | snmp.c | 2101 uint key_len; local 2111 zend_hash_get_current_key_ex(&php_snmp_properties, &key, &key_len, &num_key, 0, &pos); 2116 zend_hash_update(props, key, key_len, (void *)&val, sizeof(zval *), NULL);
|
| /PHP_5_4/ext/sockets/ |
| H A D | sockets.c | 958 uint key_len; local 973 switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(sock_array), &key, &key_len, &num_key, 0, NULL)) { 975 zend_hash_add(new_hash, key, key_len, (void *)element, sizeof(zval *), (void **)&dest_element);
|