diff options
Diffstat (limited to 'src/lib/kdf/kdf.cpp')
-rw-r--r-- | src/lib/kdf/kdf.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/kdf/kdf.cpp b/src/lib/kdf/kdf.cpp index 94694c70c..501f81717 100644 --- a/src/lib/kdf/kdf.cpp +++ b/src/lib/kdf/kdf.cpp @@ -77,6 +77,22 @@ std::unique_ptr<KDF> KDF::create(const std::string& algo_spec, return kdf_create_mac_or_hash<HKDF>(req.arg(0)); } } + + if(req.algo_name() == "HKDF_Extract" && req.arg_count() == 1) + { + if(provider.empty() || provider == "base") + { + return kdf_create_mac_or_hash<HKDF_Extract>(req.arg(0)); + } + } + + if(req.algo_name() == "HKDF_Expand" && req.arg_count() == 1) + { + if(provider.empty() || provider == "base") + { + return kdf_create_mac_or_hash<HKDF_Expand>(req.arg(0)); + } + } #endif #if defined(BOTAN_HAS_KDF2) |