aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/ctr/ctr.cpp
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/ctr/ctr.cpp
parenta9f747ab6c6f1949410368514e5af74786494318 (diff)
Remove lookup.h from modebase
Diffstat (limited to 'src/modes/ctr/ctr.cpp')
-rw-r--r--src/modes/ctr/ctr.cpp6
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);