VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Volume/Volume.cpp
diff options
context:
space:
mode:
authormounir <mounir@vera-VirtualBox>2018-08-08 12:09:31 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-08-09 23:31:30 (GMT)
commit1d37997d3bbd019082a0b0531e9d269a518bde72 (patch)
treee94e766e6e1f9b4e7b58fe730e37abc3267f18ec /src/Volume/Volume.cpp
parentaac203673858e9d16974fb1f8a0a72c3b3eaec14 (diff)
downloadVeraCrypt-1d37997d3bbd019082a0b0531e9d269a518bde72.zip
VeraCrypt-1d37997d3bbd019082a0b0531e9d269a518bde72.tar.gz
Linux/MacOSX/FreeBSD: In TrueCrypt mode, reject Streebog as KDF since it is not supported.
Diffstat (limited to 'src/Volume/Volume.cpp')
-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 74d102a..c4a21b3 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;