Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 23 of 23) sorted by relevance

/PHP-8.2/ext/dom/lexbor/lexbor/core/
H A Dshs.c38 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 Dbst_map.c83 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 Dbst_map.h50 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 Dshs.h23 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-8.2/ext/standard/
H A Dcrypt_sha256.c332 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 Dcrypt_sha512.c369 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-8.2/ext/intl/collator/
H A Dcollator_sort.c505 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-8.2/main/
H A Dphp_ini.c252 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-8.2/ext/sodium/
H A Dlibsodium.c294 size_t key_len; in PHP_FUNCTION() local
325 size_t key_len; in PHP_FUNCTION() local
367 size_t key_len; in PHP_FUNCTION() local
413 &key, &key_len, in PHP_FUNCTION()
423 if (key_len != 0 && in PHP_FUNCTION()
452 &key, &key_len, in PHP_FUNCTION()
462 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
2889 size_t key_len; in PHP_FUNCTION() local
[all …]
/PHP-8.2/sapi/fpm/fpm/
H A Dfpm_php.h44 bool fpm_php_is_key_in_table(zend_string *table, const char *key, size_t key_len);
H A Dfpm_php.c274 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-8.2/ext/hash/
H A Dhash.c481 if (key_len > ops->block_size) { in php_hash_hmac_prep_key()
484 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key()
487 memcpy(K, key, key_len); in php_hash_hmac_prep_key()
532 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
584 size_t data_len, key_len; in PHP_FUNCTION() local
591 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 0); in PHP_FUNCTION()
601 size_t data_len, key_len; in PHP_FUNCTION() local
608 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 1); in PHP_FUNCTION()
1205 size_t data_len, key_len = 0; in PHP_FUNCTION() local
1207 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls|s!", &algorithm, &data, &data_len, &key, &key_len) … in PHP_FUNCTION()
[all …]
/PHP-8.2/Zend/
H A Dzend_API.c2183 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex()
2192 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex()
2201 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex()
2210 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex()
2220 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex()
2229 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex()
2239 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex()
2249 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex()
2259 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_array_ex()
2269 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_object_ex()
[all …]
H A Dzend_list.h69 ZEND_API zend_resource* zend_register_persistent_resource(const char *key, size_t key_len, void *rs…
H A Dzend_API.h545 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
546 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
547 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b);
549 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
550 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
556 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
631 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
632 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len);
633 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
635 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
[all …]
H A Dzend_list.c342 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-8.2/TSRM/
H A Dtsrm_win32.h91 const char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len
H A Dtsrm_win32.c105 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-8.2/ext/dba/
H A Ddba.c1034 size_t key_len; in PHP_FUNCTION() local
1044 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &key, &key_len) == FAILURE) { in PHP_FUNCTION()
1050 add_next_index_stringl(return_value, name+1, key_len - (name - key + 1)); in PHP_FUNCTION()
1053 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION()
/PHP-8.2/ext/intl/calendar/
H A Dcalendar_methods.cpp166 size_t key_len, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local
172 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
/PHP-8.2/ext/openssl/
H A Dopenssl.c5311 zend_long key_len = 0; in PHP_FUNCTION() local
5313 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &peer_pub_key, &priv_key, &key_len) == FAILURE)… in PHP_FUNCTION()
5317 if (key_len < 0) { in PHP_FUNCTION()
5333 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, key_len); in PHP_FUNCTION()
7542 int key_len, password_len; in php_openssl_cipher_init() local
7576 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init()
7577 if (key_len > password_len) { in php_openssl_cipher_init()
7583 key = emalloc(key_len); in php_openssl_cipher_init()
7584 memset(key, 0, key_len); in php_openssl_cipher_init()
7587 *ppassword_len = key_len; in php_openssl_cipher_init()
[all …]
/PHP-8.2/ext/phar/
H A Dutil.c37 …ignverify(int is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature…
1394 …ignverify(int is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature… in phar_call_openssl_signverify() argument
1407 ZVAL_STRINGL(&zp[2], key, key_len); in phar_call_openssl_signverify()
H A Dphar_object.c3013 size_t key_len = 0; in PHP_METHOD() local
3015 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|s!", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD()
3042 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()

Completed in 146 milliseconds