diff options
Diffstat (limited to 'src/lib/mac/hmac')
-rw-r--r-- | src/lib/mac/hmac/hmac.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/mac/hmac/hmac.cpp b/src/lib/mac/hmac/hmac.cpp index 40da31887..f445ab0cf 100644 --- a/src/lib/mac/hmac/hmac.cpp +++ b/src/lib/mac/hmac/hmac.cpp @@ -7,7 +7,6 @@ */ #include <botan/hmac.h> -#include <botan/lookup.h> namespace Botan { @@ -15,8 +14,8 @@ HMAC* HMAC::make(const Spec& spec) { if(spec.arg_count() == 1) { - if(HashFunction* h = get_hash_function(spec.arg(0))) - return new HMAC(h); + if(auto h = HashFunction::create(spec.arg(0))) + return new HMAC(h.release()); } return nullptr; } |