1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Use blake2b as hash for random generator from Argon2 is used.

This commit is contained in:
Mounir IDRASSI
2025-07-03 17:32:47 +09:00
parent eadb02d8ef
commit 3867c1cca3
30 changed files with 134 additions and 75 deletions

View File

@@ -133,7 +133,7 @@ static Hash Hashes[] =
{ BLAKE2S, L"BLAKE2s-256", FALSE, TRUE },
{ WHIRLPOOL, L"Whirlpool", FALSE, FALSE },
{ STREEBOG, L"Streebog", FALSE, FALSE },
{ ARGON2, L"Argon2", FALSE, FALSE },
{ ARGON2, L"BLAKE2b-512", FALSE, FALSE },
#endif
{ 0, 0, 0 }
};
@@ -780,7 +780,7 @@ BOOL HashForSystemEncryption (int hashId)
BOOL HashIsAvailable (int hashId)
{
return (hashId != ARGON2) && (HashGet(hashId) != 0); // Argon2 is not a hash function
return (HashGet(hashId) != 0);
}
// Returns the largest key size needed by an EA for the specified mode of operation