/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | shs.c | 38 entry = root + lexbor_shs_make_id_m(key, key_len, root->key_len); in lexbor_shs_entry_get_static() 42 if (entry->key_len == key_len) { in lexbor_shs_entry_get_static() 44 key, key_len)) in lexbor_shs_entry_get_static() 51 else if (entry->key_len > key_len) { in lexbor_shs_entry_get_static() 67 entry = root + lexbor_shs_make_id_lower_m(key, key_len, root->key_len); in lexbor_shs_entry_get_lower_static() 71 if (entry->key_len == key_len) { in lexbor_shs_entry_get_lower_static() 73 key, key_len)) in lexbor_shs_entry_get_lower_static() 80 else if (entry->key_len > key_len) { in lexbor_shs_entry_get_lower_static() 96 entry = root + lexbor_shs_make_id_upper_m(key, key_len, root->key_len); in lexbor_shs_entry_get_upper_static() 100 if (entry->key_len == key_len) { in lexbor_shs_entry_get_upper_static() [all …]
|
H A D | bst_map.c | 83 const lxb_char_t *key, size_t key_len) in lexbor_bst_map_search() argument 88 size_t hash_id = lexbor_utils_hash_hash(key, key_len); in lexbor_bst_map_search() 98 if (entry->str.length == key_len && in lexbor_bst_map_search() 131 const lxb_char_t *key, size_t key_len) in lexbor_bst_map_insert_not_exists() argument 136 size_t hash_id = lexbor_utils_hash_hash(key, key_len); in lexbor_bst_map_insert_not_exists() 150 if (entry->str.length == key_len && in lexbor_bst_map_insert_not_exists() 180 lexbor_str_init(&entry->str, bst_map->mraw, key_len); in lexbor_bst_map_insert_not_exists() 187 lexbor_str_append(&entry->str, bst_map->mraw, key, key_len); in lexbor_bst_map_insert_not_exists() 196 const lxb_char_t *key, size_t key_len) in lexbor_bst_map_remove() argument 201 size_t hash_id = lexbor_utils_hash_hash(key, key_len); in lexbor_bst_map_remove() [all …]
|
H A D | bst_map.h | 50 const lxb_char_t *key, size_t key_len); 54 const lxb_char_t *key, size_t key_len, void *value); 59 const lxb_char_t *key, size_t key_len); 63 const lxb_char_t *key, size_t key_len);
|
H A D | shs.h | 23 size_t key_len; member 43 const lxb_char_t *key, size_t key_len); 47 const lxb_char_t *key, size_t key_len);
|
/php-src/ext/standard/ |
H A D | crypt_sha256.c | 332 size_t key_len; in php_sha256_crypt_r() local 366 key_len = strlen(key); in php_sha256_crypt_r() 391 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 404 sha256_process_bytes(key, key_len, &alt_ctx); in php_sha256_crypt_r() 417 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r() 424 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r() 428 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 439 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r() 449 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 566 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 369 size_t key_len; in php_sha512_crypt_r() local 404 key_len = strlen(key); in php_sha512_crypt_r() 429 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 442 sha512_process_bytes(key, key_len, &alt_ctx); in php_sha512_crypt_r() 455 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r() 462 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r() 466 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 477 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r() 487 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 618 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha512_crypt_r() [all …]
|
/php-src/ext/intl/collator/ |
H A D | collator_sort.c | 505 int key_len = 0; in PHP_FUNCTION() local 550 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, NULL, 0); in PHP_FUNCTION() 551 if(!key_len) { in PHP_FUNCTION() 555 key_str = zend_string_alloc(key_len, 0); in PHP_FUNCTION() 556 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, (uint8_t*)ZSTR_VAL(key_str), key_len); in PHP_FUNCTION() 558 if(!key_len) { in PHP_FUNCTION() 561 ZSTR_LEN(key_str) = key_len - 1; in PHP_FUNCTION()
|
/php-src/main/ |
H A D | php_ini.c | 252 size_t key_len; in php_ini_parser_cb() local 258 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; in php_ini_parser_cb() 269 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; in php_ini_parser_cb() 272 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ in php_ini_parser_cb() 278 if (key && key_len > 0) { in php_ini_parser_cb() 280 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) { in php_ini_parser_cb() 281 key_len--; in php_ini_parser_cb() 282 key[key_len] = 0; in php_ini_parser_cb() 292 key_len--; in php_ini_parser_cb() 296 if ((entry = zend_hash_str_find(target_hash, key, key_len)) == NULL) { in php_ini_parser_cb() [all …]
|
/php-src/ext/sodium/ |
H A D | libsodium.c | 293 size_t key_len; in PHP_FUNCTION() local 324 size_t key_len; in PHP_FUNCTION() local 366 size_t key_len; in PHP_FUNCTION() local 412 &key, &key_len, in PHP_FUNCTION() 422 if (key_len != 0 && in PHP_FUNCTION() 451 &key, &key_len, in PHP_FUNCTION() 461 if (key_len != 0 && in PHP_FUNCTION() 1215 size_t key_len; in PHP_FUNCTION() local 1256 size_t key_len; in PHP_FUNCTION() local 2891 size_t key_len; in PHP_FUNCTION() local [all …]
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_php.h | 44 bool fpm_php_is_key_in_table(zend_string *table, const char *key, size_t key_len);
|
H A D | fpm_php.c | 274 bool fpm_php_is_key_in_table(zend_string *table, const char *key, size_t key_len) /* {{{ */ in fpm_php_is_key_in_table() argument 293 if (str && zend_string_equals_cstr(str, key, key_len)) { in fpm_php_is_key_in_table()
|
/php-src/Zend/ |
H A D | zend_API.c | 2272 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex() 2281 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex() 2290 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex() 2299 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex() 2309 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex() 2318 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex() 2328 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex() 2338 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex() 2348 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_array_ex() 2358 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_object_ex() [all …]
|
H A D | zend_list.h | 69 ZEND_API zend_resource* zend_register_persistent_resource(const char *key, size_t key_len, void *rs…
|
H A D | zend_API.h | 549 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n); 550 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len); 551 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b); 553 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d); 554 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str); 560 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value); 635 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l); 636 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len); 637 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b); 639 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d); [all …]
|
H A D | zend_list.c | 342 ZEND_API zend_resource* zend_register_persistent_resource(const char *key, size_t key_len, void *rs… in zend_register_persistent_resource() argument 344 zend_string *str = zend_string_init(key, key_len, 1); in zend_register_persistent_resource()
|
/php-src/ext/hash/ |
H A D | hash.c | 480 if (key_len > ops->block_size) { in php_hash_hmac_prep_key() 483 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key() 486 memcpy(K, key, key_len); in php_hash_hmac_prep_key() 531 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac() 583 size_t data_len, key_len; in PHP_FUNCTION() local 590 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 0); in PHP_FUNCTION() 600 size_t data_len, key_len; in PHP_FUNCTION() local 607 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 1); in PHP_FUNCTION() 1204 size_t data_len, key_len = 0; in PHP_FUNCTION() local 1206 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls|s!", &algorithm, &data, &data_len, &key, &key_len) … in PHP_FUNCTION() [all …]
|
/php-src/TSRM/ |
H A D | tsrm_win32.h | 91 const char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len…
|
H A D | tsrm_win32.c | 105 const char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len) in tsrm_win32_get_path_sid_key() argument 113 *key_len = pathname_len; in tsrm_win32_get_path_sid_key() 118 *key_len = 0; in tsrm_win32_get_path_sid_key() 124 *key_len = pathname_len + ptc_sid_len; in tsrm_win32_get_path_sid_key() 125 bucket_key = (char *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, *key_len + 1); in tsrm_win32_get_path_sid_key() 128 *key_len = 0; in tsrm_win32_get_path_sid_key()
|
/php-src/ext/dba/ |
H A D | dba.c | 1094 size_t key_len; in PHP_FUNCTION() local 1102 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &key, &key_len) == FAILURE) { in PHP_FUNCTION() 1108 add_next_index_stringl(return_value, name+1, key_len - (name - key + 1)); in PHP_FUNCTION() 1111 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION()
|
/php-src/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 167 size_t key_len, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local 173 Z_PARAM_STRING(key, key_len) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
|
/php-src/ext/openssl/ |
H A D | openssl.c | 5501 zend_long key_len = 0; in PHP_FUNCTION() local 5503 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &peer_pub_key, &priv_key, &key_len) == FAILURE)… in PHP_FUNCTION() 5507 if (key_len < 0) { in PHP_FUNCTION() 5523 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, key_len); in PHP_FUNCTION() 7746 int key_len, password_len; local 7780 key_len = EVP_CIPHER_key_length(cipher_type); 7781 if (key_len > password_len) { 7787 key = emalloc(key_len); 7788 memset(key, 0, key_len); 7791 *ppassword_len = key_len; [all …]
|
/php-src/ext/phar/ |
H A D | util.c | 39 …gnverify(bool is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature… 1430 …gnverify(bool is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature… in phar_call_openssl_signverify() argument 1452 ZVAL_STRINGL(&zp[2], key, key_len); in phar_call_openssl_signverify()
|
H A D | phar_object.c | 3044 size_t key_len = 0; in PHP_METHOD() local 3046 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|s!", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD() 3073 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()
|