aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/def_engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-14 23:13:23 +0000
committerlloyd <[email protected]>2009-10-14 23:13:23 +0000
commit01ea6faf1b9fb3ccd7233b1117e09c642c22d238 (patch)
tree02d9c8967de30137d899949d1fcbfd28f4c14c9e /src/engine/def_engine
parent09a17201a8132f8422a4c371cf1e56553317bc66 (diff)
Convert CTR_BE from a Filter to a StreamCipher. Must wrap in a StreamCipher_Filter
to pass it directly to a Pipe now.
Diffstat (limited to 'src/engine/def_engine')
-rw-r--r--src/engine/def_engine/def_mode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/def_engine/def_mode.cpp b/src/engine/def_engine/def_mode.cpp
index 0c7a1a2e2..120489b38 100644
--- a/src/engine/def_engine/def_mode.cpp
+++ b/src/engine/def_engine/def_mode.cpp
@@ -32,7 +32,7 @@
#include <botan/ofb.h>
#endif
-#if defined(BOTAN_HAS_CTR)
+#if defined(BOTAN_HAS_CTR_BE)
#include <botan/ctr.h>
#endif
@@ -84,9 +84,9 @@ Keyed_Filter* get_cipher_mode(const BlockCipher* block_cipher,
return new OFB(block_cipher->clone());
#endif
-#if defined(BOTAN_HAS_CTR)
+#if defined(BOTAN_HAS_CTR_BE)
if(mode == "CTR-BE")
- return new CTR_BE(block_cipher->clone());
+ return new StreamCipher_Filter(new CTR_BE(block_cipher->clone()));
#endif
#if defined(BOTAN_HAS_ECB)