diff options
author | lloyd <[email protected]> | 2009-04-07 22:09:21 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-04-07 22:09:21 +0000 |
commit | 552a13baf572164e6dc80371c080197353aae518 (patch) | |
tree | 573c4d236ed2fcc87a1d94437e03177ff408d412 /src/engine/def_engine/lookup_hash.cpp | |
parent | bbef5652aa760beb83ef3116ecec3bd5eb76af35 (diff) |
Add the GOST 34.11 hash function. Pretty slow, but functional.
Diffstat (limited to 'src/engine/def_engine/lookup_hash.cpp')
-rw-r--r-- | src/engine/def_engine/lookup_hash.cpp | 9 |
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 6a0d42dee..f59d4c7e1 100644 --- a/src/engine/def_engine/lookup_hash.cpp +++ b/src/engine/def_engine/lookup_hash.cpp @@ -26,6 +26,10 @@ #include <botan/fork256.h> #endif +#if defined(BOTAN_HAS_GOST_34_11) + #include <botan/gost_3411.h> +#endif + #if defined(BOTAN_HAS_HAS_160) #include <botan/has160.h> #endif @@ -100,6 +104,11 @@ Default_Engine::find_hash(const SCAN_Name& request, return new FORK_256; #endif +#if defined(BOTAN_HAS_GOST_34_11) + if(request.algo_name() == "GOST-34.11") + return new GOST_34_11; +#endif + #if defined(BOTAN_HAS_HAS_160) if(request.algo_name() == "HAS-160") return new HAS_160; |