Linux/MacOSX/FreeBSD: In TrueCrypt mode, reject Streebog as KDF since it is not supported.

This commit is contained in:
mounir 2018-08-08 14:09:31 +02:00 committed by Mounir IDRASSI
parent aac2036738
commit 1d37997d3b
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ namespace VeraCrypt
if (!volumeFile)
throw ParameterIncorrect (SRC_POS);
// TrueCrypt doesn't support SHA-256
if (kdf && truecryptMode && (kdf->GetName() == L"HMAC-SHA-256"))
// TrueCrypt doesn't support SHA-256 and Streebog
if (kdf && truecryptMode && (kdf->GetName() == L"HMAC-SHA-256" || kdf->GetName() == L"HMAC-Streebog"))
throw UnsupportedAlgoInTrueCryptMode (SRC_POS);
Protection = protection;