aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/mac/hmac.vec
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-01 16:24:43 -0400
committerJack Lloyd <[email protected]>2018-08-01 16:24:43 -0400
commit2504351f6df8ff07df131dcee3248f4b9595e2d7 (patch)
treeb2e827c39cddf792028f4a5dd6722a518952e7c3 /src/tests/data/mac/hmac.vec
parent347ec79d2488e15b7fe5f5fba3d7038a034338d2 (diff)
Add a couple HMAC(SHA-512-256) test vectors
Diffstat (limited to 'src/tests/data/mac/hmac.vec')
-rw-r--r--src/tests/data/mac/hmac.vec11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/data/mac/hmac.vec b/src/tests/data/mac/hmac.vec
index b0242001c..d55802118 100644
--- a/src/tests/data/mac/hmac.vec
+++ b/src/tests/data/mac/hmac.vec
@@ -159,3 +159,14 @@ Out = 80B24263C7C1A3EBB71493C1DD7BE8B49B46D1F41B4AEEC1121B013783F8F3526B56D037E0
Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
In = 5468697320697320612074657374207573696E672061206C6172676572207468616E20626C6F636B2D73697A65206B657920616E642061206C6172676572207468616E20626C6F636B2D73697A6520646174612E20546865206B6579206E6565647320746F20626520686173686564206265666F7265206265696E6720757365642062792074686520484D414320616C676F726974686D2E
Out = E37B6A775DC87DBAA4DFA9F96E5E3FFDDEBD71F8867289865DF5A32D20CDC944B6022CAC3C4982B10D5EEB55C3E4DE15134676FB6DE0446065C97440FA8C6A58
+
+[HMAC(SHA-512-256)]
+# From a post on sci.crypt, confirmed by OpenSSL
+
+Key = 0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B0B
+In = 4869205468657265
+Out = 9F9126C3D9C3C330D760425CA8A217E31FEAE31BFE70196FF81642B868402EAB
+
+Key = 4A656665
+In = 7768617420646F2079612077616E7420666F72206E6F7468696E673F
+Out = 6DF7B24630D5CCB2EE335407081A87188C221489768FA2020513B2D593359456