Home
last modified time | relevance | path

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

/PHP-8.3/ext/standard/
H A Dcrypt_sha256.c336 size_t salt_len; in php_sha256_crypt_r() local
370 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
389 copied_salt[salt_len] = 0; in php_sha256_crypt_r()
401 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
412 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
464 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
473 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
493 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r()
528 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r()
572 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c369 size_t salt_len; in php_sha512_crypt_r() local
404 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
423 copied_salt[salt_len] = 0; in php_sha512_crypt_r()
435 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
446 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
499 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
507 cp = s_bytes = do_alloca(salt_len, use_heap_s_bytes); in php_sha512_crypt_r()
508 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
528 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r()
620 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha512_crypt_r()
[all …]
H A Dphp_crypt.h22 …g *php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, bool quiet);
H A Dcrypt.c71 …ng *php_crypt(const char *password, const int pass_len, const char *salt, int salt_len, bool quiet) in php_crypt() argument
/PHP-8.3/ext/hash/
H A Dhash.c996 size_t pass_len, salt_len = 0; in PHP_FUNCTION() local
1012 if (salt_len > INT_MAX - 4) { in PHP_FUNCTION()
1056 computed_salt = safe_emalloc(salt_len, 1, 4); in PHP_FUNCTION()
1063 computed_salt[salt_len] = (unsigned char) (i >> 24); in PHP_FUNCTION()
1093 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION()
1290 size_t password_len, salt_len; in PHP_FUNCTION() local
1303 salt_len = MIN(salt_len, SALT_SIZE); in PHP_FUNCTION()
1305 memcpy(padded_salt, salt, salt_len); in PHP_FUNCTION()
1306 if (salt_len < SALT_SIZE) { in PHP_FUNCTION()
1307 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len); in PHP_FUNCTION()
[all …]
/PHP-8.3/ext/sodium/
H A Dlibsodium.c1424 size_t salt_len; in PHP_FUNCTION() local
1431 &salt, &salt_len, in PHP_FUNCTION()
1467 if (salt_len != crypto_pwhash_SALTBYTES) { in PHP_FUNCTION()
1613 size_t salt_len; in PHP_FUNCTION() local
1618 &salt, &salt_len, in PHP_FUNCTION()
1638 if (salt_len != crypto_pwhash_scryptsalsa208sha256_SALTBYTES) { in PHP_FUNCTION()
/PHP-8.3/ext/openssl/
H A Dopenssl.c5330 size_t salt_len; in PHP_FUNCTION() local
5339 &salt, &salt_len, in PHP_FUNCTION()
5346 PHP_OPENSSL_CHECK_SIZE_T_TO_INT(salt_len, salt, 2); in PHP_FUNCTION()
5368 …if (PKCS5_PBKDF2_HMAC(password, (int)password_len, (unsigned char *)salt, (int)salt_len, (int)iter… in PHP_FUNCTION()

Completed in 42 milliseconds