aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_kdf.cpp
diff options
context:
space:
mode:
authorKai Michaelis <[email protected]>2016-04-28 15:52:41 +0200
committerKai Michaelis <[email protected]>2016-05-19 15:48:09 +0200
commit55cd86e31f94ed330c0c7a53a577750a92a2b533 (patch)
treec761b939e585471ca7d340271697edafa0fc1a11 /src/tests/test_kdf.cpp
parent8578e0fc758b81d176d0c5092417f4cc77676895 (diff)
add label parameter to KDF::derive_key
Diffstat (limited to 'src/tests/test_kdf.cpp')
-rw-r--r--src/tests/test_kdf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/test_kdf.cpp b/src/tests/test_kdf.cpp
index c11edd817..a03befb0d 100644
--- a/src/tests/test_kdf.cpp
+++ b/src/tests/test_kdf.cpp
@@ -39,8 +39,9 @@ class KDF_KAT_Tests : public Text_Based_Test
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");
- result.test_eq("derived key", kdf->derive_key(outlen, secret, salt), expected);
+ result.test_eq("derived key", kdf->derive_key(outlen, secret, salt, label), expected);
return result;
}