aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/hash.cpp
diff options
context:
space:
mode:
authorcynecx <[email protected]>2016-01-26 23:21:47 +0100
committercynecx <[email protected]>2016-01-26 23:21:47 +0100
commita67f99fb8f556e89f16267e4ea97d347fe04fa51 (patch)
tree285300d7aafd969f8c79a79f81979c2d3950e2b8 /src/lib/hash/hash.cpp
parent6adce3dcdd8572b4e7091feedcfcf435ca553ad3 (diff)
Add Blake2b hash function
Diffstat (limited to 'src/lib/hash/hash.cpp')
-rw-r--r--src/lib/hash/hash.cpp8
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
+
}