aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-15 13:15:20 -0400
committerJack Lloyd <[email protected]>2017-09-15 13:15:20 -0400
commitc9a5744dabf5efff45bb1cdfc89199ddac14499b (patch)
tree132a2ffe15912f3ab192811545f1bf959db93263 /src/tests
parentd111b15cc718eb7af24f928c0449f0c847953f14 (diff)
Update Wycheproof GCM tests
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/data/aead/gcm.vec44
1 files changed, 38 insertions, 6 deletions
diff --git a/src/tests/data/aead/gcm.vec b/src/tests/data/aead/gcm.vec
index 6cb0b4506..4a3c955b5 100644
--- a/src/tests/data/aead/gcm.vec
+++ b/src/tests/data/aead/gcm.vec
@@ -241,35 +241,67 @@ AD = feedfacedeadbeeffeedfacedeadbeefabaddad2
Out = c3762df1ca787d32ae47c13bf19844cbaf1ae14d0b976afac52ff7d79bba9de0feb582d33934a4f0954cc2363bc73f7862ac430e64abe499f47c9b1f3a337dbf46a792c45e454913fe2ea8
+# Wycheproof GCM tests
+
[AES-128/GCM(8)]
Key = 5b9604fe14eadba931b0ccf34843dab9
Nonce = 921d2507fa8007b7bd067d34
AD = 00112233445566778899aabbccddeeff
-In = 001d0c231287c1182784554ca3a21908
+In = 001d0c231287c1182784554ca3a21908
Out = 49d8b9783e911913d87094d1f63cc7651e348ba07cca2cf0
+[AES-128/GCM(12)]
+Key = 5b9604fe14eadba931b0ccf34843dab9
+Nonce = 921d2507fa8007b7bd067d34
+AD = 00112233445566778899aabbccddeeff
+In = 001d0c231287c1182784554ca3a21908
+Out = 49d8b9783e911913d87094d1f63cc7651e348ba07cca2cf04c618cb4
-# Wycheproof GCM tests
[AES-128/GCM]
-In = 001d0c231287c1182784554ca3a21908
Key = 5b9604fe14eadba931b0ccf34843dab9
Nonce = 028318abc1824029138141a2
+AD =
+In = 001d0c231287c1182784554ca3a21908
Out = 26073cc1d851beff176384dc9896d5ff0a3ea7a5487cb5f7d70fb6c58d038554
-In = 2035af313d1346ab00154fea78322105
Key = aa023d0478dcb2b2312498293d9a9129
Nonce = 0432bc49ac34412081288127
AD = aac39231129872a2
+In = 2035af313d1346ab00154fea78322105
Out = eea945f3d0f98cc0fbab472a0cf24e874bb9b4812519dadf9e1232016d068133
-In = 2035af313d1346ab00154fea78322105
Key = aa023d0478dcb2b2312498293d9a9129
Nonce = 0432bc49ac344120
AD = aac39231129872a2
+In = 2035af313d1346ab00154fea78322105
Out = 64c36bb3b732034e3a7d04efc5197785b7d0dd70b00d65b97cfd080ff4b819d1
-In = 02efd2e5782312827ed5d230189a2a342b277ce048462193
Key = 2034a82547276c83dd3212a813572bce
Nonce = 3254202d854734812398127a3d134421
AD = 1a0293d8f90219058902139013908190bc490890d3ff12a3
+In = 02efd2e5782312827ed5d230189a2a342b277ce048462193
Out = 64069c2d58690561f27ee199e6b479b6369eec688672bde99b7abadd6e69c1d9ec925786534f5075
+
+Key = 00112233445566778899aabbccddeeff
+Nonce = 7b95b8c356810a84711d68150a1b7750
+AD =
+In = 00000000000000000000000000000000000000000000000000000000000000000000000000000000
+Out = 84d4c9c08b4f482861e3a9c6c35bc4d91df927374513bfd49f436bd73f325285daef4ff7e13d46a6213a3cb93855d18e69337eee66aeec07
+
+Key = 00112233445566778899aabbccddeeff
+Nonce = 1a552e67cdc4dc1a33b824874ebf0bed
+AD =
+In = 00000000000000000000000000000000000000000000000000000000000000000000000000000000
+Out = 948ca37a8e6649e88aeffb1c598f3607007702417ea0e0bc3c60ad5a949886de968cf53ea6462aed99b381bfa2af9751c39d1b6e86d1be6a
+
+Key = 00112233445566778899aabbccddeeff
+Nonce = 99821c2dd5daecded07300f577f7aff1
+AD =
+In = 00000000000000000000000000000000000000000000000000000000000000000000000000000000
+Out = 127af9b39ecdfc57bb11a2847c7c2d3d8f938f40f877e0c4af37d0fe9af033052bd537c4ae978f6007eb2fe4a958f8434d40684899507c7c
+
+Key = 00112233445566778899aabbccddeeff
+Nonce = 5e4a3900142358d1c774d8d124d8d27d
+AD =
+In = 00000000000000000000000000000000000000000000000000000000000000000000000000000000
+Out = 0cf6ae47156b14dce03c8a07a2e172b1127af9b39ecdfc57bb11a2847c7c2d3d8f938f40f877e0c4f145c2dcaf339eede427be934357eac0