aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-06-02 23:08:22 +0000
committerlloyd <[email protected]>2009-06-02 23:08:22 +0000
commitab6eace5760deeff742d515e7d72389cdd2d974b (patch)
treecd72edc4e3ea1463df2e79b376948c64ab07d61c /src/engine
parent820df981410c6d7490fc3728a2d52ca1c59dceda (diff)
Add an implementation of Skein-512
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/def_engine/lookup_hash.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/def_engine/lookup_hash.cpp b/src/engine/def_engine/lookup_hash.cpp
index f59d4c7e1..d1a8e4503 100644
--- a/src/engine/def_engine/lookup_hash.cpp
+++ b/src/engine/def_engine/lookup_hash.cpp
@@ -63,6 +63,10 @@
#include <botan/sha2_64.h>
#endif
+#if defined(BOTAN_HAS_SKEIN_512)
+ #include <botan/skein_512.h>
+#endif
+
#if defined(BOTAN_HAS_TIGER)
#include <botan/tiger.h>
#endif
@@ -161,6 +165,11 @@ Default_Engine::find_hash(const SCAN_Name& request,
request.arg_as_u32bit(1, 3)); // # passes
#endif
+#if defined(BOTAN_HAS_SKEIN_512)
+ if(request.algo_name() == "Skein-512")
+ return new Skein_512(request.arg_as_u32bit(0, 512));
+#endif
+
#if defined(BOTAN_HAS_WHIRLPOOL)
if(request.algo_name() == "Whirlpool")
return new Whirlpool;