aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/ecb/ecb.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-08 22:45:28 +0000
committerlloyd <[email protected]>2008-11-08 22:45:28 +0000
commitdbccddadefdcd9d1f7bd8612d6af4449f4910b1c (patch)
tree0e3a47f70280df03d7bd3b58eaecea6c07c31155 /src/modes/ecb/ecb.cpp
parentcccd3fafcffa318fa783f857f84b5545028daca2 (diff)
Remove lookup.h use from ECB, CBC, CFB
Diffstat (limited to 'src/modes/ecb/ecb.cpp')
-rw-r--r--src/modes/ecb/ecb.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/modes/ecb/ecb.cpp b/src/modes/ecb/ecb.cpp
index 2d0888cea..b76e86ad9 100644
--- a/src/modes/ecb/ecb.cpp
+++ b/src/modes/ecb/ecb.cpp
@@ -4,20 +4,10 @@
*************************************************/
#include <botan/ecb.h>
-#include <botan/lookup.h>
namespace Botan {
/*************************************************
-* ECB Constructor *
-*************************************************/
-ECB::ECB(const std::string& cipher_name, const std::string& padding_name) :
- BlockCipherMode(get_block_cipher(cipher_name),
- "ECB", 0), padder(get_bc_pad(padding_name))
- {
- }
-
-/*************************************************
* Verify the IV is not set *
*************************************************/
bool ECB::valid_iv_size(u32bit iv_size) const
@@ -36,26 +26,6 @@ std::string ECB::name() const
}
/*************************************************
-* ECB Encryption Constructor *
-*************************************************/
-ECB_Encryption::ECB_Encryption(const std::string& cipher_name,
- const std::string& padding_name) :
- ECB(cipher_name, padding_name)
- {
- }
-
-/*************************************************
-* ECB Encryption Constructor *
-*************************************************/
-ECB_Encryption::ECB_Encryption(const std::string& cipher_name,
- const std::string& padding_name,
- const SymmetricKey& key) :
- ECB(cipher_name, padding_name)
- {
- set_key(key);
- }
-
-/*************************************************
* Encrypt in ECB mode *
*************************************************/
void ECB_Encryption::write(const byte input[], u32bit length)
@@ -93,26 +63,6 @@ void ECB_Encryption::end_msg()
}
/*************************************************
-* ECB Decryption Constructor *
-*************************************************/
-ECB_Decryption::ECB_Decryption(const std::string& cipher_name,
- const std::string& padding_name) :
- ECB(cipher_name, padding_name)
- {
- }
-
-/*************************************************
-* ECB Decryption Constructor *
-*************************************************/
-ECB_Decryption::ECB_Decryption(const std::string& cipher_name,
- const std::string& padding_name,
- const SymmetricKey& key) :
- ECB(cipher_name, padding_name)
- {
- set_key(key);
- }
-
-/*************************************************
* Decrypt in ECB mode *
*************************************************/
void ECB_Decryption::write(const byte input[], u32bit length)