Home
last modified time | relevance | path

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

/PHP-7.4/ext/standard/
H A Dcrypt_sha256.c338 size_t key_len; in php_sha256_crypt_r() local
368 key_len = strlen(key); in php_sha256_crypt_r()
386 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r()
412 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r()
419 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r()
423 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r()
434 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r()
442 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r()
443 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
559 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c371 size_t key_len; in php_sha512_crypt_r() local
402 key_len = strlen(key); in php_sha512_crypt_r()
420 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r()
446 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r()
453 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r()
457 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r()
468 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r()
476 cp = p_bytes = alloca(key_len); in php_sha512_crypt_r()
477 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
607 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha512_crypt_r()
[all …]
H A Dbasic_functions.h254 size_t key_len; member
H A Dbasic_functions.c3496 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
3506 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
4191 pe.key_len = strlen(pe.key);
4194 if (pe.key_len < setting_len - 1) {
4204 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len);
4209 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4259 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry));
4261 if (!strncmp(pe.key, "TZ", pe.key_len)) {
/PHP-7.4/main/
H A Dphp_ini.c258 size_t key_len; in php_ini_parser_cb() local
264 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; in php_ini_parser_cb()
275 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; in php_ini_parser_cb()
278 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ in php_ini_parser_cb()
284 if (key && key_len > 0) { in php_ini_parser_cb()
286 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) { in php_ini_parser_cb()
287 key_len--; in php_ini_parser_cb()
288 key[key_len] = 0; in php_ini_parser_cb()
298 key_len--; in php_ini_parser_cb()
302 if ((entry = zend_hash_str_find(target_hash, key, key_len)) == NULL) { in php_ini_parser_cb()
[all …]
/PHP-7.4/ext/intl/collator/
H A Dcollator_sort.c557 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.4/ext/sodium/
H A Dlibsodium.c771 size_t key_len; in PHP_FUNCTION() local
804 size_t key_len; in PHP_FUNCTION() local
850 size_t key_len; in PHP_FUNCTION() local
900 &key, &key_len, in PHP_FUNCTION()
910 if (key_len != 0 && in PHP_FUNCTION()
939 &key, &key_len, in PHP_FUNCTION()
949 if (key_len != 0 && in PHP_FUNCTION()
1748 size_t key_len; in PHP_FUNCTION() local
1789 size_t key_len; in PHP_FUNCTION() local
3066 size_t key_len; in PHP_FUNCTION() local
[all …]
/PHP-7.4/ext/session/
H A Dmod_files.c111 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.4/ext/dba/
H A Ddba.c246 size_t key_len; \
250 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\
257 size_t key_len; \
273 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()
1059 if(info->hnd->exists(info, key_str, key_len) == SUCCESS) { in PHP_FUNCTION()
1100 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len)) != NULL) { in PHP_FUNCTION()
1117 size_t key_len; in PHP_FUNCTION() local
1136 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION()
[all …]
/PHP-7.4/Zend/
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.c1447 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_long_ex()
1457 zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_null_ex()
1727 return add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex()
1736 return add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex()
1745 return add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex()
1754 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex()
1765 return add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex()
1774 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex()
1785 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex()
1796 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex()
[all …]
H A Dzend_API.h392 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
393 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
394 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);
396 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
397 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
400 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
442 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
443 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len);
444 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
446 ZEND_API int add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
[all …]
H A Dzend_list.c346 ZEND_API zend_resource* zend_register_persistent_resource(const char *key, size_t key_len, void *rs… in zend_register_persistent_resource() argument
348 zend_string *str = zend_string_init(key, key_len, 1); in zend_register_persistent_resource()
/PHP-7.4/ext/opcache/
H A DZendAccelerator.h228 int key_len; member
316 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len);
H A DZendAccelerator.c1123 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len) in accel_make_persistent_key() argument
1130 ZCG(key_len) = 0; in accel_make_persistent_key()
1136 ZCG(key_len) = 0; in accel_make_persistent_key()
1139 ZCG(key_len) = 0; in accel_make_persistent_key()
1278 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key()
1283 *key_len = path_length; in accel_make_persistent_key()
1961 if (ZCG(key_len)) { in persistent_compile_file()
1963 key_length = ZCG(key_len); in persistent_compile_file()
2315 ZCG(key_len) = 0; in persistent_zend_resolve_path()
/PHP-7.4/TSRM/
H A Dtsrm_win32.h96 char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len);
H A Dtsrm_win32.c108 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.4/ext/hash/
H A Dhash.c216 … 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
218 if (key_len > ops->block_size) { in php_hash_hmac_prep_key()
221 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key()
224 memcpy(K, key, key_len); in php_hash_hmac_prep_key()
242 size_t algo_len, data_len, key_len; in php_hash_do_hash_hmac() local
249 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac()
280 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
/PHP-7.4/ext/opcache/Optimizer/
H A Dcompact_literals.c90 size_t key_len; in add_static_slot() local
95 key_len = Z_STRLEN_P(class_name) + sizeof("::") - 1 + Z_STRLEN_P(prop_name); in add_static_slot()
96 key = zend_string_alloc(key_len, 0); in add_static_slot()
/PHP-7.4/ext/openssl/
H A Dopenssl.c5048 zend_long key_len = 0; in PHP_FUNCTION() local
5051 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &peer_pub_key, &priv_key, &key_len) == FAILURE)… in PHP_FUNCTION()
5054 if (key_len < 0) { in PHP_FUNCTION()
5057 key_size = key_len; in PHP_FUNCTION()
6601 int key_len, password_len; in php_openssl_cipher_init() local
6635 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init()
6636 if (key_len > password_len) { in php_openssl_cipher_init()
6642 key = emalloc(key_len); in php_openssl_cipher_init()
6643 memset(key, 0, key_len); in php_openssl_cipher_init()
6646 *ppassword_len = key_len; in php_openssl_cipher_init()
[all …]
/PHP-7.4/ext/intl/calendar/
H A Dcalendar_methods.cpp150 size_t key_len, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local
156 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
/PHP-7.4/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…
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
1393 ZVAL_STRINGL(&zp[2], key, key_len); in phar_call_openssl_signverify()
H A Dphar_object.c3053 size_t key_len = 0; in PHP_METHOD() local
3063 …parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "l|s", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD()
3080 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()

Completed in 234 milliseconds