aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2018-08-23 12:24:31 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2018-08-23 12:24:31 -0400
commitd225c857d0f445a9842a197d9796925555e0ece5 (patch)
tree5aa0abdd13c5659b6fe2c05e8b22d50c7335ecb7 /tests
parent9bbbf151b5bdde3f0bead1886996f17764e85521 (diff)
Codec.Crypto.HKDF: Implement `hkdf` convenience function
Diffstat (limited to 'tests')
-rw-r--r--tests/Codec/Crypto/HKDFTests.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Codec/Crypto/HKDFTests.hs b/tests/Codec/Crypto/HKDFTests.hs
index b3b2a28..44a41cd 100644
--- a/tests/Codec/Crypto/HKDFTests.hs
+++ b/tests/Codec/Crypto/HKDFTests.hs
@@ -91,7 +91,8 @@ testRFC5869 = testGroup "RFC 5869 examples"
]
where
t name hash ikm salt info len prk okm =
- testGroup name [ testCase "extract" $ HKDF.extract hash salt ikm @?= prk
+ testGroup name [ testCase "hkdf" $ HKDF.hkdf hash salt info len ikm @?= okm
+ , testCase "extract" $ HKDF.extract hash salt ikm @?= prk
, testCase "expand" $ HKDF.expand hash info len prk @?= okm
]