diff options
Diffstat (limited to 'src/libstate/engine/def_engine')
-rw-r--r-- | src/libstate/engine/def_engine/def_eng.h | 3 | ||||
-rw-r--r-- | src/libstate/engine/def_engine/info.txt | 1 | ||||
-rw-r--r-- | src/libstate/engine/def_engine/lookup_bc_pad.cpp | 40 |
3 files changed, 0 insertions, 44 deletions
diff --git a/src/libstate/engine/def_engine/def_eng.h b/src/libstate/engine/def_engine/def_eng.h index 4f1bd89a7..377333856 100644 --- a/src/libstate/engine/def_engine/def_eng.h +++ b/src/libstate/engine/def_engine/def_eng.h @@ -63,9 +63,6 @@ class BOTAN_DLL Default_Engine : public Engine StreamCipher* find_stream_cipher(const std::string&) const; HashFunction* find_hash(const std::string&) const; MessageAuthenticationCode* find_mac(const std::string&) const; - - class BlockCipherModePaddingMethod* - find_bc_pad(const std::string&) const; }; } diff --git a/src/libstate/engine/def_engine/info.txt b/src/libstate/engine/def_engine/info.txt index da2683bb7..503a4392f 100644 --- a/src/libstate/engine/def_engine/info.txt +++ b/src/libstate/engine/def_engine/info.txt @@ -9,7 +9,6 @@ def_eng.h def_mode.cpp def_pk_ops.cpp def_powm.cpp -lookup_bc_pad.cpp lookup_block.cpp lookup_hash.cpp lookup_mac.cpp diff --git a/src/libstate/engine/def_engine/lookup_bc_pad.cpp b/src/libstate/engine/def_engine/lookup_bc_pad.cpp deleted file mode 100644 index 0ed5267f6..000000000 --- a/src/libstate/engine/def_engine/lookup_bc_pad.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/************************************************* -* Block Cipher Padding Lookup * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ - -#include <botan/def_eng.h> -#include <botan/scan_name.h> - -#if defined(BOTAN_HAS_CIPHER_MODE_PADDING) - #include <botan/mode_pad.h> -#endif - -namespace Botan { - -/************************************************* -* Look for an algorithm with this name * -*************************************************/ -BlockCipherModePaddingMethod* -Default_Engine::find_bc_pad(const std::string& algo_spec) const - { - SCAN_Name request(algo_spec); - -#if defined(BOTAN_HAS_CIPHER_MODE_PADDING) - if(request.algo_name() == "PKCS7") - return new PKCS7_Padding; - - if(request.algo_name() == "OneAndZeros") - return new OneAndZeros_Padding; - - if(request.algo_name() == "X9.23") - return new ANSI_X923_Padding; - - if(request.algo_name() == "NoPadding") - return new Null_Padding; -#endif - - return 0; - } - -} |