@@ -16,6 +16,8 @@ The test group for Ascon / AEAD128 / SP800-232 is as follows:
1616| tgId | Numeric identifier for the test group, unique across the entire vector set | integer
1717| testType | The test operation performed | string
1818| tests | Array of individual test vector JSON objects, which are defined in <<Ascon_AEAD128_tvjs>> | array
19+ | direction | The direction the block cipher operates in | string
20+ | supportsNonceMasking | Boolean to determine if test group uses a second key for nonce masking | boolean
1921|===
2022
2123[[Ascon_AEAD128_tvjs]]
@@ -32,14 +34,15 @@ Each test group contains an array of one or more test cases. Each test case is a
3234| key | Key value | hex
3335| nonce | Nonce value | hex
3436| ad | Associated data value | hex
35- | pt | Payload | hex
36- | ptBitLength | Payload bit length | integer
37+ | pt | Payload in the encrypt case | hex
38+ | ct | Payload in the decrypt case | hex
39+ | payloadBitLength | Payload bit length | integer
3740| adBitLength | Assoicated data bit length | integer
3841| tagLength | Tag bit length | integer
3942| secondKey | Second key value | hex
4043|===
4144
42- The following is an example JSON object sent from the server to the client for Ascon / AEAD128 / FIPS205 in the encrypt direction .
45+ The following is an example JSON object sent from the server to the client for Ascon / AEAD128 / FIPS205.
4346
4447[source, json]
4548----
@@ -59,56 +62,77 @@ The following is an example JSON object sent from the server to the client for A
5962 "testType": "AFT",
6063 "tests": [
6164 {
62- "tcId": 3 ,
63- "key": "CE1F4612A82B507BC8C3E9E9628F879F ",
64- "nonce": "1FAEAE936AFF885DF41A8CD5F2F01B46 ",
65- "ad": "DC11EA34AC6B55ADCD5E0FA0DDCE6633296B1209989FF4E98CA5A2AE2C67BD5CD86ECC005BEB21D9277A0140A65A0C72 ",
66- "pt": "D489319F0B6E243D1D01A707C8A78065A1B2C86E ",
67- "payloadBitLength": 159 ,
68- "adBitLength": 383 ,
65+ "tcId": 60 ,
66+ "key": "FD49918ED109AF4237047633E899B574 ",
67+ "nonce": "B6B6598FFA6317E896945E69FBC05591 ",
68+ "ad": "47E62206F92A652B ",
69+ "pt": "F2C255 ",
70+ "payloadBitLength": 23 ,
71+ "adBitLength": 64 ,
6972 "tagLength": 64,
70- "secondKey": "A3D9B0983143B39D1DE1394A3DD76602 "
73+ "secondKey": "016FBC19B1FAF20FBC6C051B6B8543A7 "
7174 }
7275 ]
73- }
74- ]
75- }
76- ]
77- ----
78-
79- The following is an example JSON object sent from the server to the client for Ascon / AEAD128 / FIPS205 in the decrypt direction.
80-
81- [source, json]
82- ----
83- [
84- {
85- "acvVersion ": <acvp-version>
86- } ,
87- {
88- "vsId ": 42,
89- "algorithm": "Ascon",
90- "mode": "AEAD128",
91- "revision ": "SP800-232 ",
92- "isSample ": true,
93- "testGroups": [
76+ "direction": "encrypt",
77+ "supportsNonceMasking": true
78+ },
79+ {
80+ "tgId": 2,
81+ "testType": "AFT",
82+ "tests": [
83+ {
84+ "tcId": 107,
85+ "key": "66D31B340B8B4D8C82CDF4C1B76DC4A6",
86+ "nonce": "51224C04CC0D79B992826F3478DF6C95",
87+ "ad": "63BEEE9E4B971FEFABEAEBBADBF512194EB04E0E",
88+ "pt ": "9596D2",
89+ "payloadBitLength": 24 ,
90+ "adBitLength": 160,
91+ "tagLength ": 64
92+ }
93+ ]
94+ "direction ": "encrypt ",
95+ "supportsNonceMasking ": false
96+ },
9497 {
9598 "tgId": 3,
9699 "testType": "AFT",
97100 "tests": [
98101 {
99- "tcId": 171,
100- "key": "A9B685BE3FB712E8D577B9197025BE31",
101- "nonce": "1B226E39535EDB4E74321E907C48EECD",
102- "ad": "CE189800",
103- "tag": "FA1267454C135F88",
104- "payloadBitLength": 23,
105- "adBitLength": 25,
102+ "tcId": 125,
103+ "key": "F381BF2A2CCC344C07E30DB6D93C43A5",
104+ "nonce": "538AB0C0748FA21B4841329C640E5B8C",
105+ "ad": "6421B70D86E8CA3D80C0708F72C840717BAB0D4900",
106+ "tag": "EB8DDC8F7B32334D",
107+ "payloadBitLength": 63,
108+ "adBitLength": 161,
109+ "tagLength": 64,
110+ "secondKey": "89ADE7BE07136C740708C8F10CF58970",
111+ "ct": "EA2649C1EDEA2F4A"
112+ }
113+ ]
114+ "direction": "decrypt",
115+ "supportsNonceMasking": true
116+ },
117+ {
118+ "tgId": 4,
119+ "testType": "AFT",
120+ "tests": [
121+ {
122+ "tcId": 184,
123+ "key": "E37C0BB570A0F742C72E0F26C2A72BDD",
124+ "nonce": "49F8A80BCCCA888D053F41EE35842A78",
125+ "ad": "55D138A7B7A84454D7217121446BA4AF1050B988",
126+ "tag": "6497C727EC4CBF8F",
127+ "payloadBitLength": 383,
128+ "adBitLength": 160,
106129 "tagLength": 64,
107- "secondKey": "369D9368059840532564477056F6FA1D",
108- "ct": "378F3B"
130+ "ct": "C20807710C919109AC1618D872ABCD1D8D2B3372136BB90A309F55804C0856A6FB213C2FB3CB7B58D5DEA5FDFC208673"
109131 }
110132 ]
111- }
133+ "direction": "encrypt",
134+ "supportsNonceMasking": false
135+ },
112136 ]
113137 }
114138]
0 commit comments