Searched refs:salt_len (Results 1 – 7 of 7) sorted by relevance
/PHP-7.0/ext/standard/ |
H A D | password.c | 268 size_t salt_len = 0, required_salt_len = 0, hash_format_len; in PHP_FUNCTION() local 344 salt_len = required_salt_len; in PHP_FUNCTION() 348 salt_len = required_salt_len; in PHP_FUNCTION() 357 salt_len = required_salt_len; in PHP_FUNCTION() 360 salt[salt_len] = 0; in PHP_FUNCTION() 362 hash = safe_emalloc(salt_len + hash_format_len, 1, 1); in PHP_FUNCTION() 364 hash[hash_format_len + salt_len] = 0; in PHP_FUNCTION() 369 hash_len = (int) (hash_format_len + salt_len); in PHP_FUNCTION()
|
H A D | crypt_sha256.c | 353 size_t salt_len; in php_sha256_crypt_r() local 395 copied_salt[salt_len] = 0; in php_sha256_crypt_r() 407 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r() 418 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r() 469 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r() 476 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r() 477 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 497 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r() 532 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r() 576 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 386 size_t salt_len; in php_sha512_crypt_r() local 417 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r() 429 copied_salt[salt_len] = 0; in php_sha512_crypt_r() 441 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r() 452 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r() 504 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r() 511 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r() 512 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 532 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r() 624 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha512_crypt_r() [all …]
|
H A D | php_crypt.h | 26 …p_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet);
|
H A D | crypt.c | 154 …hp_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet) in php_crypt() argument
|
/PHP-7.0/ext/hash/ |
H A D | hash.c | 615 size_t algo_len, pass_len, salt_len = 0; in PHP_FUNCTION() local 640 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION() 674 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION() 681 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION() 711 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION() 935 size_t password_len, salt_len; in PHP_FUNCTION() local 948 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION() 950 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION() 951 if (salt_len < SALT_SIZE) { in PHP_FUNCTION() 952 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION() [all …]
|
/PHP-7.0/ext/openssl/ |
H A D | openssl.c | 4472 size_t salt_len; in PHP_FUNCTION() local 4481 &salt, &salt_len, in PHP_FUNCTION() 4505 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt); in PHP_FUNCTION() 4509 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()
|
Completed in 51 milliseconds