diff options
author | lloyd <[email protected]> | 2013-08-15 19:20:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-08-15 19:20:58 +0000 |
commit | 84cd26db4770ccf09a80a99b7ccfd899d8eeb1a8 (patch) | |
tree | 2353c420630731ae67c4d9ad85dbccf5e3282821 /src/engine | |
parent | 16955224c8f1c5c035fccb8ce037513d086e3f1a (diff) |
Convert CFB to Transformation API
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/core_engine/core_modes.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/core_engine/core_modes.cpp b/src/engine/core_engine/core_modes.cpp index c2c34234f..e949d5f9b 100644 --- a/src/engine/core_engine/core_modes.cpp +++ b/src/engine/core_engine/core_modes.cpp @@ -16,7 +16,7 @@ #include <botan/cts.h> #endif -#if defined(BOTAN_HAS_CFB) +#if defined(BOTAN_HAS_MODE_CFB) #include <botan/cfb.h> #endif @@ -206,13 +206,13 @@ Keyed_Filter* get_cipher_mode(const BlockCipher* block_cipher, #endif -#if defined(BOTAN_HAS_CFB) +#if defined(BOTAN_HAS_MODE_CFB) if(mode_name == "CFB") { if(direction == ENCRYPTION) - return new CFB_Encryption(block_cipher->clone(), bits); + return new Transformation_Filter(new CFB_Encryption(block_cipher->clone(), bits)); else - return new CFB_Decryption(block_cipher->clone(), bits); + return new Transformation_Filter(new CFB_Decryption(block_cipher->clone(), bits)); } #endif |