1 /* Copyright (c) 2023 Cisco and/or its affiliates.
2 * Licensed under the Apache License, Version 2.0 (the "License");
3 * you may not use this file except in compliance with the License.
4 * You may obtain a copy of the License at:
6 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License. */
14 /* Test vectors published in NIST Cryptographic Algorithm Validation Program
16 * https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/CAVP-TESTING-BLOCK-CIPHER-MODES#GCMVS
19 #include <vppinfra/clib.h>
20 #include <vnet/crypto/crypto.h>
21 #include <unittest/crypto/crypto.h>
23 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc0) = {
24 .name = "128-GMAC 0-aad NIST CAVS TC0",
25 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
26 .key = TEST_DATA_STR (
27 "\x11\x75\x4c\xd7\x2a\xec\x30\x9b\xf5\x2f\x76\x87\x21\x2e\x89\x57"),
28 .iv = TEST_DATA_STR ("\x3c\x81\x9d\x9a\x9b\xed\x08\x76\x15\x03\x0b\x65"),
29 .tag = TEST_DATA_STR (
30 "\x25\x03\x27\xc6\x74\xaa\xf4\x77\xae\xf2\x67\x57\x48\xcf\x69\x71"),
33 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc1) = {
34 .name = "128-GMAC 0-aad NIST CAVS TC1",
35 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
36 .key = TEST_DATA_STR (
37 "\xca\x47\x24\x8a\xc0\xb6\xf8\x37\x2a\x97\xac\x43\x50\x83\x08\xed"),
38 .iv = TEST_DATA_STR ("\xff\xd2\xb5\x98\xfe\xab\xc9\x01\x92\x62\xd2\xbe"),
39 .tag = TEST_DATA_STR (
40 "\x60\xd2\x04\x04\xaf\x52\x7d\x24\x8d\x89\x3a\xe4\x95\x70\x7d\x1a"),
43 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc2) = {
44 .name = "128-GMAC 0-aad NIST CAVS TC2",
45 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
46 .key = TEST_DATA_STR (
47 "\xdb\x1a\xd0\xbd\x1c\xf6\xdb\x0b\x5d\x86\xef\xdd\x89\x14\xb2\x18"),
48 .iv = TEST_DATA_STR ("\x36\xfa\xd6\xac\xb3\xc9\x8e\x01\x38\xae\xb9\xb1"),
49 .tag = TEST_DATA_STR (
50 "\x5e\xe2\xba\x73\x7d\x3f\x2a\x94\x4b\x33\x5a\x81\xf6\x65\x3c\xce"),
53 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc3) = {
54 .name = "128-GMAC 0-aad NIST CAVS TC3",
55 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
56 .key = TEST_DATA_STR (
57 "\x1c\x71\x35\xaf\x62\x7c\x04\xc3\x29\x57\xf3\x3f\x9a\xc0\x85\x90"),
58 .iv = TEST_DATA_STR ("\x35\x5c\x09\x4f\xa0\x9c\x8e\x92\x81\x17\x8d\x34"),
59 .tag = TEST_DATA_STR (
60 "\xb6\xab\x2c\x7d\x90\x6c\x9d\x9e\xc4\xc1\x49\x8d\x2c\xbb\x50\x29"),
63 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc4) = {
64 .name = "128-GMAC 0-aad NIST CAVS TC4",
65 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
66 .key = TEST_DATA_STR (
67 "\x6c\xa2\xc1\x12\x05\xa6\xe5\x5a\xb5\x04\xdb\xf3\x49\x1f\x8b\xdc"),
68 .iv = TEST_DATA_STR ("\xb1\x00\x8b\x65\x0a\x2f\xee\x64\x21\x75\xc6\x0d"),
69 .tag = TEST_DATA_STR (
70 "\x7a\x9a\x22\x5d\x5f\x9a\x0e\xbf\xe0\xe6\x9f\x37\x18\x71\xa6\x72"),
73 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc5) = {
74 .name = "128-GMAC 0-aad NIST CAVS TC5",
75 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
76 .key = TEST_DATA_STR (
77 "\x69\xf2\xca\x78\xbb\x56\x90\xac\xc6\x58\x73\x02\x62\x88\x28\xd5"),
78 .iv = TEST_DATA_STR ("\x70\x1d\xa2\x82\xcb\x6b\x60\x18\xda\xbd\x00\xd3"),
79 .tag = TEST_DATA_STR (
80 "\xab\x1d\x40\xdd\xa1\x79\x8d\x56\x68\x78\x92\xe2\x15\x9d\xec\xfd"),
83 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc6) = {
84 .name = "128-GMAC 0-aad NIST CAVS TC6",
85 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
86 .key = TEST_DATA_STR (
87 "\xdc\xf4\xe3\x39\xc4\x87\xb6\x79\x7a\xac\xa9\x31\x72\x5f\x7b\xbd"),
88 .iv = TEST_DATA_STR ("\x2c\x1d\x95\x5e\x35\x36\x67\x60\xea\xd8\x81\x7c"),
89 .tag = TEST_DATA_STR (
90 "\x32\xb5\x42\xc5\xf3\x44\xcc\xec\xeb\x46\x0a\x02\x93\x8d\x6b\x0c"),
93 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc7) = {
94 .name = "128-GMAC 0-aad NIST CAVS TC7",
95 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
96 .key = TEST_DATA_STR (
97 "\x76\x58\xcd\xbb\x81\x57\x2a\x23\xa7\x8e\xe4\x59\x6f\x84\x4e\xe9"),
98 .iv = TEST_DATA_STR ("\x1c\x3b\xaa\xe9\xb9\x06\x59\x61\x84\x2c\xbe\x52"),
99 .tag = TEST_DATA_STR (
100 "\x70\xc7\x12\x3f\xc8\x19\xaa\x06\x0e\xd2\xd3\xc1\x59\xb6\xea\x41"),
103 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc8) = {
104 .name = "128-GMAC 0-aad NIST CAVS TC8",
105 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
106 .key = TEST_DATA_STR (
107 "\x28\x1a\x57\x0b\x1e\x8f\x26\x5e\xe0\x93\x03\xec\xae\x0c\xc4\x6d"),
108 .iv = TEST_DATA_STR ("\x8c\x29\x41\xf7\x3c\xf8\x71\x3a\xd5\xbc\x13\xdf"),
109 .tag = TEST_DATA_STR (
110 "\xa4\x2e\x5e\x5f\x6f\xb0\x0a\x9f\x12\x06\xb3\x02\xed\xbf\xd8\x7c"),
113 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc9) = {
114 .name = "128-GMAC 0-aad NIST CAVS TC9",
115 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
116 .key = TEST_DATA_STR (
117 "\xcd\x33\x2a\x98\x6f\x82\xd9\x8c\x21\x52\x78\x13\x1a\xd3\x87\xb7"),
118 .iv = TEST_DATA_STR ("\x1d\x12\xb2\x59\xf4\x4b\x87\x3d\x39\x42\xbc\x11"),
119 .tag = TEST_DATA_STR (
120 "\x34\x23\x80\x23\x64\x81\x85\xd7\xef\x0c\xfc\xf5\x83\x6e\x93\xcc"),
123 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc10) = {
124 .name = "128-GMAC 0-aad NIST CAVS TC10",
125 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
126 .key = TEST_DATA_STR (
127 "\x80\xe1\xd9\x8d\x10\xb2\x72\x37\x38\x6f\x02\x91\x89\xec\x04\x48"),
128 .iv = TEST_DATA_STR ("\x23\x9e\xba\xb2\xf5\x24\xfd\x62\xc5\x54\xa1\x90"),
129 .tag = TEST_DATA_STR (
130 "\x4c\x0f\x29\xd9\x63\xf0\xed\x68\xdc\xcf\x34\x49\x6c\xf4\x3d\x00"),
133 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc11) = {
134 .name = "128-GMAC 0-aad NIST CAVS TC11",
135 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
136 .key = TEST_DATA_STR (
137 "\x40\x65\x0c\xdb\x61\xe3\xe1\x9a\x1a\x98\xfb\x4e\x05\x37\x7d\x35"),
138 .iv = TEST_DATA_STR ("\x69\xf0\xa8\x1a\xaf\x6b\xb8\x48\x62\x82\xf1\xb9"),
139 .tag = TEST_DATA_STR (
140 "\x26\x57\xe1\x2d\xec\x21\xc3\xec\xf0\x71\xaf\x61\x79\x52\x9f\xb4"),
143 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc12) = {
144 .name = "128-GMAC 0-aad NIST CAVS TC12",
145 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
146 .key = TEST_DATA_STR (
147 "\x1e\x89\xa6\xcd\x75\x28\xcc\xe1\xe2\xb2\xb5\xf7\xfd\x2b\x6b\x52"),
148 .iv = TEST_DATA_STR ("\xe1\x1f\xd4\x27\xa7\x82\xd5\x43\xf7\x8e\xfc\x60"),
149 .tag = TEST_DATA_STR (
150 "\xee\xed\xff\x87\x4c\x8e\xde\xea\x53\xe8\xbe\x2a\x13\xaf\xd8\x1b"),
153 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc13) = {
154 .name = "128-GMAC 0-aad NIST CAVS TC13",
155 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
156 .key = TEST_DATA_STR (
157 "\x2a\x7a\xd6\x14\x66\x76\x05\x7d\xb7\x77\xde\xa4\x68\x3d\x0d\x45"),
158 .iv = TEST_DATA_STR ("\xed\x72\x1e\xa6\x74\x56\xd4\x59\x4a\xaf\xbd\x51"),
159 .tag = TEST_DATA_STR (
160 "\xee\x3c\xab\x57\x78\x88\x84\x39\xd9\x0f\xa7\x18\xb7\x57\x38\xad"),
163 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad0_tc14) = {
164 .name = "128-GMAC 0-aad NIST CAVS TC14",
165 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
166 .key = TEST_DATA_STR (
167 "\xa3\x64\xf4\x94\xa4\xcd\x01\x47\xc3\x47\x31\x07\x4d\xc1\xa8\x5b"),
168 .iv = TEST_DATA_STR ("\x4a\xa8\x47\x0d\xd4\x04\xe4\x05\x4b\x30\x09\x3a"),
169 .tag = TEST_DATA_STR (
170 "\xd8\xa7\xbb\xa3\xa4\x51\x90\x2e\x3a\xdc\x01\x06\x0c\x3c\x91\xa7"),
173 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc0) = {
174 .name = "128-GMAC 128-aad NIST CAVS TC0",
175 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
176 .key = TEST_DATA_STR (
177 "\x77\xbe\x63\x70\x89\x71\xc4\xe2\x40\xd1\xcb\x79\xe8\xd7\x7f\xeb"),
178 .iv = TEST_DATA_STR ("\xe0\xe0\x0f\x19\xfe\xd7\xba\x01\x36\xa7\x97\xf3"),
179 .aad = TEST_DATA_STR (
180 "\x7a\x43\xec\x1d\x9c\x0a\x5a\x78\xa0\xb1\x65\x33\xa6\x21\x3c\xab"),
181 .tag = TEST_DATA_STR (
182 "\x20\x9f\xcc\x8d\x36\x75\xed\x93\x8e\x9c\x71\x66\x70\x9d\xd9\x46"),
185 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc1) = {
186 .name = "128-GMAC 128-aad NIST CAVS TC1",
187 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
188 .key = TEST_DATA_STR (
189 "\x76\x80\xc5\xd3\xca\x61\x54\x75\x8e\x51\x0f\x4d\x25\xb9\x88\x20"),
190 .iv = TEST_DATA_STR ("\xf8\xf1\x05\xf9\xc3\xdf\x49\x65\x78\x03\x21\xf8"),
191 .aad = TEST_DATA_STR (
192 "\xc9\x4c\x41\x01\x94\xc7\x65\xe3\xdc\xc7\x96\x43\x79\x75\x8e\xd3"),
193 .tag = TEST_DATA_STR (
194 "\x94\xdc\xa8\xed\xfc\xf9\x0b\xb7\x4b\x15\x3c\x8d\x48\xa1\x79\x30"),
197 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc2) = {
198 .name = "128-GMAC 128-aad NIST CAVS TC2",
199 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
200 .key = TEST_DATA_STR (
201 "\xa8\x2b\xb1\xed\xc7\xc0\x1a\x36\x89\x00\x6f\x34\xbf\xed\x78\x3e"),
202 .iv = TEST_DATA_STR ("\x96\x38\x36\xb6\x7b\x18\x8b\xec\xf9\xba\x14\x11"),
203 .aad = TEST_DATA_STR (
204 "\x9d\x11\x5b\xb9\xbb\xd1\x19\xfb\x77\x7b\x63\x16\x06\x5a\x9a\xc8"),
205 .tag = TEST_DATA_STR (
206 "\xc4\x91\x88\x9f\xa3\xec\xa4\x54\x4b\xa0\xd5\x1b\x8e\x0f\x38\x37"),
209 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc3) = {
210 .name = "128-GMAC 128-aad NIST CAVS TC3",
211 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
212 .key = TEST_DATA_STR (
213 "\xb9\x78\x2d\x0a\x59\x86\xc6\x3f\x35\x2d\x3b\xc4\xc7\xec\xc9\x6d"),
214 .iv = TEST_DATA_STR ("\x45\x41\xe1\x5b\x92\xed\xea\x44\xec\xeb\x1f\x2a"),
215 .aad = TEST_DATA_STR (
216 "\xf1\xa9\xf0\x72\x34\x29\xc5\xb2\x61\x85\xac\x3e\xa7\xe1\x3d\x7a"),
217 .tag = TEST_DATA_STR (
218 "\x74\xd0\xd3\x69\x49\xf0\x27\x66\x70\xf9\xdd\xc5\x79\xe9\x4f\x3a"),
221 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc4) = {
222 .name = "128-GMAC 128-aad NIST CAVS TC4",
223 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
224 .key = TEST_DATA_STR (
225 "\x59\xb9\x57\x85\xb3\x0f\x20\x56\x79\xfc\x4f\x3f\x9a\x90\x10\x2f"),
226 .iv = TEST_DATA_STR ("\x19\x08\x78\x7c\xc1\xe1\x88\x0a\x6e\xf5\xdd\x17"),
227 .aad = TEST_DATA_STR (
228 "\x39\x85\x2d\x31\x82\x94\x4a\x51\x77\xdb\x27\x7b\x63\x91\x07\x02"),
229 .tag = TEST_DATA_STR (
230 "\x8f\x9a\x96\xc0\x13\x99\x24\x85\xb4\x3e\x2b\x62\x74\x5a\xd1\x73"),
233 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc5) = {
234 .name = "128-GMAC 128-aad NIST CAVS TC5",
235 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
236 .key = TEST_DATA_STR (
237 "\x34\xdd\x79\x26\xab\x13\xd4\x07\x81\x60\xd8\x7d\xe2\xe3\xc7\x24"),
238 .iv = TEST_DATA_STR ("\xc1\x1c\xcd\xaf\x79\x8a\xb0\x3a\xf2\xd9\x7e\xf9"),
239 .aad = TEST_DATA_STR (
240 "\xaf\x69\x87\x17\xa6\xd7\x90\xb3\xbf\xc3\x91\x95\x85\x7b\xb5\xff"),
241 .tag = TEST_DATA_STR (
242 "\x48\x11\x60\x50\xbb\xd9\x11\x82\x70\xd0\xbe\x25\x2d\x29\xd5\xd4"),
245 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc6) = {
246 .name = "128-GMAC 128-aad NIST CAVS TC6",
247 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
248 .key = TEST_DATA_STR (
249 "\x8e\xc8\x6f\xab\x55\xaa\xab\x0e\x77\x45\x5e\x9c\xd3\xdb\xc7\x8e"),
250 .iv = TEST_DATA_STR ("\x15\xfd\x90\xa9\x86\x7e\x14\xf0\xd6\x3b\x53\xb9"),
251 .aad = TEST_DATA_STR (
252 "\xe7\x50\x9e\x27\x62\x09\xa6\xd3\xec\xfa\xbb\x53\xcc\xdc\xd2\x36"),
253 .tag = TEST_DATA_STR (
254 "\xd9\x6d\x6a\xc0\xd3\x09\xce\xbe\xde\xba\x2a\xf9\xf2\x62\x13\x2f"),
257 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc7) = {
258 .name = "128-GMAC 128-aad NIST CAVS TC7",
259 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
260 .key = TEST_DATA_STR (
261 "\x66\xb2\x47\x3d\x9e\x01\x21\x66\x6d\x47\x63\x3f\x70\x08\xeb\x1c"),
262 .iv = TEST_DATA_STR ("\xc1\x71\x6c\x68\xa2\x4d\x57\x77\x0b\x86\x7e\x51"),
263 .aad = TEST_DATA_STR (
264 "\xc2\x0f\x68\x63\x17\xd6\x7e\x53\xdd\x79\xba\xe5\xc4\x6d\xc1\x11"),
265 .tag = TEST_DATA_STR (
266 "\x9a\x08\x61\x68\x09\xcf\x15\x24\x7d\xfe\xb9\x75\x6b\xa4\xf6\x09"),
269 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc8) = {
270 .name = "128-GMAC 128-aad NIST CAVS TC8",
271 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
272 .key = TEST_DATA_STR (
273 "\x5b\x26\x2a\x9d\x00\x90\x4d\x30\xa2\x58\x7c\xaa\xde\x09\x13\x81"),
274 .iv = TEST_DATA_STR ("\xf7\xbc\x15\x4c\xa5\x62\xe8\xf2\xc1\x84\x55\x98"),
275 .aad = TEST_DATA_STR (
276 "\x23\x11\x2d\x07\x8c\x99\x14\xfa\x3d\xfe\x52\x18\xcd\x19\x10\x16"),
277 .tag = TEST_DATA_STR (
278 "\x98\x85\x4d\x19\x3a\x06\xdb\xe3\x2c\xe4\x49\x7e\xec\x5c\x9a\x8b"),
281 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc9) = {
282 .name = "128-GMAC 128-aad NIST CAVS TC9",
283 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
284 .key = TEST_DATA_STR (
285 "\x2e\x4f\xb9\xcc\x32\x01\x88\xa6\xf1\xfa\x89\xa7\xa2\x52\x27\x3a"),
286 .iv = TEST_DATA_STR ("\x7a\x6d\x4e\xe6\x9c\x72\x56\xc1\x4f\xba\x8f\x5e"),
287 .aad = TEST_DATA_STR (
288 "\x80\xba\x4a\x20\x2a\x68\xc3\x59\x0d\x65\x57\x91\x2c\x6f\x87\x8e"),
289 .tag = TEST_DATA_STR (
290 "\x92\x80\x31\x32\x73\xbe\xfb\x8a\xfa\x0b\xce\xca\x5a\x96\x6d\x85"),
293 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc10) = {
294 .name = "128-GMAC 128-aad NIST CAVS TC10",
295 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
296 .key = TEST_DATA_STR (
297 "\x5e\xa9\x49\x73\xd8\x61\x6d\xaf\xa7\xf3\x1d\xb0\x71\x6d\x17\x29"),
298 .iv = TEST_DATA_STR ("\xa0\x5b\x62\x66\x9d\x25\x0e\x61\xb0\x77\xd2\x8a"),
299 .aad = TEST_DATA_STR (
300 "\x96\x20\xba\xf2\xf5\x8d\x01\x3f\x8a\x4c\x48\x71\x98\x9c\x1b\x17"),
301 .tag = TEST_DATA_STR (
302 "\x7e\x55\x03\x98\xde\xe7\x28\x25\x6d\x69\x28\xcd\xaa\xc4\x3b\x73"),
305 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc11) = {
306 .name = "128-GMAC 128-aad NIST CAVS TC11",
307 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
308 .key = TEST_DATA_STR (
309 "\x91\x03\x85\xf6\xf0\x7f\x9e\x57\xe4\x83\xc4\x7d\xd5\x20\x6b\xcc"),
310 .iv = TEST_DATA_STR ("\x51\x8f\x56\xe3\x36\x58\xdf\x31\x1d\x42\xd9\xfe"),
311 .aad = TEST_DATA_STR (
312 "\x5d\x15\x79\x09\xa2\xa4\x60\x71\x17\xe7\x7d\xa0\xe4\x49\x3b\x88"),
313 .tag = TEST_DATA_STR (
314 "\xa7\x04\x1e\xa4\xa1\xd7\x4d\x9e\x66\xb9\x57\x1b\x59\xb6\xa1\xd8"),
317 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc12) = {
318 .name = "128-GMAC 128-aad NIST CAVS TC12",
319 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
320 .key = TEST_DATA_STR (
321 "\xca\xb3\xaf\x7a\x15\xb4\x30\xe0\x34\xe7\x93\xbb\x30\xdb\x8a\xb2"),
322 .iv = TEST_DATA_STR ("\x96\x3a\x56\xe2\xe1\x2f\x38\x70\x62\xe1\x84\x98"),
323 .aad = TEST_DATA_STR (
324 "\xa0\x94\xa1\xdd\x11\x21\xd3\xaa\x52\xc8\x1e\x8f\x10\xbf\x9f\x0c"),
325 .tag = TEST_DATA_STR (
326 "\x1a\x31\xd2\x95\x60\x1e\xb3\xc8\x2a\x54\xb2\x34\x98\x4f\xfd\xf5"),
329 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc13) = {
330 .name = "128-GMAC 128-aad NIST CAVS TC13",
331 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
332 .key = TEST_DATA_STR (
333 "\x89\xc9\x49\xe9\xc8\x04\xaf\x01\x4d\x56\x04\xb3\x94\x59\xf2\xc8"),
334 .iv = TEST_DATA_STR ("\xd1\xb1\x04\xc8\x15\xbf\x1e\x94\xe2\x8c\x8f\x16"),
335 .aad = TEST_DATA_STR (
336 "\x82\xad\xcd\x63\x8d\x3f\xa9\xd9\xf3\xe8\x41\x00\xd6\x1e\x07\x77"),
337 .tag = TEST_DATA_STR (
338 "\x88\xdb\x9d\x62\x17\x2e\xd0\x43\xaa\x10\xf1\x6d\x22\x7d\xc4\x1b"),
341 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad128_tc14) = {
342 .name = "128-GMAC 128-aad NIST CAVS TC14",
343 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
344 .key = TEST_DATA_STR (
345 "\xa4\xd9\x94\xc4\xac\x5a\xc0\xf0\x29\x13\x24\x57\x14\xfb\xe2\x35"),
346 .iv = TEST_DATA_STR ("\xa9\x47\x2d\xad\xcc\xa8\xd7\xe0\xe3\xb8\x08\x4d"),
347 .aad = TEST_DATA_STR (
348 "\xeb\x31\x8b\x9e\x17\x57\x52\x03\xdd\x29\xeb\xed\x20\xec\x82\xf9"),
349 .tag = TEST_DATA_STR (
350 "\x32\x3d\xf7\xf3\x36\x94\x10\x6f\x56\x73\x9d\xe0\x97\x32\x16\xa3"),
353 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc0) = {
354 .name = "128-GMAC 160-aad NIST CAVS TC0",
355 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
356 .key = TEST_DATA_STR (
357 "\x2f\xb4\x5e\x5b\x8f\x99\x3a\x2b\xfe\xbc\x4b\x15\xb5\x33\xe0\xb4"),
358 .iv = TEST_DATA_STR ("\x5b\x05\x75\x5f\x98\x4d\x2b\x90\xf9\x4b\x80\x27"),
359 .aad = TEST_DATA_STR ("\xe8\x54\x91\xb2\x20\x2c\xaf\x1d\x7d\xce\x03\xb9\x7e"
360 "\x09\x33\x1c\x32\x47\x39\x41"),
361 .tag = TEST_DATA_STR (
362 "\xc7\x5b\x78\x32\xb2\xa2\xd9\xbd\x82\x74\x12\xb6\xef\x57\x69\xdb"),
365 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc1) = {
366 .name = "128-GMAC 160-aad NIST CAVS TC1",
367 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
368 .key = TEST_DATA_STR (
369 "\x95\x21\x17\x04\x8f\x77\xe2\x76\xc2\xef\x65\x80\x53\x7c\x14\x03"),
370 .iv = TEST_DATA_STR ("\x07\x0b\x8f\xb4\x6a\x7a\xd5\x28\x85\xbe\x1b\x26"),
371 .aad = TEST_DATA_STR ("\x34\xb0\x88\xf9\x82\x81\x8b\x5f\x07\xda\xbe\x2b\x62"
372 "\xf9\x54\x7f\x4e\xd0\x99\x12"),
373 .tag = TEST_DATA_STR (
374 "\xbe\xdd\x4c\xf3\x0f\xd7\xa4\xab\xc4\x9b\xdc\xc3\xf3\xb2\x48\xb1"),
377 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc2) = {
378 .name = "128-GMAC 160-aad NIST CAVS TC2",
379 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
380 .key = TEST_DATA_STR (
381 "\x7f\x64\x53\xb3\x9b\xde\x01\x85\x60\xa1\x6a\x27\x04\x21\x75\x43"),
382 .iv = TEST_DATA_STR ("\x0f\x3e\xec\xf4\x8d\x68\x35\x32\x26\xa7\x7f\xe4"),
383 .aad = TEST_DATA_STR ("\x11\xe4\xec\xb2\x56\xeb\xff\x56\x45\x3f\xa2\xe7\x5e"
384 "\x43\xeb\x9d\x64\x10\x49\xe6"),
385 .tag = TEST_DATA_STR (
386 "\xb5\x12\x62\x3a\x12\xd5\x49\x2b\x7d\x76\xd3\x9b\xe0\xdf\x57\x77"),
389 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc3) = {
390 .name = "128-GMAC 160-aad NIST CAVS TC3",
391 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
392 .key = TEST_DATA_STR (
393 "\x93\x32\xe4\x33\xbf\x61\x00\xc6\xcc\x23\xb0\x87\x10\x62\x7c\x40"),
394 .iv = TEST_DATA_STR ("\xaa\xb3\xdb\x30\x15\xb2\x9d\x24\xf3\x29\xbe\xb4"),
395 .aad = TEST_DATA_STR ("\xbd\x84\x3a\x08\xf0\xa8\x22\xf8\xf4\xf7\x6c\x36\x48"
396 "\x38\x0a\xab\x76\x22\xe7\x19"),
397 .tag = TEST_DATA_STR (
398 "\xe5\x4f\x1d\x18\xc6\x1d\x8b\xe1\x54\x84\x72\x76\x05\xb5\xa5\xdc"),
401 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc4) = {
402 .name = "128-GMAC 160-aad NIST CAVS TC4",
403 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
404 .key = TEST_DATA_STR (
405 "\x57\x73\x75\x0a\x49\x30\x96\xa9\x9d\x84\xc0\x56\x3f\xc2\x93\xe9"),
406 .iv = TEST_DATA_STR ("\xc3\x90\xed\x70\xdc\x94\x97\x23\x44\x13\xad\x52"),
407 .aad = TEST_DATA_STR ("\x60\x12\x51\x72\x58\x71\x6c\x1f\x00\x35\xef\xa6\x0a"
408 "\x0f\x36\xb5\xc6\x5e\x73\x79"),
409 .tag = TEST_DATA_STR (
410 "\xb0\x11\xb2\x64\x61\x0e\x58\x08\x27\x05\x47\x6f\x04\x0b\x8c\x86"),
413 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc5) = {
414 .name = "128-GMAC 160-aad NIST CAVS TC5",
415 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
416 .key = TEST_DATA_STR (
417 "\x41\xb0\xd0\xfc\xe5\xd3\x13\x59\xcf\xd5\xdb\x40\x64\xe2\xd4\x6b"),
418 .iv = TEST_DATA_STR ("\xb9\x03\xe9\xd0\xce\xa2\x57\x95\xa8\x2e\x73\xe3"),
419 .aad = TEST_DATA_STR ("\x4c\xba\x50\x18\x76\xf3\x3e\x1f\xda\x9c\xd4\x56\xe3"
420 "\x18\x06\x83\xe3\x86\x3b\xd9"),
421 .tag = TEST_DATA_STR (
422 "\x18\xbc\x39\xd0\xb9\x5c\xf0\x59\xcd\x8c\x25\x00\x4f\x5e\x50\x7c"),
425 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc6) = {
426 .name = "128-GMAC 160-aad NIST CAVS TC6",
427 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
428 .key = TEST_DATA_STR (
429 "\x47\x48\xb7\x82\xe3\xfe\x5e\x4e\xff\xeb\x7c\x67\x23\x2d\x2b\x07"),
430 .iv = TEST_DATA_STR ("\xc5\xe4\xdc\xf1\x8f\x86\x07\x6b\x88\xa5\xd5\xe9"),
431 .aad = TEST_DATA_STR ("\x3b\x2f\xca\xd8\x73\x9e\xd8\x7e\x1d\x02\xe8\x08\x45"
432 "\xf1\x20\xe2\x49\xea\x92\xb1"),
433 .tag = TEST_DATA_STR (
434 "\xb8\xae\x71\x8e\x28\x79\xc9\xcb\x65\x8d\x5d\x11\x22\xe6\x9b\xb7"),
437 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc7) = {
438 .name = "128-GMAC 160-aad NIST CAVS TC7",
439 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
440 .key = TEST_DATA_STR (
441 "\xe3\x0c\xc2\x20\x77\xd5\x95\x12\x16\xd0\x7f\x37\xc5\x1b\x58\xf9"),
442 .iv = TEST_DATA_STR ("\xfc\x58\x3a\xd1\x59\xb5\x2e\x0b\x63\x78\x15\x7e"),
443 .aad = TEST_DATA_STR ("\xc3\xcb\x7b\xe8\x88\x8e\xf4\x4c\xa5\xaa\x93\xdd\xe2"
444 "\x6d\x27\x51\x28\x8e\x1f\x5a"),
445 .tag = TEST_DATA_STR (
446 "\xa8\xce\x25\xb5\xdc\x8f\x84\xe2\xf5\xda\xe5\xf0\x85\xaa\xcc\xd4"),
449 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc8) = {
450 .name = "128-GMAC 160-aad NIST CAVS TC8",
451 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
452 .key = TEST_DATA_STR (
453 "\x7c\x8b\x10\xba\x75\xee\x6a\xb4\xa9\x97\xd3\xf5\x98\xb7\x9d\x40"),
454 .iv = TEST_DATA_STR ("\x6f\xb5\x51\x88\xdd\xf0\x0d\xde\x09\x59\x65\x87"),
455 .aad = TEST_DATA_STR ("\x2d\xdc\x0a\xcf\x97\x05\xf8\xd1\x8f\x90\x5b\x8f\x9d"
456 "\x47\x2e\x7d\xbf\x6b\x91\xe3"),
457 .tag = TEST_DATA_STR (
458 "\x57\x91\xd3\x80\x51\x09\xc5\xe1\x8a\xdf\xf4\xe8\x09\x06\xa0\x18"),
461 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc9) = {
462 .name = "128-GMAC 160-aad NIST CAVS TC9",
463 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
464 .key = TEST_DATA_STR (
465 "\x72\xc7\xdb\x6c\xa2\x9f\x83\x64\x1c\x3f\xff\x5b\x71\xc4\xbc\x30"),
466 .iv = TEST_DATA_STR ("\xf2\x00\x07\x42\xe2\x49\xac\x56\xd5\xb2\xf6\x5f"),
467 .aad = TEST_DATA_STR ("\xcd\x99\x4d\x2d\x08\x23\x27\x70\x92\x7d\x85\x4e\xf2"
468 "\xb6\xca\x2f\x08\x73\x70\xcf"),
469 .tag = TEST_DATA_STR (
470 "\xa5\x96\x6d\xf3\x9f\xee\xba\x03\x36\xf0\xb9\xa3\xf4\xff\xe6\xc3"),
473 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc10) = {
474 .name = "128-GMAC 160-aad NIST CAVS TC10",
475 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
476 .key = TEST_DATA_STR (
477 "\x28\x33\xcc\x10\x19\x50\x30\xe4\xa1\x15\x55\x32\x66\x6c\xb0\x49"),
478 .iv = TEST_DATA_STR ("\xad\x80\x2b\x9a\x5c\x94\x09\xfa\x3e\x7d\xcf\xcc"),
479 .aad = TEST_DATA_STR ("\xb3\xec\xbe\xa2\x79\x7d\x00\x6c\x07\xb8\xce\x62\x1b"
480 "\xe3\xb0\xec\xcd\x37\xc3\xec"),
481 .tag = TEST_DATA_STR (
482 "\x81\xde\xab\x8b\xde\xe0\xd3\x91\x49\x5e\xed\x40\x29\xa6\xd2\x05"),
485 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc11) = {
486 .name = "128-GMAC 160-aad NIST CAVS TC11",
487 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
488 .key = TEST_DATA_STR (
489 "\xd8\x98\x5b\xb5\xac\x02\x58\xad\xad\x86\x66\x0e\xbb\xc6\xd1\x9f"),
490 .iv = TEST_DATA_STR ("\xb5\xee\x26\xf8\xc4\x63\xbb\xfc\x27\x11\x5b\x0a"),
491 .aad = TEST_DATA_STR ("\x61\x3f\x51\xf8\x32\xfb\xf4\x34\xb8\xe3\xfe\x94\x54"
492 "\xae\x46\xa8\x62\xd8\x31\xf0"),
493 .tag = TEST_DATA_STR (
494 "\xfe\x9f\x0b\x1b\xdc\x68\xde\xe6\xe8\xdc\x2c\xe1\x26\x65\xd3\x36"),
497 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc12) = {
498 .name = "128-GMAC 160-aad NIST CAVS TC12",
499 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
500 .key = TEST_DATA_STR (
501 "\x9b\x8f\x69\x24\xdc\x22\xf1\x07\x3c\x1a\x38\x44\x8a\x2f\x04\x47"),
502 .iv = TEST_DATA_STR ("\x09\xcd\xab\xf8\x7d\x82\x82\x8e\xca\x1c\x0c\x7f"),
503 .aad = TEST_DATA_STR ("\x69\x21\x0e\x4e\x0a\x1c\xfd\x50\x38\x75\x66\x52\x79"
504 "\x0b\x9a\x8c\xfb\xbd\x94\x3d"),
505 .tag = TEST_DATA_STR (
506 "\xa6\x0c\x10\x4a\x6f\xb4\x63\x84\x27\xa8\x8a\x86\xc0\x49\x23\xbd"),
509 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc13) = {
510 .name = "128-GMAC 160-aad NIST CAVS TC13",
511 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
512 .key = TEST_DATA_STR (
513 "\x72\x13\x22\x13\xd5\xd9\x53\x09\xbf\x7e\x10\xf8\x31\x8d\x7c\x20"),
514 .iv = TEST_DATA_STR ("\xfb\x90\xbf\x28\x3c\x54\x11\x23\x03\x55\xd7\xa1"),
515 .aad = TEST_DATA_STR ("\xa3\x0b\xb1\x7c\x80\x89\xc6\xf5\xf6\x1b\x25\x0a\x94"
516 "\xcb\xbb\xfd\xf5\xf2\xa3\xe6"),
517 .tag = TEST_DATA_STR (
518 "\x09\x19\x1a\xf4\x18\x94\x9f\xe6\xbe\x8d\xbf\x13\xe0\x06\x52\x7a"),
521 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad160_tc14) = {
522 .name = "128-GMAC 160-aad NIST CAVS TC14",
523 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
524 .key = TEST_DATA_STR (
525 "\x65\x2f\xfb\xad\x4e\x1f\xcb\xe7\x55\x64\x39\x5e\x6c\x1c\x39\x24"),
526 .iv = TEST_DATA_STR ("\x11\x13\x49\x63\x6d\x10\x6f\xd5\xf6\xa1\xe0\x88"),
527 .aad = TEST_DATA_STR ("\x5f\x52\xaa\x85\xdc\x3a\xc0\x42\x64\x7e\x32\xad\xa0"
528 "\x50\xd6\x7e\x59\xb5\x19\xaa"),
529 .tag = TEST_DATA_STR (
530 "\x28\xd9\x80\xd7\xbf\xd8\x78\xc2\x27\xc1\x40\xde\x34\x82\x76\x5b"),
533 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc0) = {
534 .name = "128-GMAC 384-aad NIST CAVS TC0",
535 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
536 .key = TEST_DATA_STR (
537 "\x99\xe3\xe8\x79\x3e\x68\x6e\x57\x1d\x82\x85\xc5\x64\xf7\x5e\x2b"),
538 .iv = TEST_DATA_STR ("\xc2\xdd\x0a\xb8\x68\xda\x6a\xa8\xad\x9c\x0d\x23"),
539 .aad = TEST_DATA_STR (
540 "\xb6\x68\xe4\x2d\x4e\x44\x4c\xa8\xb2\x3c\xfd\xd9\x5a\x9f\xed\xd5\x17\x8a"
541 "\xa5\x21\x14\x48\x90\xb0\x93\x73\x3c\xf5\xcf\x22\x52\x6c\x59\x17\xee\x47"
542 "\x65\x41\x80\x9a\xc6\x86\x7a\x8c\x39\x93\x09\xfc"),
543 .tag = TEST_DATA_STR (
544 "\x3f\x4f\xba\x10\x0e\xaf\x1f\x34\xb0\xba\xad\xaa\xe9\x99\x5d\x85"),
547 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc1) = {
548 .name = "128-GMAC 384-aad NIST CAVS TC1",
549 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
550 .key = TEST_DATA_STR (
551 "\xf8\xe2\x9e\xfd\x00\xa4\x23\xc4\xea\x94\x56\x86\x3f\x83\xc5\x4f"),
552 .iv = TEST_DATA_STR ("\x2d\x3c\xf6\x7c\xbc\xe6\x9d\x63\x9b\xd1\xc0\x92"),
553 .aad = TEST_DATA_STR (
554 "\x02\xc7\x0f\xc8\xa2\x54\x46\x19\xc1\xc3\xe9\xfc\xe6\xb3\xc6\xc3\xbc\x24"
555 "\x64\x3e\x0f\x14\x0e\x6b\x48\xac\x50\x5e\xa6\x66\xcd\x9a\x20\x10\xc3\xa8"
556 "\xe2\xf5\xf1\x04\x37\x88\x7f\xe8\x03\xb5\x4d\xb3"),
557 .tag = TEST_DATA_STR (
558 "\x96\x3c\xb5\x0a\xca\x3e\x09\xdd\x0d\x9a\x01\x3c\x87\x34\x15\x5f"),
561 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc2) = {
562 .name = "128-GMAC 384-aad NIST CAVS TC2",
563 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
564 .key = TEST_DATA_STR (
565 "\x00\xe3\x49\x1d\xfc\xf3\xbe\xc3\x9c\x89\xcc\xfd\x80\xa5\xa8\x96"),
566 .iv = TEST_DATA_STR ("\x29\xf6\xff\x4e\xdc\x4a\xc3\xe9\x7f\xfb\x16\x80"),
567 .aad = TEST_DATA_STR (
568 "\x73\x81\x33\x51\xb3\x9f\x5e\x40\x00\xa9\xee\x8d\x2b\x85\xf1\x31\x63\x4a"
569 "\xca\xed\xe0\xdd\x25\xd6\x91\xa2\xb8\x29\xad\x4f\xe9\xea\x69\x9f\x12\x24"
570 "\x25\x19\x84\x7c\xb0\x83\xb0\xb4\xd3\xd8\xb3\xbc"),
571 .tag = TEST_DATA_STR (
572 "\x01\xb2\xe9\xba\x71\x9a\xd7\x7c\x75\x3b\x36\x4e\xcc\x5a\xab\xeb"),
575 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc3) = {
576 .name = "128-GMAC 384-aad NIST CAVS TC3",
577 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
578 .key = TEST_DATA_STR (
579 "\x0a\xd0\x6f\x4c\x19\xaf\x1d\x5f\x60\x2b\x38\xf8\x6e\x56\x29\x1c"),
580 .iv = TEST_DATA_STR ("\x0b\x23\x5c\x6a\x75\xce\xcd\xfc\xba\x90\x01\xce"),
581 .aad = TEST_DATA_STR (
582 "\x7d\x4f\x26\xf7\x89\x5b\x2e\xf3\xda\x2e\x4f\x93\xe4\x11\xcd\xb7\x40\x25"
583 "\xc7\x75\x9c\x03\x8d\x87\x23\x44\xa4\x5c\xe5\x6d\x92\xa5\x81\x86\x2c\x3b"
584 "\xac\xe0\x39\x09\x0a\x2c\xcf\xa4\x3b\x62\x3d\xcb"),
585 .tag = TEST_DATA_STR (
586 "\xb4\xbc\x9c\xe1\x47\x5d\x0c\x93\xdf\xd5\xa5\xd8\xd4\x5b\xd8\xe5"),
589 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc4) = {
590 .name = "128-GMAC 384-aad NIST CAVS TC4",
591 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
592 .key = TEST_DATA_STR (
593 "\xee\xeb\x33\xe0\xc8\xa4\x06\xea\x23\x6a\x07\x5c\xdb\xe9\xd6\xf9"),
594 .iv = TEST_DATA_STR ("\xb9\x35\xe8\xee\xd6\x62\x27\x83\x6e\xde\x18\x9a"),
595 .aad = TEST_DATA_STR (
596 "\x9a\x42\x91\xac\xb9\x92\x4b\xba\x42\x41\xb0\xc9\xc3\xc2\xe1\x26\x2b\x25"
597 "\xa7\xc7\xf0\x2c\x92\xad\xea\xdf\x92\x25\x4d\x61\x8a\xb5\x93\x88\xaa\x30"
598 "\xb4\x7e\xaf\xa5\x88\x99\xc3\x57\xcf\x28\x1e\x31"),
599 .tag = TEST_DATA_STR (
600 "\x14\x3d\x69\x54\xeb\x6f\xe7\x0a\xff\x70\xda\x97\x8c\xcd\x45\x09"),
603 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc5) = {
604 .name = "128-GMAC 384-aad NIST CAVS TC5",
605 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
606 .key = TEST_DATA_STR (
607 "\x60\x0b\x54\x42\xa0\xb5\x50\xa3\x8f\x85\xd2\xfb\x0a\xcc\x9c\x96"),
608 .iv = TEST_DATA_STR ("\x5e\x65\xdd\x6e\x8b\x20\xd6\xb2\x93\x1f\xe6\xc2"),
609 .aad = TEST_DATA_STR (
610 "\x46\x1e\x54\xa0\x92\xf8\x39\x24\x66\x84\x9f\xb0\x37\x0a\xe3\x0c\x14\xc1"
611 "\xbf\x39\x87\xab\x2e\xbb\xe9\x8e\x18\xd1\x3f\x04\x1d\x09\xd0\x43\xf7\xae"
612 "\xa7\x8b\xfc\xc4\x2f\x86\x4a\x9f\xb4\x0f\x00\x31"),
613 .tag = TEST_DATA_STR (
614 "\x2c\xd6\x26\xf9\xa0\x68\x63\x00\xcf\x23\xc0\xbc\x59\x7c\x63\xb4"),
617 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc6) = {
618 .name = "128-GMAC 384-aad NIST CAVS TC6",
619 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
620 .key = TEST_DATA_STR (
621 "\xce\x8d\x11\x03\x10\x0f\xa2\x90\xf9\x53\xfb\xb4\x39\xef\xde\xe4"),
622 .iv = TEST_DATA_STR ("\x48\x74\xc6\xf8\x08\x23\x66\xfc\x7e\x49\xb9\x33"),
623 .aad = TEST_DATA_STR (
624 "\xd6\x9d\x03\x3c\x32\x02\x97\x89\x26\x3c\x68\x9e\x11\xff\x7e\x9e\x8e\xef"
625 "\xc4\x8d\xdb\xc4\xe1\x0e\xea\xe1\xc9\xed\xbb\x44\xf0\x4e\x7c\xc6\x47\x15"
626 "\x01\xea\xdd\xa3\x94\x0a\xb4\x33\xd0\xa8\xc2\x10"),
627 .tag = TEST_DATA_STR (
628 "\xa5\x96\x4b\x77\xaf\x0b\x8a\xec\xd8\x44\xd6\xad\xec\x8b\x7b\x1c"),
631 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc7) = {
632 .name = "128-GMAC 384-aad NIST CAVS TC7",
633 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
634 .key = TEST_DATA_STR (
635 "\xae\x71\x14\xc0\x9f\xfa\x04\x29\x88\x34\x41\x2f\x6a\x8d\xe4\x53"),
636 .iv = TEST_DATA_STR ("\xf3\x80\xc2\xd8\x60\xbe\x2a\xf4\x1e\x1b\xe5\xc6"),
637 .aad = TEST_DATA_STR (
638 "\x7e\x16\x08\x2f\x68\x9c\x63\xe8\xad\xdd\xd5\xcb\x2d\xa6\x10\xbb\xfb\x88"
639 "\xd0\x73\xcf\x8b\x20\x43\x84\xa9\x37\xaa\xb0\x37\x65\x23\xa5\x0d\x3d\x5f"
640 "\x13\x92\x97\x8f\x79\x60\x9f\x12\xdf\x8f\xc2\x88"),
641 .tag = TEST_DATA_STR (
642 "\x40\xd3\xa3\x63\x58\xa6\xf6\xca\xaa\x6a\xf9\x2c\xfd\x87\x4a\x22"),
645 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc8) = {
646 .name = "128-GMAC 384-aad NIST CAVS TC8",
647 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
648 .key = TEST_DATA_STR (
649 "\xd8\xf5\x20\xb6\xf3\xcf\x6b\x83\x5c\xe4\xcc\xe4\x8f\x4c\xb0\x33"),
650 .iv = TEST_DATA_STR ("\x01\x9a\x55\xc9\x86\x15\xc0\x22\xaf\xff\x96\x44"),
651 .aad = TEST_DATA_STR (
652 "\xc3\xfb\x51\x8d\xdb\x2d\x73\x41\x7e\x24\x33\x59\xa0\xed\x8c\x12\x67\x50"
653 "\xeb\x16\x3e\x7b\xd8\x45\x63\x71\x59\x39\x70\x75\xe3\xdb\x1d\xb7\x2f\xe2"
654 "\xf0\xe1\x3b\x59\x9c\x33\x3c\x47\x3f\xeb\x22\x45"),
655 .tag = TEST_DATA_STR (
656 "\x46\x7c\xfa\xd5\xaf\x11\x85\x2d\x6e\xca\x28\x9c\x86\xf9\x67\xad"),
659 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc9) = {
660 .name = "128-GMAC 384-aad NIST CAVS TC9",
661 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
662 .key = TEST_DATA_STR (
663 "\x13\xba\x95\x60\x6b\x01\xaf\x03\x5b\xf9\x61\xe3\x98\x52\xe3\x4b"),
664 .iv = TEST_DATA_STR ("\x9e\xc9\xcf\x3b\x00\x2c\xfe\xd9\xe7\x61\x93\x4f"),
665 .aad = TEST_DATA_STR (
666 "\xbb\x9d\xe5\x63\x83\x6d\x1f\x1b\x1d\xe9\x64\x51\x4e\xce\xbb\x8a\xd1\x05"
667 "\x01\xdb\x56\x22\x80\xb7\xbd\x98\x80\x48\x14\x73\x58\x17\x90\x8b\x28\x56"
668 "\xca\xfa\xde\xcd\x40\xb0\x48\x32\xfb\xde\x2b\xfb"),
669 .tag = TEST_DATA_STR (
670 "\x17\x2a\x3b\xcb\xc5\x00\x1d\xfd\x38\x15\x17\x5a\x88\xf7\x05\x6c"),
673 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc10) = {
674 .name = "128-GMAC 384-aad NIST CAVS TC10",
675 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
676 .key = TEST_DATA_STR (
677 "\x1c\x97\xda\x5f\xc5\xa9\x64\x0f\x28\x96\x22\x84\x24\x08\xcb\xa2"),
678 .iv = TEST_DATA_STR ("\x6d\x76\x5a\x98\x8e\x93\x45\x88\x16\x3e\x29\xb7"),
679 .aad = TEST_DATA_STR (
680 "\x10\x26\xa5\x90\x81\x6d\x2e\x1a\xa6\x7a\xa0\xd1\x3d\x50\xa8\x41\x3a\xf4"
681 "\xd8\xee\x9b\x1f\xa5\xce\xb8\xde\xac\xc9\xf4\x1e\x8e\x76\x4b\x3a\xc1\x5f"
682 "\x98\x29\x5e\x88\x00\xad\xf6\xa7\x17\x54\x48\xcd"),
683 .tag = TEST_DATA_STR (
684 "\x49\x45\xa7\x9d\x5e\xdb\xb9\x34\xc5\xcf\x94\x39\x5c\x35\x9d\xeb"),
687 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc11) = {
688 .name = "128-GMAC 384-aad NIST CAVS TC11",
689 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
690 .key = TEST_DATA_STR (
691 "\x8d\xd4\x6f\x27\x1a\x20\x1c\xc2\x1c\xa0\x82\x32\x48\x15\x7e\x6b"),
692 .iv = TEST_DATA_STR ("\x18\x21\xb3\x10\xce\x2d\xba\x99\x9c\xdf\x75\x76"),
693 .aad = TEST_DATA_STR (
694 "\x34\xba\x40\x99\x97\xce\xba\x06\x5f\x4a\x54\x57\x07\x8a\x9e\x23\x2a\x84"
695 "\xf5\x94\x01\x1a\xec\xfd\xbf\xbd\x24\xa8\x02\xca\x12\x9e\x01\xcb\x13\x27"
696 "\xe2\x65\xb4\xa9\x00\x4f\xb4\xc5\x00\x3f\xff\xd3"),
697 .tag = TEST_DATA_STR (
698 "\x30\x4c\xc2\xcd\x2f\xcd\xd4\xab\xc8\x44\xbc\x9c\x1c\xbe\x02\x41"),
701 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc12) = {
702 .name = "128-GMAC 384-aad NIST CAVS TC12",
703 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
704 .key = TEST_DATA_STR (
705 "\x0c\x54\x5d\x95\x33\x3b\x6a\xcf\x8b\x29\x28\xf3\xef\xd0\x83\xde"),
706 .iv = TEST_DATA_STR ("\x31\xde\x89\xd0\x7e\x75\x77\x95\x6f\xa9\x5e\xf3"),
707 .aad = TEST_DATA_STR (
708 "\x55\x74\xd6\x5f\x5a\xff\xfb\x2d\x31\xcc\xa8\xf5\x8c\xf5\x94\x5b\x83\x55"
709 "\x3c\xd4\x5d\x2d\xba\x0e\x05\xfa\x54\xe4\x2a\xa3\xf5\xa0\x51\xe1\x62\x4d"
710 "\xe1\x6d\x4b\x93\xcb\xab\x79\x88\xc6\xd9\x5f\x8c"),
711 .tag = TEST_DATA_STR (
712 "\x4e\xd9\x1c\xfe\x90\xa4\x99\x00\xe0\x56\x56\x97\xbc\x82\xb6\x59"),
715 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc13) = {
716 .name = "128-GMAC 384-aad NIST CAVS TC13",
717 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
718 .key = TEST_DATA_STR (
719 "\x79\x0b\x39\xf3\x01\x38\x3a\x82\xb3\x77\xf5\x85\xd3\xbf\x0f\x26"),
720 .iv = TEST_DATA_STR ("\x2f\xd9\xc1\x42\xb5\xfc\x62\xe8\x7e\xff\xf1\xfd"),
721 .aad = TEST_DATA_STR (
722 "\x45\x63\x4e\x0a\xfc\x59\xae\x9f\x6e\x30\xf7\xf5\xfe\x43\xcf\x5a\x4e\x1f"
723 "\x78\xd0\xae\xbb\x9e\x5a\x7a\xd9\xd8\x6f\x25\x27\x8e\x52\x1f\x48\x45\xd4"
724 "\x9d\x6c\xb5\x33\xca\xc6\x43\x98\x39\x64\x7f\xd0"),
725 .tag = TEST_DATA_STR (
726 "\x69\x63\x7c\x3f\x92\x33\xda\x23\xf8\xdf\x7b\x09\xe8\xcf\xb2\x52"),
729 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad384_tc14) = {
730 .name = "128-GMAC 384-aad NIST CAVS TC14",
731 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
732 .key = TEST_DATA_STR (
733 "\x8f\x63\x65\x26\x32\xd0\x7b\x2a\x4a\x83\xc2\x6d\xed\xd3\x26\x57"),
734 .iv = TEST_DATA_STR ("\x74\x7b\xee\x0e\x1d\x46\x2a\x90\x16\xf1\x46\x8d"),
735 .aad = TEST_DATA_STR (
736 "\x9c\x00\xff\x96\x9b\x55\xa4\x97\xdc\x52\x3f\xa0\xce\xda\xa3\x39\xdc\x3c"
737 "\x6c\xe1\x8e\x61\xc7\xbf\x80\x0c\x36\x12\x01\x35\x1b\xc4\x97\x28\xc3\xbb"
738 "\x15\x06\x7e\x90\x61\x62\xee\x79\x1b\x8d\x33\x3a"),
739 .tag = TEST_DATA_STR (
740 "\xbd\x5a\x0c\xbf\x85\x9a\x61\x33\xa7\xf2\xd5\x04\xd9\x7c\xae\x05"),
743 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc0) = {
744 .name = "128-GMAC 720-aad NIST CAVS TC0",
745 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
746 .key = TEST_DATA_STR (
747 "\x20\xb5\xb6\xb8\x54\xe1\x87\xb0\x58\xa8\x4d\x57\xbc\x15\x38\xb6"),
748 .iv = TEST_DATA_STR ("\x94\xc1\x93\x5a\xfc\x06\x1c\xbf\x25\x4b\x93\x6f"),
749 .aad = TEST_DATA_STR (
750 "\xca\x41\x8e\x71\xdb\xf8\x10\x03\x81\x74\xea\xa3\x71\x9b\x3f\xcb\x80\x53"
751 "\x1c\x71\x10\xad\x91\x92\xd1\x05\xee\xaa\xfa\x15\xb8\x19\xac\x00\x56\x68"
752 "\x75\x2b\x34\x4e\xd1\xb2\x2f\xaf\x77\x04\x8b\xaf\x03\xdb\xdd\xb3\xb4\x7d"
753 "\x6b\x00\xe9\x5c\x4f\x00\x5e\x0c\xc9\xb7\x62\x7c\xca\xfd\x3f\x21\xb3\x31"
754 "\x2a\xa8\xd9\x1d\x3f\xa0\x89\x3f\xe5\xbf\xf7\xd4\x4c\xa4\x6f\x23\xaf"
756 .tag = TEST_DATA_STR (
757 "\xb3\x72\x86\xeb\xaf\x4a\x54\xe0\xff\xc2\xa1\xde\xaf\xc9\xf6\xdb"),
760 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc1) = {
761 .name = "128-GMAC 720-aad NIST CAVS TC1",
762 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
763 .key = TEST_DATA_STR (
764 "\x7a\xa5\x31\x88\xa9\xc5\x97\x12\x6a\x10\xd2\x48\x60\x3e\xbb\x62"),
765 .iv = TEST_DATA_STR ("\xaa\x45\xca\x5d\xac\x41\xa8\x25\xc4\x5d\x36\xbf"),
766 .aad = TEST_DATA_STR (
767 "\x41\x7f\xd5\x14\x7d\x56\xde\x0c\x74\x32\x95\x97\x82\x4e\xc2\x78\x8a\x34"
768 "\x4f\xb6\x0b\x40\x3e\xdf\x01\x87\xaf\xa1\x2e\x72\xa0\x50\x09\xbb\x70\xf8"
769 "\x3c\xca\xd1\x1e\xfa\x48\x7c\x19\x65\xcf\x84\xfe\xac\x06\x7c\x1f\xfd\xbf"
770 "\x53\x1f\xca\x97\xc5\x54\xf8\x75\xc4\xa1\xa1\xd3\xab\x3c\x53\xc8\xa7\x4e"
771 "\xf3\xee\x94\x15\xa8\x7e\x23\x16\x99\xc8\x2d\x76\x4d\xeb\xed\xa1\x81"
773 .tag = TEST_DATA_STR (
774 "\x99\x7b\xf8\x46\x54\xbb\x96\x16\xc0\xcc\x9b\x45\xf8\x2c\x76\x73"),
777 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc2) = {
778 .name = "128-GMAC 720-aad NIST CAVS TC2",
779 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
780 .key = TEST_DATA_STR (
781 "\x72\xb5\x84\x8e\xd1\xd2\xba\xdb\xd4\x27\xe1\x6f\xc3\xb3\xe4\x4d"),
782 .iv = TEST_DATA_STR ("\xa8\x4c\x7e\x92\x8d\xc6\xe6\x37\x9a\x51\x3a\x20"),
783 .aad = TEST_DATA_STR (
784 "\x1c\x0d\xfc\xec\xbd\x7b\xb0\xe6\x80\xce\x04\x2d\x08\xb2\xd9\xa7\x41\x26"
785 "\x7b\xd1\xda\x76\x8d\xf2\xba\x08\x37\x92\x33\xa9\x97\x3f\x14\x92\x8e\x9d"
786 "\xa6\x35\x37\x68\xb9\xb2\x60\x1c\x03\x3f\xd9\x64\xb1\x6a\x16\xda\xaa\x3e"
787 "\xa3\x5a\xd7\xce\xf7\xe3\x1e\xb1\xf7\x34\x0a\xa3\x4e\x8b\xfc\x08\xb0\xa6"
788 "\xe6\x20\x52\x92\x57\x0c\xed\x43\x31\x68\x76\xd0\xd4\x99\xd9\x19\x2e"
790 .tag = TEST_DATA_STR (
791 "\x27\x0c\xd7\x86\xb9\x5e\x68\x20\xcd\xb6\x5a\x23\x1b\x75\x30\xed"),
794 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc3) = {
795 .name = "128-GMAC 720-aad NIST CAVS TC3",
796 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
797 .key = TEST_DATA_STR (
798 "\x6d\x05\x12\xeb\xf2\xe7\x3d\x63\xf4\x28\x49\xc5\x7f\x07\x3f\xd0"),
799 .iv = TEST_DATA_STR ("\xc1\xc4\x69\x27\xc7\x4c\x03\xf1\x93\x42\xc3\x3a"),
800 .aad = TEST_DATA_STR (
801 "\x28\xbf\x89\x03\xb2\xdf\xb7\xe6\x9f\x1a\x73\x51\x21\xc7\xef\xe9\xa4\xc4"
802 "\x2b\x6a\x29\x53\x27\xbc\xeb\x02\x46\xc8\x5d\x78\x2c\xe6\x2b\xf0\x75\xdb"
803 "\xdf\x6e\x8e\xc6\x58\x9c\x26\xd3\x06\x96\xcc\xce\xef\x03\x87\x0b\xd0\xab"
804 "\xfd\x26\xd3\x06\x00\xea\xfc\x65\x61\x37\x40\xb5\x4d\x77\x7d\x37\x9e\x8a"
805 "\xac\xf2\x41\xec\xfb\xa1\x1b\x06\x01\x86\xac\x06\x5d\xb1\x71\xaa\xb0"
807 .tag = TEST_DATA_STR (
808 "\xa6\x86\xf5\x94\x1c\xeb\x51\x0e\x12\x6a\x63\x16\xe3\x40\x4d\xc0"),
811 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc4) = {
812 .name = "128-GMAC 720-aad NIST CAVS TC4",
813 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
814 .key = TEST_DATA_STR (
815 "\x64\x38\xbc\x79\x52\x0d\xef\x5d\xb5\x8e\x49\x63\x97\x74\x68\x7a"),
816 .iv = TEST_DATA_STR ("\xd6\x82\xb4\x74\x18\xce\xb5\xbc\x09\xc7\x13\xc2"),
817 .aad = TEST_DATA_STR (
818 "\xd2\x52\xb1\x64\xae\x55\x9e\xd1\x55\xc8\x41\x7b\x96\x65\x25\x29\xdf\x15"
819 "\x1f\x24\xcc\xf1\xce\x98\xd0\xc7\xdd\xf2\x93\xf4\xf1\x23\x66\x30\xa1\x9b"
820 "\x24\xdc\x23\x97\x8d\x33\x77\xa0\x99\x06\x5d\x0b\xa7\x1d\x4b\xb8\xa7\xdc"
821 "\x0c\xb7\x67\x60\xca\x7c\x4a\x0e\x12\xc8\xcb\x56\xc6\x10\x26\x46\x32\x3c"
822 "\x08\xc4\xf4\xf5\x62\x26\xfd\x5b\x71\xa8\x45\x90\x91\x3a\xd2\x0d\xa2"
824 .tag = TEST_DATA_STR (
825 "\x04\xe7\x87\x96\xdb\xf4\x2e\x9f\xfa\x6b\xb9\xe3\x46\x58\x1f\x13"),
828 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc5) = {
829 .name = "128-GMAC 720-aad NIST CAVS TC5",
830 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
831 .key = TEST_DATA_STR (
832 "\x11\x7a\x0a\xa5\x92\xff\xf1\x7a\xe3\x6c\x94\x91\x7d\xb1\x6c\x65"),
833 .iv = TEST_DATA_STR ("\xc3\x53\x7b\xe6\x02\x9d\x54\xff\xef\xab\x27\x30"),
834 .aad = TEST_DATA_STR (
835 "\x29\xe9\x59\xb9\x68\x17\x54\x7a\xe0\x6b\xf8\x5f\xe1\x64\xe8\x2a\x26\x93"
836 "\xf8\x2a\x7a\xeb\x66\xd5\x35\xf0\xd2\xc3\xbf\xfd\x1b\xa1\x8e\x94\xef\x45"
837 "\x79\x39\xf0\xc0\x73\x3e\xda\x47\x38\xd1\x36\x38\x0f\xc8\x76\x07\x5c\x49"
838 "\x43\x22\x02\x37\xa5\x92\x9b\x01\xb3\x2d\xa2\xbc\x2a\x6a\xfd\x6a\xe1\xd8"
839 "\x9f\xd4\x70\x09\x38\x35\x96\x2f\xf6\x70\x8b\xb3\x9b\xa3\x65\x20\x2f"
841 .tag = TEST_DATA_STR (
842 "\xb8\x7f\xcc\x4d\x5c\x48\x4e\x68\xea\x52\xc0\x1b\x55\xff\xa4\x38"),
845 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc6) = {
846 .name = "128-GMAC 720-aad NIST CAVS TC6",
847 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
848 .key = TEST_DATA_STR (
849 "\x5d\x99\x5a\x33\x8e\xd6\x0f\x8a\xb0\xb5\x9d\xa6\xc9\xa4\x0c\x52"),
850 .iv = TEST_DATA_STR ("\x27\x23\xc5\x4e\x31\xc5\xc5\x7f\x02\x36\xe8\x16"),
851 .aad = TEST_DATA_STR (
852 "\x23\x9c\x80\x68\x3f\xeb\x6a\xfd\x38\xf8\x75\x9a\x27\xcb\x5f\x35\x0f\xbc"
853 "\x2f\x75\x78\x38\xc4\x08\x58\xc9\xd0\x8f\x69\x9c\xc5\x6c\x42\x36\xf4\xa7"
854 "\x7b\xd8\x0d\xf0\xe8\xe4\x1d\x5f\x9b\xa7\x32\xdb\x2e\x0a\x3a\x5e\x95\x2e"
855 "\xde\x7b\xfd\xd5\xfc\xbe\xbd\x23\xd0\x72\x71\x13\x4d\xb5\xb8\x24\x61\x53"
856 "\x7c\x47\xe2\xca\x51\xb3\x48\xb0\x83\x0f\x5e\xe5\x75\xad\x4b\x44\x14"
858 .tag = TEST_DATA_STR (
859 "\x94\x35\x6a\x3b\xfa\xf0\x7f\x2e\xf0\xeb\xe3\xa5\x07\x07\x6b\x16"),
862 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc7) = {
863 .name = "128-GMAC 720-aad NIST CAVS TC7",
864 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
865 .key = TEST_DATA_STR (
866 "\xc8\xa8\x63\xa1\xeb\xaf\x10\xc0\xfc\x0e\x80\xdf\x12\x44\x4e\x6e"),
867 .iv = TEST_DATA_STR ("\xc3\xe8\xcd\xf0\x86\x82\x7f\xee\x70\x95\xd0\xea"),
868 .aad = TEST_DATA_STR (
869 "\x99\x27\xda\x88\xc5\xd3\x36\x25\x66\x99\xc7\x68\x45\xe9\x46\xdc\x53\xc8"
870 "\x7b\xf0\xe1\x1e\x4b\xec\x94\x50\x98\x16\x02\xb3\x20\x10\xd2\xb5\x2b\xfc"
871 "\x91\x28\x3a\x63\x29\xd4\x55\x59\x89\x98\xed\xe2\xe6\x1e\x35\x2e\x55\x31"
872 "\x10\x15\x4b\x4d\xa5\xce\x66\x8d\x66\x4b\x83\xf6\x71\xc0\x10\xbf\x22\x0b"
873 "\x7d\x32\xb3\x4f\x4c\xa6\x9b\x66\xcc\x87\x23\x3d\x79\x23\x37\xcb\x2b"
875 .tag = TEST_DATA_STR (
876 "\x09\x88\x37\xde\x27\x70\x7e\xa3\x59\x3e\x31\xce\xb8\x27\x67\x32"),
879 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc8) = {
880 .name = "128-GMAC 720-aad NIST CAVS TC8",
881 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
882 .key = TEST_DATA_STR (
883 "\x69\xcc\x28\xb1\x61\xf2\x14\xa5\x80\xe6\xba\x4b\xc2\xe3\xde\x9d"),
884 .iv = TEST_DATA_STR ("\xf2\xa5\x66\xf9\xcf\x83\xfd\x28\x0c\x8f\xe0\x8e"),
885 .aad = TEST_DATA_STR (
886 "\xf8\xc5\x26\x3a\x4e\x06\xb4\x9e\x18\x45\x89\xa1\xe0\x71\x97\x86\x43\xc3"
887 "\x53\xaa\x27\xb4\x81\x7f\xe3\x9e\x45\xab\xc4\x42\xe2\x2a\xb5\xd6\x83\xbc"
888 "\xee\x5d\xbb\xd5\x89\xfa\x58\x3f\x17\x1b\xb5\x95\x36\xad\xdd\x2b\x6c\xef"
889 "\xd4\x98\x23\x41\x30\x05\xef\xb2\xa6\x65\xe2\x6a\x60\x29\xc9\x27\xd3\x89"
890 "\x1c\xb0\xd4\xf2\x3e\x8c\xcc\x60\xcf\xd0\x2c\xe8\x97\x8c\x45\x1d\xdc"
892 .tag = TEST_DATA_STR (
893 "\xc9\xc8\x06\xcb\x8b\x1a\x88\x98\x09\x69\x5c\x2e\xc5\xa7\xa8\x6e"),
896 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc9) = {
897 .name = "128-GMAC 720-aad NIST CAVS TC9",
898 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
899 .key = TEST_DATA_STR (
900 "\xbb\xf3\x59\x20\xfc\xab\x2c\xed\xaa\xfd\xf3\xf0\x03\x21\xf5\x44"),
901 .iv = TEST_DATA_STR ("\x2c\x7e\xe3\xff\x1d\xf8\x4f\x36\x50\xbc\x92\x98"),
902 .aad = TEST_DATA_STR (
903 "\xa7\x5f\x50\xba\x9a\x50\xf4\x87\x99\x59\x4b\x61\x95\xb3\x12\x5e\xd9\x2d"
904 "\xf7\x31\x44\xbf\xcb\x62\x4c\xe6\x73\x23\xd8\x34\xba\x1a\xfa\xf0\xdf\x4c"
905 "\x6c\x02\x2c\x11\xd4\x8b\xd7\x5c\x86\x67\x5a\x59\x27\xac\x12\x50\x03\x0f"
906 "\x72\x0f\x97\x49\x8d\x4f\xe0\x78\x7b\xae\x65\x5d\xc5\x53\x7a\xc1\xbc\xac"
907 "\x19\x8a\x89\x3f\x9a\xf7\xc2\xef\x9b\x97\x1d\xd6\x4f\x7e\x7b\x62\x60"
909 .tag = TEST_DATA_STR (
910 "\xc7\xcd\x3f\x93\x8f\x4a\xb1\x86\x42\xd8\x62\x34\xed\xfc\x17\xed"),
913 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc10) = {
914 .name = "128-GMAC 720-aad NIST CAVS TC10",
915 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
916 .key = TEST_DATA_STR (
917 "\x96\x90\xde\x66\x97\x02\xba\x72\xae\xb9\x34\xf5\xac\x50\xe0\x3c"),
918 .iv = TEST_DATA_STR ("\xda\x87\x13\xfe\x2b\x20\x58\xc4\x38\xaf\xf2\x60"),
919 .aad = TEST_DATA_STR (
920 "\xf3\x0e\xe9\x50\xda\x37\xc7\x22\x4b\x5c\x93\xe9\xa2\x9c\xaf\xdb\xf8\xe2"
921 "\x07\x0f\x65\xc2\x26\x24\x4b\x1a\x68\x34\x59\xe0\xc5\xc1\x1c\x9b\x77\xc8"
922 "\xfc\x28\x6d\x42\x98\xa5\xb9\xcd\x1f\xee\x3e\x13\xd4\x69\x0a\x88\x78\x0d"
923 "\x35\xb5\x58\xb5\xd9\xe5\x2b\x1a\x67\xfc\x88\x57\x07\x66\x91\xdc\xa7\xf5"
924 "\xfe\x8e\xf2\x20\x65\xcc\x5d\x9c\x00\x3f\xfd\x25\xeb\xe2\x3e\x61\x44"
926 .tag = TEST_DATA_STR (
927 "\x7f\x92\x91\x45\x18\xdd\xbe\x84\x2b\x06\x77\x1f\x64\xc4\x0f\x59"),
930 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc11) = {
931 .name = "128-GMAC 720-aad NIST CAVS TC11",
932 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
933 .key = TEST_DATA_STR (
934 "\xe5\xd8\xc6\xe2\xac\x69\x35\xc8\x5e\x81\xee\x0e\xf7\x23\xea\xcf"),
935 .iv = TEST_DATA_STR ("\xc7\x31\x40\xee\x90\xcc\x1d\xcf\x88\x45\x7d\xa2"),
936 .aad = TEST_DATA_STR (
937 "\xf6\xc2\x67\xa6\xae\x5c\xe3\xcf\x4b\xcd\xf5\x9c\xfd\x1f\x77\x7c\x66\x13"
938 "\x3e\x0e\xc4\x77\x27\x85\xf3\x3e\x5f\xa8\x00\xd3\x10\xb2\x4b\x57\x73\xbc"
939 "\x60\x3a\x76\xb3\x0f\xc3\x23\x28\xa8\xe4\x0f\x02\xf8\x23\xa8\x13\xa9\xe4"
940 "\xb4\xfa\xc7\x26\xe9\x92\xc1\x83\xbd\x08\x15\x11\x1c\x1d\x3a\x35\x88\x4a"
941 "\x4e\xff\x32\x02\x7b\xa6\x0d\xba\x67\x9b\x46\x9a\xf3\x1b\xc5\x0c\x05"
943 .tag = TEST_DATA_STR (
944 "\xf9\x38\xfd\x0d\x8c\x14\x8d\x81\x76\x51\x09\xdf\x66\xda\xc9\xaa"),
947 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc12) = {
948 .name = "128-GMAC 720-aad NIST CAVS TC12",
949 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
950 .key = TEST_DATA_STR (
951 "\xe2\x34\x58\xf6\xb3\x04\xc2\xd8\xfe\xb3\xde\xdd\x37\x41\xbc\x24"),
952 .iv = TEST_DATA_STR ("\x46\x19\x03\x6b\x50\xba\x01\x2f\xe5\x0b\xe1\xd7"),
953 .aad = TEST_DATA_STR (
954 "\x74\xbf\xdc\x6b\xc4\xbf\xc3\x8d\x66\x6b\x98\x5c\xfe\x04\x3c\x67\x79\x8b"
955 "\x2d\xb9\x8f\x14\x92\x68\xdb\xa2\x44\x36\xca\xb8\x3e\x9a\x91\xf2\x44\xff"
956 "\xc5\x74\x8c\x93\xf8\xdf\x33\x9a\xe2\x4b\xa4\x31\x8c\x50\xda\x01\x1a\xb3"
957 "\x68\xd3\x16\x7c\x16\xe5\x03\x30\x9b\x01\x35\x1a\x11\xf1\x4d\x06\x7c\xc6"
958 "\x76\x9b\x99\x89\xc7\xd9\x52\xe3\x31\x50\x11\xee\x2e\xa0\x34\xdb\x8c"
960 .tag = TEST_DATA_STR (
961 "\x60\x53\xab\x80\xc7\x46\x82\x1e\xc5\x0c\x97\xe5\xa1\x42\x4a\x85"),
964 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc13) = {
965 .name = "128-GMAC 720-aad NIST CAVS TC13",
966 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
967 .key = TEST_DATA_STR (
968 "\x53\x72\xac\x5d\x3b\x08\xd8\x60\x91\x91\x10\xbd\xeb\x7f\x31\xdf"),
969 .iv = TEST_DATA_STR ("\x06\xca\x97\x9d\x8c\x25\x0d\x9b\x7b\xe4\x55\x73"),
970 .aad = TEST_DATA_STR (
971 "\xe1\xf9\x58\x83\x4e\x63\xc7\x5c\x8c\x75\x8b\xaf\xaa\x2f\x25\x7e\xa5\x68"
972 "\x9d\x0d\x55\xb8\x77\xb4\xd6\x7b\x8b\x73\xc2\x5c\xe2\x4e\x9b\x09\x4b\x97"
973 "\x6d\xb9\x20\xa1\x59\x96\x8d\xa9\xd3\x3c\x51\x1a\xa8\x99\x9a\xba\x42\xb8"
974 "\xbb\x88\x6e\x65\x45\xdd\x10\x86\x93\x15\x0a\xf3\x57\x49\x6b\xb5\x89\x8b"
975 "\x4e\x8f\x72\x5d\x50\xef\x47\x4a\xfb\x83\x6a\x33\x58\xda\x22\x17\xbb"
977 .tag = TEST_DATA_STR (
978 "\x93\x38\xe1\x4f\xe0\xb0\x8a\x96\x9a\x10\x4c\x82\x85\x28\xa6\xa4"),
981 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac128_aad720_tc14) = {
982 .name = "128-GMAC 720-aad NIST CAVS TC14",
983 .alg = VNET_CRYPTO_ALG_AES_128_NULL_GMAC,
984 .key = TEST_DATA_STR (
985 "\xbf\x1c\xb4\x9e\x98\x0c\xec\x0b\x15\x3f\xe3\x57\x38\x75\xac\x6c"),
986 .iv = TEST_DATA_STR ("\x54\x26\x66\x9d\x25\x52\x40\x36\xfb\xe8\x1e\x89"),
987 .aad = TEST_DATA_STR (
988 "\xb3\x36\x94\x97\x66\xe9\x94\x8a\x7e\x6f\x36\xa2\xd3\x77\xb8\x4a\x25\xc4"
989 "\xb4\x98\x87\x94\xf3\xde\xab\x7a\xf4\xb1\x4a\x12\xda\xc6\x41\xe2\x5f\xe2"
990 "\xae\x9f\xf5\x34\x50\xac\xe1\x51\x3a\xcd\x0b\x28\x4a\x49\x0b\x45\x5f\x04"
991 "\xf4\x0a\xf9\x44\x18\xc8\x79\x2e\xc1\xa0\x98\x3f\xb1\xd9\xa3\x1d\x93\xdc"
992 "\x3e\xd2\xc7\x5e\x6a\x6c\xe0\x92\x11\x1e\xab\xad\x03\x9b\xac\x2a\x49"
994 .tag = TEST_DATA_STR (
995 "\xe2\x99\x6a\x2b\x3b\x6b\xf5\x22\x17\xcf\xc4\xd0\xf5\xbb\x35\x1b"),
998 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc0) = {
999 .name = "192-GMAC 0-aad NIST CAVS TC0",
1000 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1001 .key = TEST_DATA_STR ("\xaa\x74\x0a\xbf\xad\xcd\xa7\x79\x22\x0d\x3b\x40\x6c"
1002 "\x5d\x7e\xc0\x9a\x77\xfe\x9d\x94\x10\x45\x39"),
1003 .iv = TEST_DATA_STR ("\xab\x22\x65\xb4\xc1\x68\x95\x55\x61\xf0\x43\x15"),
1004 .tag = TEST_DATA_STR (
1005 "\xf1\x49\xe2\xb5\xf0\xad\xaa\x98\x42\xca\x5f\x45\xb7\x68\xa8\xfc"),
1008 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc1) = {
1009 .name = "192-GMAC 0-aad NIST CAVS TC1",
1010 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1011 .key = TEST_DATA_STR ("\x1b\xb1\xd6\xa3\xbf\xc7\x48\x78\x6f\x39\x51\xe4\x3c"
1012 "\x18\x05\x4b\xfc\x8c\xe6\xab\x3d\xc3\xd3\x98"),
1013 .iv = TEST_DATA_STR ("\xfe\xa5\x6a\x5c\xe5\xf7\xd4\xc8\x16\x80\x19\x5d"),
1014 .tag = TEST_DATA_STR (
1015 "\x0b\x0b\xc0\x76\x8b\x02\xf1\x26\xa2\x9b\xcb\x14\x4a\xbc\x6e\x4b"),
1018 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc2) = {
1019 .name = "192-GMAC 0-aad NIST CAVS TC2",
1020 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1021 .key = TEST_DATA_STR ("\xb6\x28\x0d\x41\xff\x79\xec\x0a\x8d\xb1\x7c\x1e\x22"
1022 "\xf4\x3c\x5f\xdc\x92\x89\x88\x46\xe6\x46\xb5"),
1023 .iv = TEST_DATA_STR ("\xc4\x78\x88\xc1\x48\xb7\xdc\x05\x5f\x99\xaa\x08"),
1024 .tag = TEST_DATA_STR (
1025 "\xe3\x05\xfa\x02\x47\x24\x60\x6e\x14\x03\x26\x95\x9b\xfc\x53\x18"),
1028 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc3) = {
1029 .name = "192-GMAC 0-aad NIST CAVS TC3",
1030 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1031 .key = TEST_DATA_STR ("\x02\x87\xa6\xe3\xf9\x00\x56\xcb\x4b\x3d\x3f\x72\x23"
1032 "\xe8\xd0\xaf\x58\xc0\x9f\x15\x6c\xb3\xb8\x05"),
1033 .iv = TEST_DATA_STR ("\xea\x0c\xd8\x6c\x79\x7c\x34\x2c\xfb\xb5\xa9\xcc"),
1034 .tag = TEST_DATA_STR (
1035 "\x54\x9e\xc0\xd0\xff\xcf\xc1\x38\x1e\xd7\x09\xc3\xea\x8e\xac\xda"),
1038 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc4) = {
1039 .name = "192-GMAC 0-aad NIST CAVS TC4",
1040 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1041 .key = TEST_DATA_STR ("\x47\x3e\xa0\xd2\x98\xf6\x45\xcb\x01\xfa\x64\x83\x7b"
1042 "\x47\x09\xb2\x83\x74\xf3\xe9\x55\xe7\xfb\xa2"),
1043 .iv = TEST_DATA_STR ("\x25\x5b\x70\x4f\x33\xad\x24\xbb\x93\xd2\x67\x3a"),
1044 .tag = TEST_DATA_STR (
1045 "\xec\xbe\xe0\x40\xa6\xba\x2b\xd2\x71\x0f\x0d\xa5\x8b\x10\x96\xc2"),
1048 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc5) = {
1049 .name = "192-GMAC 0-aad NIST CAVS TC5",
1050 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1051 .key = TEST_DATA_STR ("\x6d\xa0\xbd\x47\x43\x24\x4d\xc4\xb3\xbe\x99\x3a\xb3"
1052 "\x95\x4c\xcd\xc9\x00\x77\xff\x31\x1e\xa6\x57"),
1053 .iv = TEST_DATA_STR ("\xd1\x9f\xaf\x29\xfe\xaf\xd0\x70\x83\x94\x38\x16"),
1054 .tag = TEST_DATA_STR (
1055 "\xbd\xd8\xdb\xa9\x1c\xf8\xaf\xfc\x30\x9f\x91\xb3\xe2\x39\x18\xaa"),
1058 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc6) = {
1059 .name = "192-GMAC 0-aad NIST CAVS TC6",
1060 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1061 .key = TEST_DATA_STR ("\xc9\xaa\x36\xf1\x7b\x9e\x57\xcf\xac\xb9\x28\xe1\x34"
1062 "\x66\x00\xc2\x2d\x36\x7d\x18\x28\x54\xb4\x64"),
1063 .iv = TEST_DATA_STR ("\x6d\x12\x0c\x4a\x05\xe2\xb4\x52\xcc\x22\x13\xc4"),
1064 .tag = TEST_DATA_STR (
1065 "\xd2\x3a\x67\x29\x61\x9f\xa7\xc3\x58\x79\x4b\x63\xbf\x5e\xe8\xd7"),
1068 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc7) = {
1069 .name = "192-GMAC 0-aad NIST CAVS TC7",
1070 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1071 .key = TEST_DATA_STR ("\x5e\xde\xf8\xc4\x17\x1c\x44\x58\x7c\xbb\xf0\xf4\x2d"
1072 "\xc7\xdc\x05\xb3\x6c\x84\x91\xd6\x7c\x75\x82"),
1073 .iv = TEST_DATA_STR ("\x21\xf2\x65\xfe\x1e\x26\xff\xe4\x91\xa0\xe5\x94"),
1074 .tag = TEST_DATA_STR (
1075 "\x9e\x73\xbc\x5f\x26\xd5\xf1\xc8\x5f\xd5\xc0\xdf\x48\x63\x61\x04"),
1078 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc8) = {
1079 .name = "192-GMAC 0-aad NIST CAVS TC8",
1080 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1081 .key = TEST_DATA_STR ("\x44\x17\x16\x09\x6e\x80\xa1\xa8\x62\x86\xd2\xe1\xdf"
1082 "\x48\x94\xae\xf5\xfa\x91\x4d\x7f\x6b\xde\xda"),
1083 .iv = TEST_DATA_STR ("\xb0\x10\x72\xd8\x25\xeb\x24\xba\x3c\x0a\xbc\x95"),
1084 .tag = TEST_DATA_STR (
1085 "\x28\xaf\x88\xfe\x13\x40\x68\xe9\xc8\x44\x5a\x19\x47\x84\x3e\xd2"),
1088 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc9) = {
1089 .name = "192-GMAC 0-aad NIST CAVS TC9",
1090 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1091 .key = TEST_DATA_STR ("\xd3\x6e\x99\x04\xe0\xab\x25\x51\xc8\xa4\x12\x56\xbc"
1092 "\x66\xad\x25\x37\xf4\xd7\x8c\x56\x18\x33\x73"),
1093 .iv = TEST_DATA_STR ("\xfc\xc8\x50\xfa\xc3\x38\x79\x4f\x3a\xdf\x50\x50"),
1094 .tag = TEST_DATA_STR (
1095 "\xa8\x8c\x92\xd6\xec\x0a\xbe\x95\x0c\x14\x7a\xf3\xb6\xbf\xae\xca"),
1098 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc10) = {
1099 .name = "192-GMAC 0-aad NIST CAVS TC10",
1100 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1101 .key = TEST_DATA_STR ("\x50\x04\xb2\x3a\xa5\x4b\x45\x3c\xe7\x98\xd0\xfa\xe7"
1102 "\x07\x35\x00\xc4\xfb\xd4\x94\xc3\x50\xc5\xd0"),
1103 .iv = TEST_DATA_STR ("\x31\x11\x9a\xc3\x7e\x06\x63\x25\x05\x48\xd8\x9a"),
1104 .tag = TEST_DATA_STR (
1105 "\x1b\x47\x45\x91\x10\x76\x4a\xae\x49\xf9\x44\xaf\x0c\x74\xd1\xf3"),
1108 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc11) = {
1109 .name = "192-GMAC 0-aad NIST CAVS TC11",
1110 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1111 .key = TEST_DATA_STR ("\xd7\xfe\x59\x41\x1c\x9a\x7e\xf5\x5c\xf5\x6e\xee\xe2"
1112 "\xd9\x60\xc5\xcd\x65\x5f\x4f\xab\xce\x69\x69"),
1113 .iv = TEST_DATA_STR ("\x56\x00\x39\x99\x1d\x07\x81\x71\xb8\x6e\x2e\x36"),
1114 .tag = TEST_DATA_STR (
1115 "\x33\x25\xa6\x83\x1b\x9a\x8d\xa5\x26\xad\x3a\x9c\x30\xbf\x89\x64"),
1118 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc12) = {
1119 .name = "192-GMAC 0-aad NIST CAVS TC12",
1120 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1121 .key = TEST_DATA_STR ("\x00\x60\xc6\x4b\x6b\x16\x81\xe4\x60\x30\x0a\x17\x63"
1122 "\x39\x88\xee\xfc\x6f\xc2\xcb\xd4\x7a\xe6\xc9"),
1123 .iv = TEST_DATA_STR ("\x14\xd0\x54\x6f\xda\x5d\x9c\x36\x46\x18\x9d\xd4"),
1124 .tag = TEST_DATA_STR (
1125 "\x66\x78\x4d\x25\xfb\x39\xfa\xcb\xdd\x80\xae\xfa\x7d\xa0\xf0\x2f"),
1128 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc13) = {
1129 .name = "192-GMAC 0-aad NIST CAVS TC13",
1130 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1131 .key = TEST_DATA_STR ("\x9c\x4f\x21\xe3\x7b\x91\xfe\x41\x9e\x35\xb6\xfc\xdc"
1132 "\x4e\x70\xd0\x32\x55\x75\xf9\x11\xc1\x3b\x43"),
1133 .iv = TEST_DATA_STR ("\xf5\x7a\xf6\x28\x46\xb2\x71\xe8\x02\xd6\x70\x1f"),
1134 .tag = TEST_DATA_STR (
1135 "\x6b\x1e\x00\x9e\x6e\xdf\x78\x9f\xc9\x43\x85\x73\x4d\xd5\x7d\x2f"),
1138 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad0_tc14) = {
1139 .name = "192-GMAC 0-aad NIST CAVS TC14",
1140 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1141 .key = TEST_DATA_STR ("\x8b\xed\xa5\x6e\xe0\xe1\xe6\xd8\x09\x8b\xa2\x67\xf0"
1142 "\x9b\x96\xd8\x9a\x3a\x46\x22\xa6\x41\xe7\x9d"),
1143 .iv = TEST_DATA_STR ("\x81\x29\x96\x6d\x15\xbd\xb7\x0e\x0d\x2f\xcc\xef"),
1144 .tag = TEST_DATA_STR (
1145 "\x28\x73\xdf\x0e\x03\x54\x86\x46\x81\x46\x30\xe0\xca\xc1\xe4\xe5"),
1148 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc0) = {
1149 .name = "192-GMAC 128-aad NIST CAVS TC0",
1150 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1151 .key = TEST_DATA_STR ("\x41\xc5\xda\x86\x67\xef\x72\x52\x20\xff\xe3\x9a\xe0"
1152 "\xac\x59\x0a\xc9\xfc\xa7\x29\xab\x60\xad\xa0"),
1153 .iv = TEST_DATA_STR ("\x05\xad\x13\xa5\xe2\xc2\xab\x66\x7e\x1a\x6f\xbc"),
1154 .aad = TEST_DATA_STR (
1155 "\x8b\x5c\x12\x4b\xef\x6e\x2f\x0f\xe4\xd8\xc9\x5c\xd5\xfa\x4c\xf1"),
1156 .tag = TEST_DATA_STR (
1157 "\x20\x4b\xdb\x1b\xd6\x21\x54\xbf\x08\x92\x2a\xaa\x54\xee\xd7\x05"),
1160 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc1) = {
1161 .name = "192-GMAC 128-aad NIST CAVS TC1",
1162 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1163 .key = TEST_DATA_STR ("\xae\xf7\x60\xf0\xcb\x88\x11\xf4\xab\x4a\x05\xfa\xa3"
1164 "\x5f\xe8\xb9\x85\x4a\xde\x54\x8e\x04\x0e\x7f"),
1165 .iv = TEST_DATA_STR ("\xd5\xda\xed\xc1\xd4\x95\x9a\x5d\x74\x4b\xc5\xf2"),
1166 .aad = TEST_DATA_STR (
1167 "\xae\xa8\xce\x76\xe3\xcf\x40\xd4\x73\xf6\x1a\x08\xd5\x9e\x53\xf5"),
1168 .tag = TEST_DATA_STR (
1169 "\x92\x6c\x61\xde\xf0\x2e\xd3\x0e\xd1\x58\xe3\x55\xac\x5d\x57\x10"),
1172 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc2) = {
1173 .name = "192-GMAC 128-aad NIST CAVS TC2",
1174 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1175 .key = TEST_DATA_STR ("\x12\x00\x0b\x16\x46\x22\x25\x44\x6c\xfe\x6e\x80\xd8"
1176 "\x4d\x47\x1d\xbc\x9a\xa3\xf4\x78\xd4\x65\x83"),
1177 .iv = TEST_DATA_STR ("\x6c\x88\x3c\xb8\xf9\xff\x7e\x57\x90\x34\x52\x4e"),
1178 .aad = TEST_DATA_STR (
1179 "\x23\x27\x13\xb8\xde\x07\x44\xb0\x82\x51\x54\x9a\xaa\x19\x15\x4f"),
1180 .tag = TEST_DATA_STR (
1181 "\x20\x94\xf4\x98\x9f\x85\x0a\xf3\xbb\xfc\x48\xb1\x89\x5e\xc1\xde"),
1184 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc3) = {
1185 .name = "192-GMAC 128-aad NIST CAVS TC3",
1186 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1187 .key = TEST_DATA_STR ("\xb3\xe8\xa0\xd0\x5d\xbc\xd4\x53\xbd\xc8\xec\x09\x75"
1188 "\xf2\xbb\x06\x3a\x21\xd0\x39\x1d\xc9\x46\x45"),
1189 .iv = TEST_DATA_STR ("\x3f\xaf\x8b\xf9\x1d\x4d\x95\xa7\xf9\x62\x8a\x65"),
1190 .aad = TEST_DATA_STR (
1191 "\x6e\x69\x26\x61\x76\x14\xbe\xf6\x15\x3a\x4c\xe6\x29\xa9\x1b\x69"),
1192 .tag = TEST_DATA_STR (
1193 "\xac\xbb\x55\xb7\x10\x2e\x86\x17\x75\x42\xbc\x5a\x7f\xc7\x17\xa1"),
1196 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc4) = {
1197 .name = "192-GMAC 128-aad NIST CAVS TC4",
1198 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1199 .key = TEST_DATA_STR ("\xdf\x91\x67\x43\xd0\x21\x80\xa2\x88\x80\xbc\x45\xe0"
1200 "\xd0\xb7\x37\x47\x74\x69\x26\x01\xeb\x55\x56"),
1201 .iv = TEST_DATA_STR ("\x48\x31\x18\x9f\x72\x75\x17\xd7\xf4\x22\xf1\x2f"),
1202 .aad = TEST_DATA_STR (
1203 "\x4a\x4e\x9b\x8c\xda\x53\x57\xf9\x5c\x37\x26\x48\x64\xe3\x89\xa9"),
1204 .tag = TEST_DATA_STR (
1205 "\xde\x3b\x10\xaf\x6d\x8c\x1e\x3c\xd5\x80\x20\xce\xac\x9c\x5f\x41"),
1208 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc5) = {
1209 .name = "192-GMAC 128-aad NIST CAVS TC5",
1210 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1211 .key = TEST_DATA_STR ("\xcd\x58\xa2\xca\x49\x5b\x28\x14\x79\x61\x61\x91\x1a"
1212 "\xf0\x82\xa8\x52\xc8\xcb\xd3\xfe\x1c\xed\xb4"),
1213 .iv = TEST_DATA_STR ("\x78\x66\xd4\x58\x8a\xce\x52\xed\x1d\x07\xd3\x46"),
1214 .aad = TEST_DATA_STR (
1215 "\xe0\xe6\xf8\x5c\x52\xab\xa6\x87\x3d\x7d\xb5\x0d\x80\x2e\xd6\x16"),
1216 .tag = TEST_DATA_STR (
1217 "\x0d\x2b\xd7\xc5\x1f\x7f\x88\x16\x20\xbf\x50\x8f\x4b\x66\x2d\xa6"),
1220 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc6) = {
1221 .name = "192-GMAC 128-aad NIST CAVS TC6",
1222 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1223 .key = TEST_DATA_STR ("\xd8\x0f\x1f\x01\xe6\x6c\xa7\x04\x1f\x12\xa9\xde\xc4"
1224 "\x6c\xed\xfd\xf7\x5a\xef\x66\x4c\x58\xb2\x33"),
1225 .iv = TEST_DATA_STR ("\x24\x08\xb3\x5e\x9b\xa6\x93\xe0\x89\x31\xf7\xf3"),
1226 .aad = TEST_DATA_STR (
1227 "\x28\x03\x5a\x77\xe8\xb1\xdf\x98\x20\x9b\xd5\x29\xe4\x72\xbe\x1c"),
1228 .tag = TEST_DATA_STR (
1229 "\xc1\xa2\x9c\xb9\x1f\x13\x12\xb8\xc6\xc8\x6a\xd8\x33\xa9\x73\x74"),
1232 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc7) = {
1233 .name = "192-GMAC 128-aad NIST CAVS TC7",
1234 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1235 .key = TEST_DATA_STR ("\x58\x29\x1d\xe8\x38\xf4\x7f\x6b\x30\xf2\xeb\x4f\x55"
1236 "\x6b\xf2\xfd\x81\xb8\x49\xb9\xe8\x76\xf0\x48"),
1237 .iv = TEST_DATA_STR ("\xdb\x4f\xa1\xcc\xc0\xed\x55\xdb\xe5\x33\xee\x90"),
1238 .aad = TEST_DATA_STR (
1239 "\x57\x6b\x6e\xaf\x76\x21\x1b\xe4\xd5\x40\x36\x3b\x23\xac\x29\x9d"),
1240 .tag = TEST_DATA_STR (
1241 "\x9d\x3f\xc9\x6b\xa6\xcc\x39\xaa\x30\x74\xb0\x1e\xe2\xcb\xa4\xd4"),
1244 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc8) = {
1245 .name = "192-GMAC 128-aad NIST CAVS TC8",
1246 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1247 .key = TEST_DATA_STR ("\xab\x3c\x5c\x4a\x37\x2e\xc0\x5f\xeb\x74\x23\xa5\x55"
1248 "\xed\x6c\xc6\x6c\x5d\x3b\xd8\x55\x7e\xff\xa7"),
1249 .iv = TEST_DATA_STR ("\xfb\x79\x7a\x5f\xa6\x3a\x38\x88\x0e\xd3\x80\xc6"),
1250 .aad = TEST_DATA_STR (
1251 "\x67\x63\xc5\x0c\x5d\xe0\xdb\x7f\x67\x5f\xe1\x6d\x0a\x5d\x5a\x79"),
1252 .tag = TEST_DATA_STR (
1253 "\x6a\xe6\xc7\x8d\xe5\xdf\xea\x5c\xb3\xe9\x6e\xe9\x59\x71\x37\x41"),
1256 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc9) = {
1257 .name = "192-GMAC 128-aad NIST CAVS TC9",
1258 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1259 .key = TEST_DATA_STR ("\x86\xcb\xf5\x79\xe9\xb0\x77\x0e\xc2\xa1\x37\x21\x8e"
1260 "\x9f\xf7\x1a\xeb\xf0\x51\xf6\x4a\x31\x8c\x74"),
1261 .iv = TEST_DATA_STR ("\x4d\xf9\xe3\xdd\x72\x0d\xce\x9e\xcc\xb3\x81\x76"),
1262 .aad = TEST_DATA_STR (
1263 "\xba\xbf\x21\xb7\x2e\x05\x67\xf2\x2e\x6f\xb1\x72\x11\x5b\x61\x2f"),
1264 .tag = TEST_DATA_STR (
1265 "\x51\x86\xbd\x05\x73\x93\x81\x1b\xc9\xc2\x8e\x8e\xb7\x71\x4b\x32"),
1268 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc10) = {
1269 .name = "192-GMAC 128-aad NIST CAVS TC10",
1270 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1271 .key = TEST_DATA_STR ("\xfd\x39\xed\xc5\x1d\xf0\x8e\x69\xf3\x97\x68\xdd\xff"
1272 "\x3f\xa9\xa7\xf6\x76\x42\xd7\x3b\x2c\x33\xdd"),
1273 .iv = TEST_DATA_STR ("\xf0\xf8\x07\x50\x24\xbb\x50\x97\x82\x79\xc5\x37"),
1274 .aad = TEST_DATA_STR (
1275 "\x7c\x95\xd4\xa5\x59\x15\xcf\x13\x7d\x3f\xa2\xbc\x0b\x9d\x5e\x99"),
1276 .tag = TEST_DATA_STR (
1277 "\xe9\x61\xe7\x9c\xd3\x49\x46\x1a\x14\x3b\x13\xe6\x2c\xf6\x9d\x3f"),
1280 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc11) = {
1281 .name = "192-GMAC 128-aad NIST CAVS TC11",
1282 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1283 .key = TEST_DATA_STR ("\x31\xc4\x45\x71\x32\x99\x96\x28\x7e\x98\xfc\x3d\xc7"
1284 "\x18\x15\x68\xcd\x48\xa3\x35\xfd\x37\x97\x2f"),
1285 .iv = TEST_DATA_STR ("\xb2\x34\x1f\xaa\x66\x1d\xc0\x49\x25\xf5\xa6\xb5"),
1286 .aad = TEST_DATA_STR (
1287 "\x2a\x0e\x83\xf4\xff\x96\x7e\xdd\xdc\x09\xdd\xc4\xc1\x69\xd5\x5d"),
1288 .tag = TEST_DATA_STR (
1289 "\x9b\xd9\x1d\x5d\xf6\x8a\xfc\x6d\x45\xbe\xbd\xe9\x0f\xcd\xb1\xee"),
1292 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc12) = {
1293 .name = "192-GMAC 128-aad NIST CAVS TC12",
1294 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1295 .key = TEST_DATA_STR ("\x23\xf9\x54\x34\x4d\x93\xa2\x7d\x5a\xbb\xb1\x92\x0a"
1296 "\xd8\xe8\x9a\x05\x10\x67\x21\x71\x31\x64\x48"),
1297 .iv = TEST_DATA_STR ("\x56\x0f\x42\x9c\x3d\xf4\x31\x41\x3e\x08\x6a\x75"),
1298 .aad = TEST_DATA_STR (
1299 "\x2d\x78\x32\xa2\xc4\x6b\x63\x44\xfe\x35\xf1\x48\xb5\xbf\x64\x1d"),
1300 .tag = TEST_DATA_STR (
1301 "\x6d\xd3\x5d\x46\x8e\xfd\xc9\xc9\x73\x97\x82\x33\x20\xc9\xb0\x69"),
1304 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc13) = {
1305 .name = "192-GMAC 128-aad NIST CAVS TC13",
1306 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1307 .key = TEST_DATA_STR ("\x11\xfa\xfc\xf1\x40\x9c\x57\x52\x05\x3d\x5c\xd1\x07"
1308 "\x70\xce\xf2\x70\x77\xdf\x64\x55\xfb\x27\x3b"),
1309 .iv = TEST_DATA_STR ("\xa6\x90\xc8\x70\x54\x65\x8e\xdc\x49\x94\x14\xd8"),
1310 .aad = TEST_DATA_STR (
1311 "\xd1\x51\x2c\x14\x46\x12\xb4\x5a\x77\x42\x65\x88\xc1\xc0\x25\x4d"),
1312 .tag = TEST_DATA_STR (
1313 "\xb1\x40\x66\x1e\xa4\xa7\x93\xbc\x67\xda\xa0\xfa\x00\x9a\x18\x5b"),
1316 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad128_tc14) = {
1317 .name = "192-GMAC 128-aad NIST CAVS TC14",
1318 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1319 .key = TEST_DATA_STR ("\xd7\x1e\x1c\x94\xb2\x11\x84\x08\x8e\x6a\x63\xf3\xca"
1320 "\xba\x9a\x9c\xcf\x4a\x15\xf0\xbc\x53\xfb\x02"),
1321 .iv = TEST_DATA_STR ("\x82\x7c\xd7\x65\xa6\xdc\x8e\x4d\xe2\xe7\x66\x49"),
1322 .aad = TEST_DATA_STR (
1323 "\x4f\xc6\x66\xa1\xcf\x04\xcf\xdb\x0f\x5f\x68\x1b\x6f\x19\x86\xbb"),
1324 .tag = TEST_DATA_STR (
1325 "\x9c\xf4\x07\xee\x84\x47\x6d\x54\x8e\x05\x93\x9c\x3b\xeb\x9f\x53"),
1328 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc0) = {
1329 .name = "192-GMAC 160-aad NIST CAVS TC0",
1330 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1331 .key = TEST_DATA_STR ("\x09\x3e\xf7\x55\x1e\xbb\xff\x8e\xb0\xc0\xa8\xa4\xa6"
1332 "\x2b\x19\x8f\x0c\x2e\x83\x8d\xe1\x0e\xee\xee"),
1333 .iv = TEST_DATA_STR ("\xe6\x56\xe9\x39\x30\xed\x52\x10\xba\x3f\x03\x22"),
1334 .aad = TEST_DATA_STR ("\x3d\xa2\x2d\xac\xfd\x11\xb2\x1b\x0a\x71\x31\x57\xf6"
1335 "\x0a\xec\x0c\xd2\x2f\x1a\xdd"),
1336 .tag = TEST_DATA_STR (
1337 "\x1b\x2d\x27\x64\x57\x3e\x20\xae\x64\x0b\xf2\x9d\x48\xe5\xfe\x05"),
1340 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc1) = {
1341 .name = "192-GMAC 160-aad NIST CAVS TC1",
1342 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1343 .key = TEST_DATA_STR ("\x08\x63\xe6\xe0\xe9\x76\x3a\x30\x21\xed\x49\x45\x81"
1344 "\x2b\xec\xf2\x7b\x82\x20\xd4\xb3\x29\x73\x57"),
1345 .iv = TEST_DATA_STR ("\xad\xb4\xe4\xe6\x29\xcf\x4a\x86\x54\x0e\xfe\x1e"),
1346 .aad = TEST_DATA_STR ("\x58\x14\x24\xd6\x33\xf3\xf9\x69\xd1\xb4\xf8\x35\x19"
1347 "\x7a\x74\x0a\x69\x5b\x2c\x3b"),
1348 .tag = TEST_DATA_STR (
1349 "\x79\x47\x52\x19\xe6\x34\x9b\x68\xac\x71\x27\xfb\x55\x11\xe9\x20"),
1352 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc2) = {
1353 .name = "192-GMAC 160-aad NIST CAVS TC2",
1354 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1355 .key = TEST_DATA_STR ("\xb4\x33\x29\x9e\x54\xca\xcc\x5e\x6f\x7b\x34\xc0\xa1"
1356 "\xe0\x55\x52\x24\xa6\xa7\x66\xf8\xae\x21\x01"),
1357 .iv = TEST_DATA_STR ("\x8f\x36\x11\xd4\xf6\x97\xae\x52\x48\x25\xd2\x39"),
1358 .aad = TEST_DATA_STR ("\xee\xbc\x05\x29\x17\xef\xb0\x31\x65\x0f\x38\xce\x70"
1359 "\x4e\x92\xd4\xbf\x59\xf9\x41"),
1360 .tag = TEST_DATA_STR (
1361 "\x91\xd1\x76\x2a\x7f\x19\xfe\x1e\x75\xdc\xa5\x1e\xc8\x5c\xe3\x19"),
1364 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc3) = {
1365 .name = "192-GMAC 160-aad NIST CAVS TC3",
1366 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1367 .key = TEST_DATA_STR ("\xf3\x73\xef\xaf\xb2\x39\x44\x55\xe0\x64\xb4\x2d\x23"
1368 "\x4d\x21\xbd\xf4\x52\xdf\x03\x64\x52\xcf\x2c"),
1369 .iv = TEST_DATA_STR ("\xd6\x63\x86\x02\x84\xd5\xb8\x33\x32\xa3\xa0\x25"),
1370 .aad = TEST_DATA_STR ("\xee\x1e\x7f\x47\x29\x85\xa6\x39\x74\x39\xb2\x8a\x52"
1371 "\x6b\x6c\xed\xf5\x95\x3a\xb1"),
1372 .tag = TEST_DATA_STR (
1373 "\xd8\x19\x77\x43\x49\xbf\x96\x3a\x9d\xf7\xed\x46\x26\x1f\xc5\xca"),
1376 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc4) = {
1377 .name = "192-GMAC 160-aad NIST CAVS TC4",
1378 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1379 .key = TEST_DATA_STR ("\xd5\x04\x53\xfd\x22\x3b\x11\x0d\x2d\xf3\x12\xc4\x81"
1380 "\x7d\x97\x6a\x59\x19\x4a\xda\x77\x7f\x97\x41"),
1381 .iv = TEST_DATA_STR ("\x6a\x88\xcd\x46\x85\x86\xcb\x22\x7b\x92\x85\x40"),
1382 .aad = TEST_DATA_STR ("\x3d\x7e\x66\x93\xe1\x63\x9d\xed\x24\x2e\x3c\x0b\x93"
1383 "\x1b\x32\xe7\x2a\xdc\x70\x5f"),
1384 .tag = TEST_DATA_STR (
1385 "\xb3\x88\xde\x6f\x83\x48\xee\xea\xda\x78\xf6\xe9\xe0\x04\xdb\xe5"),
1388 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc5) = {
1389 .name = "192-GMAC 160-aad NIST CAVS TC5",
1390 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1391 .key = TEST_DATA_STR ("\xe6\xe6\x86\xc7\xbe\xf0\x1b\x17\x04\xab\x1b\xf1\x14"
1392 "\x99\x0c\xea\xad\x41\xbe\x84\x80\x17\x74\x60"),
1393 .iv = TEST_DATA_STR ("\xbe\x55\x59\xdc\x38\xe9\x79\x4c\x24\xac\x7a\x83"),
1394 .aad = TEST_DATA_STR ("\xd8\x21\x8c\xc4\x56\xa5\x4f\x79\x1a\x3f\xd8\x78\x90"
1395 "\x89\x09\x46\x35\x3b\x9b\xfb"),
1396 .tag = TEST_DATA_STR (
1397 "\xe3\x94\xe6\xff\x9e\x9a\x75\x40\xb7\x42\xff\xf8\xdc\x92\x3a\x59"),
1400 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc6) = {
1401 .name = "192-GMAC 160-aad NIST CAVS TC6",
1402 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1403 .key = TEST_DATA_STR ("\x85\xba\x70\xce\x5a\xa7\xcb\x81\x95\x70\x74\xfa\xb4"
1404 "\xdf\x72\xc4\x6c\x9e\xc4\x46\x6b\xa0\xb4\x8a"),
1405 .iv = TEST_DATA_STR ("\xb9\x1d\x11\xf7\x2f\x6c\x5f\xab\x56\x53\x5e\x5c"),
1406 .aad = TEST_DATA_STR ("\x4e\x8a\xfc\x98\xf8\x27\x20\xcd\x8e\x35\xea\x8f\x8a"
1407 "\xff\x20\xd2\x39\xde\x14\x07"),
1408 .tag = TEST_DATA_STR (
1409 "\x41\x3f\xc7\x28\x3d\x57\x8b\xaa\x1e\x62\x13\xf5\x41\x59\x04\x62"),
1412 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc7) = {
1413 .name = "192-GMAC 160-aad NIST CAVS TC7",
1414 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1415 .key = TEST_DATA_STR ("\x7e\xd5\xb2\xa4\xbf\x74\x27\xdb\xb2\xf6\x4e\xfb\xcd"
1416 "\x06\x76\xab\x91\x2f\x12\xaf\xae\x85\xf8\xf7"),
1417 .iv = TEST_DATA_STR ("\x1a\x06\xb0\xa2\x07\xb8\x9c\x19\x3c\xfb\xdb\x20"),
1418 .aad = TEST_DATA_STR ("\x93\xbf\x5a\xbe\x39\x7e\xe6\xa9\x79\xc3\x88\x7c\xb5"
1419 "\x7a\xf0\x1d\xf8\x3d\xf2\x91"),
1420 .tag = TEST_DATA_STR (
1421 "\x10\xca\x8e\xe1\x68\x70\xb9\x51\xc9\x18\x0e\xa1\x85\x36\x50\xbb"),
1424 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc8) = {
1425 .name = "192-GMAC 160-aad NIST CAVS TC8",
1426 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1427 .key = TEST_DATA_STR ("\x28\x1c\x87\xcc\x27\x80\x53\x75\x78\x6e\x11\x78\xd1"
1428 "\xb0\xe2\x2a\x7a\x85\x46\xcf\x6f\x2f\xe1\x2b"),
1429 .iv = TEST_DATA_STR ("\xb9\xc5\x70\x39\x2f\x02\x53\x89\x05\x5c\x9c\x35"),
1430 .aad = TEST_DATA_STR ("\x54\xc8\x26\xa0\xca\x02\x76\x33\x51\x59\xa7\x54\x2e"
1431 "\x22\x8c\x3d\xae\xbd\x38\x9a"),
1432 .tag = TEST_DATA_STR (
1433 "\x56\x0a\x32\x1c\xff\x6a\x8c\x1e\xac\x06\x01\x49\xc5\x95\x5f\xf8"),
1436 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc9) = {
1437 .name = "192-GMAC 160-aad NIST CAVS TC9",
1438 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1439 .key = TEST_DATA_STR ("\x90\xa1\x96\xe8\xc5\xd5\x77\xa6\xc5\x14\x38\x1b\xad"
1440 "\xdb\xba\x7e\xd8\xe4\xd1\xe0\xa7\x96\x1f\x32"),
1441 .iv = TEST_DATA_STR ("\x1c\x2c\x7c\x8b\xd0\x15\x33\x68\xb2\xa8\xc3\x49"),
1442 .aad = TEST_DATA_STR ("\x0f\x40\x9b\xa3\x68\xc2\xef\x04\x33\xb9\xbd\x96\xff"
1443 "\x73\x51\x1f\xce\x63\x93\x18"),
1444 .tag = TEST_DATA_STR (
1445 "\x7a\x7a\xc7\x70\xa5\xa4\xc6\x6b\x78\x7a\xa3\xa1\x26\x7b\xa3\x45"),
1448 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc10) = {
1449 .name = "192-GMAC 160-aad NIST CAVS TC10",
1450 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1451 .key = TEST_DATA_STR ("\x36\x37\x62\x07\xa2\xc1\xf2\x5e\xc2\x0f\x62\x1b\x06"
1452 "\xdb\x26\x0c\x20\xbe\x7b\x39\xe7\x0b\x89\x3c"),
1453 .iv = TEST_DATA_STR ("\xc9\xe9\x2a\x66\x62\xa7\xd6\xbb\x84\x94\x5c\x95"),
1454 .aad = TEST_DATA_STR ("\xb2\xcd\xe6\x02\x9e\x0f\x93\x30\x92\xe9\x74\x74\xdc"
1455 "\x8b\x0b\x17\x4d\xe5\x53\x52"),
1456 .tag = TEST_DATA_STR (
1457 "\x80\x3b\x69\x53\x80\x1b\xf9\x79\x09\x64\x37\xe0\x2f\x3c\xb1\x31"),
1460 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc11) = {
1461 .name = "192-GMAC 160-aad NIST CAVS TC11",
1462 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1463 .key = TEST_DATA_STR ("\x68\xe6\x21\xb4\x76\xdd\x7d\xda\xda\x51\x56\xc0\xc5"
1464 "\x65\xc4\xc0\x05\xbc\xf9\x93\x08\x2a\x6c\x68"),
1465 .iv = TEST_DATA_STR ("\xac\x0b\xd5\x9b\xf7\xb9\x34\x5d\x01\xec\x7d\x99"),
1466 .aad = TEST_DATA_STR ("\xe3\x18\xce\x39\xbe\xae\x93\x72\xde\xe2\xba\xc3\x56"
1467 "\x8c\xa3\x7e\xf8\x71\x4b\x1f"),
1468 .tag = TEST_DATA_STR (
1469 "\xf8\x42\x6c\x2c\x39\x0a\x5b\xd5\xde\x2f\x4f\x31\xb8\x9a\x8f\xf8"),
1472 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc12) = {
1473 .name = "192-GMAC 160-aad NIST CAVS TC12",
1474 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1475 .key = TEST_DATA_STR ("\xe5\x76\x06\xe3\x9d\xc3\x6d\xca\xcc\xfb\x3a\x13\x23"
1476 "\xb5\xc1\x80\x3c\xea\x6d\x76\xcd\x96\x44\x18"),
1477 .iv = TEST_DATA_STR ("\xf6\x35\xc6\xe1\x2b\xf9\x39\x46\x5c\xd7\x10\x45"),
1478 .aad = TEST_DATA_STR ("\xdf\x1b\xef\x3c\xeb\x77\xb6\x7f\xf6\xdc\x7a\x16\x63"
1479 "\xc5\x72\xfb\x00\x22\x05\x59"),
1480 .tag = TEST_DATA_STR (
1481 "\x59\xd5\xf4\x63\x40\x2a\x08\x95\x4f\xa9\xd1\x65\x44\x9d\x95\x1c"),
1484 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc13) = {
1485 .name = "192-GMAC 160-aad NIST CAVS TC13",
1486 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1487 .key = TEST_DATA_STR ("\x09\xab\x6b\x91\x2e\x3b\x17\x4d\xea\x38\xa7\x27\x0b"
1488 "\x36\xc3\x88\xe1\x08\xbc\x76\x0b\xa4\x81\xbf"),
1489 .iv = TEST_DATA_STR ("\x13\x2e\x01\x26\x95\xf1\xe9\xb7\x99\x50\x5c\xef"),
1490 .aad = TEST_DATA_STR ("\xd7\x91\xd5\x0c\xd3\x13\xdb\x40\x60\x75\xc9\x7b\x12"
1491 "\x8b\x07\x8d\xa5\xb6\x8c\xa1"),
1492 .tag = TEST_DATA_STR (
1493 "\x72\x15\x2f\x6d\x3a\x95\x0d\x32\x3f\xd6\x19\xbe\x3d\x5b\x0c\x6f"),
1496 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad160_tc14) = {
1497 .name = "192-GMAC 160-aad NIST CAVS TC14",
1498 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1499 .key = TEST_DATA_STR ("\xc1\x3e\xf7\x2b\x80\xac\xfd\x6a\xdc\x0b\xb8\xf0\x37"
1500 "\x72\x23\xcb\xa7\x33\x93\x9b\x50\x58\xf3\x36"),
1501 .iv = TEST_DATA_STR ("\xc4\x57\x6f\x76\xb3\x8c\x9c\x91\xbb\x08\xb8\x3f"),
1502 .aad = TEST_DATA_STR ("\x3f\x89\x65\x17\x15\x6c\xde\x96\xb2\x39\x09\xf2\x98"
1503 "\xa7\x6c\xde\x59\x04\x7a\xe0"),
1504 .tag = TEST_DATA_STR (
1505 "\xba\x43\xda\x6f\x40\xaa\x9c\x3a\x66\xdc\x37\x2e\x3b\x3f\x94\x0c"),
1508 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc0) = {
1509 .name = "192-GMAC 384-aad NIST CAVS TC0",
1510 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1511 .key = TEST_DATA_STR ("\xa8\x3a\xc8\x25\x54\xd5\xc3\x47\x5d\x03\x51\x4a\x94"
1512 "\x21\xc4\x09\xcc\xad\x9b\xc4\x4a\x5f\x83\x07"),
1513 .iv = TEST_DATA_STR ("\x38\xaa\x26\xf7\xb6\x8d\xc6\x74\xca\xe9\x0b\x84"),
1514 .aad = TEST_DATA_STR (
1515 "\x03\x97\xa7\x14\x93\x9f\x55\xc1\x8d\xa0\x13\x27\x13\x48\xbd\x23\x1e\x14"
1516 "\xd0\x7f\x39\x7c\xa0\xdb\x20\xd3\xa7\x7c\x42\xf3\xf4\x1c\x25\xc6\x4f\xd9"
1517 "\x3b\xd3\xbd\x9f\xcd\x35\x5a\x0b\xde\x4f\x19\x61"),
1518 .tag = TEST_DATA_STR (
1519 "\xe4\x8b\x36\xdc\x68\x3f\x32\xdb\xae\x3b\x13\xc3\xad\xb1\xb7\x89"),
1522 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc1) = {
1523 .name = "192-GMAC 384-aad NIST CAVS TC1",
1524 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1525 .key = TEST_DATA_STR ("\x5f\x1a\x7f\x44\x39\xf8\xc7\xbc\x30\x1e\xa5\xb8\x95"
1526 "\x5f\x3c\x67\x98\x26\x3b\xe4\x7d\xac\xe3\x9c"),
1527 .iv = TEST_DATA_STR ("\x2d\xcc\x19\xde\x07\x65\x5f\x72\x43\xfa\xb0\x45"),
1528 .aad = TEST_DATA_STR (
1529 "\x7e\x76\x78\x36\xe5\xd1\x6d\xfc\x44\x26\x23\x7e\xfc\x91\x4f\xc4\x0b\xfe"
1530 "\x59\x4b\x54\x94\x6e\xd5\xf2\x00\x20\x3c\x93\xce\x58\x5c\x4c\xb4\xa2\x4a"
1531 "\x33\x64\xcc\xb9\x80\x3a\x64\xac\x4e\x38\xde\x2d"),
1532 .tag = TEST_DATA_STR (
1533 "\x9d\x34\xef\xdb\x37\x01\x49\x49\x13\xe3\x86\x36\x81\xa9\xb4\x02"),
1536 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc2) = {
1537 .name = "192-GMAC 384-aad NIST CAVS TC2",
1538 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1539 .key = TEST_DATA_STR ("\x8d\xce\x48\xb9\x16\x91\x63\x83\x5a\x0b\x6a\x4a\x62"
1540 "\x7c\x29\x03\x0b\x5b\xef\x3f\xf3\xba\xe1\xca"),
1541 .iv = TEST_DATA_STR ("\xa0\x0d\x44\x38\xe9\x6e\x7a\x22\xe5\x72\x65\xce"),
1542 .aad = TEST_DATA_STR (
1543 "\x7c\xc8\x27\x3e\x62\x59\x55\x83\xd4\x27\xbb\xf4\x59\x2c\xd2\xc2\x52\x5a"
1544 "\x28\xbb\x9e\x14\x3a\x9c\x9a\xf0\x63\x41\x10\xf2\xb6\x9c\xcb\x4e\xc0\x0c"
1545 "\xc2\xaf\xaa\x86\xc9\x86\xd3\xef\x2c\x44\x76\xa9"),
1546 .tag = TEST_DATA_STR (
1547 "\xe2\x76\xfe\xda\x74\x32\xfa\xa0\xe4\xab\xd4\x6d\x59\x2b\x8f\xee"),
1550 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc3) = {
1551 .name = "192-GMAC 384-aad NIST CAVS TC3",
1552 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1553 .key = TEST_DATA_STR ("\x0e\xce\x58\x69\x34\x92\x86\xef\x12\x2b\xb4\xf0\x5a"
1554 "\x0c\x0d\xf5\xc7\xc6\xdf\x49\x60\x79\x20\xff"),
1555 .iv = TEST_DATA_STR ("\x8d\xa2\x36\x71\xb7\x2e\xc6\xaa\xab\x27\x46\x3e"),
1556 .aad = TEST_DATA_STR (
1557 "\x95\x82\x4e\xa2\xb8\x0c\x4e\x97\x91\x1f\xff\xa3\x9e\x3f\x0c\x21\xfc\x81"
1558 "\xed\xd2\x68\x8a\x5a\x1e\x58\x3b\xa3\x62\xb4\x7b\x97\x97\x31\xbb\x25\x6c"
1559 "\xff\x1a\x47\x9f\x27\xa3\x12\x40\x89\x1e\x57\xe2"),
1560 .tag = TEST_DATA_STR (
1561 "\xfb\xd7\x57\xb8\x96\x3b\xbb\x32\x6c\xda\x80\xf3\xd5\x08\xf8\x9b"),
1564 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc4) = {
1565 .name = "192-GMAC 384-aad NIST CAVS TC4",
1566 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1567 .key = TEST_DATA_STR ("\x0a\xbd\x4a\xac\x60\x34\x31\x26\x17\x38\x61\x53\x4e"
1568 "\x8f\x46\xfc\x46\x0f\x8f\x3e\x21\x69\xf5\xc5"),
1569 .iv = TEST_DATA_STR ("\x5e\x46\xfe\x13\xe6\xc2\x44\xe8\x34\x19\x8d\x3d"),
1570 .aad = TEST_DATA_STR (
1571 "\x62\x48\x64\xae\xa6\x0c\x08\xe9\xa1\x3a\x8a\x9c\x09\x44\x57\xc9\xda\x22"
1572 "\x26\x24\x7a\x77\x1a\xae\xd5\x97\xc5\xe2\xcb\xc3\xd6\xe6\x17\x9d\xef\x86"
1573 "\xc9\xd0\x4f\x1f\x6e\x8c\xe5\xb9\x9f\x78\x9e\x3b"),
1574 .tag = TEST_DATA_STR (
1575 "\x67\x74\x56\xc4\x84\xab\x6b\xb1\xc3\x22\xf1\x00\xff\x9f\x8c\x43"),
1578 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc5) = {
1579 .name = "192-GMAC 384-aad NIST CAVS TC5",
1580 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1581 .key = TEST_DATA_STR ("\x82\xea\xe3\xc1\xde\xac\x84\x84\xe9\x9e\x97\xe6\x97"
1582 "\xc7\xa4\x2d\xb0\x26\xd7\x11\xc3\xdb\x60\x0e"),
1583 .iv = TEST_DATA_STR ("\x8f\xa3\xf1\x6b\xb6\xce\xf8\x75\x2c\x8e\x31\xef"),
1584 .aad = TEST_DATA_STR (
1585 "\x61\xe8\xf8\x8a\xe8\xc0\x55\xf7\xd9\xe6\x7e\x0f\x1d\x49\x93\xa3\xe5\xf7"
1586 "\x3f\x36\x62\xdc\x1c\xa8\x88\x66\x33\xab\x9b\x2a\x8c\x69\x28\xdb\x5b\x7a"
1587 "\x30\xfd\xec\xaa\x29\xdb\xbe\x01\xfd\xb1\x20\xbb"),
1588 .tag = TEST_DATA_STR (
1589 "\x7d\xe2\x16\x8f\x5c\x43\x4c\x06\xb7\xc4\xaf\x15\x37\x27\x45\x22"),
1592 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc6) = {
1593 .name = "192-GMAC 384-aad NIST CAVS TC6",
1594 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1595 .key = TEST_DATA_STR ("\x04\x2d\x69\x65\x4b\x27\xa1\x38\x0a\xde\xcc\x9b\xa7"
1596 "\x50\x90\xf1\xca\x42\x2b\x72\x5a\x47\x93\xe0"),
1597 .iv = TEST_DATA_STR ("\x87\xdb\x23\x7e\x9b\xf6\xcc\xbd\x08\x69\xf0\xf9"),
1598 .aad = TEST_DATA_STR (
1599 "\x49\x6e\xff\x4c\x74\xac\x08\xbc\xcd\xec\xec\x7a\x49\x40\xdd\xbe\xb8\x0b"
1600 "\xa1\xa5\x58\x24\x7e\xaa\x18\xa4\x66\x72\xd8\x74\xd7\xde\x6d\xd3\xa5\x77"
1601 "\x9e\xbc\xd9\x84\xc2\x29\x91\x3d\x10\xf6\xf7\xcc"),
1602 .tag = TEST_DATA_STR (
1603 "\xba\x06\xea\xab\x5b\x16\x66\x20\xef\xc8\x07\x2f\xa3\xa5\xb4\xb8"),
1606 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc7) = {
1607 .name = "192-GMAC 384-aad NIST CAVS TC7",
1608 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1609 .key = TEST_DATA_STR ("\xc1\x79\x23\x25\x76\xee\xb3\x8c\x98\xf8\x47\x87\x3d"
1610 "\x00\x4b\x96\x46\x65\xa3\x87\xa0\xa7\xf0\x14"),
1611 .iv = TEST_DATA_STR ("\x85\xd2\x99\x6d\x00\x3e\xf9\xfd\xc4\xa5\x4c\xe9"),
1612 .aad = TEST_DATA_STR (
1613 "\x92\x68\x24\x53\x5c\x61\x3f\xde\x98\x69\xdf\x1a\xaf\x76\x4a\x54\xc1\x36"
1614 "\x16\x67\x7f\x09\x92\x09\x14\x2d\xa4\xb6\x5d\x9a\x86\x64\xd1\x78\x53\xec"
1615 "\x10\x2f\xfa\x1b\x16\x88\x80\x6d\xbe\x50\x3a\x33"),
1616 .tag = TEST_DATA_STR (
1617 "\xdc\x13\x50\x36\xf7\x4e\x62\x34\xc4\xe3\x27\xfb\xb0\xae\xb9\x25"),
1620 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc8) = {
1621 .name = "192-GMAC 384-aad NIST CAVS TC8",
1622 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1623 .key = TEST_DATA_STR ("\xda\x39\xc0\xef\xb1\x00\xfd\x9c\xf2\xd9\x01\x70\x5a"
1624 "\xa6\x35\x90\x3c\xe5\x3b\x66\x9e\xbd\xb5\xca"),
1625 .iv = TEST_DATA_STR ("\x0e\x95\xbd\xcb\x66\x98\x24\xdb\xd7\xff\xc8\x8f"),
1626 .aad = TEST_DATA_STR (
1627 "\x46\x42\x87\x5e\x8e\x20\xc1\x65\xb5\xb1\x7f\x12\xfd\xc6\x30\x99\x6b\x58"
1628 "\xb8\x57\x1c\x5a\x15\x94\x4c\xe1\x94\x50\x8c\x87\x12\x3a\xd5\x00\x41\xf5"
1629 "\x9a\xfe\x02\xea\xc3\xac\x1e\x6b\xa5\xed\x92\x8b"),
1630 .tag = TEST_DATA_STR (
1631 "\x59\xf9\x96\xe9\xa7\x23\x14\xfc\x76\x75\xe5\xa9\x13\xfe\x8e\x36"),
1634 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc9) = {
1635 .name = "192-GMAC 384-aad NIST CAVS TC9",
1636 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1637 .key = TEST_DATA_STR ("\x5a\x41\x3f\xa7\x5a\x13\xb0\x36\x53\x81\x82\xad\x51"
1638 "\x50\x6f\xdd\x77\x33\xf1\xba\x39\x00\x04\x84"),
1639 .iv = TEST_DATA_STR ("\xa6\xcd\xa5\xb0\x22\xec\xfc\x5a\x2b\x75\x90\x13"),
1640 .aad = TEST_DATA_STR (
1641 "\x1e\xed\x51\xef\xc1\xf5\xca\xe5\x76\x90\xe0\x32\x06\xb4\x5a\x7b\x5c\xb4"
1642 "\x58\x56\xab\x36\x31\x32\x34\x94\x85\x01\xdd\x02\xea\x4f\x24\xae\x90\xb5"
1643 "\xb2\x46\x28\x91\xe4\x93\x3a\x1b\xd0\x38\x74\x63"),
1644 .tag = TEST_DATA_STR (
1645 "\x57\x29\x61\xb6\xe8\x50\xad\xb4\x60\x16\x64\xe0\xeb\x3e\x07\x36"),
1648 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc10) = {
1649 .name = "192-GMAC 384-aad NIST CAVS TC10",
1650 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1651 .key = TEST_DATA_STR ("\x80\x08\xf9\xd2\x5a\x1a\x70\x5b\x5f\x00\x79\xd3\xe3"
1652 "\x9c\x49\x87\x28\x65\x37\x10\x06\x61\xde\x6e"),
1653 .iv = TEST_DATA_STR ("\xa9\xdd\x20\xd7\x51\x2c\xe5\xb3\x54\x83\xa0\x82"),
1654 .aad = TEST_DATA_STR (
1655 "\xfb\xd2\x16\x02\x37\x74\x2f\x4c\xa7\x2f\x0b\x7e\xd6\x16\xa8\x47\xaf\x65"
1656 "\xed\xd2\x81\x67\x97\xb1\xc9\xc8\xb0\xb7\x37\x7b\x57\x59\x3c\x56\xc5\x80"
1657 "\x63\xc9\x6a\x30\x69\x8c\x51\xbe\xb6\x78\x6e\x74"),
1658 .tag = TEST_DATA_STR (
1659 "\xb2\xe2\x25\x89\x00\xd7\xfd\x7a\xc4\xe9\x63\x92\x38\xd6\x63\x8a"),
1662 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc11) = {
1663 .name = "192-GMAC 384-aad NIST CAVS TC11",
1664 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1665 .key = TEST_DATA_STR ("\xcc\x95\x61\xf6\xd3\x0d\x9a\x2f\x25\x75\x07\x52\xd3"
1666 "\x9a\x1f\x0b\xc8\x00\xe0\xe7\x24\x42\x7e\x64"),
1667 .iv = TEST_DATA_STR ("\x3c\x56\x51\x80\x3f\xee\x90\x98\xbd\x69\x04\xed"),
1668 .aad = TEST_DATA_STR (
1669 "\x0e\x28\x55\x40\x35\x82\x98\xa1\x87\xd4\xf6\x82\x3f\xf8\x6c\xea\xb1\x23"
1670 "\x4d\xbc\xef\xc0\x9b\x23\x33\xe7\x45\xf2\x3b\xb6\x0e\x63\x65\xcd\x36\x3d"
1671 "\x9e\x9b\x3d\xfa\x9f\xb9\x27\x0d\x6a\x9a\x52\xab"),
1672 .tag = TEST_DATA_STR (
1673 "\x01\x53\xf9\x5c\x4c\x0b\x4b\x47\x98\x9d\xa7\x1e\xe7\x2c\x34\xc6"),
1676 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc12) = {
1677 .name = "192-GMAC 384-aad NIST CAVS TC12",
1678 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1679 .key = TEST_DATA_STR ("\x61\xab\xa2\x81\xeb\x81\x20\x5d\xc6\xd9\xbb\x6b\x17"
1680 "\x87\xb7\x42\x51\x63\x87\x24\x1c\x15\x3c\xc2"),
1681 .iv = TEST_DATA_STR ("\x72\x4b\x42\x24\x31\x2a\x59\x6f\xf2\x30\x03\x93"),
1682 .aad = TEST_DATA_STR (
1683 "\xdd\x06\xc9\xe0\x6a\x6f\xd9\xd8\xfe\xa3\x56\x25\x5c\xbf\x90\x93\x86\xf7"
1684 "\xac\x5e\x9b\x5e\xaa\x5c\x55\x28\x20\x54\x82\x7f\x74\xe9\xe7\x43\x46\xac"
1685 "\xff\x57\x25\x09\x73\x53\xe8\x6b\xff\xeb\x6d\xc6"),
1686 .tag = TEST_DATA_STR (
1687 "\x26\x44\xe8\xe6\x52\xc2\x58\xab\x02\x8b\x86\xcd\x7e\xf5\x5f\x5c"),
1690 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc13) = {
1691 .name = "192-GMAC 384-aad NIST CAVS TC13",
1692 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1693 .key = TEST_DATA_STR ("\x73\xa4\x90\x52\xef\x91\x18\xf0\x54\x88\x81\x0c\x20"
1694 "\x80\xd7\x38\x99\x39\x38\x6c\x18\x6d\x92\xb3"),
1695 .iv = TEST_DATA_STR ("\x38\xf0\x06\xb2\xe8\x5e\x7a\xa2\xf4\xc8\x81\x89"),
1696 .aad = TEST_DATA_STR (
1697 "\x21\xfa\x5a\xbb\x18\xb2\xfb\xcc\xe3\xa1\x9b\x2e\xac\x8b\xe7\xa3\x01\x92"
1698 "\x3f\xa2\x58\x10\x52\x86\x13\x3e\xd5\xf4\x78\x34\x84\x2a\x63\x84\xc4\xfc"
1699 "\x0a\x39\x86\xe1\xa2\x5b\xba\x83\x47\x9f\x68\x16"),
1700 .tag = TEST_DATA_STR (
1701 "\x9d\xbd\x74\x84\xc9\xaa\xed\x54\xdf\x7e\xd6\x4b\xbe\xd2\x0c\x68"),
1704 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad384_tc14) = {
1705 .name = "192-GMAC 384-aad NIST CAVS TC14",
1706 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1707 .key = TEST_DATA_STR ("\x1e\x11\x8d\x10\x94\x26\xb2\xab\x64\x46\xb0\x65\x99"
1708 "\xa4\xc9\x71\xf6\x68\x3a\x34\x35\x68\xef\x97"),
1709 .iv = TEST_DATA_STR ("\xcc\x87\x23\x42\x15\xc9\x74\xfd\x44\x68\x9e\x25"),
1710 .aad = TEST_DATA_STR (
1711 "\x48\x67\x4b\xf3\x86\x06\x46\x02\xd0\x0f\xd7\x2a\x17\x39\x20\xaf\x9b\x4c"
1712 "\x4f\x9a\xfb\xf1\x9e\xa7\x63\xff\x44\xe4\x7e\xf8\x9a\x10\x65\x80\xc2\x89"
1713 "\xc3\x98\xf9\x7f\xaa\x60\xba\xf4\x9d\xc1\xa2\xaf"),
1714 .tag = TEST_DATA_STR (
1715 "\x97\xf1\x3f\x94\x2a\xf7\xb7\x79\x7e\xa0\x9c\xea\xbd\xc7\xdc\x9c"),
1718 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc0) = {
1719 .name = "192-GMAC 720-aad NIST CAVS TC0",
1720 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1721 .key = TEST_DATA_STR ("\xc2\x5d\x34\x7f\xfb\x5b\x7b\xa0\x79\xbe\x22\x79\xa0"
1722 "\xa7\xf2\x20\xf1\x9c\x74\xbb\x9c\x5a\x15\xb6"),
1723 .iv = TEST_DATA_STR ("\xb3\x5f\x14\x21\x82\xfe\xa6\x5c\x64\x23\x68\xed"),
1724 .aad = TEST_DATA_STR (
1725 "\x19\x67\xa0\xbd\x80\xcf\x2c\x9c\x58\xe4\x41\xe1\x2c\xba\x78\x8f\x9c\x07"
1726 "\x21\x77\xe1\xce\x02\xf3\x0d\x58\xae\x98\x1a\xb3\x7e\xac\x45\x2c\x0d\x9f"
1727 "\x1c\x5f\x34\x85\xd7\xb1\x6a\xe0\x93\x66\x82\x1d\x23\xd4\x44\x79\xd5\x2c"
1728 "\xcc\x4a\xcd\x8f\xa6\xf5\xb9\x01\x38\x45\xc6\x29\xf6\x9c\x61\x2c\x9c\xbb"
1729 "\xcd\xca\x3b\xdf\x43\x85\x5f\xa7\xc7\x1b\xff\x45\x8a\x7d\x4c\x01\x9a"
1731 .tag = TEST_DATA_STR (
1732 "\xf5\xa0\xd6\x49\x24\xae\xab\x15\xa6\x36\xc7\xce\x4d\xb5\x22\x43"),
1735 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc1) = {
1736 .name = "192-GMAC 720-aad NIST CAVS TC1",
1737 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1738 .key = TEST_DATA_STR ("\xcb\x00\x0f\xdd\xd6\x7b\xf5\xa2\x4b\x03\xc8\xb0\x89"
1739 "\x65\xfc\x56\x89\x62\xd7\xb2\xa0\xb4\xe6\x8e"),
1740 .iv = TEST_DATA_STR ("\xac\xad\xc8\xf8\x22\xb8\x37\xb8\xfc\xd5\xac\x53"),
1741 .aad = TEST_DATA_STR (
1742 "\xce\x0e\x3e\x4e\x6f\xfe\xae\x66\xc5\x35\x66\x7e\x8a\x8c\xf1\x2f\xca\x0e"
1743 "\x9d\xae\x69\x87\x83\x5e\x8e\xc6\x2f\xb9\x5b\x38\xf3\x1e\xc5\xe9\x37\xbd"
1744 "\xfe\xd5\xb5\x51\x74\x83\x4b\x03\x8b\xa3\x32\x2b\x4a\x25\x65\xac\x41\x3b"
1745 "\x6e\x20\x4f\x88\xc3\xa9\x32\x16\xb8\x81\x06\x49\x4e\xaa\x14\xa8\x20\x68"
1746 "\xf0\x0a\x3b\xf2\x27\xb6\x27\x07\x53\x83\x68\x2b\xd6\xbe\xd6\x23\x1e"
1748 .tag = TEST_DATA_STR (
1749 "\x2c\x1c\xdf\xc8\xaf\xb7\x56\x9b\x87\x7b\xa5\xae\x13\xd6\x23\x5b"),
1752 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc2) = {
1753 .name = "192-GMAC 720-aad NIST CAVS TC2",
1754 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1755 .key = TEST_DATA_STR ("\x94\x9f\x77\x6b\x66\xb5\x28\x34\xde\x80\xe2\x4d\xa2"
1756 "\xc6\x68\x3c\x00\x94\x74\x3c\x6b\x4b\x57\xd1"),
1757 .iv = TEST_DATA_STR ("\x75\x57\xf7\xb9\xa8\x55\x4e\x79\xf8\x69\x52\x9b"),
1758 .aad = TEST_DATA_STR (
1759 "\xe3\x6d\xb9\xd5\x1d\xed\xe1\x0f\x17\xe4\xba\x3a\xa2\x0e\xee\x49\xc2\x06"
1760 "\x24\x4f\x89\xf6\x7f\xfa\x7d\x49\x94\x58\x93\xa0\x5f\xb6\xb5\x94\x8c\x53"
1761 "\x61\xdc\x84\xb3\x3a\x4c\x35\x76\x8c\xb6\x54\x74\x08\xba\x61\x7e\xdb\xa4"
1762 "\x17\x82\xa6\x5e\x4f\xca\x1a\x02\x79\x68\xf4\x4c\x43\x3f\x84\x53\xdb\xef"
1763 "\xb3\x5a\xa4\xc2\x1b\x6c\x52\x0b\x10\x2a\xe4\xfd\xf2\x07\x9f\x81\xdd"
1765 .tag = TEST_DATA_STR (
1766 "\x88\xc0\x61\x2c\x1d\xde\xf9\x14\xb3\x43\x95\x05\x3f\x7f\x63\x2e"),
1769 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc3) = {
1770 .name = "192-GMAC 720-aad NIST CAVS TC3",
1771 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1772 .key = TEST_DATA_STR ("\x25\x87\x2c\x71\xd8\x70\x0c\x6e\x0a\x74\xf4\x4e\x95"
1773 "\x46\x8b\x12\xf2\xdc\xeb\x94\xc2\x57\x57\x5d"),
1774 .iv = TEST_DATA_STR ("\x20\xa8\x7b\xaf\xff\x89\x83\xae\x72\x5a\x6f\xf1"),
1775 .aad = TEST_DATA_STR (
1776 "\xc0\x9c\x11\x84\xd0\xfb\xe3\xaf\x22\x20\x2a\x59\xdf\xef\xd6\x6f\xcd\xa2"
1777 "\x29\x3c\x90\x62\x6f\x14\x93\xd6\xfd\x79\xed\x5b\x5d\x01\xbf\x8a\xc9\x09"
1778 "\x5f\x44\xa3\x1f\x9d\xb4\xa2\x6f\x79\x75\x4d\x75\xec\xf4\xfe\x02\x5f\x2c"
1779 "\x1a\xdf\x3c\xe5\xf3\xae\x76\x72\x1d\xaf\x3d\xcc\x9d\xd8\x99\xe3\xf9\x6c"
1780 "\x82\x73\xb2\x9b\xc1\x8f\xc3\x8a\xae\x1a\xaa\x12\x4d\xb3\x71\xaa\x47"
1782 .tag = TEST_DATA_STR (
1783 "\xb1\x66\x3e\xb5\xb6\x98\xae\x8a\x7a\x18\xa6\xee\x74\x81\xb9\x8b"),
1786 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc4) = {
1787 .name = "192-GMAC 720-aad NIST CAVS TC4",
1788 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1789 .key = TEST_DATA_STR ("\x18\x8c\xa6\x91\x49\x83\xd3\xc1\xe5\x6c\x05\x9d\x0d"
1790 "\x70\x1d\x57\x3a\x61\xdf\x2d\xea\xee\xb1\xa6"),
1791 .iv = TEST_DATA_STR ("\x6c\x2f\xed\xb5\xf7\xf9\xf1\x15\x3a\xc3\x6c\xd8"),
1792 .aad = TEST_DATA_STR (
1793 "\x1d\xb4\xb3\x12\x70\x44\x94\x98\xba\x03\x97\x31\xb7\x33\x07\x68\xd1\x4c"
1794 "\x27\xe3\x73\xb7\xde\xbd\xb9\x8f\x2a\x41\xb6\xae\xc3\xb2\x98\xa0\x3e\xa5"
1795 "\xde\x8f\xed\x8f\xf2\x17\x96\x75\xea\x08\xe3\xc9\x81\x2c\x3f\x4f\x63\x76"
1796 "\x5f\x40\x39\x53\x4c\x5c\xcf\x98\xfd\xc3\xe7\x0c\xb1\x30\x9a\xd4\x16\x1e"
1797 "\x37\xe7\x14\xe6\x97\x28\x72\xfa\x65\x83\x72\x83\x25\xac\x52\x0d\x56"
1799 .tag = TEST_DATA_STR (
1800 "\x29\xc5\x6f\x77\xd8\x26\x0c\xa2\x94\x83\x37\xb2\x1c\x0c\x37\xa2"),
1803 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc5) = {
1804 .name = "192-GMAC 720-aad NIST CAVS TC5",
1805 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1806 .key = TEST_DATA_STR ("\xce\xcc\xe8\xae\x97\x77\x18\x7e\x5a\x87\xec\xb2\xd7"
1807 "\x35\xf7\x82\xf9\xf7\xaa\xb8\xb8\x7b\x13\x7d"),
1808 .iv = TEST_DATA_STR ("\x7d\x56\x4d\xb2\x02\xd0\xfa\xb3\x8d\xed\x36\xdd"),
1809 .aad = TEST_DATA_STR (
1810 "\xf6\xfb\xd1\xb5\x75\x5d\x70\x91\x54\x31\x2e\x11\x0f\xd4\x60\x85\xa4\xb6"
1811 "\xf6\x17\xc1\x27\xfe\xa7\x76\x36\xbf\xb8\xa5\x8a\x6a\x6d\x90\x30\xb2\xa6"
1812 "\xc4\xe7\x0d\x7a\x3a\x89\x4a\x75\x96\x7f\x65\x02\xe0\xc8\x16\xfb\x30\x69"
1813 "\xf2\xed\x94\xc8\x88\xd3\x07\x4c\x1c\x63\xc5\x95\x12\xbe\x45\x3e\x57\x5c"
1814 "\xec\x11\x5c\x49\xeb\x4d\xba\x44\xd2\xf7\xc7\x8b\x33\x55\xb1\xe6\x77"
1816 .tag = TEST_DATA_STR (
1817 "\xb2\x7c\x0b\xe6\x89\x85\x66\x26\xe5\x5e\x03\x77\xa0\x83\x34\x13"),
1820 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc6) = {
1821 .name = "192-GMAC 720-aad NIST CAVS TC6",
1822 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1823 .key = TEST_DATA_STR ("\x94\x47\x03\x91\xde\xf6\x95\xfe\x5d\xe5\xb8\x23\x3a"
1824 "\x20\xfe\x52\x11\xbb\x1d\xbb\xb2\x73\x31\x3f"),
1825 .iv = TEST_DATA_STR ("\x57\xce\x3a\x88\xf6\xd2\x72\x15\xc9\x43\x7c\x30"),
1826 .aad = TEST_DATA_STR (
1827 "\x51\x05\x96\x5c\xed\xe3\x1c\x1e\x2f\xbb\x1f\x5f\xb6\x41\xaa\x45\x65\xf8"
1828 "\x15\xbf\x18\x1a\x42\x9c\xdc\x35\x3b\xcf\x41\x7a\x0e\x57\xb9\x57\x49\xb4"
1829 "\x88\x6a\x80\x19\x01\x37\xf7\x7b\x99\xff\xe2\x80\x88\xa8\xa7\xf9\xf1\x2f"
1830 "\xf4\xc6\x16\x53\xdf\x30\x57\x2b\xde\xed\x92\xf2\xfa\xc5\xc4\x93\xce\x6f"
1831 "\xad\x20\xc0\xee\xd6\x6f\x95\x02\x6c\x76\x33\x48\x89\x20\xb9\x02\x32"
1833 .tag = TEST_DATA_STR (
1834 "\x50\x31\x79\x2c\xa7\x0d\xc4\x9e\xeb\xd8\xea\xd3\x76\xe6\xe3\x33"),
1837 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc7) = {
1838 .name = "192-GMAC 720-aad NIST CAVS TC7",
1839 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1840 .key = TEST_DATA_STR ("\x22\x0a\x24\x93\x89\x79\x3c\x97\xfb\xe2\x8b\xa6\xaf"
1841 "\xeb\xf1\x2a\xc0\xde\x55\xed\x71\xaf\xfa\x68"),
1842 .iv = TEST_DATA_STR ("\xb5\xa5\x71\x95\x1a\x37\x30\x30\xfc\xf0\xeb\x4d"),
1843 .aad = TEST_DATA_STR (
1844 "\xa2\x75\x20\x58\xa8\x46\x9b\x60\xd6\x99\x7a\x31\x5e\x5c\x88\x25\xec\xb2"
1845 "\xf6\xfd\x1f\x60\x8d\x1a\xe5\xb5\xa4\xf5\xb4\xb9\x28\x62\xb8\x4d\x6b\x3e"
1846 "\x74\x4e\x92\x3b\x02\x44\xb7\xb0\xfd\x6d\x6f\x36\xa8\xc1\x73\xd4\x6a\xd2"
1847 "\x01\xdd\x8d\x8a\x55\xc0\x8d\x95\x49\x30\x26\x69\xb9\xd3\x3f\x46\x61\x80"
1848 "\xf0\x58\x1e\xb3\x00\xbb\x8a\xb8\xb0\x61\x11\x32\x34\xd9\x68\xce\xcc"
1850 .tag = TEST_DATA_STR (
1851 "\xb2\xcf\x3f\xa8\xca\x8d\x3e\xea\xaa\x3f\x82\x41\x10\x64\xc9\x87"),
1854 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc8) = {
1855 .name = "192-GMAC 720-aad NIST CAVS TC8",
1856 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1857 .key = TEST_DATA_STR ("\xe5\x4c\x36\xdb\xb4\x67\xfe\xb4\x30\xf4\x08\x7f\xe4"
1858 "\xcf\x12\xba\xfc\x94\xa1\x78\x00\x68\x38\xe8"),
1859 .iv = TEST_DATA_STR ("\x31\x9e\x97\x14\xb4\x92\x5c\xb1\x61\xbc\xfd\x91"),
1860 .aad = TEST_DATA_STR (
1861 "\xfc\x50\x39\x7c\xc9\x92\xfd\xe3\xd4\x44\xd2\xfd\xf3\x87\x77\xf2\x9a\xb6"
1862 "\x04\x99\x63\xea\x08\xc4\xe2\xf0\x0c\x15\x98\xb8\xc0\xbe\xa7\xe9\x4f\x59"
1863 "\x1b\xb8\x3e\xb5\x35\x1f\xfa\x4b\xff\xef\x3e\x3e\xc3\x57\xfe\x47\xb1\x7d"
1864 "\xb7\xee\xc0\x4a\xd4\x66\x9b\x92\x13\x02\xe5\xc4\x1a\xc6\x9f\xe4\x45\x83"
1865 "\x8f\xcf\xd5\xb8\xd5\x1e\x89\xb3\xef\xdf\x2e\x7a\xf4\xf0\x57\x6d\xfc"
1867 .tag = TEST_DATA_STR (
1868 "\x45\x35\x3a\x04\x31\x39\x23\x75\x54\xb5\x11\x7d\x0b\x8d\x52\xa7"),
1871 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc9) = {
1872 .name = "192-GMAC 720-aad NIST CAVS TC9",
1873 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1874 .key = TEST_DATA_STR ("\xaa\xd8\x0b\x3b\xb6\xe2\x2d\x9d\x18\xf1\x07\x8f\x54"
1875 "\x29\x73\xaa\x8f\xff\x28\xab\xfa\x2e\xd6\x37"),
1876 .iv = TEST_DATA_STR ("\x6b\x53\x35\x92\x9a\x6f\xc7\xd3\x4c\x3e\x72\x8f"),
1877 .aad = TEST_DATA_STR (
1878 "\x31\x4a\x33\x07\xa6\x41\x8a\xd2\x29\xaf\x5b\x03\x25\xd2\xbd\x41\x98\xfe"
1879 "\x82\xd8\xc5\xa8\x96\x02\xe9\x26\x84\x8c\x09\x6f\xd0\x1e\xa3\x94\x84\xdf"
1880 "\x6e\x4a\xae\xd1\x8f\x2e\x2b\x07\x0c\xa3\x6e\xe5\xed\x66\xcd\xa3\xc0\x4a"
1881 "\xb6\xeb\x41\xb3\x27\x52\x49\x4b\xa3\x56\xef\x13\x27\xd8\xfd\x6a\x83\x52"
1882 "\xa6\x21\xe1\xbb\x0b\x20\x66\x3f\xc7\x04\x89\x9a\x85\x5d\x32\x77\x77"
1884 .tag = TEST_DATA_STR (
1885 "\x8f\xda\x0e\x49\x52\xbe\xef\x47\xbe\xa6\xf4\x8d\x9b\xdb\x3e\x79"),
1888 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc10) = {
1889 .name = "192-GMAC 720-aad NIST CAVS TC10",
1890 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1891 .key = TEST_DATA_STR ("\x69\xd3\xd0\x0e\x9a\xef\xe5\xb3\xa9\xaf\x64\x83\x8b"
1892 "\x40\x45\x79\xd4\x59\x2f\x9c\xfe\xe8\x64\x57"),
1893 .iv = TEST_DATA_STR ("\x05\x4c\xc3\x74\x8c\xd8\x44\x24\x10\x50\x3a\xd5"),
1894 .aad = TEST_DATA_STR (
1895 "\x10\x31\xcc\x7d\x96\x77\xc5\xf9\x57\x45\xc3\xdc\xc2\x6d\x62\x52\x76\x32"
1896 "\x35\x56\x7d\x56\xc6\x13\x86\x7b\xce\x17\xec\x09\x9d\xef\x27\x8a\x64\x37"
1897 "\xd1\xb7\x02\x64\x2b\xea\x5c\xfd\xed\x9a\xf6\xd0\xc5\xe0\x20\xf7\x04\x92"
1898 "\xad\x7f\x04\xa1\xb4\xba\xd3\x95\x3b\x96\x13\x57\x4c\x2a\x18\xce\x5f\x14"
1899 "\xd4\x36\x68\x79\xd1\x1e\x0b\x0a\x58\xfe\x09\x2f\x3c\xf0\xe0\x1a\xc0"
1901 .tag = TEST_DATA_STR (
1902 "\x1b\xff\xd2\x07\x47\xb2\x5e\x87\x25\x18\x44\x68\x28\x81\xf5\x3e"),
1905 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc11) = {
1906 .name = "192-GMAC 720-aad NIST CAVS TC11",
1907 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1908 .key = TEST_DATA_STR ("\x03\x5e\x18\x64\xfc\xaa\x90\x78\xd1\xc8\x30\x99\xb2"
1909 "\x3f\xd7\x17\x8c\x94\x6a\x58\x69\xc3\x15\x77"),
1910 .iv = TEST_DATA_STR ("\xe2\xc4\x07\xa6\xaa\xd6\xd9\x04\x0e\x5b\x67\x49"),
1911 .aad = TEST_DATA_STR (
1912 "\x2f\xc4\x1f\x0f\xd5\xe3\xec\xef\x75\xa1\xf1\xa0\xf0\x33\x51\x5e\x6f\x96"
1913 "\x19\xb8\x7a\x8c\xa1\x68\x7b\xb2\xd6\x37\x52\xcc\x3d\x47\x36\x77\xdb\x30"
1914 "\x0e\x76\x97\x8c\xd3\x42\xc5\x1f\x57\x6b\x15\x98\x56\x75\x02\xaf\x0e\xd1"
1915 "\xca\x85\xc5\xde\x2d\x84\xc2\xa3\x21\x19\x61\x53\x8d\xf5\x15\x25\x0a\x69"
1916 "\xe8\xd6\x7e\xa2\xe8\x77\xd8\xf5\x2e\x69\x7f\xc9\x0b\xad\x33\x0b\x97"
1918 .tag = TEST_DATA_STR (
1919 "\x3c\x90\x68\x75\x7b\xda\x60\x22\xea\xb5\xb1\x98\x75\x0b\xad\xc4"),
1922 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc12) = {
1923 .name = "192-GMAC 720-aad NIST CAVS TC12",
1924 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1925 .key = TEST_DATA_STR ("\x47\xcf\x37\x7a\x1d\xb1\x10\x6f\x8d\xd4\x54\x88\x4f"
1926 "\x71\xef\x93\xf4\xa6\x45\xe0\xe3\xc9\xd4\x30"),
1927 .iv = TEST_DATA_STR ("\xf4\x39\x46\xec\x30\x3f\x1e\xfc\x19\xdc\x21\xc2"),
1928 .aad = TEST_DATA_STR (
1929 "\x2e\xab\xfa\xdb\x99\x7d\x15\x4b\xea\x95\xd4\x5f\x7c\x4d\x5c\x5f\x18\x2b"
1930 "\x1e\xd9\x89\x7a\xb0\x12\x41\xf6\x15\xf0\x4b\x8a\x16\xf7\xa9\x65\x2b\x34"
1931 "\xa0\xee\x70\x52\xff\x5a\x20\x9a\xd4\xd2\x4a\x2b\xfc\x5e\x5e\xbc\x42\x4f"
1932 "\x6d\xbb\xf0\x33\xf0\x59\x51\x24\x7a\xb3\x73\xcb\x9c\xce\x73\x5d\x7f\xb1"
1933 "\x80\xa4\xf6\x2a\xd5\xa4\x12\x1e\xb7\xaa\x47\x26\x9f\x95\x41\xbd\xd9"
1935 .tag = TEST_DATA_STR (
1936 "\xfe\xed\xe5\x21\x2f\x35\xea\xa8\xfa\xa9\xe2\xe6\xbb\x7b\x1e\x18"),
1939 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc13) = {
1940 .name = "192-GMAC 720-aad NIST CAVS TC13",
1941 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1942 .key = TEST_DATA_STR ("\x64\x98\xf9\x61\x00\xe7\xb0\xb6\xed\xd7\x2b\x61\xf8"
1943 "\x64\xd3\x38\x23\xbc\xbd\x0b\x58\x51\xc5\x2a"),
1944 .iv = TEST_DATA_STR ("\x81\xf0\x05\xdf\x39\x2a\xc0\x25\x0a\xe0\x7a\x69"),
1945 .aad = TEST_DATA_STR (
1946 "\xd1\x83\x82\x41\x68\x23\x15\xdc\x27\x3a\xe8\xc2\xd5\x9d\x71\x27\x17\x48"
1947 "\xbf\x1e\xf0\x38\x5d\xe4\x05\xfc\x5c\x2f\xe5\xca\xcf\x57\xc8\xd5\x1d\x72"
1948 "\xdf\x09\x6d\x2c\x3e\x46\x63\xf1\xc5\x9b\xd4\xda\x3c\xfe\xe9\x4e\x53\xab"
1949 "\xa8\x7e\x49\x3a\xad\x38\x6b\xb3\x28\x3d\xd3\x37\xa0\xba\x57\xb8\x4f\x2d"
1950 "\x35\xa8\xb6\xbf\xb2\x07\x7d\x22\xb8\x23\x98\xff\x6c\x34\x31\xec\xc4"
1952 .tag = TEST_DATA_STR (
1953 "\xe1\x49\xfb\xaa\x73\xf0\x50\x9d\x34\xbd\xdf\x03\x1c\x4c\xc4\x76"),
1956 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac192_aad720_tc14) = {
1957 .name = "192-GMAC 720-aad NIST CAVS TC14",
1958 .alg = VNET_CRYPTO_ALG_AES_192_NULL_GMAC,
1959 .key = TEST_DATA_STR ("\xba\xff\x99\xa6\xdd\x4d\x29\x81\x04\x3a\x48\xb5\x2f"
1960 "\x36\xba\x5d\xbb\x73\x80\xca\xa7\x5b\xc6\x5d"),
1961 .iv = TEST_DATA_STR ("\x98\x38\xd9\xf9\xb8\x63\x2c\xbd\x48\xa2\xba\x35"),
1962 .aad = TEST_DATA_STR (
1963 "\xe7\x81\xf8\xf1\xf5\xbf\xad\x3a\x50\xc4\x7e\x36\x33\x5e\x7a\x22\x5d\xbf"
1964 "\x32\xbc\x15\x96\x7d\x66\xdd\x30\x06\xdd\x42\x4b\xa9\x71\xd8\xf1\xa9\xca"
1965 "\x90\x61\x94\x50\xbd\xa4\x56\x29\x39\x01\x5f\x75\xb4\x67\xd6\x33\xbb\x57"
1966 "\x43\xbb\xf3\x7c\x9a\x2b\x24\x15\xd7\x30\x65\xfa\xd7\x1d\xa3\x31\x2d\x81"
1967 "\x7b\xa2\xe6\x24\xc6\x88\x63\xf7\x22\x78\x05\x2a\x4d\xb0\xe7\x3d\xbf"
1969 .tag = TEST_DATA_STR (
1970 "\xf8\xed\xe3\x60\x48\x26\x1d\x8a\x3b\xf7\x8b\x19\x33\xf3\x3b\x22"),
1973 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc0) = {
1974 .name = "256-GMAC 0-aad NIST CAVS TC0",
1975 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
1976 .key = TEST_DATA_STR (
1977 "\xb5\x2c\x50\x5a\x37\xd7\x8e\xda\x5d\xd3\x4f\x20\xc2\x25\x40\xea\x1b\x58"
1978 "\x96\x3c\xf8\xe5\xbf\x8f\xfa\x85\xf9\xf2\x49\x25\x05\xb4"),
1979 .iv = TEST_DATA_STR ("\x51\x6c\x33\x92\x9d\xf5\xa3\x28\x4f\xf4\x63\xd7"),
1980 .tag = TEST_DATA_STR (
1981 "\xbd\xc1\xac\x88\x4d\x33\x24\x57\xa1\xd2\x66\x4f\x16\x8c\x76\xf0"),
1984 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc1) = {
1985 .name = "256-GMAC 0-aad NIST CAVS TC1",
1986 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
1987 .key = TEST_DATA_STR (
1988 "\x5f\xe0\x86\x1c\xdc\x26\x90\xce\x69\xb3\x65\x8c\x7f\x26\xf8\x45\x8e\xec"
1989 "\x1c\x92\x43\xc5\xba\x08\x45\x30\x5d\x89\x7e\x96\xca\x0f"),
1990 .iv = TEST_DATA_STR ("\x77\x0a\xc1\xa5\xa3\xd4\x76\xd5\xd9\x69\x44\xa1"),
1991 .tag = TEST_DATA_STR (
1992 "\x19\x6d\x69\x1e\x10\x47\x09\x3c\xa4\xb3\xd2\xef\x4b\xab\xa2\x16"),
1995 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc2) = {
1996 .name = "256-GMAC 0-aad NIST CAVS TC2",
1997 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
1998 .key = TEST_DATA_STR (
1999 "\x76\x20\xb7\x9b\x17\xb2\x1b\x06\xd9\x70\x19\xaa\x70\xe1\xca\x10\x5e\x1c"
2000 "\x03\xd2\xa0\xcf\x8b\x20\xb5\xa0\xce\x5c\x39\x03\xe5\x48"),
2001 .iv = TEST_DATA_STR ("\x60\xf5\x6e\xb7\xa4\xb3\x8d\x4f\x03\x39\x55\x11"),
2002 .tag = TEST_DATA_STR (
2003 "\xf5\x70\xc3\x82\x02\xd9\x45\x64\xba\xb3\x9f\x75\x61\x7b\xc8\x7a"),
2006 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc3) = {
2007 .name = "256-GMAC 0-aad NIST CAVS TC3",
2008 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2009 .key = TEST_DATA_STR (
2010 "\x7e\x2d\xb0\x03\x21\x18\x94\x76\xd1\x44\xc5\xf2\x7e\x78\x70\x87\x30\x2a"
2011 "\x48\xb5\xf7\x78\x6c\xd9\x1e\x93\x64\x16\x28\xc2\x32\x8b"),
2012 .iv = TEST_DATA_STR ("\xea\x9d\x52\x5b\xf0\x1d\xe7\xb2\x23\x4b\x60\x6a"),
2013 .tag = TEST_DATA_STR (
2014 "\xdb\x9d\xf5\xf1\x4f\x6c\x9f\x2a\xe8\x1f\xd4\x21\x41\x2d\xdb\xbb"),
2017 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc4) = {
2018 .name = "256-GMAC 0-aad NIST CAVS TC4",
2019 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2020 .key = TEST_DATA_STR (
2021 "\xa2\x3d\xfb\x84\xb5\x97\x6b\x46\xb1\x83\x0d\x93\xbc\xf6\x19\x41\xca\xe5"
2022 "\xe4\x09\xe4\xf5\x55\x1d\xc6\x84\xbd\xce\xf9\x87\x64\x80"),
2023 .iv = TEST_DATA_STR ("\x5a\xa3\x45\x90\x80\x48\xde\x10\xa2\xbd\x3d\x32"),
2024 .tag = TEST_DATA_STR (
2025 "\xf2\x82\x17\x64\x92\x30\xbd\x7a\x40\xa9\xa4\xdd\xab\xc6\x7c\x43"),
2028 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc5) = {
2029 .name = "256-GMAC 0-aad NIST CAVS TC5",
2030 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2031 .key = TEST_DATA_STR (
2032 "\xdf\xe9\x28\xf8\x64\x30\xb7\x8a\xdd\x7b\xb7\x69\x60\x23\xe6\x15\x3d\x76"
2033 "\x97\x7e\x56\x10\x3b\x18\x02\x53\x49\x0a\xff\xb9\x43\x1c"),
2034 .iv = TEST_DATA_STR ("\x1d\xd0\x78\x5a\xf9\xf5\x89\x79\xa1\x0b\xd6\x2d"),
2035 .tag = TEST_DATA_STR (
2036 "\xa5\x5e\xb0\x9e\x9e\xde\xf5\x8d\x9f\x67\x1d\x72\x20\x7f\x8b\x3c"),
2039 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc6) = {
2040 .name = "256-GMAC 0-aad NIST CAVS TC6",
2041 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2042 .key = TEST_DATA_STR (
2043 "\x34\x04\x8d\xb8\x15\x91\xee\x68\x22\x49\x56\xbd\x69\x89\xe1\x63\x0f\xcf"
2044 "\x06\x8d\x7f\xf7\x26\xae\x81\xe5\xb2\x9f\x54\x8c\xfc\xfb"),
2045 .iv = TEST_DATA_STR ("\x16\x21\xd3\x4c\xff\x2a\x5b\x25\x0c\x7b\x76\xfc"),
2046 .tag = TEST_DATA_STR (
2047 "\x49\x92\xec\x3d\x57\xcc\xcf\xa5\x8f\xd8\x91\x6c\x59\xb7\x0b\x11"),
2050 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc7) = {
2051 .name = "256-GMAC 0-aad NIST CAVS TC7",
2052 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2053 .key = TEST_DATA_STR (
2054 "\xa1\x11\x4f\x87\x49\xc7\x2b\x8c\xef\x62\xe7\x50\x3f\x1a\xd9\x21\xd3\x3e"
2055 "\xee\xde\x32\xb0\xb5\xb8\xe0\xd6\x80\x7a\xa2\x33\xd0\xad"),
2056 .iv = TEST_DATA_STR ("\xa1\x90\xed\x3f\xf2\xe2\x38\xbe\x56\xf9\x0b\xd6"),
2057 .tag = TEST_DATA_STR (
2058 "\xc8\x46\x4d\x95\xd5\x40\xfb\x19\x11\x56\xfb\xbc\x16\x08\x84\x2a"),
2061 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc8) = {
2062 .name = "256-GMAC 0-aad NIST CAVS TC8",
2063 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2064 .key = TEST_DATA_STR (
2065 "\xdd\xbb\x99\xdc\x31\x02\xd3\x11\x02\xc0\xe1\x4b\x23\x85\x18\x60\x57\x66"
2066 "\xc5\xb2\x3d\x9b\xea\x52\xc7\xc5\xa7\x71\x04\x2c\x85\xa0"),
2067 .iv = TEST_DATA_STR ("\x95\xd1\x5e\xd7\x5c\x6a\x10\x9a\xac\x1b\x1d\x86"),
2068 .tag = TEST_DATA_STR (
2069 "\x81\x3d\x1d\xa3\x77\x5c\xac\xd7\x8e\x96\xd8\x6f\x03\x6c\xff\x96"),
2072 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc9) = {
2073 .name = "256-GMAC 0-aad NIST CAVS TC9",
2074 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2075 .key = TEST_DATA_STR (
2076 "\x1f\xaa\x50\x6b\x8f\x13\xa2\xe6\x66\x0a\xf7\x8d\x92\x91\x5a\xdf\x33\x36"
2077 "\x58\xf7\x48\xf4\xe4\x8f\xa2\x01\x35\xa2\x9e\x9a\xbe\x5f"),
2078 .iv = TEST_DATA_STR ("\xe5\x0f\x27\x8d\x36\x62\xc9\x9d\x75\x0f\x60\xd3"),
2079 .tag = TEST_DATA_STR (
2080 "\xae\xc7\xec\xe6\x6b\x73\x44\xaf\xd6\xf6\xcc\x74\x19\xcf\x60\x27"),
2083 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc10) = {
2084 .name = "256-GMAC 0-aad NIST CAVS TC10",
2085 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2086 .key = TEST_DATA_STR (
2087 "\xf3\x0b\x59\x42\xfa\xf5\x7d\x4c\x13\xe7\xa8\x24\x95\xae\xdf\x1b\x4e\x60"
2088 "\x35\x39\xb2\xe1\x59\x93\x17\xcc\x6e\x53\x22\x5a\x24\x93"),
2089 .iv = TEST_DATA_STR ("\x33\x6c\x38\x8e\x18\xe6\xab\xf9\x2b\xb7\x39\xa9"),
2090 .tag = TEST_DATA_STR (
2091 "\xdd\xaf\x8e\xf4\xcb\x2f\x8a\x6d\x40\x1f\x3b\xe5\xff\x0b\xaf\x6a"),
2094 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc11) = {
2095 .name = "256-GMAC 0-aad NIST CAVS TC11",
2096 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2097 .key = TEST_DATA_STR (
2098 "\xda\xf4\xd9\xc1\x2c\x5d\x29\xfc\x3f\xa9\x36\x53\x2c\x96\x19\x6e\x56\xae"
2099 "\x84\x2e\x47\x06\x3a\x4b\x29\xbf\xff\x2a\x35\xed\x92\x80"),
2100 .iv = TEST_DATA_STR ("\x53\x81\xf2\x11\x97\xe0\x93\xb9\x6c\xda\xc4\xfa"),
2101 .tag = TEST_DATA_STR (
2102 "\x7f\x18\x32\xc7\xf7\xcd\x78\x12\xa0\x04\xb7\x9c\x3d\x39\x94\x73"),
2105 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc12) = {
2106 .name = "256-GMAC 0-aad NIST CAVS TC12",
2107 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2108 .key = TEST_DATA_STR (
2109 "\x6b\x52\x47\x54\x14\x9c\x81\x40\x1d\x29\xa4\xb8\xa6\xf4\xa4\x78\x33\x37"
2110 "\x28\x06\xb2\xd4\x08\x3f\xf1\x7f\x2d\xb3\xbf\xc1\x7b\xca"),
2111 .iv = TEST_DATA_STR ("\xac\x7d\x3d\x61\x8a\xb6\x90\x55\x5e\xc2\x44\x08"),
2112 .tag = TEST_DATA_STR (
2113 "\xdb\x07\xa8\x85\xe2\xbd\x39\xda\x74\x11\x6d\x06\xc3\x16\xa5\xc9"),
2116 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc13) = {
2117 .name = "256-GMAC 0-aad NIST CAVS TC13",
2118 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2119 .key = TEST_DATA_STR (
2120 "\xcf\xf0\x83\x30\x3f\xf4\x0a\x1f\x66\xc4\xae\xd1\xac\x7f\x50\x62\x8f\xe7"
2121 "\xe9\x31\x1f\x5d\x03\x7e\xbf\x49\xf4\xa4\xb9\xf0\x22\x3f"),
2122 .iv = TEST_DATA_STR ("\x45\xd4\x6e\x1b\xaa\xdc\xfb\xc8\xf0\xe9\x22\xff"),
2123 .tag = TEST_DATA_STR (
2124 "\x16\x87\xc6\xd4\x59\xea\x48\x1b\xf8\x8e\x4b\x22\x63\x22\x79\x06"),
2127 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad0_tc14) = {
2128 .name = "256-GMAC 0-aad NIST CAVS TC14",
2129 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2130 .key = TEST_DATA_STR (
2131 "\x39\x54\xf6\x0c\xdd\xbb\x39\xd2\xd8\xb0\x58\xad\xf5\x45\xd5\xb8\x24\x90"
2132 "\xc8\xae\x92\x83\xaf\xa5\x27\x86\x89\x04\x1d\x41\x5a\x3a"),
2133 .iv = TEST_DATA_STR ("\x8f\xb3\xd9\x8e\xf2\x4f\xba\x03\x74\x6a\xc8\x4f"),
2134 .tag = TEST_DATA_STR (
2135 "\x7f\xb1\x30\x85\x5d\xfe\x7a\x37\x33\x13\x36\x1f\x33\xf5\x52\x37"),
2138 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc0) = {
2139 .name = "256-GMAC 128-aad NIST CAVS TC0",
2140 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2141 .key = TEST_DATA_STR (
2142 "\x78\xdc\x4e\x0a\xaf\x52\xd9\x35\xc3\xc0\x1e\xea\x57\x42\x8f\x00\xca\x1f"
2143 "\xd4\x75\xf5\xda\x86\xa4\x9c\x8d\xd7\x3d\x68\xc8\xe2\x23"),
2144 .iv = TEST_DATA_STR ("\xd7\x9c\xf2\x2d\x50\x4c\xc7\x93\xc3\xfb\x6c\x8a"),
2145 .aad = TEST_DATA_STR (
2146 "\xb9\x6b\xaa\x8c\x1c\x75\xa6\x71\xbf\xb2\xd0\x8d\x06\xbe\x5f\x36"),
2147 .tag = TEST_DATA_STR (
2148 "\x3e\x5d\x48\x6a\xa2\xe3\x0b\x22\xe0\x40\xb8\x57\x23\xa0\x6e\x76"),
2151 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc1) = {
2152 .name = "256-GMAC 128-aad NIST CAVS TC1",
2153 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2154 .key = TEST_DATA_STR (
2155 "\x44\x57\xff\x33\x68\x3c\xca\x6c\xa4\x93\x87\x8b\xdc\x00\x37\x38\x93\xa9"
2156 "\x76\x34\x12\xee\xf8\xcd\xdb\x54\xf9\x13\x18\xe0\xda\x88"),
2157 .iv = TEST_DATA_STR ("\x69\x9d\x1f\x29\xd7\xb8\xc5\x53\x00\xbb\x1f\xd2"),
2158 .aad = TEST_DATA_STR (
2159 "\x67\x49\xda\xee\xa3\x67\xd0\xe9\x80\x9e\x2d\xc2\xf3\x09\xe6\xe3"),
2160 .tag = TEST_DATA_STR (
2161 "\xd6\x0c\x74\xd2\x51\x7f\xde\x4a\x74\xe0\xcd\x47\x09\xed\x43\xa9"),
2164 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc2) = {
2165 .name = "256-GMAC 128-aad NIST CAVS TC2",
2166 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2167 .key = TEST_DATA_STR (
2168 "\x4d\x01\xc9\x6e\xf9\xd9\x8d\x4f\xb4\xe9\xb6\x1b\xe5\xef\xa7\x72\xc9\x78"
2169 "\x85\x45\xb3\xea\xc3\x9e\xb1\xca\xcb\x99\x7a\x5f\x07\x92"),
2170 .iv = TEST_DATA_STR ("\x32\x12\x4a\x4d\x9e\x57\x6a\xea\x25\x89\xf2\x38"),
2171 .aad = TEST_DATA_STR (
2172 "\xd7\x2b\xad\x0c\x38\x49\x5e\xda\x50\xd5\x58\x11\x94\x5e\xe2\x05"),
2173 .tag = TEST_DATA_STR (
2174 "\x6d\x63\x97\xc9\xe2\x03\x0f\x5b\x80\x53\xbf\xe5\x10\xf3\xf2\xcf"),
2177 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc3) = {
2178 .name = "256-GMAC 128-aad NIST CAVS TC3",
2179 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2180 .key = TEST_DATA_STR (
2181 "\x83\x78\x19\x3a\x4c\xe6\x41\x80\x81\x4b\xd6\x05\x91\xd1\x05\x4a\x04\xdb"
2182 "\xc4\xda\x02\xaf\xde\x45\x37\x99\xcd\x68\x88\xee\x0c\x6c"),
2183 .iv = TEST_DATA_STR ("\xbd\x8b\x4e\x35\x2c\x7f\x69\x87\x8a\x47\x54\x35"),
2184 .aad = TEST_DATA_STR (
2185 "\x1c\x6b\x34\x3c\x4d\x04\x5c\xbb\xa5\x62\xba\xe3\xe5\xff\x1b\x18"),
2186 .tag = TEST_DATA_STR (
2187 "\x08\x33\x96\x7a\x6a\x53\xba\x24\xe7\x5c\x03\x72\xa6\xa1\x7b\xda"),
2190 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc4) = {
2191 .name = "256-GMAC 128-aad NIST CAVS TC4",
2192 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2193 .key = TEST_DATA_STR (
2194 "\x22\xfc\x82\xdb\x5b\x60\x69\x98\xad\x45\x09\x9b\x79\x78\xb5\xb4\xf9\xdd"
2195 "\x4e\xa6\x01\x7e\x57\x37\x0a\xc5\x61\x41\xca\xaa\xbd\x12"),
2196 .iv = TEST_DATA_STR ("\x88\x0d\x05\xc5\xee\x59\x9e\x5f\x15\x1e\x30\x2f"),
2197 .aad = TEST_DATA_STR (
2198 "\x3e\x3e\xb5\x74\x7e\x39\x0f\x7b\xc8\x0e\x74\x82\x33\x48\x4f\xfc"),
2199 .tag = TEST_DATA_STR (
2200 "\x2e\x12\x2a\x47\x8e\x64\x46\x32\x86\xf8\xb4\x89\xdc\xdd\x09\xc8"),
2203 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc5) = {
2204 .name = "256-GMAC 128-aad NIST CAVS TC5",
2205 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2206 .key = TEST_DATA_STR (
2207 "\xfc\x00\x96\x0d\xdd\x69\x8d\x35\x72\x8c\x5a\xc6\x07\x59\x6b\x51\xb3\xf8"
2208 "\x97\x41\xd1\x4c\x25\xb8\xba\xda\xc9\x19\x76\x12\x0d\x99"),
2209 .iv = TEST_DATA_STR ("\xa4\x24\xa3\x2a\x23\x7f\x0d\xf5\x30\xf0\x5e\x30"),
2210 .aad = TEST_DATA_STR (
2211 "\xcf\xb7\xe0\x5e\x31\x57\xf0\xc9\x05\x49\xd5\xc7\x86\x50\x63\x11"),
2212 .tag = TEST_DATA_STR (
2213 "\xdc\xdc\xb9\xe4\x00\x4b\x85\x2a\x0d\xa1\x2b\xdf\x25\x5b\x4d\xdd"),
2216 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc6) = {
2217 .name = "256-GMAC 128-aad NIST CAVS TC6",
2218 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2219 .key = TEST_DATA_STR (
2220 "\x69\x74\x99\x43\x09\x2f\x56\x05\xbf\x97\x1e\x18\x5c\x19\x1c\x61\x82\x61"
2221 "\xb2\xc7\xcc\x16\x93\xcd\xa1\x08\x0c\xa2\xfd\x8d\x51\x11"),
2222 .iv = TEST_DATA_STR ("\xbd\x0d\x62\xc0\x2e\xe6\x82\x06\x9b\xd1\xe1\x28"),
2223 .aad = TEST_DATA_STR (
2224 "\x69\x67\xdc\xe8\x78\xf0\x3b\x64\x3b\xf5\xcd\xba\x59\x6a\x7a\xf3"),
2225 .tag = TEST_DATA_STR (
2226 "\x37\x8f\x79\x6a\xe5\x43\xe1\xb2\x91\x15\xcc\x18\xac\xd1\x93\xf4"),
2229 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc7) = {
2230 .name = "256-GMAC 128-aad NIST CAVS TC7",
2231 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2232 .key = TEST_DATA_STR (
2233 "\xfc\x48\x75\xdb\x84\x81\x98\x34\xb1\xcb\x43\x82\x8d\x2f\x0a\xe3\x47\x3a"
2234 "\xa3\x80\x11\x1c\x27\x37\xe8\x2a\x9a\xb1\x1f\xea\x1f\x19"),
2235 .iv = TEST_DATA_STR ("\xda\x6a\x68\x4d\x3f\xf6\x3a\x2d\x10\x9d\xec\xd6"),
2236 .aad = TEST_DATA_STR (
2237 "\x91\xb6\xfa\x2a\xb4\xde\x44\x28\x2f\xfc\x86\xc8\xcd\xe6\xe7\xf5"),
2238 .tag = TEST_DATA_STR (
2239 "\x50\x4e\x81\xd2\xe7\x87\x7e\x4d\xad\x6f\x31\xcd\xeb\x07\xbd\xbd"),
2242 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc8) = {
2243 .name = "256-GMAC 128-aad NIST CAVS TC8",
2244 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2245 .key = TEST_DATA_STR (
2246 "\x9f\x9f\xe7\xd2\xa2\x6d\xcf\x59\xd6\x84\xf1\xc0\x94\x5b\x5f\xfa\xfe\x0a"
2247 "\x47\x46\x84\x5e\xd3\x17\xd3\x5f\x3e\xd7\x6c\x93\x04\x4d"),
2248 .iv = TEST_DATA_STR ("\x13\xb5\x99\x71\xcd\x4d\xd3\x6b\x19\xac\x71\x04"),
2249 .aad = TEST_DATA_STR (
2250 "\x19\x0a\x69\x34\xf4\x5f\x89\xc9\x00\x67\xc2\xf6\x2e\x04\xc5\x3b"),
2251 .tag = TEST_DATA_STR (
2252 "\x4f\x63\x6a\x29\x4b\xfb\xf5\x1f\xc0\xe1\x31\xd6\x94\xd5\xc2\x22"),
2255 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc9) = {
2256 .name = "256-GMAC 128-aad NIST CAVS TC9",
2257 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2258 .key = TEST_DATA_STR (
2259 "\xab\x91\x55\xd7\xd8\x1b\xa6\xf3\x31\x93\x69\x5c\xf4\x56\x6a\x9b\x6e\x97"
2260 "\xa3\xe4\x09\xf5\x71\x59\xae\x6c\xa4\x96\x55\xcc\xa0\x71"),
2261 .iv = TEST_DATA_STR ("\x26\xa9\xf8\xd6\x65\xd1\x63\xdd\xb9\x2d\x03\x5d"),
2262 .aad = TEST_DATA_STR (
2263 "\x4a\x20\x3a\xc2\x6b\x95\x1a\x1f\x67\x3c\x66\x05\x65\x3e\xc0\x2d"),
2264 .tag = TEST_DATA_STR (
2265 "\x43\x7e\xa7\x7a\x38\x79\xf0\x10\x69\x1e\x28\x8d\x62\x69\xa9\x96"),
2268 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc10) = {
2269 .name = "256-GMAC 128-aad NIST CAVS TC10",
2270 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2271 .key = TEST_DATA_STR (
2272 "\x0f\x1c\x62\xdd\x80\xb4\xa6\xd0\x9e\xe9\xd7\x87\xb1\xb0\x43\x27\xaa\x36"
2273 "\x15\x29\xff\xa3\x40\x75\x60\x41\x4a\xc4\x7b\x7e\xf7\xbc"),
2274 .iv = TEST_DATA_STR ("\xc8\x76\x13\xa3\xb7\x0d\x2a\x04\x8f\x32\xcb\x9a"),
2275 .aad = TEST_DATA_STR (
2276 "\x8f\x23\xd4\x04\xbe\x2d\x9e\x88\x8d\x21\x9f\x1b\x40\xaa\x29\xe8"),
2277 .tag = TEST_DATA_STR (
2278 "\x36\xd8\xa3\x09\xac\xbb\x87\x16\xc9\xc0\x8c\x7f\x5d\xe4\x91\x1e"),
2281 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc11) = {
2282 .name = "256-GMAC 128-aad NIST CAVS TC11",
2283 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2284 .key = TEST_DATA_STR (
2285 "\xf3\xe9\x54\xa3\x89\x56\xdf\x89\x02\x55\xf0\x17\x09\xe4\x57\xb3\x3f\x4b"
2286 "\xfe\x7e\xcb\x36\xd0\xee\x50\xf2\x50\x04\x71\xee\xbc\xde"),
2287 .iv = TEST_DATA_STR ("\x97\x99\xab\xd3\xc5\x21\x10\xc7\x04\xb0\xf3\x6a"),
2288 .aad = TEST_DATA_STR (
2289 "\xdd\xb7\x01\x73\xf4\x41\x57\x75\x5b\x6c\x9b\x70\x58\xf4\x0c\xb7"),
2290 .tag = TEST_DATA_STR (
2291 "\xb3\x23\xae\x3a\xbc\xb4\x15\xc7\xf4\x20\x87\x6c\x98\x0f\x48\x58"),
2294 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc12) = {
2295 .name = "256-GMAC 128-aad NIST CAVS TC12",
2296 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2297 .key = TEST_DATA_STR (
2298 "\x06\x25\x31\x65\x34\xfb\xd8\x2f\xe8\xfd\xea\x50\xfa\x57\x3c\x46\x20\x22"
2299 "\xc4\x2f\x79\xe8\xb2\x13\x60\xe5\xa6\xdc\xe6\x6d\xde\x28"),
2300 .iv = TEST_DATA_STR ("\xda\x64\xa6\x74\x90\x7c\xd6\xcf\x24\x8f\x5f\xbb"),
2301 .aad = TEST_DATA_STR (
2302 "\xf2\x4d\x48\xe0\x4f\x5a\x0d\x98\x7b\xa7\xc7\x45\xb7\x3b\x03\x64"),
2303 .tag = TEST_DATA_STR (
2304 "\xdf\x36\x0b\x81\x0f\x27\xe7\x94\x67\x3a\x8b\xb2\xdc\x0d\x68\xb0"),
2307 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc13) = {
2308 .name = "256-GMAC 128-aad NIST CAVS TC13",
2309 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2310 .key = TEST_DATA_STR (
2311 "\x28\xf0\x45\xac\x7c\x4f\xe5\xd4\xb0\x1a\x9d\xcd\x5f\x1a\xd3\xef\xff\x1c"
2312 "\x4f\x17\x0f\xc8\xab\x87\x58\xd9\x72\x92\x86\x8d\x58\x28"),
2313 .iv = TEST_DATA_STR ("\x5d\x85\xde\x95\xb0\xbd\xc4\x45\x14\x14\x39\x19"),
2314 .aad = TEST_DATA_STR (
2315 "\x60\x1d\x21\x58\xf1\x7a\xb3\xc7\xb4\xdc\xb6\x95\x0f\xbd\xcd\xde"),
2316 .tag = TEST_DATA_STR (
2317 "\x42\xc3\xf5\x27\x41\x8c\xf2\xc3\xf5\xd5\x01\x0c\xcb\xa8\xf2\x71"),
2320 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad128_tc14) = {
2321 .name = "256-GMAC 128-aad NIST CAVS TC14",
2322 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2323 .key = TEST_DATA_STR (
2324 "\x19\x31\x0e\xed\x5f\x5f\x44\xeb\x47\x07\x5c\x10\x5e\xb3\x1e\x36\xbb\xfd"
2325 "\x13\x10\xf7\x41\xb9\xba\xa6\x6a\x81\x13\x8d\x35\x72\x42"),
2326 .iv = TEST_DATA_STR ("\xa1\x24\x71\x20\x13\x8f\xa4\xf0\xe9\x6c\x99\x2c"),
2327 .aad = TEST_DATA_STR (
2328 "\x29\xd7\x46\x41\x43\x33\xe0\xf7\x2b\x4c\x3f\x44\xec\x6b\xfe\x42"),
2329 .tag = TEST_DATA_STR (
2330 "\xd5\x99\x7e\x2f\x95\x6d\xf3\xfa\x2c\x23\x88\xe2\x0f\x30\xc4\x80"),
2333 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc0) = {
2334 .name = "256-GMAC 160-aad NIST CAVS TC0",
2335 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2336 .key = TEST_DATA_STR (
2337 "\x88\x6c\xff\x5f\x3e\x6b\x8d\x0e\x1a\xd0\xa3\x8f\xcd\xb2\x6d\xe9\x7e\x8a"
2338 "\xcb\xe7\x9f\x6b\xed\x66\x95\x9a\x59\x8f\xa5\x04\x7d\x65"),
2339 .iv = TEST_DATA_STR ("\x3a\x8e\xfa\x1c\xd7\x4b\xba\xb5\x44\x8f\x99\x45"),
2340 .aad = TEST_DATA_STR ("\x51\x9f\xee\x51\x9d\x25\xc7\xa3\x04\xd6\xc6\xaa\x18"
2341 "\x97\xee\x1e\xb8\xc5\x96\x55"),
2342 .tag = TEST_DATA_STR (
2343 "\xf6\xd4\x75\x05\xec\x96\xc9\x8a\x42\xdc\x3a\xe7\x19\x87\x7b\x87"),
2346 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc1) = {
2347 .name = "256-GMAC 160-aad NIST CAVS TC1",
2348 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2349 .key = TEST_DATA_STR (
2350 "\x69\x37\xa5\x7d\x35\xfe\x6d\xc3\xfc\x42\x0b\x12\x3b\xcc\xdc\xe8\x74\xbd"
2351 "\x4c\x18\xf2\xe7\xc0\x1c\xe2\xfa\xf3\x3d\x39\x44\xfd\x9d"),
2352 .iv = TEST_DATA_STR ("\xa8\x72\x47\x79\x7b\x75\x84\x67\xb9\x63\x10\xf3"),
2353 .aad = TEST_DATA_STR ("\xea\xd9\x61\x93\x9a\x33\xdd\x57\x8f\x8e\x93\xdb\x8b"
2354 "\x28\xa1\xc8\x53\x62\x90\x5f"),
2355 .tag = TEST_DATA_STR (
2356 "\x59\x9d\xe3\xec\xf2\x2c\xb8\x67\xf0\x3f\x7f\x6d\x9f\xd7\x42\x8a"),
2359 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc2) = {
2360 .name = "256-GMAC 160-aad NIST CAVS TC2",
2361 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2362 .key = TEST_DATA_STR (
2363 "\xe6\x5a\x33\x17\x76\xc9\xdc\xdf\x5e\xba\x6c\x59\xe0\x5e\xc0\x79\xd9\x74"
2364 "\x73\xbc\xdc\xe8\x4d\xaf\x83\x6b\xe3\x23\x45\x62\x63\xa0"),
2365 .iv = TEST_DATA_STR ("\xca\x73\x1f\x76\x8d\xa0\x1d\x02\xeb\x8e\x72\x7e"),
2366 .aad = TEST_DATA_STR ("\xd7\x27\x45\x86\x51\x7b\xf1\xd8\xda\x86\x6f\x4a\x47"
2367 "\xad\x0b\xcf\x29\x48\xa8\x62"),
2368 .tag = TEST_DATA_STR (
2369 "\xa8\xab\xe7\xa8\x08\x5f\x25\x13\x0a\x72\x06\xd3\x7a\x8a\xaf\x6d"),
2372 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc3) = {
2373 .name = "256-GMAC 160-aad NIST CAVS TC3",
2374 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2375 .key = TEST_DATA_STR (
2376 "\x77\xbb\x1b\x6e\xf8\x98\x68\x3c\x98\x1b\x2f\xc8\x99\x31\x9f\xfb\xb6\x00"
2377 "\x0e\xdc\xa2\x25\x66\xb6\x34\xdb\x3a\x3c\x80\x40\x59\xe5"),
2378 .iv = TEST_DATA_STR ("\x35\x4a\x19\x28\x37\x69\xb3\xb9\x91\xb0\x5a\x4c"),
2379 .aad = TEST_DATA_STR ("\xb5\x56\x62\x51\xa8\xa8\xbe\xc2\x12\xdc\x08\x11\x32"
2380 "\x29\xff\x85\x90\x16\x88\x00"),
2381 .tag = TEST_DATA_STR (
2382 "\xe5\xc2\xdc\xcf\x8f\xc7\xf2\x96\xca\xc9\x5d\x70\x71\xcb\x8d\x7d"),
2385 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc4) = {
2386 .name = "256-GMAC 160-aad NIST CAVS TC4",
2387 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2388 .key = TEST_DATA_STR (
2389 "\x2a\x43\x30\x8d\x52\x0a\x59\xed\x51\xe4\x7a\x3a\x91\x5e\x1d\xbf\x20\xa9"
2390 "\x1f\x08\x86\x50\x6e\x48\x1a\xd3\xde\x65\xd5\x09\x75\xb4"),
2391 .iv = TEST_DATA_STR ("\xbc\xbf\x99\x73\x3d\x8e\xc9\x0c\xb2\x3e\x6c\xe6"),
2392 .aad = TEST_DATA_STR ("\xeb\x88\x28\x87\x29\x28\x9d\x26\xfe\x0e\x75\x7a\x99"
2393 "\xad\x8e\xec\x96\x10\x60\x53"),
2394 .tag = TEST_DATA_STR (
2395 "\x01\xb0\x19\x69\x33\xaa\x49\x12\x3e\xab\x4e\x15\x71\x25\x03\x83"),
2398 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc5) = {
2399 .name = "256-GMAC 160-aad NIST CAVS TC5",
2400 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2401 .key = TEST_DATA_STR (
2402 "\x23\x79\xb3\x5f\x85\x10\x2d\xb4\xe7\xae\xcc\x52\xb7\x05\xbc\x69\x5d\x47"
2403 "\x68\xd4\x12\xe2\xd7\xbe\xbe\x99\x92\x36\x78\x39\x72\xff"),
2404 .iv = TEST_DATA_STR ("\x91\x89\x98\xc4\x80\x10\x37\xb1\xcd\x10\x2f\xaa"),
2405 .aad = TEST_DATA_STR ("\xb3\x72\x23\x09\xe0\xf0\x66\x22\x5e\x8d\x16\x59\x08"
2406 "\x4e\xbb\x07\xa9\x3b\x43\x5d"),
2407 .tag = TEST_DATA_STR (
2408 "\xdf\xb1\x8a\xee\x99\xd1\xf6\x7f\x57\x48\xd4\xb4\x84\x3c\xb6\x49"),
2411 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc6) = {
2412 .name = "256-GMAC 160-aad NIST CAVS TC6",
2413 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2414 .key = TEST_DATA_STR (
2415 "\x98\xb3\xcb\x75\x37\x16\x7e\x6d\x14\xa2\xa8\xb2\x31\x0f\xe9\x4b\x71\x5c"
2416 "\x72\x9f\xdf\x85\x21\x65\x68\x15\x0b\x55\x6d\x07\x97\xba"),
2417 .iv = TEST_DATA_STR ("\xbc\xa5\xe2\xe5\xa6\xb3\x0f\x18\xd2\x63\xc6\xb2"),
2418 .aad = TEST_DATA_STR ("\x26\x0d\x3d\x72\xdb\x70\xd6\x77\xa4\xe3\xe1\xf3\xe1"
2419 "\x14\x31\x21\x7a\x2e\x47\x13"),
2420 .tag = TEST_DATA_STR (
2421 "\xd6\xb7\x56\x0f\x8a\xc2\xf0\xa9\x0b\xad\x42\xa6\xa0\x72\x04\xbc"),
2424 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc7) = {
2425 .name = "256-GMAC 160-aad NIST CAVS TC7",
2426 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2427 .key = TEST_DATA_STR (
2428 "\x30\x34\x1a\xe0\xf1\x99\xb1\x0a\x15\x17\x5d\x00\x91\x3d\x50\x29\x52\x6a"
2429 "\xb7\xf7\x61\xc0\xb9\x36\xa7\xdd\x5f\x1b\x15\x83\x42\x9d"),
2430 .iv = TEST_DATA_STR ("\xdb\xe1\x09\xa8\xce\x5f\x7b\x24\x1e\x99\xf7\xaf"),
2431 .aad = TEST_DATA_STR ("\xfe\x4b\xde\xe5\xca\x9c\x48\x06\xfa\x02\x47\x15\xfb"
2432 "\xf6\x6a\xb8\x45\x28\x5f\xa7"),
2433 .tag = TEST_DATA_STR (
2434 "\xae\x91\xda\xed\x65\x8e\x26\xc0\xd1\x26\x57\x51\x47\xaf\x98\x99"),
2437 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc8) = {
2438 .name = "256-GMAC 160-aad NIST CAVS TC8",
2439 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2440 .key = TEST_DATA_STR (
2441 "\x82\x32\xb6\xa1\xd2\xe3\x67\xe9\xce\x1e\xa8\xd4\x2f\xcf\xc8\x3a\x4b\xc8"
2442 "\xbd\xec\x46\x5c\x6b\xa3\x26\xe3\x53\xad\x92\x55\xf2\x07"),
2443 .iv = TEST_DATA_STR ("\xcd\x2f\xb5\xff\x9c\xf0\xf3\x98\x68\xad\x86\x85"),
2444 .aad = TEST_DATA_STR ("\x02\x41\x8b\x3d\xde\x54\x92\x4a\x96\x28\xde\x06\x00"
2445 "\x4c\x08\x82\xae\x4e\xc3\xbb"),
2446 .tag = TEST_DATA_STR (
2447 "\xd5\x30\x8f\x63\x70\x86\x75\xce\xd1\x9b\x27\x10\xaf\xd2\xdb\x49"),
2450 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc9) = {
2451 .name = "256-GMAC 160-aad NIST CAVS TC9",
2452 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2453 .key = TEST_DATA_STR (
2454 "\xf9\xa1\x32\xa5\x0a\x50\x81\x45\xff\xd8\x29\x4e\x68\x94\x4e\xa4\x36\xce"
2455 "\x0f\x9a\x97\xe1\x81\xf5\xe0\xd6\xc5\xd2\x72\x31\x1f\xc1"),
2456 .iv = TEST_DATA_STR ("\x89\x29\x91\xb5\x4e\x94\xb9\xd5\x74\x42\xcc\xaf"),
2457 .aad = TEST_DATA_STR ("\x4e\x0f\xbd\x37\x99\xda\x25\x0f\xa2\x79\x11\xb7\xe6"
2458 "\x8d\x76\x23\xbf\xe6\x0a\x53"),
2459 .tag = TEST_DATA_STR (
2460 "\x89\x88\x1d\x5f\x78\x6e\x6d\x53\xe0\xd1\x9c\x3b\x4e\x68\x87\xd8"),
2463 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc10) = {
2464 .name = "256-GMAC 160-aad NIST CAVS TC10",
2465 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2466 .key = TEST_DATA_STR (
2467 "\x0e\x37\x46\xe5\x06\x46\x33\xea\x93\x11\xb2\xb8\x42\x7c\x53\x6a\xf9\x27"
2468 "\x17\xde\x20\xee\xb6\x26\x0d\xb1\x33\x3c\x3d\x8a\x81\x14"),
2469 .iv = TEST_DATA_STR ("\xf8\x4c\x3a\x1c\x94\x53\x3f\x7f\x25\xce\xc0\xac"),
2470 .aad = TEST_DATA_STR ("\x8c\x0d\x41\xe6\x13\x53\x38\xc8\xd3\xe6\x3e\x2a\x5f"
2471 "\xa0\xa9\x66\x7e\xc9\xa5\x80"),
2472 .tag = TEST_DATA_STR (
2473 "\x47\x9c\xcf\xe9\x24\x1d\xe2\xc4\x74\xf2\xed\xeb\xbb\x38\x5c\x09"),
2476 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc11) = {
2477 .name = "256-GMAC 160-aad NIST CAVS TC11",
2478 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2479 .key = TEST_DATA_STR (
2480 "\xb9\x97\xe9\xb0\x74\x6a\xba\xae\xd6\xe6\x4b\x63\xbd\xf6\x48\x82\x52\x6a"
2481 "\xd9\x2e\x24\xa2\xf5\x64\x9d\xf0\x55\xc9\xec\x0f\x1d\xaa"),
2482 .iv = TEST_DATA_STR ("\xf1\x41\xd8\xd7\x1b\x03\x37\x55\x02\x2f\x0a\x7d"),
2483 .aad = TEST_DATA_STR ("\x68\x1d\x65\x83\xf5\x27\xb1\xa9\x2f\x66\xca\xae\x9b"
2484 "\x1d\x4d\x02\x8e\x2e\x63\x1e"),
2485 .tag = TEST_DATA_STR (
2486 "\xb3\x04\x42\xa6\x39\x5e\xc1\x32\x46\xc4\x8b\x21\xff\xc6\x55\x09"),
2489 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc12) = {
2490 .name = "256-GMAC 160-aad NIST CAVS TC12",
2491 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2492 .key = TEST_DATA_STR (
2493 "\x87\x66\x0e\xc1\x70\x0d\x4e\x9f\x88\xa3\x23\xa4\x9f\x0b\x87\x1e\x6a\xaf"
2494 "\x43\x4a\x2d\x84\x48\xd0\x4d\x4a\x22\xf6\x56\x10\x28\xe0"),
2495 .iv = TEST_DATA_STR ("\x2a\x07\xb4\x25\x93\xcd\x24\xf0\xa6\xfe\x40\x6c"),
2496 .aad = TEST_DATA_STR ("\x1d\xd2\x39\xb5\x71\x85\xb7\xe4\x57\xce\xd7\x3e\xbb"
2497 "\xa0\x43\x05\x7f\x04\x9e\xdd"),
2498 .tag = TEST_DATA_STR (
2499 "\xdf\x7a\x50\x10\x49\xb3\x7a\x53\x40\x98\xcb\x45\xcb\x9c\x21\xb7"),
2502 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc13) = {
2503 .name = "256-GMAC 160-aad NIST CAVS TC13",
2504 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2505 .key = TEST_DATA_STR (
2506 "\xea\x47\x92\xe1\xf1\x71\x7b\x77\xa0\x0d\xe4\xd1\x09\xe6\x27\x54\x9b\x16"
2507 "\x5c\x82\xaf\x35\xf3\x3c\xa7\xe1\xa6\xb8\xed\x62\xf1\x4f"),
2508 .iv = TEST_DATA_STR ("\x74\x53\xcc\x8b\x46\xfe\x4b\x93\xbc\xc4\x83\x81"),
2509 .aad = TEST_DATA_STR ("\x46\xd9\x89\x70\xa6\x36\xe7\xcd\x7b\x76\xfc\x36\x2a"
2510 "\xe8\x82\x98\x43\x6f\x83\x4f"),
2511 .tag = TEST_DATA_STR (
2512 "\x51\x8d\xba\xcd\x36\xbe\x6f\xba\x5c\x12\x87\x16\x78\xa5\x55\x16"),
2515 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad160_tc14) = {
2516 .name = "256-GMAC 160-aad NIST CAVS TC14",
2517 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2518 .key = TEST_DATA_STR (
2519 "\x34\x89\x2c\xdd\x1d\x48\xca\x16\x6f\x7b\xa7\x31\x82\xcb\x97\x33\x6c\x2c"
2520 "\x75\x4a\xc1\x60\xa3\xe3\x71\x83\xd6\xfb\x50\x78\xce\xc3"),
2521 .iv = TEST_DATA_STR ("\xed\x31\x98\xc5\x86\x1b\x78\xc7\x1a\x6a\x4e\xec"),
2522 .aad = TEST_DATA_STR ("\xa6\xfa\x6d\x0d\xd1\xe0\xb9\x5b\x46\x09\x95\x1b\xbb"
2523 "\xe7\x14\xde\x0a\xe0\xcc\xfa"),
2524 .tag = TEST_DATA_STR (
2525 "\xc6\x38\x77\x95\x09\x6b\x34\x8e\xcf\x1d\x1f\x6c\xaa\xa3\xc8\x13"),
2528 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc0) = {
2529 .name = "256-GMAC 384-aad NIST CAVS TC0",
2530 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2531 .key = TEST_DATA_STR (
2532 "\xf4\x06\x9b\xb7\x39\xd0\x7d\x0c\xaf\xdc\xbc\x60\x9c\xa0\x15\x97\xf9\x85"
2533 "\xc4\x3d\xb6\x3b\xba\xaa\x0d\xeb\xbb\x04\xd3\x84\xe4\x9c"),
2534 .iv = TEST_DATA_STR ("\xd2\x5f\xf3\x0f\xdc\x3d\x46\x4f\xe1\x73\xe8\x05"),
2535 .aad = TEST_DATA_STR (
2536 "\x3e\x14\x49\xc4\x83\x7f\x08\x92\xf9\xd5\x51\x27\xc7\x5c\x4b\x25\xd6\x9b"
2537 "\xe3\x34\xba\xf5\xf1\x93\x94\xd2\xd8\xbb\x46\x0c\xbf\x21\x20\xe1\x47\x36"
2538 "\xd0\xf6\x34\xaa\x79\x2f\xec\xa2\x0e\x45\x5f\x11"),
2539 .tag = TEST_DATA_STR (
2540 "\x80\x5e\xc2\x93\x1c\x21\x81\xe5\xbf\xb7\x4f\xa0\xa9\x75\xf0\xcf"),
2543 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc1) = {
2544 .name = "256-GMAC 384-aad NIST CAVS TC1",
2545 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2546 .key = TEST_DATA_STR (
2547 "\x62\x18\x9d\xcc\x4b\xeb\x97\x46\x2d\x6c\x09\x27\xd8\xa2\x70\xd3\x9a\x1b"
2548 "\x07\xd7\x2d\x0a\xd2\x88\x40\xba\xdd\x4f\x68\xcf\x9c\x8b"),
2549 .iv = TEST_DATA_STR ("\x85\x9f\xda\x52\x47\xc8\x88\x82\x3a\x4b\x80\x32"),
2550 .aad = TEST_DATA_STR (
2551 "\xb2\x8d\x16\x21\xee\x11\x0f\x4c\x9d\x70\x9f\xad\x76\x4b\xba\x2d\xd6\xd2"
2552 "\x91\xbc\x00\x37\x48\xfa\xac\x6d\x90\x19\x37\x12\x0d\x41\xc1\xb7\xce\x67"
2553 "\x63\x37\x63\xe9\x9e\x05\xc7\x13\x63\xfc\xec\xa8"),
2554 .tag = TEST_DATA_STR (
2555 "\x27\x33\x09\x07\xd0\x00\x28\x80\xbb\xb4\xc1\xa1\xd2\x3c\x0b\xe2"),
2558 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc2) = {
2559 .name = "256-GMAC 384-aad NIST CAVS TC2",
2560 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2561 .key = TEST_DATA_STR (
2562 "\x59\x01\x2d\x85\xa1\xb9\x0a\xeb\x03\x59\xe6\x38\x4c\x99\x91\xe7\xbe\x21"
2563 "\x93\x19\xf5\xb8\x91\xc9\x2c\x38\x4a\xde\x2f\x37\x18\x16"),
2564 .iv = TEST_DATA_STR ("\x3c\x9c\xde\x00\xc2\x39\x12\xcf\xf9\x68\x9c\x7c"),
2565 .aad = TEST_DATA_STR (
2566 "\xe5\xda\xf4\x73\xa4\x70\x86\x0b\x55\x21\x0a\x48\x3c\x0d\x1a\x97\x8d\x8a"
2567 "\xdd\x84\x3c\x2c\x09\x7f\x73\xa3\xcd\xa4\x9a\xc4\xa6\x14\xc8\xe8\x87\xd9"
2568 "\x4e\x66\x92\x30\x9d\x2e\xd9\x7e\xbe\x1e\xaf\x5d"),
2569 .tag = TEST_DATA_STR (
2570 "\x04\x82\x39\xe4\xe5\xc2\xc8\xb3\x38\x90\xa7\xc9\x50\xcd\xa8\x52"),
2573 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc3) = {
2574 .name = "256-GMAC 384-aad NIST CAVS TC3",
2575 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2576 .key = TEST_DATA_STR (
2577 "\x4b\xe0\x9b\x40\x8a\xd6\x8b\x89\x0f\x94\xbe\x5e\xfa\x7f\xe9\xc9\x17\x36"
2578 "\x27\x12\xa3\x48\x0c\x57\xcd\x38\x44\x93\x5f\x35\xac\xb7"),
2579 .iv = TEST_DATA_STR ("\x8f\x35\x0b\xd3\xb8\xee\xa1\x73\xfc\x73\x70\xbc"),
2580 .aad = TEST_DATA_STR (
2581 "\x28\x19\xd6\x5a\xec\x94\x21\x98\xca\x97\xd4\x43\x5e\xfd\x9d\xd4\xd4\x39"
2582 "\x3b\x96\xcf\x5b\xa4\x4f\x09\xbc\xe4\xba\x13\x5f\xc8\x63\x6e\x82\x75\xdc"
2583 "\xb5\x15\x41\x4b\x8b\xef\xd3\x2f\x91\xfc\x48\x22"),
2584 .tag = TEST_DATA_STR (
2585 "\xa1\x33\xcb\x7a\x7d\x04\x71\xdb\xac\x61\xfb\x41\x58\x9a\x2e\xfe"),
2588 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc4) = {
2589 .name = "256-GMAC 384-aad NIST CAVS TC4",
2590 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2591 .key = TEST_DATA_STR (
2592 "\x13\xcb\x96\x5a\x4d\x9d\x1a\x36\xef\xad\x9f\x6c\xa1\xba\x76\x38\x6a\x5b"
2593 "\xb1\x60\xd8\x0b\x09\x17\x27\x71\x02\x35\x7a\xc7\xaf\xc8"),
2594 .iv = TEST_DATA_STR ("\xf3\x13\xad\xec\x42\xa6\x6d\x13\xc3\x95\x81\x80"),
2595 .aad = TEST_DATA_STR (
2596 "\x71\x7b\x48\x35\x88\x98\xe5\xcc\xfe\xa4\x28\x90\x49\xad\xcc\x1b\xb0\xdb"
2597 "\x3b\x3e\xbd\x17\x67\xac\x24\xfb\x2b\x7d\x37\xdc\x80\xea\x23\x16\xc1\x7f"
2598 "\x14\xfb\x51\xb5\xe1\x8c\xd5\xbb\x09\xaf\xe4\x14"),
2599 .tag = TEST_DATA_STR (
2600 "\x81\xb4\xef\x7a\x84\xdc\x4a\x0b\x1f\xdd\xbe\xfe\x37\xf5\x38\x52"),
2603 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc5) = {
2604 .name = "256-GMAC 384-aad NIST CAVS TC5",
2605 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2606 .key = TEST_DATA_STR (
2607 "\xd2\x7f\x1b\xeb\xbb\xde\xf0\xed\xca\x39\x3a\x62\x61\xb0\x33\x8a\xbb\xc4"
2608 "\x91\x26\x2e\xab\x07\x37\xf5\x52\x46\x45\x8f\x66\x68\xcc"),
2609 .iv = TEST_DATA_STR ("\xfc\x06\x2f\x85\x78\x86\xe2\x78\xf3\xa5\x67\xd2"),
2610 .aad = TEST_DATA_STR (
2611 "\x2b\xae\x92\xde\xa6\x4a\xa9\x91\x89\xde\x8e\xa4\xc0\x46\x74\x53\x06\x00"
2612 "\x2e\x02\xcf\xb4\x6a\x41\x44\x4c\xe8\xbf\xcc\x32\x9b\xd4\x20\x59\x63\xd9"
2613 "\xab\x53\x57\xb0\x26\xa4\xa3\x4b\x1a\x86\x17\x71"),
2614 .tag = TEST_DATA_STR (
2615 "\x5c\x5a\x6c\x46\x13\xf1\xe5\x22\x59\x63\x30\xd4\x5f\x24\x3f\xdd"),
2618 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc6) = {
2619 .name = "256-GMAC 384-aad NIST CAVS TC6",
2620 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2621 .key = TEST_DATA_STR (
2622 "\x7b\x4d\x19\xcd\x35\x69\xf7\x4c\x7b\x5d\xf6\x1a\xb7\x83\x79\xee\x6b\xfa"
2623 "\x15\x10\x5d\x21\xb1\x0b\xf6\x09\x66\x99\x53\x90\x06\xd0"),
2624 .iv = TEST_DATA_STR ("\xfb\xed\x56\x95\xc4\xa7\x39\xed\xed\x97\xb1\xe3"),
2625 .aad = TEST_DATA_STR (
2626 "\xc6\xf2\xe5\xd6\x63\xbf\xaf\x66\x8d\x01\x45\x50\xef\x2e\x66\xbf\x89\x97"
2627 "\x87\x99\xa7\x85\xf1\xf2\xc7\x9a\x2c\xb3\xeb\x3f\x2f\xd4\x07\x62\x07\xd5"
2628 "\xf7\xe1\xc2\x84\xb4\xaf\x5c\xff\xc4\xe4\x61\x98"),
2629 .tag = TEST_DATA_STR (
2630 "\x71\x01\xb4\x34\xfb\x90\xc7\xf9\x5b\x9b\x7a\x0d\xee\xeb\x5c\x81"),
2633 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc7) = {
2634 .name = "256-GMAC 384-aad NIST CAVS TC7",
2635 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2636 .key = TEST_DATA_STR (
2637 "\xd3\x43\x14\x88\xd8\xf0\x48\x59\x0b\xd7\x6e\xc6\x6e\x71\x42\x1e\xf0\x9f"
2638 "\x65\x5d\x7c\xf8\x04\x3b\xf3\x2f\x75\xb4\xb2\xe7\xef\xcc"),
2639 .iv = TEST_DATA_STR ("\xcc\x76\x6e\x98\xb4\x0a\x81\x51\x9f\xa4\x63\x92"),
2640 .aad = TEST_DATA_STR (
2641 "\x93\x32\x01\x79\xfd\xb4\x0c\xbc\x1c\xcf\x00\xb8\x72\xa3\xb4\xa5\xf6\xc7"
2642 "\x0b\x56\xe4\x3a\x84\xfc\xac\x5e\xb4\x54\xa0\xa1\x9a\x74\x7d\x45\x20\x42"
2643 "\x61\x1b\xf3\xbb\xaa\xfd\x92\x5e\x80\x6f\xfe\x8e"),
2644 .tag = TEST_DATA_STR (
2645 "\x3a\xfc\xc3\x36\xce\x8b\x71\x91\xea\xb0\x4a\xd6\x79\x16\x3c\x2a"),
2648 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc8) = {
2649 .name = "256-GMAC 384-aad NIST CAVS TC8",
2650 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2651 .key = TEST_DATA_STR (
2652 "\xa4\x40\x94\x8c\x03\x78\x56\x1c\x39\x56\x81\x3c\x03\x1f\x81\x57\x32\x08"
2653 "\xc7\xff\xa8\x15\x11\x4e\xf2\xee\xe1\xeb\x64\x2e\x74\xc6"),
2654 .iv = TEST_DATA_STR ("\xc1\xf4\xff\xe5\x4b\x86\x80\x83\x2e\xed\x88\x19"),
2655 .aad = TEST_DATA_STR (
2656 "\x25\x34\x38\xf1\x32\xb1\x8e\x84\x83\x07\x45\x61\x89\x8c\x56\x52\xb4\x3a"
2657 "\x82\xcc\x94\x1e\x8b\x4a\xe3\x7e\x79\x2a\x8e\xd6\xec\x5c\xe2\xbc\xec\x9f"
2658 "\x1f\xfc\xf4\x21\x6e\x46\x69\x63\x07\xbb\x77\x4a"),
2659 .tag = TEST_DATA_STR (
2660 "\x12\x94\x45\xf0\xa3\xc9\x79\xa1\x12\xa3\xaf\xb1\x0a\x24\xe2\x45"),
2663 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc9) = {
2664 .name = "256-GMAC 384-aad NIST CAVS TC9",
2665 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2666 .key = TEST_DATA_STR (
2667 "\x79\x87\x06\xb6\x51\x03\x3d\x9e\x9b\xf2\xce\x06\x4f\xb1\x2b\xe7\xdf\x73"
2668 "\x08\xcf\x45\xdf\x44\x77\x65\x88\xcd\x39\x1c\x49\xff\x85"),
2669 .iv = TEST_DATA_STR ("\x5a\x43\x36\x8a\x39\xe7\xff\xb7\x75\xed\xfa\xf4"),
2670 .aad = TEST_DATA_STR (
2671 "\x92\x6b\x74\xfe\x63\x81\xeb\xd3\x57\x57\xe4\x2e\x8e\x55\x76\x01\xf2\x28"
2672 "\x7b\xfc\x13\x3a\x13\xfd\x86\xd6\x1c\x01\xaa\x84\xf3\x97\x13\xbf\x99\xa8"
2673 "\xdc\x07\xb8\x12\xf0\x27\x4c\x9d\x32\x80\xa1\x38"),
2674 .tag = TEST_DATA_STR (
2675 "\x89\xfe\x48\x1a\x3d\x95\xc0\x3a\x0a\x9d\x4e\xe3\xe3\xf0\xed\x4a"),
2678 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc10) = {
2679 .name = "256-GMAC 384-aad NIST CAVS TC10",
2680 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2681 .key = TEST_DATA_STR (
2682 "\xc3\xaa\x2a\x39\xa9\xfe\xf4\xa4\x66\x61\x8d\x12\x88\xbb\x62\xf8\xda\x7b"
2683 "\x1c\xb7\x60\xcc\xc8\xf1\xbe\x3e\x99\xe0\x76\xf0\x8e\xff"),
2684 .iv = TEST_DATA_STR ("\x99\x65\xba\x5e\x23\xd9\x45\x3d\x72\x67\xca\x5b"),
2685 .aad = TEST_DATA_STR (
2686 "\x93\xef\xb6\xa2\xaf\xfc\x30\x4c\xb2\x5d\xfd\x49\xaa\x3e\x3c\xcd\xb2\x5c"
2687 "\xea\xc3\xd3\xce\xa9\x0d\xd9\x9e\x38\x97\x69\x78\x21\x7a\xd5\xf2\xb9\x90"
2688 "\xd1\x0b\x91\x72\x5c\x7f\xd2\x03\x5e\xcc\x6a\x30"),
2689 .tag = TEST_DATA_STR (
2690 "\x00\xa9\x4c\x18\xa4\x57\x2d\xcf\x4f\x9e\x22\x26\xa0\x3d\x4c\x07"),
2693 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc11) = {
2694 .name = "256-GMAC 384-aad NIST CAVS TC11",
2695 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2696 .key = TEST_DATA_STR (
2697 "\x14\xe0\x68\x58\x00\x8f\x7e\x77\x18\x6a\x2b\x3a\x79\x28\xa0\xc7\xfc\xee"
2698 "\x22\x13\x6b\xc3\x6f\x53\x55\x3f\x20\xfa\x5c\x37\xed\xcd"),
2699 .iv = TEST_DATA_STR ("\x32\xeb\xe0\xdc\x9a\xda\x84\x9b\x5e\xda\x7b\x48"),
2700 .aad = TEST_DATA_STR (
2701 "\x6c\x01\x52\xab\xfa\x48\x5b\x8c\xd6\x7c\x15\x4a\x5f\x04\x11\xf2\x21\x21"
2702 "\x37\x97\x74\xd7\x45\xf4\x0e\xe5\x77\xb0\x28\xfd\x0e\x18\x82\x97\x58\x15"
2703 "\x61\xae\x97\x22\x23\xd7\x5a\x24\xb4\x88\xae\xd7"),
2704 .tag = TEST_DATA_STR (
2705 "\x26\x25\xb0\xba\x6e\xe0\x2b\x58\xbc\x52\x9e\x43\xe2\xeb\x47\x1b"),
2708 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc12) = {
2709 .name = "256-GMAC 384-aad NIST CAVS TC12",
2710 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2711 .key = TEST_DATA_STR (
2712 "\xfb\xb5\x6b\x11\xc5\x1a\x09\x3c\xe1\x69\xa6\x99\x03\x99\xc4\xd7\x41\xf6"
2713 "\x2b\x3c\xc6\x1f\x9e\x8a\x60\x9a\x1b\x6a\xe8\xe7\xe9\x65"),
2714 .iv = TEST_DATA_STR ("\x9c\x5a\x95\x32\x47\xe9\x1a\xce\xce\xb9\xde\xfb"),
2715 .aad = TEST_DATA_STR (
2716 "\x46\xcb\x5c\x4f\x61\x79\x16\xa9\xb1\xb2\xe0\x32\x72\xcb\x05\x90\xce\x71"
2717 "\x64\x98\x53\x30\x47\xd7\x3c\x81\xe4\xcb\xe9\x27\x8a\x36\x86\x11\x6f\x56"
2718 "\x32\x75\x3e\xa2\xdf\x52\xef\xb3\x55\x1a\xea\x2d"),
2719 .tag = TEST_DATA_STR (
2720 "\x4f\x3b\x82\xe6\xbe\x4f\x08\x75\x60\x71\xf2\xc4\x6c\x31\xfe\xdf"),
2723 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc13) = {
2724 .name = "256-GMAC 384-aad NIST CAVS TC13",
2725 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2726 .key = TEST_DATA_STR (
2727 "\xb3\x03\xbf\x02\xf6\xa8\xdb\xb5\xbc\x4b\xac\xca\xb0\x80\x0d\xb5\xee\x06"
2728 "\xde\x64\x8e\x2f\xae\x29\x9b\x95\xf1\x35\xc9\xb1\x07\xcc"),
2729 .iv = TEST_DATA_STR ("\x90\x64\x95\xb6\x7e\xf4\xce\x00\xb4\x44\x22\xfa"),
2730 .aad = TEST_DATA_STR (
2731 "\x87\x2c\x6c\x37\x09\x26\x53\x5c\x3f\xa1\xba\xec\x03\x1e\x31\xe7\xc6\xc8"
2732 "\x28\x08\xc8\xa0\x60\x74\x2d\xbe\xf1\x14\x96\x1c\x31\x4f\x19\x86\xb2\x13"
2733 "\x1a\x9d\x91\xf3\x0f\x53\x06\x7e\xc0\x12\xc6\xb7"),
2734 .tag = TEST_DATA_STR (
2735 "\x64\xdd\xe3\x71\x69\x08\x2d\x18\x1a\x69\x10\x7f\x60\xc5\xc6\xbb"),
2738 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad384_tc14) = {
2739 .name = "256-GMAC 384-aad NIST CAVS TC14",
2740 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2741 .key = TEST_DATA_STR (
2742 "\x29\xf5\xf8\x07\x59\x03\x06\x3c\xb6\xd7\x05\x06\x69\xb1\xf7\x4e\x08\xa3"
2743 "\xf7\x9e\xf5\x66\x29\x2d\xfd\xef\x1c\x06\xa4\x08\xe1\xab"),
2744 .iv = TEST_DATA_STR ("\x35\xf2\x5c\x48\xb4\xb5\x35\x5e\x78\xb9\xfb\x3a"),
2745 .aad = TEST_DATA_STR (
2746 "\x10\x7e\x2e\x23\x15\x9f\xc5\xc0\x74\x8c\xa7\xa0\x77\xe5\xcc\x05\x3f\xa5"
2747 "\xc6\x82\xff\x52\x69\xd3\x50\xee\x81\x7f\x8b\x5d\xe4\xd3\x97\x20\x41\xd1"
2748 "\x07\xb1\xe2\xf2\xe5\x4c\xa9\x3b\x72\xcd\x04\x08"),
2749 .tag = TEST_DATA_STR (
2750 "\xfe\xe5\xa9\xba\xeb\xb5\xbe\x01\x65\xde\xaa\x86\x7e\x96\x7a\x9e"),
2753 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc0) = {
2754 .name = "256-GMAC 720-aad NIST CAVS TC0",
2755 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2756 .key = TEST_DATA_STR (
2757 "\x03\xcc\xb7\xdb\xc7\xb8\x42\x54\x65\xc2\xc3\xfc\x39\xed\x05\x93\x92\x9f"
2758 "\xfd\x02\xa4\x5f\xf5\x83\xbd\x89\xb7\x9c\x6f\x64\x6f\xe9"),
2759 .iv = TEST_DATA_STR ("\xfd\x11\x99\x85\x53\x3b\xd5\x52\x0b\x30\x1d\x12"),
2760 .aad = TEST_DATA_STR (
2761 "\x98\xe6\x8c\x10\xbf\x4b\x5a\xe6\x2d\x43\x49\x28\xfc\x64\x05\x14\x7c\x63"
2762 "\x01\x41\x73\x03\xef\x3a\x70\x3d\xcf\xd2\xc0\xc3\x39\xa4\xd0\xa8\x9b\xd2"
2763 "\x9f\xe6\x1f\xec\xf1\x06\x6a\xb0\x6d\x7a\x5c\x31\xa4\x8f\xfb\xfe\xd2\x2f"
2764 "\x74\x9b\x17\xe9\xbd\x0d\xc1\xc6\xf8\xfb\xd6\xfd\x45\x87\x18\x4d\xb9\x64"
2765 "\xd5\x45\x61\x32\x10\x6d\x78\x23\x38\xc3\xf1\x17\xec\x05\x22\x9b\x08"
2767 .tag = TEST_DATA_STR (
2768 "\xcf\x54\xe7\x14\x13\x49\xb6\x6f\x24\x81\x54\x42\x78\x10\xc8\x7a"),
2771 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc1) = {
2772 .name = "256-GMAC 720-aad NIST CAVS TC1",
2773 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2774 .key = TEST_DATA_STR (
2775 "\x57\xe1\x12\xcd\x45\xf2\xc5\x7d\xdb\x81\x9e\xa6\x51\xc2\x06\x76\x31\x63"
2776 "\xef\x01\x6c\xee\xad\x5c\x4e\xae\x40\xf2\xbb\xe0\xe4\xb4"),
2777 .iv = TEST_DATA_STR ("\x18\x80\x22\xc2\x12\x5d\x2b\x1f\xcf\x9e\x47\x69"),
2778 .aad = TEST_DATA_STR (
2779 "\x09\xc8\xf4\x45\xce\x5b\x71\x46\x56\x95\xf8\x38\xc4\xbb\x2b\x00\x62\x4a"
2780 "\x1c\x91\x85\xa3\xd5\x52\x54\x6d\x9d\x2e\xe4\x87\x00\x07\xaa\xf3\x00\x70"
2781 "\x08\xf8\xae\x9a\xff\xb7\x58\x8b\x88\xd0\x9a\x90\xe5\x8b\x45\x7f\x88\xf1"
2782 "\xe3\x75\x2e\x3f\xb9\x49\xce\x37\x86\x70\xb6\x7a\x95\xf8\xcf\x7f\x5c\x7c"
2783 "\xeb\x65\x0e\xfd\x73\x5d\xbc\x65\x2c\xae\x06\xe5\x46\xa5\xdb\xd8\x61"
2785 .tag = TEST_DATA_STR (
2786 "\x9e\xfc\xdd\xfa\x0b\xe2\x15\x82\xa0\x57\x49\xf4\x05\x0d\x29\xfe"),
2789 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc2) = {
2790 .name = "256-GMAC 720-aad NIST CAVS TC2",
2791 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2792 .key = TEST_DATA_STR (
2793 "\xa4\xdd\xf3\xca\xb7\x45\x3a\xae\xfa\xd6\x16\xfd\x65\xd6\x3d\x13\x00\x5e"
2794 "\x94\x59\xc1\x7d\x31\x73\xcd\x6e\xd7\xf2\xa8\x6c\x92\x1f"),
2795 .iv = TEST_DATA_STR ("\x06\x17\x7b\x24\xc5\x8f\x3b\xe4\xf3\xdd\x49\x20"),
2796 .aad = TEST_DATA_STR (
2797 "\xf9\x5b\x04\x6d\x80\x48\x5e\x41\x1c\x56\xb8\x34\x20\x9d\x3a\xbd\x5a\x8a"
2798 "\x9d\xdf\x72\xb1\xb9\x16\x67\x9a\xdf\xdd\xe8\x93\x04\x43\x15\xa5\xf4\x96"
2799 "\x7f\xd0\x40\x5e\xc2\x97\xaa\x33\x2f\x67\x6f\xf0\xfa\x5b\xd7\x95\xeb\x60"
2800 "\x9b\x2e\x4f\x08\x8d\xb1\xcd\xf3\x7c\xcf\xf0\x73\x5a\x5e\x53\xc4\xc1\x21"
2801 "\x73\xa0\x02\x6a\xea\x42\x38\x8a\x7d\x71\x53\xa8\x83\x0b\x8a\x90\x1c"
2803 .tag = TEST_DATA_STR (
2804 "\x9d\x1b\xd8\xec\xb3\x27\x69\x06\x13\x8d\x0b\x03\xfc\xb8\xc1\xbb"),
2807 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc3) = {
2808 .name = "256-GMAC 720-aad NIST CAVS TC3",
2809 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2810 .key = TEST_DATA_STR (
2811 "\x24\xa9\x2b\x24\xe8\x59\x03\xcd\x4a\xaa\xbf\xe0\x7c\x31\x0d\xf5\xa4\xf8"
2812 "\xf4\x59\xe0\x3a\x63\xcb\xd1\xb4\x78\x55\xb0\x9c\x0b\xe8"),
2813 .iv = TEST_DATA_STR ("\x22\xe7\x56\xdc\x89\x8d\x4c\xf1\x22\x08\x06\x12"),
2814 .aad = TEST_DATA_STR (
2815 "\x2e\x01\xb2\x53\x6d\xbe\x37\x6b\xe1\x44\x29\x6f\x5c\x38\xfb\x09\x9e\x00"
2816 "\x8f\x96\x2b\x9f\x0e\x89\x63\x34\xb6\x40\x83\x93\xbf\xf1\x02\x0a\x0e\x44"
2817 "\x24\x77\xab\xfd\xb1\x72\x72\x13\xb6\xcc\xc5\x77\xf5\xe1\x6c\xb0\x57\xc8"
2818 "\x94\x5a\x07\xe3\x07\x26\x4b\x65\x97\x9a\xed\x96\xb5\x99\x5f\x40\x25\x0f"
2819 "\xfb\xaa\xa1\xa1\xf0\xec\xcf\x39\x40\x15\xf6\x29\x0f\x5e\x64\xdf\xe5"
2821 .tag = TEST_DATA_STR (
2822 "\x0d\x7f\x1a\xed\x47\x08\xa0\x3b\x0c\x80\xb2\xa1\x87\x85\xc9\x6d"),
2825 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc4) = {
2826 .name = "256-GMAC 720-aad NIST CAVS TC4",
2827 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2828 .key = TEST_DATA_STR (
2829 "\x15\x27\x6f\xc6\x44\x38\x57\x8e\x0e\xc5\x33\x66\xb9\x0a\x0e\x23\xd9\x39"
2830 "\x10\xfe\xc1\x0d\xc3\x00\x3d\x9b\x3f\x3f\xa7\x2d\xb7\x02"),
2831 .iv = TEST_DATA_STR ("\xc5\xe9\x31\x94\x6d\x5c\xae\xbc\x22\x76\x56\xd2"),
2832 .aad = TEST_DATA_STR (
2833 "\x3f\x96\x7c\x83\xba\x02\xe7\x7c\x14\xe9\xd4\x11\x85\xeb\x87\xf1\x72\x25"
2834 "\x0e\x93\xed\xb0\xf8\x2b\x67\x42\xc1\x24\x29\x8a\xb6\x94\x18\x35\x8e\xdd"
2835 "\xef\xa3\x9f\xed\xc3\xca\xde\x9d\x80\xf0\x36\xd8\x64\xa5\x9e\xad\x37\xc8"
2836 "\x77\x27\xc5\x6c\x70\x1a\x8c\xd9\x63\x44\x69\xff\x31\xc7\x04\xf5\xee\x39"
2837 "\x35\x41\x57\xe6\x55\x84\x67\xb9\x28\x24\xda\x36\xb1\xc0\x71\xbe\xdf"
2839 .tag = TEST_DATA_STR (
2840 "\xa0\xff\xa1\x9a\xdc\xf3\x1d\x06\x1c\xd0\xdd\x46\xd2\x40\x15\xef"),
2843 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc5) = {
2844 .name = "256-GMAC 720-aad NIST CAVS TC5",
2845 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2846 .key = TEST_DATA_STR (
2847 "\xec\x09\x80\x4a\x04\x8b\xb8\x54\xc7\x16\x18\xb5\xa3\xa1\xc5\x90\x91\x0f"
2848 "\xc8\xa6\x84\x55\x13\x9b\x71\x94\x86\xd2\x28\x0e\xa5\x9a"),
2849 .iv = TEST_DATA_STR ("\xd0\xb1\x24\x7e\x71\x21\xa9\x27\x6a\xc1\x8c\xa3"),
2850 .aad = TEST_DATA_STR (
2851 "\x66\xb1\xd3\x9d\x41\x45\x96\x30\x8e\x86\x6b\x04\x47\x6e\x05\x3b\x71\xac"
2852 "\xd1\xcd\x07\xce\x80\x93\x95\x77\xeb\xbe\xac\xe0\x43\x0f\x7e\x4c\x0c\x18"
2853 "\x5f\xe1\xd9\x7a\xc7\x56\x99\x50\xc8\x3d\xb4\x0b\xbe\xd0\xf1\xd1\x73\xe1"
2854 "\xaa\x0d\xc2\x8b\x47\x73\x70\x50\x32\xd9\x75\x51\xf7\xfc\xef\x7f\x55\xe4"
2855 "\xb6\x9f\x88\xdf\x65\x00\x32\xdf\xc5\x23\x2c\x15\x66\x41\x10\x4b\x53"
2857 .tag = TEST_DATA_STR (
2858 "\x84\x40\xe6\xd8\x64\xab\x77\x8f\x9b\xe4\x78\xf2\x03\x16\x2d\x86"),
2861 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc6) = {
2862 .name = "256-GMAC 720-aad NIST CAVS TC6",
2863 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2864 .key = TEST_DATA_STR (
2865 "\x4a\xdf\x86\xbf\xa5\x47\x72\x5e\x4b\x80\x36\x5a\x5a\x32\x7c\x10\x70\x40"
2866 "\xfa\xcf\xff\x00\x7d\xc3\x51\x02\x06\x6b\xd6\xa9\x95\xc4"),
2867 .iv = TEST_DATA_STR ("\xb1\x01\x8c\xc3\x31\x91\x12\x55\xa5\x5a\x07\x95"),
2868 .aad = TEST_DATA_STR (
2869 "\x05\x3c\xa4\x42\x8c\x99\x0b\x44\x56\xd3\xc1\x89\x5d\x5d\x52\xde\xff\x67"
2870 "\x58\x96\xde\x9f\xaa\x53\xd8\xcf\x24\x12\x55\xf4\xa3\x1d\xc3\x39\x9f\x15"
2871 "\xd8\x3b\xe3\x80\x25\x66\x16\xe5\xaf\x04\x3a\xbf\xb3\x75\x52\x65\x5a\xdf"
2872 "\x4f\x2e\x68\xdd\xa2\x4b\xc3\x73\x69\x51\x13\x4f\x35\x9d\x9c\x0e\x28\x8b"
2873 "\xb7\x98\xb6\xc3\xea\x46\x23\x92\x31\xa3\xcb\x28\x00\x66\xdb\x98\x62"
2875 .tag = TEST_DATA_STR (
2876 "\xc7\x42\x4f\x38\x08\x49\x30\xbf\xc5\xed\xc1\xfc\xf1\xe7\x60\x8d"),
2879 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc7) = {
2880 .name = "256-GMAC 720-aad NIST CAVS TC7",
2881 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2882 .key = TEST_DATA_STR (
2883 "\x3c\x92\xe0\xd1\xe3\x9a\x3c\x76\x65\x73\xc4\x64\x6c\x76\x8c\x40\x2c\xcf"
2884 "\xf4\x8a\x56\x68\x2a\x93\x43\x35\x12\xab\xf0\x45\x6e\x00"),
2885 .iv = TEST_DATA_STR ("\xd5\x7f\x31\x9e\x59\x01\x91\x84\x1d\x2b\x98\xbd"),
2886 .aad = TEST_DATA_STR (
2887 "\x84\x0d\x93\x94\xaa\x24\x0e\x52\xba\x15\x21\x51\xc1\x2a\xcd\x1c\xd4\x48"
2888 "\x81\xe8\x54\x9d\xc8\x32\xb7\x1a\x45\xda\x7e\xfc\xc7\x4f\xb7\xe8\x44\xd9"
2889 "\xfe\xc2\x5e\x5d\x49\x7b\x8f\xb8\xf4\x7f\x32\x8c\x8d\x99\x04\x5a\x19\xe3"
2890 "\x66\xe6\xce\x5e\x19\xdc\x26\xf6\x7a\x81\xa9\x4f\xa6\xc9\x7c\x31\x4d\x88"
2891 "\x6e\x7b\x56\xef\xf1\x44\xc0\x9f\x6f\xa5\x19\xdb\x63\x08\xbc\x73\x42"
2893 .tag = TEST_DATA_STR (
2894 "\xcb\x4e\xf7\x2d\xbd\xa4\x91\x4d\x74\x34\xf9\x68\x6f\x82\x3e\x2f"),
2897 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc8) = {
2898 .name = "256-GMAC 720-aad NIST CAVS TC8",
2899 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2900 .key = TEST_DATA_STR (
2901 "\xb6\x6b\xa3\x97\x33\x88\x8a\x9e\x0a\x2e\x30\x45\x28\x44\x16\x1d\xc3\x3c"
2902 "\xb3\x83\xc0\x2c\xe1\x6c\x4e\xfa\xd5\x45\x25\x09\xb5\xb5"),
2903 .iv = TEST_DATA_STR ("\x93\x7c\xb6\x65\xe3\x70\x59\xb2\xe4\x03\x59\xf2"),
2904 .aad = TEST_DATA_STR (
2905 "\xdb\xcd\x96\x94\xa8\x83\x48\x60\x03\x4e\x8e\xde\x3a\x5b\xd4\x19\xfc\xf9"
2906 "\x1c\x00\x5a\xd9\x9f\x48\x8a\xa6\x23\xf5\x81\x62\x20\x93\xf9\xd4\x1e\x6a"
2907 "\x68\xe2\x0f\xd2\x02\xf3\x02\xbc\xfc\x44\x17\xca\x89\x09\x0b\xfc\xd4\xd5"
2908 "\x22\x4e\x8f\xf4\xeb\x5b\xba\xe4\xec\xb2\x7b\xaa\x23\x9f\x59\xc2\xf9\x9c"
2909 "\xd4\x7c\x0a\x26\x9c\x49\x79\x06\xb4\x1a\x8f\x32\x0a\x3d\xd2\xdc\x2d"
2911 .tag = TEST_DATA_STR (
2912 "\xbd\xc8\x24\x93\x02\xd9\xd6\x66\xcf\x71\x68\x31\x7c\x11\x87\x43"),
2915 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc9) = {
2916 .name = "256-GMAC 720-aad NIST CAVS TC9",
2917 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2918 .key = TEST_DATA_STR (
2919 "\x2f\x9f\xcd\x10\x43\x45\x56\x95\x63\x8c\x99\x1a\x1b\x1d\x35\xad\x57\xc1"
2920 "\x8e\xf0\x72\x73\x22\x74\x7b\x79\x91\xab\xc3\xd7\x87\xf3"),
2921 .iv = TEST_DATA_STR ("\xd0\x6c\xf5\x48\xf6\x28\x69\xf4\xbe\xd7\xa3\x18"),
2922 .aad = TEST_DATA_STR (
2923 "\x43\x20\x23\xc1\x2c\xf1\xf6\x14\xe1\x00\x51\x12\xa1\x7d\xbe\x6c\x5d\x54"
2924 "\x02\x2a\x95\xcf\x63\x35\xa5\xbc\x55\x00\x4c\x75\xf0\x9a\x56\x99\x73\x9e"
2925 "\xcf\x92\x8e\x1c\x78\xd0\x3d\xad\x50\x96\xa1\x7a\x08\x4a\xfe\x1c\xc2\x20"
2926 "\x41\xbb\xdf\xb5\x98\x5b\xd0\x8b\x0d\xcc\x59\xd2\xb0\x8c\xd8\x6b\x7a\xad"
2927 "\x59\x7c\x4c\xd7\xb4\xba\x6d\x6a\x73\x70\xb8\x39\x95\xa6\x51\x1a\x1f"
2929 .tag = TEST_DATA_STR (
2930 "\x32\x2e\xb8\x4f\xb6\x88\x4f\x10\xcf\xb7\x66\xc2\xe3\xec\x77\x9e"),
2933 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc10) = {
2934 .name = "256-GMAC 720-aad NIST CAVS TC10",
2935 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2936 .key = TEST_DATA_STR (
2937 "\x21\xc5\x83\x9a\x63\xe1\x23\x0c\x06\xb0\x86\x34\x1c\x96\xab\x74\x58\x5e"
2938 "\x69\xbc\xed\x94\x33\x2c\xae\xb1\xfa\x77\xd5\x10\xc2\x4f"),
2939 .iv = TEST_DATA_STR ("\x5a\xb6\xe5\xed\x6e\xe7\x33\xbe\x72\x50\x85\x8c"),
2940 .aad = TEST_DATA_STR (
2941 "\xc9\x2f\x08\xe3\x0f\x67\xd4\x25\x16\x13\x3c\x48\xe9\x7b\x65\xcc\x9e\x12"
2942 "\x43\x65\xe1\x10\xab\xa5\xe7\xb2\xcb\xe8\x3d\xeb\xcc\x99\xed\xf4\xeb\x00"
2943 "\x07\xaf\x05\x2b\xda\x22\xd8\x59\x00\x27\x1b\x18\x97\xaf\x4f\xd9\xac\xe6"
2944 "\xa2\xd0\x9d\x98\x4a\xc3\xde\x79\xd0\x5d\xe0\xb1\x05\xa8\x1b\x12\x54\x2b"
2945 "\x2c\x48\xe2\x7d\x40\x9f\xd6\x99\x2d\xd0\x62\xd6\x05\x5d\x6f\xc6\x68"
2947 .tag = TEST_DATA_STR (
2948 "\x53\xb0\xe4\x50\x30\x9d\x14\x64\x59\xf2\xa1\xe4\x6c\x9d\x9e\x23"),
2951 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc11) = {
2952 .name = "256-GMAC 720-aad NIST CAVS TC11",
2953 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2954 .key = TEST_DATA_STR (
2955 "\x25\xa1\x44\xf0\xfd\xba\x18\x41\x25\xd8\x1a\x87\xe7\xed\x82\xfa\xd3\x3c"
2956 "\x70\x1a\x09\x4a\x67\xa8\x1f\xe4\x69\x2d\xc6\x9a\xfa\x31"),
2957 .iv = TEST_DATA_STR ("\x8b\xf5\x75\xc5\xc2\xb4\x5b\x4e\xfc\x67\x46\xe4"),
2958 .aad = TEST_DATA_STR (
2959 "\x2a\x36\x7c\xb0\xd3\xb7\xc5\xb8\x32\x0b\x3c\xf9\x5e\x82\xb6\xba\x0b\xba"
2960 "\x1d\x09\xa2\x05\x58\x85\xde\xdd\x9e\xf5\x64\x16\x23\x68\x22\x12\x10\x32"
2961 "\x38\xb8\xf7\x75\xcc\xe4\x2d\xdf\xd4\xf6\x63\x82\xf2\xc3\xa5\xe8\xd6\xdf"
2962 "\xf9\x16\x3c\xed\x83\x58\x0a\x75\x70\x55\x74\x02\x6b\x55\xdb\x90\xf7\x5f"
2963 "\x8a\xbb\x30\x14\xc9\xa7\x07\x02\x1d\xed\xc0\x75\xda\x38\xbe\xbb\xf0"
2965 .tag = TEST_DATA_STR (
2966 "\x0e\x2c\xe9\xca\xc8\xdf\xce\xdb\x05\x72\xec\x6c\xab\x62\x1e\xfd"),
2969 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc12) = {
2970 .name = "256-GMAC 720-aad NIST CAVS TC12",
2971 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2972 .key = TEST_DATA_STR (
2973 "\x42\xbc\x84\x1b\x3b\x03\xa8\x07\xcd\x36\x6a\x35\xec\xec\x8a\x6a\xeb\xef"
2974 "\x7c\x4c\xba\x0e\xc8\xcb\x8d\xa0\xda\x41\xdf\x8c\xce\xf1"),
2975 .iv = TEST_DATA_STR ("\x1b\xd4\x6f\x85\xdf\x5f\x4b\x3a\x12\x6e\xe3\x15"),
2976 .aad = TEST_DATA_STR (
2977 "\xed\xe3\xdc\xdd\xbd\xc7\xd8\xe5\xd0\x34\xc0\x16\x61\x33\x2e\xc3\x49\xcb"
2978 "\x4e\x7a\x9f\xba\xaf\x7a\xbe\x2c\x64\x75\x87\xdb\x86\xcd\x42\x7c\xe6\x69"
2979 "\x08\xe0\x70\xbc\x49\xef\x83\x87\x47\xe0\x6b\x45\xac\x48\x6d\xfb\xea\x6f"
2980 "\x86\x98\xb4\x62\x5e\x21\xe6\x9d\xb8\x32\x7e\xc0\x5c\xfd\x74\xac\xcb\xe6"
2981 "\x7a\xb6\x44\x94\x8c\xdb\x55\x4a\xf1\x79\xa1\xe2\x64\xe0\x8f\xe1\x66"
2983 .tag = TEST_DATA_STR (
2984 "\x63\x3a\xb6\xaa\xf5\xb3\x2b\x53\xa7\x94\xf6\xbe\x62\x62\xfc\x5f"),
2987 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc13) = {
2988 .name = "256-GMAC 720-aad NIST CAVS TC13",
2989 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
2990 .key = TEST_DATA_STR (
2991 "\xc2\x5b\x85\x00\xbe\x73\x21\x05\x96\xfc\x4a\x9f\xb4\xd8\x4d\x1a\x33\x79"
2992 "\xa9\x1e\x3f\x0a\x6c\xc4\x17\x7d\x99\x60\x46\x62\x76\x79"),
2993 .iv = TEST_DATA_STR ("\xb5\x6c\x48\xc0\xc4\xcd\x31\x8b\x20\x43\x70\x02"),
2994 .aad = TEST_DATA_STR (
2995 "\xbc\xd1\x4d\xd0\x43\xfd\xc8\xc3\x27\x95\x7e\x1c\x14\x28\x69\x85\x43\xec"
2996 "\x86\x02\x52\x1a\x7c\x74\x78\x8d\x29\x6d\x37\xd4\x82\x8f\x10\xf9\x06\x56"
2997 "\x88\x3d\x25\x31\xc7\x02\xeb\xda\x2d\xc0\xa6\x8d\xab\x00\x15\x45\x77\x45"
2998 "\x44\x55\xfa\xd9\x86\xff\x8e\x09\x73\x09\x8d\xbf\x37\x0f\xf7\x03\xed\x98"
2999 "\x22\x2b\x94\x57\x26\xed\x9b\xe7\x90\x92\x10\xdd\xbc\x67\x2e\x99\xfd"
3001 .tag = TEST_DATA_STR (
3002 "\x81\x71\xd4\xff\x60\xfe\x7e\xf6\xde\x02\x88\x32\x6a\xa7\x32\x23"),
3005 UNITTEST_REGISTER_CRYPTO_TEST (aes_gmac256_aad720_tc14) = {
3006 .name = "256-GMAC 720-aad NIST CAVS TC14",
3007 .alg = VNET_CRYPTO_ALG_AES_256_NULL_GMAC,
3008 .key = TEST_DATA_STR (
3009 "\xdd\x95\x25\x9b\xc8\xee\xfa\x3e\x49\x3c\xb1\xa6\xba\x1d\x8e\xe2\xb3\x41"
3010 "\xd5\x23\x0d\x50\x36\x30\x94\xa2\xcc\x34\x33\xb3\xd9\xb9"),
3011 .iv = TEST_DATA_STR ("\xa1\xa6\xce\xd0\x84\xf4\xf1\x39\x90\x75\x0a\x9e"),
3012 .aad = TEST_DATA_STR (
3013 "\xd4\x6d\xb9\x0e\x13\x68\x4b\x26\x14\x9c\xb3\xb7\xf7\x76\xe2\x28\xa0\x53"
3014 "\x8f\xa1\x89\x2c\x41\x8a\xaa\xd0\x7a\xa0\x8d\x30\x76\xf4\xa5\x2b\xee\x8f"
3015 "\x13\x0f\xf5\x60\xdb\x2b\x8d\x10\x09\xe9\x26\x0f\xa6\x23\x3f\xc2\x27\x33"
3016 "\xe0\x50\xc9\xe4\xf7\xcc\x69\x90\x62\x76\x5e\x26\x1d\xff\xff\x11\x59\xe9"
3017 "\x06\x0b\x26\xc8\x06\x5d\xfa\xb0\x40\x55\xb5\x8c\x82\xc3\x40\xd9\x87"
3019 .tag = TEST_DATA_STR (
3020 "\x9e\x12\x0b\x01\x89\x9f\xe2\xcb\x3e\x3a\x0b\x0c\x05\x04\x59\x40"),
3024 * fd.io coding-style-patch-verification: ON
3027 * eval: (c-set-style "gnu")