diff options
Diffstat (limited to 'src/modes/cts')
-rw-r--r-- | src/modes/cts/cts.cpp | 12 |
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); |