Home
last modified time | relevance | path

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

/PHP-7.4/ext/standard/
H A Dcrypt_sha256.c337 size_t salt_len; in php_sha256_crypt_r() local
379 copied_salt[salt_len] = 0; in php_sha256_crypt_r()
391 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
402 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
453 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
460 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r()
461 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
481 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r()
516 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r()
560 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
401 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
413 copied_salt[salt_len] = 0; in php_sha512_crypt_r()
425 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
436 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
488 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
495 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r()
496 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
516 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r()
608 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.c98 …hp_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet) in php_crypt() argument
/PHP-7.4/ext/hash/
H A Dhash.c729 size_t algo_len, pass_len, salt_len = 0; in PHP_FUNCTION() local
758 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
792 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
799 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
829 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1046 size_t password_len, salt_len; in PHP_FUNCTION() local
1059 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1061 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1062 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1063 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/sodium/
H A Dlibsodium.c1832 size_t salt_len; in PHP_FUNCTION() local
1839 &salt, &salt_len, in PHP_FUNCTION()
1871 if (salt_len != crypto_pwhash_SALTBYTES) { in PHP_FUNCTION()
2023 size_t salt_len; in PHP_FUNCTION() local
2028 &salt, &salt_len, in PHP_FUNCTION()
2048 if (salt_len != crypto_pwhash_scryptsalsa208sha256_SALTBYTES) { in PHP_FUNCTION()
/PHP-7.4/ext/openssl/
H A Dopenssl.c5095 size_t salt_len; in PHP_FUNCTION() local
5104 &salt, &salt_len, in PHP_FUNCTION()
5128 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt); in PHP_FUNCTION()
5132 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()

Completed in 41 milliseconds