From b3ee964237bccf71bf0e75d725ae3118c8f91bf3 Mon Sep 17 00:00:00 2001 From: René Korthaus Date: Tue, 15 Nov 2016 09:33:26 +0100 Subject: Add test vectors for HKDF-Expand and HKDF-Extract --- src/lib/kdf/kdf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/kdf') diff --git a/src/lib/kdf/kdf.cpp b/src/lib/kdf/kdf.cpp index 501f81717..e48a3463c 100644 --- a/src/lib/kdf/kdf.cpp +++ b/src/lib/kdf/kdf.cpp @@ -78,7 +78,7 @@ std::unique_ptr KDF::create(const std::string& algo_spec, } } - if(req.algo_name() == "HKDF_Extract" && req.arg_count() == 1) + if(req.algo_name() == "HKDF-Extract" && req.arg_count() == 1) { if(provider.empty() || provider == "base") { @@ -86,7 +86,7 @@ std::unique_ptr KDF::create(const std::string& algo_spec, } } - if(req.algo_name() == "HKDF_Expand" && req.arg_count() == 1) + if(req.algo_name() == "HKDF-Expand" && req.arg_count() == 1) { if(provider.empty() || provider == "base") { -- cgit v1.2.3