aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_kdf.cpp
diff options
context:
space:
mode:
authorKai Michaelis <[email protected]>2016-05-18 15:50:58 +0200
committerKai Michaelis <[email protected]>2016-05-19 15:49:12 +0200
commite5f2a2b07b4a658d9e40459a75e1587c2f4b5ffb (patch)
treeca929bf9638176326b224a9fb96304da02bf1fbf /src/tests/test_kdf.cpp
parent55cd86e31f94ed330c0c7a53a577750a92a2b533 (diff)
BouncyCastle generated test vectors for SP800-108
Diffstat (limited to 'src/tests/test_kdf.cpp')
-rw-r--r--src/tests/test_kdf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_kdf.cpp b/src/tests/test_kdf.cpp
index a03befb0d..2dbb7e677 100644
--- a/src/tests/test_kdf.cpp
+++ b/src/tests/test_kdf.cpp
@@ -19,7 +19,7 @@ class KDF_KAT_Tests : public Text_Based_Test
{
public:
KDF_KAT_Tests() : Text_Based_Test("kdf",
- {"OutputLen", "Salt", "Secret", "Output"},
+ {"OutputLen", "Salt", "Secret", "Label", "Output"},
{"IKM","XTS"})
{}
@@ -38,8 +38,8 @@ class KDF_KAT_Tests : public Text_Based_Test
const size_t outlen = get_req_sz(vars, "OutputLen");
const std::vector<uint8_t> salt = get_opt_bin(vars, "Salt");
const std::vector<uint8_t> secret = get_req_bin(vars, "Secret");
- const std::vector<uint8_t> expected = get_req_bin(vars, "Output");
const std::vector<uint8_t> label = get_opt_bin(vars, "Label");
+ const std::vector<uint8_t> expected = get_req_bin(vars, "Output");
result.test_eq("derived key", kdf->derive_key(outlen, secret, salt, label), expected);