Home
last modified time | relevance | path

Searched refs:salt_len (Results 1 – 7 of 7) sorted by relevance

/PHP-7.3/ext/standard/
H A Dcrypt_sha256.c341 size_t salt_len; in php_sha256_crypt_r() local
383 copied_salt[salt_len] = 0; in php_sha256_crypt_r()
395 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
406 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
457 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
464 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r()
465 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
485 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r()
520 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r()
564 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c374 size_t salt_len; in php_sha512_crypt_r() local
405 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
417 copied_salt[salt_len] = 0; in php_sha512_crypt_r()
429 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
440 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
492 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
499 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r()
500 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
520 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r()
612 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha512_crypt_r()
[all …]
H A Dphp_crypt.h24 …p_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet);
H A Dcrypt.c106 …hp_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet) in php_crypt() argument
/PHP-7.3/ext/hash/
H A Dhash.c722 size_t algo_len, pass_len, salt_len = 0; in PHP_FUNCTION() local
751 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
785 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
792 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
822 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1039 size_t password_len, salt_len; in PHP_FUNCTION() local
1052 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1054 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1055 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1056 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
[all …]
/PHP-7.3/ext/sodium/
H A Dlibsodium.c1815 size_t salt_len; in PHP_FUNCTION() local
1822 &salt, &salt_len, in PHP_FUNCTION()
1854 if (salt_len != crypto_pwhash_SALTBYTES) { in PHP_FUNCTION()
2006 size_t salt_len; in PHP_FUNCTION() local
2011 &salt, &salt_len, in PHP_FUNCTION()
2031 if (salt_len != crypto_pwhash_scryptsalsa208sha256_SALTBYTES) { in PHP_FUNCTION()
/PHP-7.3/ext/openssl/
H A Dopenssl.c5016 size_t salt_len; in PHP_FUNCTION() local
5025 &salt, &salt_len, in PHP_FUNCTION()
5049 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt); in PHP_FUNCTION()
5053 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()

Completed in 58 milliseconds