diff options
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/core_engine/core_modes.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/engine/core_engine/core_modes.cpp b/src/engine/core_engine/core_modes.cpp index 21a5863e2..039a60c78 100644 --- a/src/engine/core_engine/core_modes.cpp +++ b/src/engine/core_engine/core_modes.cpp @@ -40,6 +40,10 @@ #include <botan/eax.h> #endif +#if defined(BOTAN_HAS_OCB) + #include <botan/ocb.h> +#endif + #if defined(BOTAN_HAS_XTS) #include <botan/xts.h> #endif @@ -127,6 +131,18 @@ Keyed_Filter* get_cipher_mode(const BlockCipher* block_cipher, #endif } +#if defined(BOTAN_HAS_OCB) + if(mode == "OCB") + { + if(direction == ENCRYPTION) + return new OCB_Encryption(block_cipher->clone(), 16); + /* + else + return new OCB_Decryption(block_cipher->clone(), 16); + */ + } +#endif + #if defined(BOTAN_HAS_XTS) if(mode == "XTS") { |