aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-01-04 17:36:53 -0500
committerJack Lloyd <[email protected]>2021-01-04 17:36:53 -0500
commit7e3a3b05c4fe33580a1c9b828a5b9b8aa7b4fef3 (patch)
tree27a2f37c7c34b82e8c020b5ec21b1f77bb17c227 /src/tests/data
parentafcdecd410e3707061eb392d922be950203481bd (diff)
Add some more CCM tests taken from NIST
Specifically ones using empty or small ADs, which were untested. GH #2574
Diffstat (limited to 'src/tests/data')
-rw-r--r--src/tests/data/aead/ccm.vec68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/tests/data/aead/ccm.vec b/src/tests/data/aead/ccm.vec
index 83aca12a2..d73bec88c 100644
--- a/src/tests/data/aead/ccm.vec
+++ b/src/tests/data/aead/ccm.vec
@@ -41,6 +41,74 @@ In = B506A6BA900C1147C806775324B36EB376AA01D4C3EEF6F5
AD = 6A59AACADD416E465264C15E1A1E9BFA084687492710F9BDA832E2571E468224
Out = 14B14FE5B317411392861638EC383AE40BA95FEFE34255DC2EC067887114BC370281DE6F00836CE4
+# NIST CCM-VADT
+
+Key = d24a3d3dde8c84830280cb87abad0bb3
+Nonce = f1100035bb24a8d26004e0e24b
+AD =
+In = 7c86135ed9c2a515aaae0e9a208133897269220f30870006
+Out = 1faeb0ee2ca2cd52f0aa3966578344f24e69b742c4ab37ab1123301219c70599b7c373ad4b3ad67b
+
+Key = d24a3d3dde8c84830280cb87abad0bb3
+Nonce = f1100035bb24a8d26004e0e24b
+AD =
+In = 48df73208cdc63d716752df7794807b1b2a80794a2433455
+Out = 2bf7d09079bc0b904c711a0b0e4a70ca8ea892d9566f03f8b77a140819f39ef045103e785e1df8c2
+
+Key = 08b0da255d2083808a1b4d367090bacc
+Nonce = 777828b13679a9e2ca89568233
+AD = dd
+In = 1b156d7e2bf7c9a25ad91cff7b0b02161cb78ff9162286b0
+Out = e8b80af4960d5417c15726406e345c5c46831192b03432eed16b6282283e16602331bcca9d51ce76
+
+Key = f149e41d848f59276cfddd743bafa9a9
+Nonce = 14b756d66fc51134e203d1c6f9
+AD = f5827e
+In = 9759e6f21f5a588010f57e6d6eae178d8b20ab59cda66f42
+Out = f634bf00f1f9f1f93f41049d7f3797b05e805f0b14850f4e78e2a23411147a6187da6818506232ee
+
+Key = 9a57a22c7f26feff8ca6cceff214e4c2
+Nonce = 88f30fd2b04fb8ddbce8fc26e6
+AD = a95bdff6
+In = 035c516776c706a7dd5f181fa6aa891b04dd423042ea0667
+Out = b92f7ec2ebecebdbd2977b3874e61bf496a382153b2529fc9b6443a35f329b2068916fb6ab8227eb
+
+Key = 54caf96ef6d448734700aadab50faf7a
+Nonce = a3803e752ae849c910d8da36af
+AD = 5f476348dd
+In = c69f7c5a50f3e72123371bbfd6bdf532b99ef78500508dfe
+Out = 20c43ad83610880249f1632dd418ec9a5ed333b50e996d1a4e5a32fbe7961b832b722bc07a18595b
+
+Key = cc0c084d7de011e2f031616a302e7a31
+Nonce = f0b4522847f6f8336fe534a4e7
+AD = da853a27aee2
+In = 15b369889699b6de1fa3ee73e5fe19814e46f129074c965b
+Out = f39755d160a64611368a8eccf6fcbc45ef7f1f56240eb19a2e3ca4ec3c776ab58843f617d605fd72
+
+Key = d7572ed0e37261efa02f8c83e695efdc
+Nonce = f4f96d7b4384a3930b3d830f82
+AD = 922340ec94861f
+In = 1edef80c57d17f969f8bde10ab38a1a8811a124de72c526e
+Out = de14558cc686e1836f1f121ea1b941a9ebd4f0fb916dc870fd541b988a801cb5751c7faaf5b0c164
+
+Key = 98a42d7a0c5917deaf3b4de3f0cbe0a1
+Nonce = 03d33ab0c2df7bfce88b5ee4c4
+AD = 2d5438b728b950d9
+In = 9aa9c8358117564371366beeec923051ef433252197aaad5
+Out = 9ff942baa60f440c17a78e9581216b9a947a67f04d54911feecfff971fdfaa856310b014aa59c978
+
+Key = 2a68e3fe746f593c1b97cb637079c3e5
+Nonce = cd62d0f27b7f4864dc7c343acd
+AD = abe4f1d3812bfe3ccf
+In = 13b4a874888db0e5d8fd814b5e7e04f7fdfbc1601ccc02bc
+Out = 032835a3dbf688d09cf2a32a92b101959d33ff47500f92f4fd49840440f866d1a22b0854996111d8
+
+Key = 46b067cf9b1a28cf187002e90b14e130
+Nonce = bad8c03292bf01cfd8d34f860c
+AD = 8d65880eddb9fd96d276
+In = cc0915194218d4536e467433cd6d79ff1d9eb9ff160ab684
+Out = bd56edc015692c6ab9bec493a9893863598414a3d11a6a0f27ecdcb257d0d30491e5bf1aa8f90958
+
[AES-128/CCM(16,3)]
# NIST CAVS 11.0, "CCM-VNT" information, AES Keylen: 128, Count = 50
Key = 005E8F4D8E0CBF4E1CEEB5D87A275848