Home
last modified time | relevance | path

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

/PHP-7.2/ext/standard/
H A Dcrypt_sha256.c353 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 Dcrypt_sha512.c386 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 Dphp_crypt.h26 …p_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet);
H A Dcrypt.c108 …hp_crypt(const char *password, const int pass_len, const char *salt, int salt_len, zend_bool quiet) in php_crypt() argument
/PHP-7.2/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.2/ext/sodium/
H A Dlibsodium.c1814 size_t salt_len; in PHP_FUNCTION() local
1821 &salt, &salt_len, in PHP_FUNCTION()
1853 if (salt_len != crypto_pwhash_SALTBYTES) { in PHP_FUNCTION()
2005 size_t salt_len; in PHP_FUNCTION() local
2010 &salt, &salt_len, in PHP_FUNCTION()
2030 if (salt_len != crypto_pwhash_scryptsalsa208sha256_SALTBYTES) { in PHP_FUNCTION()
/PHP-7.2/ext/openssl/
H A Dopenssl.c4966 size_t salt_len; in PHP_FUNCTION() local
4975 &salt, &salt_len, in PHP_FUNCTION()
4999 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt); in PHP_FUNCTION()
5003 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()

Completed in 45 milliseconds