Home
last modified time | relevance | path

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

/PHP-8.0/ext/standard/
H A Dcrypt_sha256.c337 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.c370 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.h22 …p_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet);
H A Dcrypt.c82 …hp_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet) in php_crypt() argument
/PHP-8.0/ext/hash/
H A Dhash.c979 size_t pass_len, salt_len = 0; in PHP_FUNCTION() local
994 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
1038 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
1045 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
1075 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1283 size_t password_len, salt_len; in PHP_FUNCTION() local
1296 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1298 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1299 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1300 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
[all …]
/PHP-8.0/ext/sodium/
H A Dlibsodium.c1482 size_t salt_len; in PHP_FUNCTION() local
1489 &salt, &salt_len, in PHP_FUNCTION()
1525 if (salt_len != crypto_pwhash_SALTBYTES) { in PHP_FUNCTION()
1671 size_t salt_len; in PHP_FUNCTION() local
1676 &salt, &salt_len, in PHP_FUNCTION()
1696 if (salt_len != crypto_pwhash_scryptsalsa208sha256_SALTBYTES) { in PHP_FUNCTION()
/PHP-8.0/ext/openssl/
H A Dopenssl.c4895 size_t salt_len; in PHP_FUNCTION() local
4904 &salt, &salt_len, in PHP_FUNCTION()
4911 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt, 2); in PHP_FUNCTION()
4933 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()

Completed in 81 milliseconds