/PHP-8.3/ext/standard/ |
H A D | crypt_sha256.c | 337 size_t key_len; in php_sha256_crypt_r() local 371 key_len = strlen(key); in php_sha256_crypt_r() 396 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 409 sha256_process_bytes(key, key_len, &alt_ctx); in php_sha256_crypt_r() 422 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r() 429 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r() 433 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 444 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r() 454 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 571 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 370 size_t key_len; in php_sha512_crypt_r() local 405 key_len = strlen(key); in php_sha512_crypt_r() 430 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 443 sha512_process_bytes(key, key_len, &alt_ctx); in php_sha512_crypt_r() 456 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r() 463 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r() 467 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 478 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r() 488 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 619 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha512_crypt_r() [all …]
|
/PHP-8.3/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-8.3/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-8.3/ext/sodium/ |
H A D | libsodium.c | 294 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() 1216 size_t key_len; in PHP_FUNCTION() local 1257 size_t key_len; in PHP_FUNCTION() local 2662 size_t key_len; in PHP_FUNCTION() local [all …]
|
/PHP-8.3/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-8.3/ext/hash/ |
H A D | hash.c | 481 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.3/Zend/ |
H A D | zend_API.c | 2154 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex() 2163 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex() 2172 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex() 2181 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex() 2191 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex() 2200 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex() 2210 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex() 2220 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex() 2230 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_array_ex() 2240 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 | 542 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n); 543 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len); 544 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b); 546 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d); 547 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str); 553 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value); 628 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l); 629 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len); 630 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b); 632 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-8.3/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-8.3/ext/dba/ |
H A D | dba.c | 1037 size_t key_len; in PHP_FUNCTION() local 1047 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &key, &key_len) == FAILURE) { in PHP_FUNCTION() 1053 add_next_index_stringl(return_value, name+1, key_len - (name - key + 1)); in PHP_FUNCTION() 1056 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION()
|
/PHP-8.3/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 166 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.3/ext/openssl/ |
H A D | openssl.c | 5288 zend_long key_len = 0; in PHP_FUNCTION() local 5290 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &peer_pub_key, &priv_key, &key_len) == FAILURE)… in PHP_FUNCTION() 5294 if (key_len < 0) { in PHP_FUNCTION() 5310 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, key_len); in PHP_FUNCTION() 7519 int key_len, password_len; in php_openssl_cipher_init() local 7553 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init() 7554 if (key_len > password_len) { in php_openssl_cipher_init() 7560 key = emalloc(key_len); in php_openssl_cipher_init() 7561 memset(key, 0, key_len); in php_openssl_cipher_init() 7564 *ppassword_len = key_len; in php_openssl_cipher_init() [all …]
|
/PHP-8.3/ext/phar/ |
H A D | util.c | 37 …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 D | phar_object.c | 3016 size_t key_len = 0; in PHP_METHOD() local 3018 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|s!", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD() 3045 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()
|