From a5c1978eefe2fd0dbf1ab6b7cdcb019a9b913a40 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 20 Jul 2014 12:30:58 +0200 Subject: Remove remaining legacy cryptographic algorithms that are never used by VeraCrypt. --- src/Volume/EncryptionAlgorithm.cpp | 76 -------------------------------------- 1 file changed, 76 deletions(-) (limited to 'src/Volume/EncryptionAlgorithm.cpp') diff --git a/src/Volume/EncryptionAlgorithm.cpp b/src/Volume/EncryptionAlgorithm.cpp index ce76e71f..3d854ae5 100644 --- a/src/Volume/EncryptionAlgorithm.cpp +++ b/src/Volume/EncryptionAlgorithm.cpp @@ -7,8 +7,6 @@ */ #include "EncryptionAlgorithm.h" -#include "EncryptionModeCBC.h" -#include "EncryptionModeLRW.h" #include "EncryptionModeXTS.h" namespace VeraCrypt @@ -68,11 +66,6 @@ namespace VeraCrypt l.push_back (shared_ptr (new SerpentTwofishAES ())); l.push_back (shared_ptr (new TwofishSerpent ())); - l.push_back (shared_ptr (new AESBlowfish ())); - l.push_back (shared_ptr (new AESBlowfishSerpent ())); - l.push_back (shared_ptr (new Blowfish ())); - l.push_back (shared_ptr (new Cast5 ())); - l.push_back (shared_ptr (new TripleDES ())); return l; } @@ -209,31 +202,6 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherAES())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); - } - - // AES-Blowfish - AESBlowfish::AESBlowfish () - { - Deprecated = true; - - Ciphers.push_back (shared_ptr (new CipherBlowfish ())); - Ciphers.push_back (shared_ptr (new CipherAES ())); - - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); - } - - // AES-Blowfish-Serpent - AESBlowfishSerpent::AESBlowfishSerpent () - { - Deprecated = true; - - Ciphers.push_back (shared_ptr (new CipherSerpent ())); - Ciphers.push_back (shared_ptr (new CipherBlowfish ())); - Ciphers.push_back (shared_ptr (new CipherAES ())); - - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } // AES-Twofish @@ -243,8 +211,6 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherAES ())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } // AES-Twofish-Serpent @@ -255,28 +221,6 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherAES ())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); - } - - // Blowfish - Blowfish::Blowfish () - { - Deprecated = true; - Ciphers.push_back (shared_ptr (new CipherBlowfish())); - - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); - } - - // CAST5 - Cast5::Cast5 () - { - Deprecated = true; - Ciphers.push_back (shared_ptr (new CipherCast5())); - - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } // Serpent @@ -285,8 +229,6 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherSerpent())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } // Serpent-AES @@ -296,18 +238,6 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherSerpent ())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); - } - - // Triple-DES - TripleDES::TripleDES () - { - Deprecated = true; - Ciphers.push_back (shared_ptr (new CipherTripleDES())); - - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } // Twofish @@ -316,8 +246,6 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherTwofish())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } // Twofish-Serpent @@ -327,8 +255,6 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherTwofish ())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } // Serpent-Twofish-AES @@ -339,7 +265,5 @@ namespace VeraCrypt Ciphers.push_back (shared_ptr (new CipherSerpent ())); SupportedModes.push_back (shared_ptr (new EncryptionModeXTS ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeLRW ())); - SupportedModes.push_back (shared_ptr (new EncryptionModeCBC ())); } } -- cgit v1.2.3