Home
last modified time | relevance | path

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

/PHP-8.1/ext/standard/
H A Dcrypt_sha256.c338 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 Dcrypt_sha512.c371 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 …]
/PHP-8.1/ext/intl/collator/
H A Dcollator_sort.c505 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.1/main/
H A Dphp_ini.c252 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.1/ext/sodium/
H A Dlibsodium.c508 size_t key_len; in PHP_FUNCTION() local
539 size_t key_len; in PHP_FUNCTION() local
581 size_t key_len; in PHP_FUNCTION() local
627 &key, &key_len, in PHP_FUNCTION()
637 if (key_len != 0 && in PHP_FUNCTION()
666 &key, &key_len, in PHP_FUNCTION()
676 if (key_len != 0 && in PHP_FUNCTION()
1429 size_t key_len; in PHP_FUNCTION() local
1470 size_t key_len; in PHP_FUNCTION() local
2830 size_t key_len; in PHP_FUNCTION() local
[all …]
/PHP-8.1/ext/dba/
H A Ddba.c147 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.1/ext/session/
H A Dmod_files.c109 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.1/Zend/
H A Dzend_API.c2041 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_long_ex()
2050 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_bool_ex()
2059 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_null_ex()
2068 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_resource_ex()
2078 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_double_ex()
2087 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_str_ex()
2097 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_string_ex()
2107 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_stringl_ex()
2117 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_array_ex()
2127 add_property_zval_ex(arg, key, key_len, &tmp); in add_property_object_ex()
[all …]
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.h502 ZEND_API void add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
503 ZEND_API void add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
504 ZEND_API void add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, bool b);
506 ZEND_API void add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
507 ZEND_API void add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
513 ZEND_API void add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
564 ZEND_API void add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l);
565 ZEND_API void add_property_null_ex(zval *arg, const char *key, size_t key_len);
566 ZEND_API void add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b);
568 ZEND_API void add_property_double_ex(zval *arg, const char *key, size_t key_len, double d);
[all …]
H A Dzend_list.c341 ZEND_API zend_resource* zend_register_persistent_resource(const char *key, size_t key_len, void *rs… in zend_register_persistent_resource() argument
343 zend_string *str = zend_string_init(key, key_len, 1); in zend_register_persistent_resource()
/PHP-8.1/ext/hash/
H A Dhash.c480 if (key_len > ops->block_size) { in php_hash_hmac_prep_key()
483 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key()
486 memcpy(K, key, key_len); in php_hash_hmac_prep_key()
531 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
583 size_t data_len, key_len; in PHP_FUNCTION() local
590 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 0); in PHP_FUNCTION()
600 size_t data_len, key_len; in PHP_FUNCTION() local
607 php_hash_do_hash_hmac(return_value, algo, data, data_len, key, key_len, raw_output, 1); in PHP_FUNCTION()
1215 size_t data_len, key_len = 0; in PHP_FUNCTION() local
1217 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls|s!", &algorithm, &data, &data_len, &key, &key_len) … in PHP_FUNCTION()
[all …]
/PHP-8.1/TSRM/
H A Dtsrm_win32.h92 const char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len
H A Dtsrm_win32.c107 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
115 *key_len = pathname_len; in tsrm_win32_get_path_sid_key()
120 *key_len = 0; in tsrm_win32_get_path_sid_key()
126 *key_len = pathname_len + ptc_sid_len; in tsrm_win32_get_path_sid_key()
127 bucket_key = (char *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, *key_len + 1); in tsrm_win32_get_path_sid_key()
130 *key_len = 0; in tsrm_win32_get_path_sid_key()
/PHP-8.1/ext/intl/calendar/
H A Dcalendar_methods.cpp166 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.1/ext/openssl/
H A Dopenssl.c5187 zend_long key_len = 0; in PHP_FUNCTION() local
5189 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &peer_pub_key, &priv_key, &key_len) == FAILURE)… in PHP_FUNCTION()
5193 if (key_len < 0) { in PHP_FUNCTION()
5209 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, key_len); in PHP_FUNCTION()
7403 int key_len, password_len; in php_openssl_cipher_init() local
7437 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init()
7438 if (key_len > password_len) { in php_openssl_cipher_init()
7444 key = emalloc(key_len); in php_openssl_cipher_init()
7445 memset(key, 0, key_len); in php_openssl_cipher_init()
7448 *ppassword_len = key_len; in php_openssl_cipher_init()
[all …]
/PHP-8.1/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
1397 ZVAL_STRINGL(&zp[2], key, key_len); in phar_call_openssl_signverify()
H A Dphar_object.c2991 size_t key_len = 0; in PHP_METHOD() local
2993 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|s!", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD()
3020 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()

Completed in 146 milliseconds