aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/core_engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-28 06:44:08 +0000
committerlloyd <[email protected]>2012-01-28 06:44:08 +0000
commitfd6a59f73b4b6d65966b61e8e7a8cda050a4ba43 (patch)
tree47cd5e3e92615b87b1da19b7148048cfbb71467f /src/engine/core_engine
parent1b12d3afbd32e8e0bd39900dfb9359e2b9a9af99 (diff)
Add a slow but functional implementation of Camellia
Diffstat (limited to 'src/engine/core_engine')
-rw-r--r--src/engine/core_engine/lookup_block.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/core_engine/lookup_block.cpp b/src/engine/core_engine/lookup_block.cpp
index cc5239dd1..c27a13237 100644
--- a/src/engine/core_engine/lookup_block.cpp
+++ b/src/engine/core_engine/lookup_block.cpp
@@ -17,6 +17,10 @@
#include <botan/blowfish.h>
#endif
+#if defined(BOTAN_HAS_CAMELLIA)
+ #include <botan/camellia.h>
+#endif
+
#if defined(BOTAN_HAS_CAST)
#include <botan/cast128.h>
#include <botan/cast256.h>
@@ -130,6 +134,11 @@ BlockCipher* Core_Engine::find_block_cipher(const SCAN_Name& request,
return new Blowfish;
#endif
+#if defined(BOTAN_HAS_CAMELLIA)
+ if(request.algo_name() == "Camellia")
+ return new Camellia;
+#endif
+
#if defined(BOTAN_HAS_CAST)
if(request.algo_name() == "CAST-128")
return new CAST_128;