diff options
Diffstat (limited to 'src/modes/ctr/ctr.cpp')
-rw-r--r-- | src/modes/ctr/ctr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modes/ctr/ctr.cpp b/src/modes/ctr/ctr.cpp index 8b8c5f35f..c537178f9 100644 --- a/src/modes/ctr/ctr.cpp +++ b/src/modes/ctr/ctr.cpp @@ -14,7 +14,8 @@ namespace Botan { * CTR-BE Constructor * *************************************************/ CTR_BE::CTR_BE(const std::string& cipher_name) : - BlockCipherMode(cipher_name, "CTR-BE", block_size_of(cipher_name), 1) + BlockCipherMode(get_block_cipher(cipher_name), + "CTR-BE", block_size_of(cipher_name), 1) { } @@ -23,7 +24,8 @@ CTR_BE::CTR_BE(const std::string& cipher_name) : *************************************************/ CTR_BE::CTR_BE(const std::string& cipher_name, const SymmetricKey& key, const InitializationVector& iv) : - BlockCipherMode(cipher_name, "CTR-BE", block_size_of(cipher_name), 1) + BlockCipherMode(get_block_cipher(cipher_name), + "CTR-BE", block_size_of(cipher_name), 1) { set_key(key); set_iv(iv); |