/PHP-7.2/ext/standard/ |
H A D | crypt_sha256.c | 354 size_t key_len; in php_sha256_crypt_r() local 384 key_len = strlen(key); in php_sha256_crypt_r() 402 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 428 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r() 435 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r() 439 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 450 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r() 458 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r() 459 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 575 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 387 size_t key_len; in php_sha512_crypt_r() local 418 key_len = strlen(key); in php_sha512_crypt_r() 436 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 462 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r() 469 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r() 473 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 484 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r() 492 cp = p_bytes = alloca(key_len); in php_sha512_crypt_r() 493 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 623 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha512_crypt_r() [all …]
|
H A D | basic_functions.h | 251 int key_len; member
|
H A D | basic_functions.c | 3470 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor() 3480 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor() 4161 pe.key_len = (int)strlen(pe.key); 4164 if (pe.key_len < setting_len - 1) { 4173 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len); 4178 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */ 4227 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry)); 4229 if (!strncmp(pe.key, "TZ", pe.key_len)) {
|
/PHP-7.2/main/ |
H A D | php_ini.c | 280 size_t key_len; in php_ini_parser_cb() local 286 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; in php_ini_parser_cb() 297 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; in php_ini_parser_cb() 300 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ in php_ini_parser_cb() 306 if (key && key_len > 0) { in php_ini_parser_cb() 308 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) { in php_ini_parser_cb() 309 key_len--; in php_ini_parser_cb() 310 key[key_len] = 0; in php_ini_parser_cb() 320 key_len--; in php_ini_parser_cb() 324 if ((entry = zend_hash_str_find(target_hash, key, key_len)) == NULL) { in php_ini_parser_cb() [all …]
|
/PHP-7.2/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.2/ext/sodium/ |
H A D | libsodium.c | 753 size_t key_len; in PHP_FUNCTION() local 786 size_t key_len; in PHP_FUNCTION() local 832 size_t key_len; in PHP_FUNCTION() local 882 &key, &key_len, in PHP_FUNCTION() 892 if (key_len != 0 && in PHP_FUNCTION() 921 &key, &key_len, in PHP_FUNCTION() 931 if (key_len != 0 && in PHP_FUNCTION() 1730 size_t key_len; in PHP_FUNCTION() local 1771 size_t key_len; in PHP_FUNCTION() local 3047 size_t key_len; in PHP_FUNCTION() local [all …]
|
/PHP-7.2/ext/dba/ |
H A D | dba.c | 249 size_t key_len; \ 253 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 260 size_t key_len; \ 276 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 584 size_t key_len; in php_dba_update() local 590 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) { in php_dba_update() 1056 if(info->hnd->exists(info, key_str, key_len) == SUCCESS) { in PHP_FUNCTION() 1097 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len)) != NULL) { in PHP_FUNCTION() 1114 size_t key_len; in PHP_FUNCTION() local 1133 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION() [all …]
|
/PHP-7.2/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.2/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 428 int key_len = sizeof("$this->") - 1 + Z_STRLEN(op_array->literals[i]); in zend_optimizer_compact_literals() local 429 key = zend_string_alloc(key_len, 0); in zend_optimizer_compact_literals() 432 ZSTR_LEN(key) = key_len; in zend_optimizer_compact_literals() 434 int key_len; in zend_optimizer_compact_literals() local 436 key_len = Z_STRLEN_P(class_name) + sizeof("::") - 1 + Z_STRLEN(op_array->literals[i]); in zend_optimizer_compact_literals() 437 key = zend_string_alloc(key_len, 0); in zend_optimizer_compact_literals()
|
/PHP-7.2/Zend/ |
H A D | zend_API.h | 408 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n); 409 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len); 410 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b); 412 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d); 413 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str); 416 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value); 468 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l); 469 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len); 470 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b); 472 ZEND_API int add_property_double_ex(zval *arg, const char *key, size_t key_len, double d); [all …]
|
H A D | zend_API.c | 1355 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_long_ex() 1365 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_null_ex() 1709 ZVAL_STRINGL(&z_key, key, key_len); in add_property_long_ex() 1723 ZVAL_STRINGL(&z_key, key, key_len); in add_property_bool_ex() 1737 ZVAL_STRINGL(&z_key, key, key_len); in add_property_null_ex() 1751 ZVAL_STRINGL(&z_key, key, key_len); in add_property_resource_ex() 1765 ZVAL_STRINGL(&z_key, key, key_len); in add_property_double_ex() 1779 ZVAL_STRINGL(&z_key, key, key_len); in add_property_str_ex() 1793 ZVAL_STRINGL(&z_key, key, key_len); in add_property_string_ex() 1807 ZVAL_STRINGL(&z_key, key, key_len); in add_property_stringl_ex() [all …]
|
/PHP-7.2/ext/opcache/ |
H A D | ZendAccelerator.h | 227 int key_len; member 299 char *accel_make_persistent_key(const char *path, int path_length, int *key_len);
|
H A D | ZendAccelerator.c | 1034 char *accel_make_persistent_key(const char *path, int path_length, int *key_len) in accel_make_persistent_key() argument 1041 ZCG(key_len) = 0; in accel_make_persistent_key() 1047 ZCG(key_len) = 0; in accel_make_persistent_key() 1050 ZCG(key_len) = 0; in accel_make_persistent_key() 1189 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key() 1194 *key_len = path_length; in accel_make_persistent_key() 1841 if (ZCG(key_len)) { in persistent_compile_file() 1843 key_length = ZCG(key_len); in persistent_compile_file() 2182 ZCG(key_len) = 0; in persistent_zend_resolve_path()
|
/PHP-7.2/TSRM/ |
H A D | tsrm_win32.c | 110 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 118 *key_len = pathname_len; in tsrm_win32_get_path_sid_key() 123 *key_len = 0; in tsrm_win32_get_path_sid_key() 129 *key_len = pathname_len + ptc_sid_len; in tsrm_win32_get_path_sid_key() 130 bucket_key = (char *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, *key_len + 1); in tsrm_win32_get_path_sid_key() 133 *key_len = 0; in tsrm_win32_get_path_sid_key()
|
H A D | tsrm_win32.h | 98 char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len);
|
/PHP-7.2/ext/hash/ |
H A D | hash.c | 213 … 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 215 if (key_len > (size_t)ops->block_size) { in php_hash_hmac_prep_key() 218 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key() 221 memcpy(K, key, key_len); in php_hash_hmac_prep_key() 239 size_t algo_len, data_len, key_len; in php_hash_do_hash_hmac() local 246 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac() 277 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
|
/PHP-7.2/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 146 size_t key_len, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local 152 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
|
/PHP-7.2/ext/phar/ |
H A D | util.c | 41 …l_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, int key_len, char **signature… 1388 …l_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, int 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 | 3094 size_t key_len = 0; in PHP_METHOD() local 3104 …parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "l|s", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD() 3107 if (ZEND_SIZE_T_INT_OVFL(key_len)) { in PHP_METHOD() 3131 PHAR_G(openssl_privatekey_len) = (int)key_len; in PHP_METHOD()
|
/PHP-7.2/ext/openssl/ |
H A D | openssl.c | 6448 int key_len, password_len; in php_openssl_cipher_init() local 6481 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init() 6482 if (key_len > password_len) { in php_openssl_cipher_init() 6488 key = emalloc(key_len); in php_openssl_cipher_init() 6489 memset(key, 0, key_len); in php_openssl_cipher_init() 6492 *ppassword_len = key_len; in php_openssl_cipher_init() 6495 if (password_len > key_len && !EVP_CIPHER_CTX_set_key_length(cipher_ctx, password_len)) { in php_openssl_cipher_init()
|