VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-25 07:02:30 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 16:40:15 (GMT)
commitd18ecc1a37b5f83d70b204f0bcb097fb8525314f (patch)
tree642f04777991221574b3196f9aeb070f84073da5 /src
parent69c8c9d6c6d21b0bf3e0db8fc790ac6b25ea6f02 (diff)
downloadVeraCrypt-d18ecc1a37b5f83d70b204f0bcb097fb8525314f.zip
VeraCrypt-d18ecc1a37b5f83d70b204f0bcb097fb8525314f.tar.gz
Crypto: deprecate GOST89 so that it can't be used to create new volumes. Keep only for existing volumes.
Diffstat (limited to 'src')
-rw-r--r--src/Common/Crypto.c2
-rw-r--r--src/Volume/EncryptionAlgorithm.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c
index 3c52ef7..43f287d 100644
--- a/src/Common/Crypto.c
+++ b/src/Common/Crypto.c
@@ -79,7 +79,7 @@ static EncryptionAlgorithm EncryptionAlgorithms[] =
{ { TWOFISH, 0 }, { XTS, 0 }, 1, 1 },
{ { CAMELLIA, 0 }, { XTS, 0 }, 1, 1 },
#if defined(CIPHER_GOST89)
- { { GOST89, 0 }, { XTS, 0 }, 0, 1 },
+ { { GOST89, 0 }, { XTS, 0 }, 0, 0 },
#endif // defined(CIPHER_GOST89)
{ { KUZNYECHIK, 0 }, { XTS, 0 }, 0, 1 },
{ { TWOFISH, AES, 0 }, { XTS, 0 }, 1, 1 },
diff --git a/src/Volume/EncryptionAlgorithm.cpp b/src/Volume/EncryptionAlgorithm.cpp
index 119b553..df8afec 100644
--- a/src/Volume/EncryptionAlgorithm.cpp
+++ b/src/Volume/EncryptionAlgorithm.cpp
@@ -298,7 +298,7 @@ namespace VeraCrypt
// GOST89
- GOST89::GOST89 ()
+ GOST89::GOST89 () : Deprecated (true)
{
Ciphers.push_back (shared_ptr <Cipher> (new CipherGost89()));