/PHP-8.0/ext/standard/ |
H A D | crypt_sha256.c | 338 size_t key_len; in php_sha256_crypt_r() local 372 key_len = strlen(key); in php_sha256_crypt_r() 390 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 416 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r() 423 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r() 427 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 438 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r() 446 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r() 447 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 563 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 371 size_t key_len; in php_sha512_crypt_r() local 406 key_len = strlen(key); in php_sha512_crypt_r() 424 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 450 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r() 457 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r() 461 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 472 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r() 480 cp = p_bytes = alloca(key_len); in php_sha512_crypt_r() 481 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 611 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha512_crypt_r() [all …]
|
H A D | basic_functions.h | 138 size_t key_len; member
|
H A D | basic_functions.c | 173 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor() 183 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor() 860 pe.key_len = strlen(pe.key); 863 if (pe.key_len < setting_len - 1) { 873 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len); 878 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */ 928 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry)); 930 if (!strncmp(pe.key, "TZ", pe.key_len)) {
|
/PHP-8.0/ext/intl/collator/ |
H A D | collator_sort.c | 509 int key_len = 0; in PHP_FUNCTION() local 554 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, NULL, 0); in PHP_FUNCTION() 555 if(!key_len) { in PHP_FUNCTION() 559 key_str = zend_string_alloc(key_len, 0); in PHP_FUNCTION() 560 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, (uint8_t*)ZSTR_VAL(key_str), key_len); in PHP_FUNCTION() 562 if(!key_len) { in PHP_FUNCTION() 565 ZSTR_LEN(key_str) = key_len - 1; in PHP_FUNCTION()
|
/PHP-8.0/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.0/ext/sodium/ |
H A D | libsodium.c | 477 size_t key_len; in PHP_FUNCTION() local 508 size_t key_len; in PHP_FUNCTION() local 550 size_t key_len; in PHP_FUNCTION() local 596 &key, &key_len, in PHP_FUNCTION() 606 if (key_len != 0 && in PHP_FUNCTION() 635 &key, &key_len, in PHP_FUNCTION() 645 if (key_len != 0 && in PHP_FUNCTION() 1398 size_t key_len; in PHP_FUNCTION() local 1439 size_t key_len; in PHP_FUNCTION() local 2655 size_t key_len; in PHP_FUNCTION() local [all …]
|
/PHP-8.0/ext/dba/ |
H A D | dba.c | 147 size_t key_len; \ 151 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 158 size_t key_len; \ 174 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 477 size_t key_len; in php_dba_update() local 483 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) { in php_dba_update() 945 if(info->hnd->exists(info, key_str, key_len) == SUCCESS) { in PHP_FUNCTION() 985 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len)) != NULL) { in PHP_FUNCTION() 1001 size_t key_len; in PHP_FUNCTION() local 1020 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION() [all …]
|
/PHP-8.0/ext/session/ |
H A D | mod_files.c | 109 size_t key_len; in ps_files_path_create() local 114 key_len = strlen(key); in ps_files_path_create() 115 if (!data || key_len <= data->dirdepth || in ps_files_path_create() 116 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { in ps_files_path_create() 130 memcpy(buf + n, key, key_len); in ps_files_path_create() 131 n += key_len; in ps_files_path_create()
|
/PHP-8.0/ext/hash/ |
H A D | hash.c | 469 if (key_len > ops->block_size) { in php_hash_hmac_prep_key() 472 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key() 475 memcpy(K, key, key_len); in php_hash_hmac_prep_key() 520 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac() 572 size_t data_len, key_len; in PHP_FUNCTION() local 579 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 0); in PHP_FUNCTION() 589 size_t data_len, key_len; in PHP_FUNCTION() local 596 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 1); in PHP_FUNCTION() 1198 size_t data_len, key_len = 0; in PHP_FUNCTION() local 1200 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls|s!", &algorithm, &data, &data_len, &key, &key_len) … in PHP_FUNCTION() [all …]
|
/PHP-8.0/Zend/ |
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.c | 1483 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_long_ex() 1492 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_null_ex() 1746 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex() 1755 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex() 1764 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex() 1773 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex() 1783 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex() 1792 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex() 1802 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex() 1812 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex() [all …]
|
H A D | zend_list.c | 337 ZEND_API zend_resource* zend_register_persistent_resource(const char *key, size_t key_len, void *rs… in zend_register_persistent_resource() argument 339 zend_string *str = zend_string_init(key, key_len, 1); in zend_register_persistent_resource()
|
H A D | zend_API.h | 440 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n); 441 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len); 442 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b); 444 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d); 445 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str); 448 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value); 490 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l); 491 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len); 492 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b); 494 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d); [all …]
|
/PHP-8.0/TSRM/ |
H A D | tsrm_win32.h | 92 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 | 106 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 114 *key_len = pathname_len; in tsrm_win32_get_path_sid_key() 119 *key_len = 0; in tsrm_win32_get_path_sid_key() 125 *key_len = pathname_len + ptc_sid_len; in tsrm_win32_get_path_sid_key() 126 bucket_key = (char *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, *key_len + 1); in tsrm_win32_get_path_sid_key() 129 *key_len = 0; in tsrm_win32_get_path_sid_key()
|
/PHP-8.0/ext/opcache/ |
H A D | ZendAccelerator.h | 242 int key_len; member 333 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len);
|
H A D | ZendAccelerator.c | 1120 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len) in accel_make_persistent_key() argument 1127 ZCG(key_len) = 0; in accel_make_persistent_key() 1133 ZCG(key_len) = 0; in accel_make_persistent_key() 1136 ZCG(key_len) = 0; in accel_make_persistent_key() 1275 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key() 1280 *key_len = path_length; in accel_make_persistent_key() 2003 if (ZCG(key_len)) { in persistent_compile_file() 2005 key_length = ZCG(key_len); in persistent_compile_file() 2360 ZCG(key_len) = 0; in persistent_zend_resolve_path()
|
/PHP-8.0/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.0/ext/openssl/ |
H A D | openssl.c | 4834 zend_long key_len = 0; in PHP_FUNCTION() local 4837 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &peer_pub_key, &priv_key, &key_len) == FAILURE)… in PHP_FUNCTION() 4842 if (key_len < 0) { in PHP_FUNCTION() 4847 key_size = key_len; in PHP_FUNCTION() 7086 int key_len, password_len; in php_openssl_cipher_init() local 7120 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init() 7121 if (key_len > password_len) { in php_openssl_cipher_init() 7127 key = emalloc(key_len); in php_openssl_cipher_init() 7128 memset(key, 0, key_len); in php_openssl_cipher_init() 7131 *ppassword_len = key_len; in php_openssl_cipher_init() [all …]
|
/PHP-8.0/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… 1384 …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 1397 ZVAL_STRINGL(&zp[2], key, key_len); in phar_call_openssl_signverify()
|
H A D | phar_object.c | 3012 size_t key_len = 0; in PHP_METHOD() local 3014 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|s!", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD() 3039 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()
|