aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-07-26 15:39:17 -0400
committerJack Lloyd <[email protected]>2018-07-26 15:39:17 -0400
commitcb14e9ce95bcaae2ada7ffe96ef0cce6a2b38593 (patch)
tree8a613b5d1382b3cecdd736a4a65327ec81c49ca1 /src/lib/prov
parent47f5cd1aa0f1831b3cc307951a7df8d27d4fb58f (diff)
Support calling Whirlpool in OpenSSL
Available since 1.0.0, not sure how this was missed.
Diffstat (limited to 'src/lib/prov')
-rw-r--r--src/lib/prov/openssl/openssl_hash.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/prov/openssl/openssl_hash.cpp b/src/lib/prov/openssl/openssl_hash.cpp
index 08352b1ac..b0af07e24 100644
--- a/src/lib/prov/openssl/openssl_hash.cpp
+++ b/src/lib/prov/openssl/openssl_hash.cpp
@@ -140,6 +140,11 @@ make_openssl_hash(const std::string& name)
return MAKE_OPENSSL_HASH(EVP_md4);
#endif
+#if defined(BOTAN_HAS_WHIRLPOOL) && !defined(OPENSSL_NO_WHIRLPOOL)
+ if(name == "Whirlpool")
+ return MAKE_OPENSSL_HASH(EVP_whirlpool);
+#endif
+
return nullptr;
}