diff options
Diffstat (limited to 'src/lib/hash/hash.cpp')
-rw-r--r-- | src/lib/hash/hash.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/hash/hash.cpp b/src/lib/hash/hash.cpp index fe210705e..b6a7ca50d 100644 --- a/src/lib/hash/hash.cpp +++ b/src/lib/hash/hash.cpp @@ -89,6 +89,10 @@ #include <botan/comb4p.h> #endif +#if defined(BOTAN_HAS_BLAKE2B) + #include <botan/blake2b.h> +#endif + namespace Botan { std::unique_ptr<HashFunction> HashFunction::create(const std::string& algo_spec, @@ -203,4 +207,8 @@ BOTAN_REGISTER_NAMED_T(HashFunction, "Skein-512", Skein_512, Skein_512::make); BOTAN_REGISTER_HASH_NOARGS(Whirlpool); #endif +#if defined(BOTAN_HAS_BLAKE2B) +BOTAN_REGISTER_NAMED_T(HashFunction, "Blake2b", Blake2b, Blake2b::make); +#endif + } |