From cb14e9ce95bcaae2ada7ffe96ef0cce6a2b38593 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 26 Jul 2018 15:39:17 -0400 Subject: Support calling Whirlpool in OpenSSL Available since 1.0.0, not sure how this was missed. --- src/lib/prov/openssl/openssl_hash.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/prov/openssl') 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; } -- cgit v1.2.3