mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Linux/MacOSX/FreeBSD: In TrueCrypt mode, reject Streebog as KDF since it is not supported.
This commit is contained in:
@@ -110,8 +110,8 @@ namespace VeraCrypt
|
|||||||
if (!volumeFile)
|
if (!volumeFile)
|
||||||
throw ParameterIncorrect (SRC_POS);
|
throw ParameterIncorrect (SRC_POS);
|
||||||
|
|
||||||
// TrueCrypt doesn't support SHA-256
|
// TrueCrypt doesn't support SHA-256 and Streebog
|
||||||
if (kdf && truecryptMode && (kdf->GetName() == L"HMAC-SHA-256"))
|
if (kdf && truecryptMode && (kdf->GetName() == L"HMAC-SHA-256" || kdf->GetName() == L"HMAC-Streebog"))
|
||||||
throw UnsupportedAlgoInTrueCryptMode (SRC_POS);
|
throw UnsupportedAlgoInTrueCryptMode (SRC_POS);
|
||||||
|
|
||||||
Protection = protection;
|
Protection = protection;
|
||||||
|
|||||||
Reference in New Issue
Block a user