aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/ecb
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-09-10 02:42:48 -0400
committerJack Lloyd <[email protected]>2015-09-10 02:42:48 -0400
commit8211fdc11fa3bbe692b50d42126f74d259a4a96a (patch)
tree4c86467f85cae8e09190d91eb1299aa45c806ee1 /src/lib/modes/ecb
parentd21de17f070863c7e0b7e8d254eb35689001a53a (diff)
Same treatment for cipher modes
Diffstat (limited to 'src/lib/modes/ecb')
-rw-r--r--src/lib/modes/ecb/ecb.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/modes/ecb/ecb.cpp b/src/lib/modes/ecb/ecb.cpp
index e5794d8e1..14e72e20b 100644
--- a/src/lib/modes/ecb/ecb.cpp
+++ b/src/lib/modes/ecb/ecb.cpp
@@ -10,19 +10,6 @@
namespace Botan {
-template<typename T>
-Transform* make_ecb_mode(const Transform::Spec& spec)
- {
- std::unique_ptr<BlockCipher> bc(get_block_cipher(spec.arg(0)));
- std::unique_ptr<BlockCipherModePaddingMethod> pad(get_bc_pad(spec.arg(1, "NoPadding")));
- if(bc && pad)
- return new T(bc.release(), pad.release());
- return nullptr;
- }
-
-BOTAN_REGISTER_TRANSFORM(ECB_Encryption, make_ecb_mode<ECB_Encryption>);
-BOTAN_REGISTER_TRANSFORM(ECB_Decryption, make_ecb_mode<ECB_Decryption>);
-
ECB_Mode::ECB_Mode(BlockCipher* cipher, BlockCipherModePaddingMethod* padding) :
m_cipher(cipher),
m_padding(padding)