VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormounir <mounir@vera-VirtualBox>2018-08-08 14:09:31 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-10 01:31:30 +0200
commit1d37997d3bbd019082a0b0531e9d269a518bde72 (patch)
treee94e766e6e1f9b4e7b58fe730e37abc3267f18ec
parentaac203673858e9d16974fb1f8a0a72c3b3eaec14 (diff)
downloadVeraCrypt-1d37997d3bbd019082a0b0531e9d269a518bde72.tar.gz
VeraCrypt-1d37997d3bbd019082a0b0531e9d269a518bde72.zip
Linux/MacOSX/FreeBSD: In TrueCrypt mode, reject Streebog as KDF since it is not supported.
-rw-r--r--src/Volume/Volume.cpp4
1 files changed, 2 insertions, 2 deletions
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;