diff options
author | lloyd <[email protected]> | 2008-11-08 21:59:52 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-08 21:59:52 +0000 |
commit | da5a5cbea7f611ebf41a8d3065700106a8d89f2d (patch) | |
tree | 2063c22d19d8583d93208889967b68b10c0a3760 /src/modes/cfb/cfb.cpp | |
parent | a9f747ab6c6f1949410368514e5af74786494318 (diff) |
Remove lookup.h from modebase
Diffstat (limited to 'src/modes/cfb/cfb.cpp')
-rw-r--r-- | src/modes/cfb/cfb.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/modes/cfb/cfb.cpp b/src/modes/cfb/cfb.cpp index dbfbff6ae..60599464b 100644 --- a/src/modes/cfb/cfb.cpp +++ b/src/modes/cfb/cfb.cpp @@ -31,7 +31,8 @@ void check_feedback(u32bit BLOCK_SIZE, u32bit FEEDBACK_SIZE, u32bit bits, *************************************************/ CFB_Encryption::CFB_Encryption(const std::string& cipher_name, u32bit fback_bits) : - BlockCipherMode(cipher_name, "CFB", block_size_of(cipher_name), 1), + BlockCipherMode(get_block_cipher(cipher_name), + "CFB", block_size_of(cipher_name), 1), FEEDBACK_SIZE(fback_bits ? fback_bits / 8: BLOCK_SIZE) { check_feedback(BLOCK_SIZE, FEEDBACK_SIZE, fback_bits, name()); @@ -44,7 +45,8 @@ CFB_Encryption::CFB_Encryption(const std::string& cipher_name, const SymmetricKey& key, const InitializationVector& iv, u32bit fback_bits) : - BlockCipherMode(cipher_name, "CFB", block_size_of(cipher_name), 1), + BlockCipherMode(get_block_cipher(cipher_name), + "CFB", block_size_of(cipher_name), 1), FEEDBACK_SIZE(fback_bits ? fback_bits / 8: BLOCK_SIZE) { check_feedback(BLOCK_SIZE, FEEDBACK_SIZE, fback_bits, name()); @@ -87,7 +89,8 @@ void CFB_Encryption::feedback() *************************************************/ CFB_Decryption::CFB_Decryption(const std::string& cipher_name, u32bit fback_bits) : - BlockCipherMode(cipher_name, "CFB", block_size_of(cipher_name), 1), + BlockCipherMode(get_block_cipher(cipher_name), + "CFB", block_size_of(cipher_name), 1), FEEDBACK_SIZE(fback_bits ? fback_bits / 8 : BLOCK_SIZE) { check_feedback(BLOCK_SIZE, FEEDBACK_SIZE, fback_bits, name()); @@ -100,7 +103,8 @@ CFB_Decryption::CFB_Decryption(const std::string& cipher_name, const SymmetricKey& key, const InitializationVector& iv, u32bit fback_bits) : - BlockCipherMode(cipher_name, "CFB", block_size_of(cipher_name), 1), + BlockCipherMode(get_block_cipher(cipher_name), + "CFB", block_size_of(cipher_name), 1), FEEDBACK_SIZE(fback_bits ? fback_bits / 8 : BLOCK_SIZE) { check_feedback(BLOCK_SIZE, FEEDBACK_SIZE, fback_bits, name()); |