diff options
Diffstat (limited to 'src/lib/modes/cipher_mode.cpp')
-rw-r--r-- | src/lib/modes/cipher_mode.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/modes/cipher_mode.cpp b/src/lib/modes/cipher_mode.cpp index d622e7754..843e49581 100644 --- a/src/lib/modes/cipher_mode.cpp +++ b/src/lib/modes/cipher_mode.cpp @@ -18,10 +18,6 @@ #include <botan/aead.h> #endif -#if defined(BOTAN_HAS_MODE_ECB) - #include <botan/ecb.h> -#endif - #if defined(BOTAN_HAS_MODE_CBC) #include <botan/cbc.h> #endif @@ -140,20 +136,6 @@ Cipher_Mode* get_cipher_mode(const std::string& algo, Cipher_Dir direction) } #endif -#if defined(BOTAN_HAS_MODE_ECB) - if(spec.algo_name() == "ECB") - { - std::unique_ptr<BlockCipherModePaddingMethod> pad(get_bc_pad(spec.arg(1, "NoPadding"))); - if(pad) - { - if(direction == ENCRYPTION) - return new ECB_Encryption(bc.release(), pad.release()); - else - return new ECB_Decryption(bc.release(), pad.release()); - } - } -#endif - #endif return nullptr; |