/PHP-7.1/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 | 3451 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor() 3461 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.1/ext/mcrypt/ |
H A D | mcrypt.c | 538 size_t key_len, iv_len; in PHP_FUNCTION() local 556 if (key_len == 0) { in PHP_FUNCTION() 560 key_s = emalloc(key_len); in PHP_FUNCTION() 561 memset(key_s, 0, key_len); in PHP_FUNCTION() 566 if (key_len > (size_t)max_key_size) { in PHP_FUNCTION() 570 key_size = (int)key_len; in PHP_FUNCTION() 572 memcpy(key_s, key, key_len); in PHP_FUNCTION() 608 ZEND_SECURE_ZERO(key_s, key_len); in PHP_FUNCTION() 1282 if (php_mcrypt_ensure_valid_key_size(td, (int)key_len) == FAILURE) { in php_mcrypt_do_crypt() 1333 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; in PHP_FUNCTION() local [all …]
|
H A D | mcrypt_filter.c | 154 int encrypt = 1, iv_len, key_len, keyl, result; in php_mcrypt_filter_create() local 206 key_len = (int)Z_STRLEN_P(tmpzval); in php_mcrypt_filter_create() 219 if (keyl < key_len) { in php_mcrypt_filter_create() 220 key_len = keyl; in php_mcrypt_filter_create() 238 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv); in php_mcrypt_filter_create()
|
/PHP-7.1/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.1/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.1/ext/dba/ |
H A D | dba.c | 248 size_t key_len; \ 252 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 259 size_t key_len; \ 275 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\ 578 size_t key_len; in php_dba_update() local 584 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) { in php_dba_update() 1003 if(info->hnd->exists(info, key_str, key_len) == SUCCESS) { in PHP_FUNCTION() 1044 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len)) != NULL) { in PHP_FUNCTION() 1061 size_t key_len; in PHP_FUNCTION() local 1080 add_next_index_stringl(return_value, key, key_len); in PHP_FUNCTION() [all …]
|
/PHP-7.1/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.1/ext/hash/ |
H A D | hash.c | 211 if (key_len > (size_t)ops->block_size) { in php_hash_hmac_prep_key() 214 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key() 217 memcpy(K, key, key_len); in php_hash_hmac_prep_key() 235 size_t algo_len, data_len, key_len; in php_hash_do_hash_hmac() local 242 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac() 268 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac() 331 size_t algo_len, key_len = 0; in PHP_FUNCTION() local 349 key_len <= 0) { in PHP_FUNCTION() 370 if (key_len > (size_t)ops->block_size) { in PHP_FUNCTION() 372 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION() [all …]
|
/PHP-7.1/Zend/ |
H A D | zend_API.h | 395 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n); 396 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len); 397 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b); 399 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d); 401 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str); 403 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value); 455 ZEND_API int add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long l); 456 ZEND_API int add_property_null_ex(zval *arg, const char *key, size_t key_len); 457 ZEND_API int add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b); 459 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 | 1325 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_long_ex() 1335 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp); in add_assoc_null_ex() 1679 ZVAL_STRINGL(&z_key, key, key_len); in add_property_long_ex() 1693 ZVAL_STRINGL(&z_key, key, key_len); in add_property_bool_ex() 1707 ZVAL_STRINGL(&z_key, key, key_len); in add_property_null_ex() 1721 ZVAL_STRINGL(&z_key, key, key_len); in add_property_resource_ex() 1735 ZVAL_STRINGL(&z_key, key, key_len); in add_property_double_ex() 1749 ZVAL_STRINGL(&z_key, key, key_len); in add_property_str_ex() 1763 ZVAL_STRINGL(&z_key, key, key_len); in add_property_string_ex() 1777 ZVAL_STRINGL(&z_key, key, key_len); in add_property_stringl_ex() [all …]
|
/PHP-7.1/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 427 int key_len = sizeof("$this->") - 1 + Z_STRLEN(op_array->literals[i]); in zend_optimizer_compact_literals() local 428 key = zend_string_alloc(key_len, 0); in zend_optimizer_compact_literals() 431 ZSTR_LEN(key) = key_len; in zend_optimizer_compact_literals() 433 int key_len; in zend_optimizer_compact_literals() local 435 key_len = Z_STRLEN_P(class_name) + sizeof("::") - 1 + Z_STRLEN(op_array->literals[i]); in zend_optimizer_compact_literals() 436 key = zend_string_alloc(key_len, 0); in zend_optimizer_compact_literals()
|
/PHP-7.1/ext/opcache/ |
H A D | ZendAccelerator.h | 253 int key_len; member 325 char *accel_make_persistent_key(const char *path, int path_length, int *key_len);
|
H A D | ZendAccelerator.c | 980 char *accel_make_persistent_key(const char *path, int path_length, int *key_len) in accel_make_persistent_key() argument 987 ZCG(key_len) = 0; in accel_make_persistent_key() 993 ZCG(key_len) = 0; in accel_make_persistent_key() 996 ZCG(key_len) = 0; in accel_make_persistent_key() 1131 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key() 1136 *key_len = path_length; in accel_make_persistent_key() 1733 if (ZCG(key_len)) { in persistent_compile_file() 1735 key_length = ZCG(key_len); in persistent_compile_file() 2066 ZCG(key_len) = 0; in persistent_zend_resolve_path()
|
/PHP-7.1/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.1/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 | 3036 size_t key_len = 0; in PHP_METHOD() local 3046 …parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "l|s", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD() 3049 if (ZEND_SIZE_T_INT_OVFL(key_len)) { in PHP_METHOD() 3073 PHAR_G(openssl_privatekey_len) = (int)key_len; in PHP_METHOD()
|
/PHP-7.1/ext/openssl/ |
H A D | openssl.c | 6273 int key_len, password_len; in php_openssl_cipher_init() local 6303 key_len = EVP_CIPHER_key_length(cipher_type); in php_openssl_cipher_init() 6304 if (key_len > password_len) { in php_openssl_cipher_init() 6310 key = emalloc(key_len); in php_openssl_cipher_init() 6311 memset(key, 0, key_len); in php_openssl_cipher_init() 6314 *ppassword_len = key_len; in php_openssl_cipher_init() 6317 if (password_len > key_len && !EVP_CIPHER_CTX_set_key_length(cipher_ctx, password_len)) { in php_openssl_cipher_init()
|