aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/cts
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-08 21:59:52 +0000
committerlloyd <[email protected]>2008-11-08 21:59:52 +0000
commitda5a5cbea7f611ebf41a8d3065700106a8d89f2d (patch)
tree2063c22d19d8583d93208889967b68b10c0a3760 /src/modes/cts
parenta9f747ab6c6f1949410368514e5af74786494318 (diff)
Remove lookup.h from modebase
Diffstat (limited to 'src/modes/cts')
-rw-r--r--src/modes/cts/cts.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/modes/cts/cts.cpp b/src/modes/cts/cts.cpp
index 8af775713..0bce248b5 100644
--- a/src/modes/cts/cts.cpp
+++ b/src/modes/cts/cts.cpp
@@ -14,7 +14,8 @@ namespace Botan {
* CTS Encryption Constructor *
*************************************************/
CTS_Encryption::CTS_Encryption(const std::string& cipher_name) :
- BlockCipherMode(cipher_name, "CTS", block_size_of(cipher_name), 0, 2)
+ BlockCipherMode(get_block_cipher(cipher_name),
+ "CTS", block_size_of(cipher_name), 0, 2)
{
}
@@ -24,7 +25,8 @@ CTS_Encryption::CTS_Encryption(const std::string& cipher_name) :
CTS_Encryption::CTS_Encryption(const std::string& cipher_name,
const SymmetricKey& key,
const InitializationVector& iv) :
- BlockCipherMode(cipher_name, "CTS", block_size_of(cipher_name), 0, 2)
+ BlockCipherMode(get_block_cipher(cipher_name),
+ "CTS", block_size_of(cipher_name), 0, 2)
{
set_key(key);
set_iv(iv);
@@ -93,7 +95,8 @@ void CTS_Encryption::end_msg()
* CTS Decryption Constructor *
*************************************************/
CTS_Decryption::CTS_Decryption(const std::string& cipher_name) :
- BlockCipherMode(cipher_name, "CTS", block_size_of(cipher_name), 0, 2)
+ BlockCipherMode(get_block_cipher(cipher_name),
+ "CTS", block_size_of(cipher_name), 0, 2)
{
temp.create(BLOCK_SIZE);
}
@@ -104,7 +107,8 @@ CTS_Decryption::CTS_Decryption(const std::string& cipher_name) :
CTS_Decryption::CTS_Decryption(const std::string& cipher_name,
const SymmetricKey& key,
const InitializationVector& iv) :
- BlockCipherMode(cipher_name, "CTS", block_size_of(cipher_name), 0, 2)
+ BlockCipherMode(get_block_cipher(cipher_name),
+ "CTS", block_size_of(cipher_name), 0, 2)
{
temp.create(BLOCK_SIZE);
set_key(key);