From 1d37997d3bbd019082a0b0531e9d269a518bde72 Mon Sep 17 00:00:00 2001 From: mounir Date: Wed, 8 Aug 2018 14:09:31 +0200 Subject: Linux/MacOSX/FreeBSD: In TrueCrypt mode, reject Streebog as KDF since it is not supported. --- src/Volume/Volume.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Volume') diff --git a/src/Volume/Volume.cpp b/src/Volume/Volume.cpp index 74d102a6..c4a21b3e 100644 --- a/src/Volume/Volume.cpp +++ b/src/Volume/Volume.cpp @@ -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; -- cgit v1.2.3