/PHP-7.3/ext/standard/ |
H A D | crypt_sha256.c | 342 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 | 375 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 | 251 size_t key_len; member
|
H A D | basic_functions.c | 3499 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor() 3509 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor() 4196 pe.key_len = strlen(pe.key); 4199 if (pe.key_len < setting_len - 1) { 4208 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len); 4213 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */ 4262 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry)); 4264 if (!strncmp(pe.key, "TZ", pe.key_len)) {
|
/PHP-7.3/main/ |
H A D | php_ini.c | 278 size_t key_len; in php_ini_parser_cb() local 284 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; in php_ini_parser_cb() 295 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; in php_ini_parser_cb() 298 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ in php_ini_parser_cb() 304 if (key && key_len > 0) { in php_ini_parser_cb() 306 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) { in php_ini_parser_cb() 307 key_len--; in php_ini_parser_cb() 308 key[key_len] = 0; in php_ini_parser_cb() 318 key_len--; in php_ini_parser_cb() 322 if ((entry = zend_hash_str_find(target_hash, key, key_len)) == NULL) { in php_ini_parser_cb() [all …]
|
/PHP-7.3/ext/intl/collator/ |
H A D | collator_sort.c | 557 int key_len = 0; in PHP_FUNCTION() local 605 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, NULL, 0); in PHP_FUNCTION() 606 if(!key_len) { in PHP_FUNCTION() 610 key_str = zend_string_alloc(key_len, 0); in PHP_FUNCTION() 611 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, (uint8_t*)ZSTR_VAL(key_str), key_len); in PHP_FUNCTION() 613 if(!key_len) { in PHP_FUNCTION() 616 ZSTR_LEN(key_str) = key_len - 1; in PHP_FUNCTION()
|
/PHP-7.3/ext/sodium/ |
H A D | libsodium.c | 754 size_t key_len; in PHP_FUNCTION() local 787 size_t key_len; in PHP_FUNCTION() local 833 size_t key_len; in PHP_FUNCTION() local 883 &key, &key_len, in PHP_FUNCTION() 893 if (key_len != 0 && in PHP_FUNCTION() 922 &key, &key_len, in PHP_FUNCTION() 932 if (key_len != 0 && in PHP_FUNCTION() 1731 size_t key_len; in PHP_FUNCTION() local 1772 size_t key_len; in PHP_FUNCTION() local 3049 size_t key_len; in PHP_FUNCTION() local [all …]
|
/PHP-7.3/ext/dba/ |
H A D | dba.c | 247 size_t key_len; \ 251 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 258 size_t key_len; \ 274 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 582 size_t key_len; in php_dba_update() local 588 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) { in php_dba_update() 1051 if(info->hnd->exists(info, key_str, key_len) == SUCCESS) { in PHP_FUNCTION() 1092 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len)) != NULL) { in PHP_FUNCTION() 1109 size_t key_len; in PHP_FUNCTION() local 1128 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION() [all …]
|
/PHP-7.3/ext/session/ |
H A D | mod_files.c | 111 size_t key_len; in ps_files_path_create() local 116 key_len = strlen(key); in ps_files_path_create() 117 if (!data || key_len <= data->dirdepth || in ps_files_path_create() 118 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { in ps_files_path_create() 132 memcpy(buf + n, key, key_len); in ps_files_path_create() 133 n += key_len; in ps_files_path_create()
|
/PHP-7.3/Zend/ |
H A D | zend_API.c | 1359 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_long_ex() 1369 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_null_ex() 1718 ZVAL_STRINGL(&z_key, key, key_len); in add_property_long_ex() 1731 ZVAL_STRINGL(&z_key, key, key_len); in add_property_bool_ex() 1744 ZVAL_STRINGL(&z_key, key, key_len); in add_property_null_ex() 1757 ZVAL_STRINGL(&z_key, key, key_len); in add_property_resource_ex() 1771 ZVAL_STRINGL(&z_key, key, key_len); in add_property_double_ex() 1784 ZVAL_STRINGL(&z_key, key, key_len); in add_property_str_ex() 1798 ZVAL_STRINGL(&z_key, key, key_len); in add_property_string_ex() 1812 ZVAL_STRINGL(&z_key, key, key_len); in add_property_stringl_ex() [all …]
|
H A D | zend_API.h | 388 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n); 389 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len); 390 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b); 392 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d); 393 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str); 396 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value); 448 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l); 449 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len); 450 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b); 452 ZEND_API int add_property_double_ex(zval *arg, const char *key, size_t key_len, double d); [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_list.c | 352 ZEND_API zend_resource* zend_register_persistent_resource(const char *key, size_t key_len, void *rs… in zend_register_persistent_resource() argument 354 zend_string *str = zend_string_init(key, key_len, 1); in zend_register_persistent_resource()
|
/PHP-7.3/ext/opcache/ |
H A D | ZendAccelerator.h | 226 int key_len; member 305 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len);
|
H A D | ZendAccelerator.c | 1128 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len) in accel_make_persistent_key() argument 1135 ZCG(key_len) = 0; in accel_make_persistent_key() 1141 ZCG(key_len) = 0; in accel_make_persistent_key() 1144 ZCG(key_len) = 0; in accel_make_persistent_key() 1283 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key() 1288 *key_len = path_length; in accel_make_persistent_key() 1987 if (ZCG(key_len)) { in persistent_compile_file() 1989 key_length = ZCG(key_len); in persistent_compile_file() 2328 ZCG(key_len) = 0; in persistent_zend_resolve_path()
|
/PHP-7.3/TSRM/ |
H A D | tsrm_win32.h | 96 char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len);
|
H A D | tsrm_win32.c | 108 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 116 *key_len = pathname_len; in tsrm_win32_get_path_sid_key() 121 *key_len = 0; in tsrm_win32_get_path_sid_key() 127 *key_len = pathname_len + ptc_sid_len; in tsrm_win32_get_path_sid_key() 128 bucket_key = (char *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, *key_len + 1); in tsrm_win32_get_path_sid_key() 131 *key_len = 0; in tsrm_win32_get_path_sid_key()
|
/PHP-7.3/ext/hash/ |
H A D | hash.c | 211 … char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const size_t key_len) { in php_hash_hmac_prep_key() argument 213 if (key_len > (size_t)ops->block_size) { in php_hash_hmac_prep_key() 216 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key() 219 memcpy(K, key, key_len); in php_hash_hmac_prep_key() 237 size_t algo_len, data_len, key_len; in php_hash_do_hash_hmac() local 244 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac() 275 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
|
/PHP-7.3/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 89 size_t key_len; in add_static_slot() local 94 key_len = Z_STRLEN_P(class_name) + sizeof("::") - 1 + Z_STRLEN_P(prop_name); in add_static_slot() 95 key = zend_string_alloc(key_len, 0); in add_static_slot()
|
/PHP-7.3/ext/openssl/ |
H A D | openssl.c | 4969 zend_long key_len = 0; in PHP_FUNCTION() local 4972 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &peer_pub_key, &priv_key, &key_len) == FAILURE)… in PHP_FUNCTION() 4975 if (key_len < 0) { in PHP_FUNCTION() 4978 key_size = key_len; in PHP_FUNCTION() 6498 int key_len, password_len; in php_openssl_cipher_init() local 6531 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init() 6532 if (key_len > password_len) { in php_openssl_cipher_init() 6538 key = emalloc(key_len); in php_openssl_cipher_init() 6539 memset(key, 0, key_len); in php_openssl_cipher_init() 6542 *ppassword_len = key_len; in php_openssl_cipher_init() [all …]
|
/PHP-7.3/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 151 size_t key_len, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local 157 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
|
/PHP-7.3/ext/phar/ |
H A D | util.c | 39 …ignverify(int is_sign, php_stream *fp, zend_off_t end, char *key, size_t key_len, char **signature… 1386 …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 1395 ZVAL_STRINGL(&zp[2], key, key_len); in phar_call_openssl_signverify()
|
H A D | phar_object.c | 3040 size_t key_len = 0; in PHP_METHOD() local 3050 …parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "l|s", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD() 3072 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()
|