]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - crypto/testmgr.h
Merge back 'acpi-video' material for v3.18.
[mirror_ubuntu-artful-kernel.git] / crypto / testmgr.h
CommitLineData
da7f033d
HX
1/*
2 * Algorithm testing framework and tests.
3 *
4 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
5 * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
6 * Copyright (c) 2007 Nokia Siemens Networks
7 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
8 *
69435b94
AH
9 * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
10 * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
11 * gcm/gcm-test-vectors.tar.gz
12 * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
13 * Adrian Hoban <adrian.hoban@intel.com>
14 * Gabriele Paoloni <gabriele.paoloni@intel.com>
15 * Tadeusz Struk (tadeusz.struk@intel.com)
16 * Copyright (c) 2010, Intel Corporation.
17 *
da7f033d
HX
18 * This program is free software; you can redistribute it and/or modify it
19 * under the terms of the GNU General Public License as published by the Free
20 * Software Foundation; either version 2 of the License, or (at your option)
21 * any later version.
22 *
23 */
24#ifndef _CRYPTO_TESTMGR_H
25#define _CRYPTO_TESTMGR_H
26
0c01aed5
GU
27#include <linux/netlink.h>
28#include <linux/zlib.h>
29
8064efb8
GU
30#include <crypto/compress.h>
31
da7f033d
HX
32#define MAX_DIGEST_SIZE 64
33#define MAX_TAP 8
34
29b77e5d 35#define MAX_KEYLEN 160
da7f033d
HX
36#define MAX_IVLEN 32
37
38struct hash_testvec {
39 /* only used with keyed hash algorithms */
40 char *key;
41 char *plaintext;
42 char *digest;
43 unsigned char tap[MAX_TAP];
6726ec42 44 unsigned short psize;
da7f033d
HX
45 unsigned char np;
46 unsigned char ksize;
47};
48
49struct cipher_testvec {
50 char *key;
51 char *iv;
52 char *input;
53 char *result;
54 unsigned short tap[MAX_TAP];
55 int np;
f44d83d1 56 unsigned char also_non_np;
da7f033d
HX
57 unsigned char fail;
58 unsigned char wk; /* weak key flag */
59 unsigned char klen;
60 unsigned short ilen;
61 unsigned short rlen;
62};
63
64struct aead_testvec {
65 char *key;
66 char *iv;
67 char *input;
68 char *assoc;
69 char *result;
70 unsigned char tap[MAX_TAP];
71 unsigned char atap[MAX_TAP];
72 int np;
73 int anp;
74 unsigned char fail;
e44a1b44 75 unsigned char novrfy; /* ccm dec verification failure expected */
da7f033d
HX
76 unsigned char wk; /* weak key flag */
77 unsigned char klen;
78 unsigned short ilen;
79 unsigned short alen;
80 unsigned short rlen;
81};
82
7647d6ce
JW
83struct cprng_testvec {
84 char *key;
85 char *dt;
86 char *v;
87 char *result;
88 unsigned char klen;
89 unsigned short dtlen;
90 unsigned short vlen;
91 unsigned short rlen;
92 unsigned short loops;
93};
94
3332ee2a
SM
95struct drbg_testvec {
96 unsigned char *entropy;
97 size_t entropylen;
98 unsigned char *entpra;
99 unsigned char *entprb;
100 size_t entprlen;
101 unsigned char *addtla;
102 unsigned char *addtlb;
103 size_t addtllen;
104 unsigned char *pers;
105 size_t perslen;
106 unsigned char *expected;
107 size_t expectedlen;
108};
109
da7f033d
HX
110static char zeroed_string[48];
111
112/*
113 * MD4 test vectors from RFC1320
114 */
115#define MD4_TEST_VECTORS 7
116
117static struct hash_testvec md4_tv_template [] = {
118 {
119 .plaintext = "",
120 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
121 "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
122 }, {
123 .plaintext = "a",
124 .psize = 1,
125 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
126 "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
127 }, {
128 .plaintext = "abc",
129 .psize = 3,
130 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
131 "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
132 }, {
133 .plaintext = "message digest",
134 .psize = 14,
135 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
136 "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
137 }, {
138 .plaintext = "abcdefghijklmnopqrstuvwxyz",
139 .psize = 26,
140 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
141 "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
142 .np = 2,
143 .tap = { 13, 13 },
144 }, {
145 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
146 .psize = 62,
147 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
148 "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
149 }, {
150 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
151 "45678901234567890",
152 .psize = 80,
153 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
154 "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
155 },
156};
157
158/*
159 * MD5 test vectors from RFC1321
160 */
161#define MD5_TEST_VECTORS 7
162
163static struct hash_testvec md5_tv_template[] = {
164 {
165 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
166 "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
167 }, {
168 .plaintext = "a",
169 .psize = 1,
170 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
171 "\x31\xc3\x99\xe2\x69\x77\x26\x61",
172 }, {
173 .plaintext = "abc",
174 .psize = 3,
175 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
176 "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
177 }, {
178 .plaintext = "message digest",
179 .psize = 14,
180 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
181 "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
182 }, {
183 .plaintext = "abcdefghijklmnopqrstuvwxyz",
184 .psize = 26,
185 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
186 "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
187 .np = 2,
188 .tap = {13, 13}
189 }, {
190 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
191 .psize = 62,
192 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
193 "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
194 }, {
195 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
196 "345678901234567890",
197 .psize = 80,
198 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
199 "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
200 }
201
202};
203
204/*
205 * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
206 */
207#define RMD128_TEST_VECTORS 10
208
209static struct hash_testvec rmd128_tv_template[] = {
210 {
211 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
212 "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
213 }, {
214 .plaintext = "a",
215 .psize = 1,
216 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
217 "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
218 }, {
219 .plaintext = "abc",
220 .psize = 3,
221 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
222 "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
223 }, {
224 .plaintext = "message digest",
225 .psize = 14,
226 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
227 "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
228 }, {
229 .plaintext = "abcdefghijklmnopqrstuvwxyz",
230 .psize = 26,
231 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
232 "\x10\x71\x49\x22\xb3\x71\x83\x4e",
233 }, {
234 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
235 "fghijklmnopqrstuvwxyz0123456789",
236 .psize = 62,
237 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
238 "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
239 }, {
240 .plaintext = "1234567890123456789012345678901234567890"
241 "1234567890123456789012345678901234567890",
242 .psize = 80,
243 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
244 "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
245 }, {
246 .plaintext = "abcdbcdecdefdefgefghfghighij"
247 "hijkijkljklmklmnlmnomnopnopq",
248 .psize = 56,
249 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
250 "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
251 .np = 2,
252 .tap = { 28, 28 },
253 }, {
254 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
255 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
256 "lmnopqrsmnopqrstnopqrstu",
257 .psize = 112,
258 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
259 "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
260 }, {
261 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
262 .psize = 32,
263 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
264 "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
265 }
266};
267
268/*
269 * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
270 */
271#define RMD160_TEST_VECTORS 10
272
273static struct hash_testvec rmd160_tv_template[] = {
274 {
275 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
276 "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
277 }, {
278 .plaintext = "a",
279 .psize = 1,
280 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
281 "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
282 }, {
283 .plaintext = "abc",
284 .psize = 3,
285 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
286 "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
287 }, {
288 .plaintext = "message digest",
289 .psize = 14,
290 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
291 "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
292 }, {
293 .plaintext = "abcdefghijklmnopqrstuvwxyz",
294 .psize = 26,
295 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
296 "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
297 }, {
298 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
299 "fghijklmnopqrstuvwxyz0123456789",
300 .psize = 62,
301 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
302 "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
303 }, {
304 .plaintext = "1234567890123456789012345678901234567890"
305 "1234567890123456789012345678901234567890",
306 .psize = 80,
307 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
308 "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
309 }, {
310 .plaintext = "abcdbcdecdefdefgefghfghighij"
311 "hijkijkljklmklmnlmnomnopnopq",
312 .psize = 56,
313 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
314 "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
315 .np = 2,
316 .tap = { 28, 28 },
317 }, {
318 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
319 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
320 "lmnopqrsmnopqrstnopqrstu",
321 .psize = 112,
322 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
323 "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
324 }, {
325 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
326 .psize = 32,
327 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
328 "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
329 }
330};
331
332/*
333 * RIPEMD-256 test vectors
334 */
335#define RMD256_TEST_VECTORS 8
336
337static struct hash_testvec rmd256_tv_template[] = {
338 {
339 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
340 "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
341 "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
342 "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
343 }, {
344 .plaintext = "a",
345 .psize = 1,
346 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
347 "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
348 "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
349 "\xcd\x88\x3a\x91\x34\x69\x29\x25",
350 }, {
351 .plaintext = "abc",
352 .psize = 3,
353 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
354 "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
355 "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
356 "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
357 }, {
358 .plaintext = "message digest",
359 .psize = 14,
360 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
361 "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
362 "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
363 "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
364 }, {
365 .plaintext = "abcdefghijklmnopqrstuvwxyz",
366 .psize = 26,
367 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
368 "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
369 "\x78\x96\x11\x8a\x51\x97\x96\x87"
370 "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
371 }, {
372 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
373 "fghijklmnopqrstuvwxyz0123456789",
374 .psize = 62,
375 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
376 "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
377 "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
378 "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
379 }, {
380 .plaintext = "1234567890123456789012345678901234567890"
381 "1234567890123456789012345678901234567890",
382 .psize = 80,
383 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
384 "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
385 "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
386 "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
387 }, {
388 .plaintext = "abcdbcdecdefdefgefghfghighij"
389 "hijkijkljklmklmnlmnomnopnopq",
390 .psize = 56,
391 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
392 "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
393 "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
394 "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
395 .np = 2,
396 .tap = { 28, 28 },
397 }
398};
399
400/*
401 * RIPEMD-320 test vectors
402 */
403#define RMD320_TEST_VECTORS 8
404
405static struct hash_testvec rmd320_tv_template[] = {
406 {
407 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
408 "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
409 "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
410 "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
411 }, {
412 .plaintext = "a",
413 .psize = 1,
414 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
415 "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
416 "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
417 "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
418 }, {
419 .plaintext = "abc",
420 .psize = 3,
421 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
422 "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
423 "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
424 "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
425 }, {
426 .plaintext = "message digest",
427 .psize = 14,
428 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
429 "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
430 "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
431 "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
432 }, {
433 .plaintext = "abcdefghijklmnopqrstuvwxyz",
434 .psize = 26,
435 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
436 "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
437 "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
438 "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
439 }, {
440 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
441 "fghijklmnopqrstuvwxyz0123456789",
442 .psize = 62,
443 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
444 "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
445 "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
446 "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
447 }, {
448 .plaintext = "1234567890123456789012345678901234567890"
449 "1234567890123456789012345678901234567890",
450 .psize = 80,
451 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
452 "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
453 "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
454 "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
455 }, {
456 .plaintext = "abcdbcdecdefdefgefghfghighij"
457 "hijkijkljklmklmnlmnomnopnopq",
458 .psize = 56,
459 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
460 "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
461 "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
462 "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
463 .np = 2,
464 .tap = { 28, 28 },
465 }
466};
467
68411521
HX
468#define CRCT10DIF_TEST_VECTORS 3
469static struct hash_testvec crct10dif_tv_template[] = {
470 {
471 .plaintext = "abc",
472 .psize = 3,
473#ifdef __LITTLE_ENDIAN
474 .digest = "\x3b\x44",
475#else
476 .digest = "\x44\x3b",
477#endif
478 }, {
479 .plaintext = "1234567890123456789012345678901234567890"
480 "123456789012345678901234567890123456789",
481 .psize = 79,
482#ifdef __LITTLE_ENDIAN
483 .digest = "\x70\x4b",
484#else
485 .digest = "\x4b\x70",
486#endif
487 }, {
488 .plaintext =
489 "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd",
490 .psize = 56,
491#ifdef __LITTLE_ENDIAN
492 .digest = "\xe3\x9c",
493#else
494 .digest = "\x9c\xe3",
495#endif
496 .np = 2,
497 .tap = { 28, 28 }
498 }
499};
500
da7f033d
HX
501/*
502 * SHA1 test vectors from from FIPS PUB 180-1
bd1f2996 503 * Long vector from CAVS 5.0
da7f033d 504 */
950e4e1c 505#define SHA1_TEST_VECTORS 6
da7f033d
HX
506
507static struct hash_testvec sha1_tv_template[] = {
508 {
950e4e1c
JK
509 .plaintext = "",
510 .psize = 0,
511 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
512 "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
513 }, {
da7f033d
HX
514 .plaintext = "abc",
515 .psize = 3,
516 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
517 "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
518 }, {
519 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
520 .psize = 56,
521 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
522 "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
523 .np = 2,
524 .tap = { 28, 28 }
bd1f2996
HX
525 }, {
526 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
527 "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
528 "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
529 "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
530 "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
531 "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
532 "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
533 "\x72\x28\x26\xc0\x66\x86\x9e\xda"
534 "\xcd\x73\xb2\x54\x80\x35\x18\x58"
535 "\x13\xe2\x26\x34\xa9\xda\x44\x00"
536 "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
537 "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
538 "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
539 "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
540 "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
541 "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
542 "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
543 "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
544 "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
545 "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
546 "\x5a\x90\x11",
547 .psize = 163,
548 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
549 "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
550 .np = 4,
551 .tap = { 63, 64, 31, 5 }
4585988f
AB
552 }, {
553 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
554 .psize = 64,
555 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
556 "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
950e4e1c
JK
557 }, {
558 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
559 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
560 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
561 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
562 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
563 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
564 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
565 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
566 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
567 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
568 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
569 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
570 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
571 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
572 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
573 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
574 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
575 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
576 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
577 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
578 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
579 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
580 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
581 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
582 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
583 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
584 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
585 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
586 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
587 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
588 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
589 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
590 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
591 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
592 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
593 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
594 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
595 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
596 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
597 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
598 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
599 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
600 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
601 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
602 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
603 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
604 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
605 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
606 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
607 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
608 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
609 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
610 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
611 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
612 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
613 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
614 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
615 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
616 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
617 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
618 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
619 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
620 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
621 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
622 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
623 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
624 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
625 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
626 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
627 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
628 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
629 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
630 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
631 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
632 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
633 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
634 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
635 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
636 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
637 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
638 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
639 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
640 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
641 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
642 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
643 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
644 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
645 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
646 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
647 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
648 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
649 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
650 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
651 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
652 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
653 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
654 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
655 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
656 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
657 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
658 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
659 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
660 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
661 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
662 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
663 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
664 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
665 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
666 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
667 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
668 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
669 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
670 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
671 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
672 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
673 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
674 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
675 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
676 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
677 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
678 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
679 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
680 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
681 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
682 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
683 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
684 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
685 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
686 .psize = 1023,
687 .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
688 "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
689 "\x30\xd6\xc9\x85",
da7f033d
HX
690 }
691};
692
693
694/*
695 * SHA224 test vectors from from FIPS PUB 180-2
696 */
950e4e1c 697#define SHA224_TEST_VECTORS 5
da7f033d
HX
698
699static struct hash_testvec sha224_tv_template[] = {
700 {
950e4e1c
JK
701 .plaintext = "",
702 .psize = 0,
703 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
704 "\x47\x61\x02\xbb\x28\x82\x34\xc4"
705 "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
706 "\xc5\xb3\xe4\x2f",
707 }, {
da7f033d
HX
708 .plaintext = "abc",
709 .psize = 3,
710 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
711 "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
712 "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
713 "\xE3\x6C\x9D\xA7",
714 }, {
715 .plaintext =
716 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
717 .psize = 56,
718 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
719 "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
720 "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
721 "\x52\x52\x25\x25",
722 .np = 2,
723 .tap = { 28, 28 }
4585988f
AB
724 }, {
725 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
726 .psize = 64,
727 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
728 "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
729 "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
730 "\xef\x3b\xcb\x0e",
950e4e1c
JK
731 }, {
732 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
733 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
734 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
735 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
736 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
737 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
738 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
739 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
740 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
741 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
742 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
743 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
744 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
745 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
746 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
747 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
748 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
749 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
750 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
751 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
752 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
753 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
754 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
755 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
756 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
757 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
758 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
759 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
760 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
761 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
762 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
763 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
764 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
765 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
766 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
767 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
768 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
769 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
770 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
771 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
772 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
773 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
774 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
775 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
776 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
777 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
778 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
779 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
780 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
781 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
782 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
783 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
784 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
785 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
786 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
787 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
788 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
789 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
790 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
791 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
792 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
793 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
794 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
795 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
796 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
797 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
798 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
799 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
800 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
801 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
802 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
803 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
804 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
805 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
806 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
807 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
808 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
809 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
810 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
811 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
812 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
813 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
814 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
815 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
816 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
817 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
818 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
819 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
820 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
821 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
822 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
823 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
824 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
825 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
826 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
827 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
828 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
829 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
830 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
831 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
832 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
833 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
834 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
835 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
836 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
837 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
838 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
839 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
840 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
841 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
842 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
843 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
844 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
845 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
846 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
847 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
848 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
849 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
850 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
851 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
852 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
853 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
854 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
855 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
856 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
857 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
858 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
859 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
860 .psize = 1023,
861 .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
862 "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
863 "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
864 "\xe6\xf9\x4f\xcc",
da7f033d
HX
865 }
866};
867
868/*
869 * SHA256 test vectors from from NIST
870 */
950e4e1c 871#define SHA256_TEST_VECTORS 5
da7f033d
HX
872
873static struct hash_testvec sha256_tv_template[] = {
874 {
950e4e1c
JK
875 .plaintext = "",
876 .psize = 0,
877 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
878 "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
879 "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
880 "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
881 }, {
da7f033d
HX
882 .plaintext = "abc",
883 .psize = 3,
884 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
885 "\x41\x41\x40\xde\x5d\xae\x22\x23"
886 "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
887 "\xb4\x10\xff\x61\xf2\x00\x15\xad",
888 }, {
889 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
890 .psize = 56,
891 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
892 "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
893 "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
894 "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
895 .np = 2,
896 .tap = { 28, 28 }
4585988f
AB
897 }, {
898 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
899 .psize = 64,
900 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
901 "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
902 "\xd6\xff\x94\xa3\x72\x91\x85\x66"
903 "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
950e4e1c
JK
904 }, {
905 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
906 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
907 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
908 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
909 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
910 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
911 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
912 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
913 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
914 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
915 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
916 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
917 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
918 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
919 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
920 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
921 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
922 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
923 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
924 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
925 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
926 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
927 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
928 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
929 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
930 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
931 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
932 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
933 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
934 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
935 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
936 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
937 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
938 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
939 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
940 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
941 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
942 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
943 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
944 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
945 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
946 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
947 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
948 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
949 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
950 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
951 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
952 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
953 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
954 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
955 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
956 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
957 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
958 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
959 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
960 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
961 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
962 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
963 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
964 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
965 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
966 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
967 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
968 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
969 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
970 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
971 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
972 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
973 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
974 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
975 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
976 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
977 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
978 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
979 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
980 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
981 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
982 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
983 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
984 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
985 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
986 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
987 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
988 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
989 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
990 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
991 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
992 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
993 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
994 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
995 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
996 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
997 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
998 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
999 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1000 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1001 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1002 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1003 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1004 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1005 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1006 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1007 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1008 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1009 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1010 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1011 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1012 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1013 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1014 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1015 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1016 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1017 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1018 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1019 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1020 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1021 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1022 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1023 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1024 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1025 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1026 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1027 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1028 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1029 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1030 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1031 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1032 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1033 .psize = 1023,
1034 .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
1035 "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
1036 "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
1037 "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
4585988f 1038 }
da7f033d
HX
1039};
1040
1041/*
1042 * SHA384 test vectors from from NIST and kerneli
1043 */
950e4e1c 1044#define SHA384_TEST_VECTORS 6
da7f033d
HX
1045
1046static struct hash_testvec sha384_tv_template[] = {
1047 {
950e4e1c
JK
1048 .plaintext = "",
1049 .psize = 0,
1050 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
1051 "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
1052 "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
1053 "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
1054 "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
1055 "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
1056 }, {
da7f033d
HX
1057 .plaintext= "abc",
1058 .psize = 3,
1059 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
1060 "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
1061 "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
1062 "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
1063 "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
1064 "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
1065 }, {
1066 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1067 .psize = 56,
1068 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
1069 "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
1070 "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
1071 "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
1072 "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
1073 "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
1074 }, {
1075 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
1076 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
1077 .psize = 112,
1078 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
1079 "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
1080 "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
1081 "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
1082 "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
1083 "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
1084 }, {
1085 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
1086 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
1087 .psize = 104,
1088 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
1089 "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
1090 "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
1091 "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
1092 "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
1093 "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
1094 .np = 4,
1095 .tap = { 26, 26, 26, 26 }
950e4e1c
JK
1096 }, {
1097 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1098 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1099 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1100 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1101 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1102 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1103 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1104 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1105 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1106 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1107 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1108 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1109 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1110 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1111 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1112 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1113 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1114 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1115 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1116 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1117 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1118 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1119 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1120 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1121 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1122 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1123 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1124 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1125 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1126 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1127 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1128 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1129 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1130 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1131 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1132 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1133 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1134 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1135 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1136 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1137 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1138 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1139 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1140 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1141 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1142 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1143 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1144 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1145 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1146 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1147 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1148 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1149 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1150 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1151 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1152 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1153 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1154 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1155 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1156 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1157 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1158 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1159 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1160 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1161 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1162 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1163 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1164 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1165 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1166 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1167 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1168 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1169 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1170 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1171 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1172 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1173 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1174 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1175 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1176 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1177 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1178 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1179 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1180 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1181 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1182 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1183 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1184 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1185 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1186 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1187 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1188 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1189 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1190 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1191 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1192 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1193 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1194 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1195 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1196 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1197 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1198 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1199 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1200 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1201 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1202 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1203 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1204 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1205 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1206 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1207 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1208 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1209 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1210 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1211 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1212 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1213 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1214 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1215 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1216 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1217 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1218 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1219 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1220 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1221 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1222 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1223 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1224 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1225 .psize = 1023,
1226 .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
1227 "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
1228 "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
1229 "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
1230 "\x75\x29\x62\x83\xae\x3f\x17\xab"
1231 "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
1232 }
da7f033d
HX
1233};
1234
1235/*
1236 * SHA512 test vectors from from NIST and kerneli
1237 */
950e4e1c 1238#define SHA512_TEST_VECTORS 6
da7f033d
HX
1239
1240static struct hash_testvec sha512_tv_template[] = {
1241 {
950e4e1c
JK
1242 .plaintext = "",
1243 .psize = 0,
1244 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
1245 "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
1246 "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
1247 "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
1248 "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
1249 "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
1250 "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
1251 "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
1252 }, {
da7f033d
HX
1253 .plaintext = "abc",
1254 .psize = 3,
1255 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
1256 "\xcc\x41\x73\x49\xae\x20\x41\x31"
1257 "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
1258 "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
1259 "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
1260 "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
1261 "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
1262 "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
1263 }, {
1264 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1265 .psize = 56,
1266 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
1267 "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
1268 "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
1269 "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
1270 "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
1271 "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
1272 "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
1273 "\x54\xec\x63\x12\x38\xca\x34\x45",
1274 }, {
1275 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
1276 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
1277 .psize = 112,
1278 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
1279 "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
1280 "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
1281 "\x72\x99\xae\xad\xb6\x88\x90\x18"
1282 "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
1283 "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
1284 "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
1285 "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
1286 }, {
1287 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
1288 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
1289 .psize = 104,
1290 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
1291 "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
1292 "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
1293 "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
1294 "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
1295 "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
1296 "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
1297 "\xed\xb4\x19\x87\x23\x28\x50\xc9",
1298 .np = 4,
1299 .tap = { 26, 26, 26, 26 }
950e4e1c
JK
1300 }, {
1301 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1302 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1303 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1304 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1305 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1306 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1307 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1308 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1309 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1310 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1311 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1312 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1313 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1314 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1315 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1316 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1317 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1318 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1319 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1320 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1321 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1322 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1323 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1324 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1325 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1326 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1327 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1328 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1329 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1330 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1331 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1332 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1333 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1334 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1335 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1336 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1337 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1338 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1339 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1340 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1341 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1342 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1343 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1344 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1345 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1346 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1347 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1348 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1349 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1350 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1351 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1352 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1353 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1354 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1355 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1356 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1357 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1358 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1359 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1360 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1361 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1362 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1363 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1364 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1365 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1366 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1367 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1368 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1369 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1370 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1371 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1372 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1373 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1374 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1375 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1376 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1377 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1378 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1379 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1380 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1381 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1382 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1383 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1384 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1385 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1386 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1387 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1388 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1389 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1390 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1391 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1392 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1393 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1394 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1395 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1396 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1397 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1398 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1399 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1400 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1401 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1402 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1403 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1404 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1405 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1406 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1407 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1408 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1409 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1410 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1411 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1412 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1413 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1414 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1415 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1416 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1417 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1418 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1419 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1420 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1421 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1422 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1423 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1424 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1425 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1426 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1427 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1428 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1429 .psize = 1023,
1430 .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
1431 "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
1432 "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
1433 "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
1434 "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
1435 "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
1436 "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
1437 "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
1438 }
da7f033d
HX
1439};
1440
1441
1442/*
1443 * WHIRLPOOL test vectors from Whirlpool package
1444 * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
1445 * submission
1446 */
1447#define WP512_TEST_VECTORS 8
1448
1449static struct hash_testvec wp512_tv_template[] = {
1450 {
1451 .plaintext = "",
1452 .psize = 0,
1453 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
1454 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
1455 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
1456 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
1457 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
1458 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
1459 "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
1460 "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
1461
1462
1463 }, {
1464 .plaintext = "a",
1465 .psize = 1,
1466 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
1467 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
1468 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
1469 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
1470 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
1471 "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
1472 "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
1473 "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
1474 }, {
1475 .plaintext = "abc",
1476 .psize = 3,
1477 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
1478 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
1479 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
1480 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
1481 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
1482 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
1483 "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
1484 "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
1485 }, {
1486 .plaintext = "message digest",
1487 .psize = 14,
1488 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
1489 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
1490 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
1491 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
1492 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
1493 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
1494 "\x92\xED\x92\x00\x52\x83\x8F\x33"
1495 "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
1496 }, {
1497 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1498 .psize = 26,
1499 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
1500 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
1501 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
1502 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
1503 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
1504 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
1505 "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
1506 "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
1507 }, {
1508 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1509 "abcdefghijklmnopqrstuvwxyz0123456789",
1510 .psize = 62,
1511 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
1512 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
1513 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
1514 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
1515 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
1516 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
1517 "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
1518 "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
1519 }, {
1520 .plaintext = "1234567890123456789012345678901234567890"
1521 "1234567890123456789012345678901234567890",
1522 .psize = 80,
1523 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
1524 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
1525 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
1526 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
1527 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
1528 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
1529 "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
1530 "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
1531 }, {
1532 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1533 .psize = 32,
1534 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
1535 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
1536 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
1537 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
1538 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
1539 "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
1540 "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
1541 "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
1542 },
1543};
1544
1545#define WP384_TEST_VECTORS 8
1546
1547static struct hash_testvec wp384_tv_template[] = {
1548 {
1549 .plaintext = "",
1550 .psize = 0,
1551 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
1552 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
1553 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
1554 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
1555 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
1556 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
1557
1558
1559 }, {
1560 .plaintext = "a",
1561 .psize = 1,
1562 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
1563 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
1564 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
1565 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
1566 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
1567 "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
1568 }, {
1569 .plaintext = "abc",
1570 .psize = 3,
1571 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
1572 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
1573 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
1574 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
1575 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
1576 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
1577 }, {
1578 .plaintext = "message digest",
1579 .psize = 14,
1580 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
1581 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
1582 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
1583 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
1584 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
1585 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
1586 }, {
1587 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1588 .psize = 26,
1589 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
1590 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
1591 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
1592 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
1593 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
1594 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
1595 }, {
1596 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1597 "abcdefghijklmnopqrstuvwxyz0123456789",
1598 .psize = 62,
1599 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
1600 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
1601 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
1602 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
1603 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
1604 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
1605 }, {
1606 .plaintext = "1234567890123456789012345678901234567890"
1607 "1234567890123456789012345678901234567890",
1608 .psize = 80,
1609 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
1610 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
1611 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
1612 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
1613 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
1614 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
1615 }, {
1616 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1617 .psize = 32,
1618 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
1619 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
1620 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
1621 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
1622 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
1623 "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
1624 },
1625};
1626
1627#define WP256_TEST_VECTORS 8
1628
1629static struct hash_testvec wp256_tv_template[] = {
1630 {
1631 .plaintext = "",
1632 .psize = 0,
1633 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
1634 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
1635 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
1636 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
1637
1638
1639 }, {
1640 .plaintext = "a",
1641 .psize = 1,
1642 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
1643 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
1644 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
1645 "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
1646 }, {
1647 .plaintext = "abc",
1648 .psize = 3,
1649 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
1650 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
1651 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
1652 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
1653 }, {
1654 .plaintext = "message digest",
1655 .psize = 14,
1656 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
1657 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
1658 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
1659 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
1660 }, {
1661 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1662 .psize = 26,
1663 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
1664 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
1665 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
1666 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
1667 }, {
1668 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1669 "abcdefghijklmnopqrstuvwxyz0123456789",
1670 .psize = 62,
1671 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
1672 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
1673 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
1674 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
1675 }, {
1676 .plaintext = "1234567890123456789012345678901234567890"
1677 "1234567890123456789012345678901234567890",
1678 .psize = 80,
1679 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
1680 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
1681 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
1682 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
1683 }, {
1684 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1685 .psize = 32,
1686 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
1687 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
1688 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
1689 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
1690 },
1691};
1692
1693/*
1694 * TIGER test vectors from Tiger website
1695 */
1696#define TGR192_TEST_VECTORS 6
1697
1698static struct hash_testvec tgr192_tv_template[] = {
1699 {
1700 .plaintext = "",
1701 .psize = 0,
1702 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
1703 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
1704 "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
1705 }, {
1706 .plaintext = "abc",
1707 .psize = 3,
1708 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
1709 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
1710 "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
1711 }, {
1712 .plaintext = "Tiger",
1713 .psize = 5,
1714 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
1715 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
1716 "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
1717 }, {
1718 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1719 .psize = 64,
1720 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
1721 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
1722 "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
1723 }, {
1724 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
1725 .psize = 64,
1726 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
1727 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
1728 "\x57\x89\x65\x65\x97\x5f\x91\x97",
1729 }, {
1730 .plaintext = "Tiger - A Fast New Hash Function, "
1731 "by Ross Anderson and Eli Biham, "
1732 "proceedings of Fast Software Encryption 3, "
1733 "Cambridge, 1996.",
1734 .psize = 125,
1735 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1736 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
1737 "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
1738 },
1739};
1740
1741#define TGR160_TEST_VECTORS 6
1742
1743static struct hash_testvec tgr160_tv_template[] = {
1744 {
1745 .plaintext = "",
1746 .psize = 0,
1747 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
1748 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
1749 "\xf3\x73\xde\x2d",
1750 }, {
1751 .plaintext = "abc",
1752 .psize = 3,
1753 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
1754 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
1755 "\x93\x5f\x7b\x95",
1756 }, {
1757 .plaintext = "Tiger",
1758 .psize = 5,
1759 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
1760 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
1761 "\x37\x79\x0c\x11",
1762 }, {
1763 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1764 .psize = 64,
1765 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
1766 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
1767 "\xb5\x86\x44\x50",
1768 }, {
1769 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
1770 .psize = 64,
1771 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
1772 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
1773 "\x57\x89\x65\x65",
1774 }, {
1775 .plaintext = "Tiger - A Fast New Hash Function, "
1776 "by Ross Anderson and Eli Biham, "
1777 "proceedings of Fast Software Encryption 3, "
1778 "Cambridge, 1996.",
1779 .psize = 125,
1780 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1781 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
1782 "\xdd\x68\x15\x1d",
1783 },
1784};
1785
1786#define TGR128_TEST_VECTORS 6
1787
1788static struct hash_testvec tgr128_tv_template[] = {
1789 {
1790 .plaintext = "",
1791 .psize = 0,
1792 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
1793 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
1794 }, {
1795 .plaintext = "abc",
1796 .psize = 3,
1797 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
1798 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
1799 }, {
1800 .plaintext = "Tiger",
1801 .psize = 5,
1802 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
1803 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
1804 }, {
1805 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1806 .psize = 64,
1807 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
1808 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
1809 }, {
1810 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
1811 .psize = 64,
1812 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
1813 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
1814 }, {
1815 .plaintext = "Tiger - A Fast New Hash Function, "
1816 "by Ross Anderson and Eli Biham, "
1817 "proceedings of Fast Software Encryption 3, "
1818 "Cambridge, 1996.",
1819 .psize = 125,
1820 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1821 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
1822 },
1823};
1824
6c9e3dcd 1825#define GHASH_TEST_VECTORS 5
507069c9
YS
1826
1827static struct hash_testvec ghash_tv_template[] =
1828{
1829 {
6c9e3dcd
AB
1830 .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
1831 "\xff\xca\xff\x95\xf8\x30\xf0\x61",
507069c9 1832 .ksize = 16,
6c9e3dcd
AB
1833 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
1834 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
507069c9
YS
1835 .psize = 16,
1836 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
1837 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
6c9e3dcd
AB
1838 }, {
1839 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1840 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1841 .ksize = 16,
1842 .plaintext = "what do ya want for nothing?",
1843 .psize = 28,
1844 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
1845 "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
1846 .np = 2,
1847 .tap = {14, 14}
1848 }, {
1849 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1850 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1851 .ksize = 16,
1852 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1853 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1854 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1855 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1856 .psize = 50,
1857 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
1858 "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
1859 }, {
1860 .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
1861 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
1862 .ksize = 16,
1863 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1864 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1865 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1866 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1867 .psize = 50,
1868 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
1869 "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
1870 }, {
1871 .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
1872 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
1873 .ksize = 16,
1874 .plaintext = "Test With Truncation",
1875 .psize = 20,
1876 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
1877 "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
507069c9
YS
1878 },
1879};
1880
da7f033d
HX
1881/*
1882 * HMAC-MD5 test vectors from RFC2202
1883 * (These need to be fixed to not use strlen).
1884 */
1885#define HMAC_MD5_TEST_VECTORS 7
1886
1887static struct hash_testvec hmac_md5_tv_template[] =
1888{
1889 {
1890 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1891 .ksize = 16,
1892 .plaintext = "Hi There",
1893 .psize = 8,
1894 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
1895 "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
1896 }, {
1897 .key = "Jefe",
1898 .ksize = 4,
1899 .plaintext = "what do ya want for nothing?",
1900 .psize = 28,
1901 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
1902 "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
1903 .np = 2,
1904 .tap = {14, 14}
1905 }, {
1906 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1907 .ksize = 16,
1908 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1909 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1910 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1911 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1912 .psize = 50,
1913 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
1914 "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
1915 }, {
1916 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
1917 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1918 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
1919 .ksize = 25,
1920 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1921 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1922 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1923 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1924 .psize = 50,
1925 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
1926 "\x3a\x75\x16\x47\x46\xff\xaa\x79",
1927 }, {
1928 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
1929 .ksize = 16,
1930 .plaintext = "Test With Truncation",
1931 .psize = 20,
1932 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
1933 "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
1934 }, {
1935 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1936 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1937 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1938 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1939 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1940 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1941 "\xaa\xaa",
1942 .ksize = 80,
1943 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1944 .psize = 54,
1945 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
1946 "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
1947 }, {
1948 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1949 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1950 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1951 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1952 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1953 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1954 "\xaa\xaa",
1955 .ksize = 80,
1956 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
1957 "Block-Size Data",
1958 .psize = 73,
1959 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
1960 "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
1961 },
1962};
1963
1964/*
1965 * HMAC-RIPEMD128 test vectors from RFC2286
1966 */
1967#define HMAC_RMD128_TEST_VECTORS 7
1968
1969static struct hash_testvec hmac_rmd128_tv_template[] = {
1970 {
1971 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1972 .ksize = 16,
1973 .plaintext = "Hi There",
1974 .psize = 8,
1975 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
1976 "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
1977 }, {
1978 .key = "Jefe",
1979 .ksize = 4,
1980 .plaintext = "what do ya want for nothing?",
1981 .psize = 28,
1982 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
1983 "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
1984 .np = 2,
1985 .tap = { 14, 14 },
1986 }, {
1987 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1988 .ksize = 16,
1989 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1990 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1991 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1992 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1993 .psize = 50,
1994 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
1995 "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
1996 }, {
1997 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
1998 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1999 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2000 .ksize = 25,
2001 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2002 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2003 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2004 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2005 .psize = 50,
2006 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
2007 "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
2008 }, {
2009 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2010 .ksize = 16,
2011 .plaintext = "Test With Truncation",
2012 .psize = 20,
2013 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
2014 "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
2015 }, {
2016 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2017 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2018 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2019 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2020 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2021 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2022 "\xaa\xaa",
2023 .ksize = 80,
2024 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2025 .psize = 54,
2026 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
2027 "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
2028 }, {
2029 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2030 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2031 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2032 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2033 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2034 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2035 "\xaa\xaa",
2036 .ksize = 80,
2037 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2038 "Block-Size Data",
2039 .psize = 73,
2040 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
2041 "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
2042 },
2043};
2044
2045/*
2046 * HMAC-RIPEMD160 test vectors from RFC2286
2047 */
2048#define HMAC_RMD160_TEST_VECTORS 7
2049
2050static struct hash_testvec hmac_rmd160_tv_template[] = {
2051 {
2052 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2053 .ksize = 20,
2054 .plaintext = "Hi There",
2055 .psize = 8,
2056 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
2057 "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
2058 }, {
2059 .key = "Jefe",
2060 .ksize = 4,
2061 .plaintext = "what do ya want for nothing?",
2062 .psize = 28,
2063 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
2064 "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
2065 .np = 2,
2066 .tap = { 14, 14 },
2067 }, {
2068 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2069 .ksize = 20,
2070 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2071 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2072 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2073 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2074 .psize = 50,
2075 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
2076 "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
2077 }, {
2078 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2079 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2080 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2081 .ksize = 25,
2082 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2083 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2084 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2085 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2086 .psize = 50,
2087 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
2088 "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
2089 }, {
2090 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2091 .ksize = 20,
2092 .plaintext = "Test With Truncation",
2093 .psize = 20,
2094 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
2095 "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
2096 }, {
2097 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2098 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2099 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2100 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2101 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2102 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2103 "\xaa\xaa",
2104 .ksize = 80,
2105 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2106 .psize = 54,
2107 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
2108 "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
2109 }, {
2110 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2111 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2112 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2113 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2114 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2115 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2116 "\xaa\xaa",
2117 .ksize = 80,
2118 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2119 "Block-Size Data",
2120 .psize = 73,
2121 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
2122 "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
2123 },
2124};
2125
2126/*
2127 * HMAC-SHA1 test vectors from RFC2202
2128 */
2129#define HMAC_SHA1_TEST_VECTORS 7
2130
2131static struct hash_testvec hmac_sha1_tv_template[] = {
2132 {
2133 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2134 .ksize = 20,
2135 .plaintext = "Hi There",
2136 .psize = 8,
2137 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
2138 "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
2139 "\x46\xbe",
2140 }, {
2141 .key = "Jefe",
2142 .ksize = 4,
2143 .plaintext = "what do ya want for nothing?",
2144 .psize = 28,
2145 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
2146 "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
2147 .np = 2,
2148 .tap = { 14, 14 }
2149 }, {
2150 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2151 .ksize = 20,
2152 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2153 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2154 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2155 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2156 .psize = 50,
2157 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
2158 "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
2159 }, {
2160 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2161 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2162 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2163 .ksize = 25,
2164 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2165 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2166 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2167 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2168 .psize = 50,
2169 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
2170 "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
2171 }, {
2172 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2173 .ksize = 20,
2174 .plaintext = "Test With Truncation",
2175 .psize = 20,
2176 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
2177 "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
2178 }, {
2179 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2180 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2181 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2182 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2183 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2184 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2185 "\xaa\xaa",
2186 .ksize = 80,
2187 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2188 .psize = 54,
2189 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
2190 "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
2191 }, {
2192 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2193 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2194 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2195 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2196 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2197 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2198 "\xaa\xaa",
2199 .ksize = 80,
2200 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2201 "Block-Size Data",
2202 .psize = 73,
2203 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
2204 "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
2205 },
2206};
2207
2208
2209/*
2210 * SHA224 HMAC test vectors from RFC4231
2211 */
2212#define HMAC_SHA224_TEST_VECTORS 4
2213
2214static struct hash_testvec hmac_sha224_tv_template[] = {
2215 {
2216 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2217 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2218 "\x0b\x0b\x0b\x0b",
2219 .ksize = 20,
2220 /* ("Hi There") */
2221 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
2222 .psize = 8,
2223 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
2224 "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
2225 "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
2226 "\x53\x68\x4b\x22",
2227 }, {
2228 .key = "Jefe",
2229 .ksize = 4,
2230 /* ("what do ya want for nothing?") */
2231 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
2232 "\x79\x61\x20\x77\x61\x6e\x74\x20"
2233 "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
2234 "\x69\x6e\x67\x3f",
2235 .psize = 28,
2236 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
2237 "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
2238 "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
2239 "\x8f\xd0\x5e\x44",
2240 .np = 4,
2241 .tap = { 7, 7, 7, 7 }
2242 }, {
2243 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2244 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2245 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2246 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2247 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2248 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2249 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2250 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2251 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2252 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2253 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2254 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2255 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2256 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2257 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2258 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2259 "\xaa\xaa\xaa",
2260 .ksize = 131,
2261 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
2262 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
2263 "\x6e\x67\x20\x4c\x61\x72\x67\x65"
2264 "\x72\x20\x54\x68\x61\x6e\x20\x42"
2265 "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
2266 "\x65\x20\x4b\x65\x79\x20\x2d\x20"
2267 "\x48\x61\x73\x68\x20\x4b\x65\x79"
2268 "\x20\x46\x69\x72\x73\x74",
2269 .psize = 54,
2270 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
2271 "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
2272 "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
2273 "\x3f\xa6\x87\x0e",
2274 }, {
2275 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2276 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2277 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2278 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2279 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2280 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2281 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2282 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2283 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2284 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2285 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2286 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2287 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2288 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2289 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2290 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2291 "\xaa\xaa\xaa",
2292 .ksize = 131,
2293 /* ("This is a test using a larger than block-size key and a")
2294 (" larger than block-size data. The key needs to be")
2295 (" hashed before being used by the HMAC algorithm.") */
2296 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
2297 "\x61\x20\x74\x65\x73\x74\x20\x75"
2298 "\x73\x69\x6e\x67\x20\x61\x20\x6c"
2299 "\x61\x72\x67\x65\x72\x20\x74\x68"
2300 "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
2301 "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
2302 "\x79\x20\x61\x6e\x64\x20\x61\x20"
2303 "\x6c\x61\x72\x67\x65\x72\x20\x74"
2304 "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
2305 "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
2306 "\x61\x74\x61\x2e\x20\x54\x68\x65"
2307 "\x20\x6b\x65\x79\x20\x6e\x65\x65"
2308 "\x64\x73\x20\x74\x6f\x20\x62\x65"
2309 "\x20\x68\x61\x73\x68\x65\x64\x20"
2310 "\x62\x65\x66\x6f\x72\x65\x20\x62"
2311 "\x65\x69\x6e\x67\x20\x75\x73\x65"
2312 "\x64\x20\x62\x79\x20\x74\x68\x65"
2313 "\x20\x48\x4d\x41\x43\x20\x61\x6c"
2314 "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
2315 .psize = 152,
2316 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
2317 "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
2318 "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
2319 "\xf6\xf5\x65\xd1",
2320 },
2321};
2322
2323/*
2324 * HMAC-SHA256 test vectors from
2325 * draft-ietf-ipsec-ciph-sha-256-01.txt
2326 */
2327#define HMAC_SHA256_TEST_VECTORS 10
2328
2329static struct hash_testvec hmac_sha256_tv_template[] = {
2330 {
2331 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2332 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2333 "\x11\x12\x13\x14\x15\x16\x17\x18"
2334 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
2335 .ksize = 32,
2336 .plaintext = "abc",
2337 .psize = 3,
2338 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
2339 "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
2340 "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
2341 "\x92\x75\x90\x21\xcf\xab\x81\x81",
2342 }, {
2343 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2344 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2345 "\x11\x12\x13\x14\x15\x16\x17\x18"
2346 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
2347 .ksize = 32,
2348 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2349 .psize = 56,
2350 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
2351 "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
2352 "\xe6\x98\xe3\x61\x19\x42\x11\x49"
2353 "\xea\x8c\x71\x24\x56\x69\x7d\x30",
2354 }, {
2355 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2356 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2357 "\x11\x12\x13\x14\x15\x16\x17\x18"
2358 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
2359 .ksize = 32,
2360 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
2361 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2362 .psize = 112,
2363 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
2364 "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
2365 "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
2366 "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
2367 }, {
2368 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2369 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2370 "\x0b\x0b\x0b\x0b\x0b\x0b",
2371 .ksize = 32,
2372 .plaintext = "Hi There",
2373 .psize = 8,
2374 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
2375 "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
2376 "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
2377 "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
2378 }, {
2379 .key = "Jefe",
2380 .ksize = 4,
2381 .plaintext = "what do ya want for nothing?",
2382 .psize = 28,
2383 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
2384 "\x6a\x04\x24\x26\x08\x95\x75\xc7"
2385 "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
2386 "\x9d\xec\x58\xb9\x64\xec\x38\x43",
2387 .np = 2,
2388 .tap = { 14, 14 }
2389 }, {
2390 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2391 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2392 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2393 .ksize = 32,
2394 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2395 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2396 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2397 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2398 .psize = 50,
2399 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
2400 "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
2401 "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
2402 "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
2403 }, {
2404 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2405 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2406 "\x11\x12\x13\x14\x15\x16\x17\x18"
2407 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
2408 "\x21\x22\x23\x24\x25",
2409 .ksize = 37,
2410 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2411 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2412 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2413 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2414 .psize = 50,
2415 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
2416 "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
2417 "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
2418 "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
2419 }, {
2420 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
2421 "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
2422 "\x0c\x0c\x0c\x0c\x0c\x0c",
2423 .ksize = 32,
2424 .plaintext = "Test With Truncation",
2425 .psize = 20,
2426 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
2427 "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
2428 "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
2429 "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
2430 }, {
2431 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2432 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2433 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2434 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2435 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2436 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2437 "\xaa\xaa",
2438 .ksize = 80,
2439 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2440 .psize = 54,
2441 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
2442 "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
2443 "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
2444 "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
2445 }, {
2446 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2447 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2448 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2449 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2450 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2451 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2452 "\xaa\xaa",
2453 .ksize = 80,
2454 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
2455 "One Block-Size Data",
2456 .psize = 73,
2457 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
2458 "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
2459 "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
2460 "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
2461 },
2462};
2463
93b5e86a
JK
2464#define CMAC_AES_TEST_VECTORS 6
2465
2466static struct hash_testvec aes_cmac128_tv_template[] = {
2467 { /* From NIST Special Publication 800-38B, AES-128 */
2468 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2469 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2470 .plaintext = zeroed_string,
2471 .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
2472 "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
2473 .psize = 0,
2474 .ksize = 16,
2475 }, {
2476 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2477 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2478 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2479 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
2480 .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
2481 "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
2482 .psize = 16,
2483 .ksize = 16,
2484 }, {
2485 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2486 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2487 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2488 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2489 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2490 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
2491 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
2492 .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
2493 "\x30\xca\x32\x61\x14\x97\xc8\x27",
2494 .psize = 40,
2495 .ksize = 16,
2496 }, {
2497 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2498 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2499 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2500 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2501 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2502 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
2503 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
2504 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
2505 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
2506 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
2507 .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
2508 "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
2509 .psize = 64,
2510 .ksize = 16,
2511 }, { /* From NIST Special Publication 800-38B, AES-256 */
2512 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
2513 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
2514 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
2515 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
2516 .plaintext = zeroed_string,
2517 .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
2518 "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
2519 .psize = 0,
2520 .ksize = 32,
2521 }, {
2522 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
2523 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
2524 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
2525 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
2526 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2527 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2528 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2529 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
2530 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
2531 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
2532 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
2533 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
2534 .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
2535 "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
2536 .psize = 64,
2537 .ksize = 32,
2538 }
2539};
2540
2541#define CMAC_DES3_EDE_TEST_VECTORS 4
2542
2543static struct hash_testvec des3_ede_cmac64_tv_template[] = {
2544/*
2545 * From NIST Special Publication 800-38B, Three Key TDEA
2546 * Corrected test vectors from:
2547 * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
2548 */
2549 {
2550 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2551 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2552 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2553 .plaintext = zeroed_string,
2554 .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
2555 .psize = 0,
2556 .ksize = 24,
2557 }, {
2558 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2559 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2560 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2561 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
2562 .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
2563 .psize = 8,
2564 .ksize = 24,
2565 }, {
2566 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2567 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2568 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2569 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2570 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2571 "\xae\x2d\x8a\x57",
2572 .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
2573 .psize = 20,
2574 .ksize = 24,
2575 }, {
2576 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2577 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2578 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2579 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2580 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2581 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2582 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
2583 .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
2584 .psize = 32,
2585 .ksize = 24,
2586 }
2587};
2588
da7f033d
HX
2589#define XCBC_AES_TEST_VECTORS 6
2590
2591static struct hash_testvec aes_xcbc128_tv_template[] = {
2592 {
2593 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2594 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2595 .plaintext = zeroed_string,
2596 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
2597 "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
2598 .psize = 0,
2599 .ksize = 16,
2600 }, {
2601 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2602 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2603 .plaintext = "\x00\x01\x02",
2604 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
2605 "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
2606 .psize = 3,
2607 .ksize = 16,
2608 } , {
2609 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2610 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2611 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2612 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2613 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
2614 "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
2615 .psize = 16,
2616 .ksize = 16,
2617 }, {
2618 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2619 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2620 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2621 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2622 "\x10\x11\x12\x13",
2623 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
2624 "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
2625 .tap = { 10, 10 },
2626 .psize = 20,
2627 .np = 2,
2628 .ksize = 16,
2629 }, {
2630 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2631 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2632 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2633 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2634 "\x10\x11\x12\x13\x14\x15\x16\x17"
2635 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
2636 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
2637 "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
2638 .psize = 32,
2639 .ksize = 16,
2640 }, {
2641 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2642 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2643 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2644 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2645 "\x10\x11\x12\x13\x14\x15\x16\x17"
2646 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
2647 "\x20\x21",
2648 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
2649 "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
2650 .tap = { 17, 17 },
2651 .psize = 34,
2652 .np = 2,
2653 .ksize = 16,
2654 }
2655};
2656
ba1ee070 2657#define VMAC_AES_TEST_VECTORS 11
304a204e 2658static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
f1939f7c
SW
2659 '\x02', '\x03', '\x02', '\x02',
2660 '\x02', '\x04', '\x01', '\x07',
2661 '\x04', '\x01', '\x04', '\x03',};
304a204e
SW
2662static char vmac_string2[128] = {'a', 'b', 'c',};
2663static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
2664 'a', 'b', 'c', 'a', 'b', 'c',
2665 'a', 'b', 'c', 'a', 'b', 'c',
2666 'a', 'b', 'c', 'a', 'b', 'c',
2667 'a', 'b', 'c', 'a', 'b', 'c',
2668 'a', 'b', 'c', 'a', 'b', 'c',
2669 'a', 'b', 'c', 'a', 'b', 'c',
2670 'a', 'b', 'c', 'a', 'b', 'c',
2671 };
2672
ba1ee070
SQ
2673static char vmac_string4[17] = {'b', 'c', 'e', 'f',
2674 'i', 'j', 'l', 'm',
2675 'o', 'p', 'r', 's',
2676 't', 'u', 'w', 'x', 'z'};
2677
2678static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
2679 'o', 'l', 'k', ']', '%',
2680 '9', '2', '7', '!', 'A'};
2681
2682static char vmac_string6[129] = {'p', 't', '*', '7', 'l',
2683 'i', '!', '#', 'w', '0',
2684 'z', '/', '4', 'A', 'n'};
2685
f1939f7c
SW
2686static struct hash_testvec aes_vmac128_tv_template[] = {
2687 {
304a204e
SW
2688 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2689 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2690 .plaintext = NULL,
2691 .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
2692 .psize = 0,
2693 .ksize = 16,
2694 }, {
2695 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2696 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2697 .plaintext = vmac_string1,
2698 .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
2699 .psize = 128,
2700 .ksize = 16,
2701 }, {
2702 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2703 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2704 .plaintext = vmac_string2,
2705 .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
2706 .psize = 128,
2707 .ksize = 16,
2708 }, {
f1939f7c
SW
2709 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2710 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
304a204e
SW
2711 .plaintext = vmac_string3,
2712 .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
2713 .psize = 128,
2714 .ksize = 16,
2715 }, {
2716 .key = "abcdefghijklmnop",
2717 .plaintext = NULL,
2718 .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
2719 .psize = 0,
2720 .ksize = 16,
2721 }, {
2722 .key = "abcdefghijklmnop",
2723 .plaintext = vmac_string1,
2724 .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
2725 .psize = 128,
2726 .ksize = 16,
2727 }, {
2728 .key = "abcdefghijklmnop",
2729 .plaintext = vmac_string2,
2730 .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
2731 .psize = 128,
2732 .ksize = 16,
2733 }, {
2734 .key = "abcdefghijklmnop",
2735 .plaintext = vmac_string3,
2736 .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
f1939f7c
SW
2737 .psize = 128,
2738 .ksize = 16,
ba1ee070
SQ
2739 }, {
2740 .key = "a09b5cd!f#07K\x00\x00\x00",
2741 .plaintext = vmac_string4,
2742 .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
2743 .psize = sizeof(vmac_string4),
2744 .ksize = 16,
2745 }, {
2746 .key = "a09b5cd!f#07K\x00\x00\x00",
2747 .plaintext = vmac_string5,
2748 .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
2749 .psize = sizeof(vmac_string5),
2750 .ksize = 16,
2751 }, {
2752 .key = "a09b5cd!f#07K\x00\x00\x00",
2753 .plaintext = vmac_string6,
2754 .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
2755 .psize = sizeof(vmac_string6),
2756 .ksize = 16,
f1939f7c
SW
2757 },
2758};
2759
da7f033d
HX
2760/*
2761 * SHA384 HMAC test vectors from RFC4231
2762 */
2763
2764#define HMAC_SHA384_TEST_VECTORS 4
2765
2766static struct hash_testvec hmac_sha384_tv_template[] = {
2767 {
2768 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2769 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2770 "\x0b\x0b\x0b\x0b",
2771 .ksize = 20,
2772 .plaintext = "Hi There",
2773 .psize = 8,
2774 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
2775 "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
2776 "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
2777 "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
2778 "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
2779 "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
2780 }, {
2781 .key = "Jefe",
2782 .ksize = 4,
2783 .plaintext = "what do ya want for nothing?",
2784 .psize = 28,
2785 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
2786 "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
2787 "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
2788 "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
2789 "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
2790 "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
2791 .np = 4,
2792 .tap = { 7, 7, 7, 7 }
2793 }, {
2794 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2795 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2796 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2797 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2798 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2799 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2800 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2801 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2802 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2803 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2804 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2805 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2806 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2807 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2808 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2809 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2810 "\xaa\xaa\xaa",
2811 .ksize = 131,
2812 .plaintext = "Test Using Larger Than Block-Siz"
2813 "e Key - Hash Key First",
2814 .psize = 54,
2815 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
2816 "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
2817 "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
2818 "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
2819 "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
2820 "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
2821 }, {
2822 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2823 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2824 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2825 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2826 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2827 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2828 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2829 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2830 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2831 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2832 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2833 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2834 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2835 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2836 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2837 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2838 "\xaa\xaa\xaa",
2839 .ksize = 131,
2840 .plaintext = "This is a test u"
2841 "sing a larger th"
2842 "an block-size ke"
2843 "y and a larger t"
2844 "han block-size d"
2845 "ata. The key nee"
2846 "ds to be hashed "
2847 "before being use"
2848 "d by the HMAC al"
2849 "gorithm.",
2850 .psize = 152,
2851 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
2852 "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
2853 "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
2854 "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
2855 "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
2856 "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
2857 },
2858};
2859
2860/*
2861 * SHA512 HMAC test vectors from RFC4231
2862 */
2863
2864#define HMAC_SHA512_TEST_VECTORS 4
2865
2866static struct hash_testvec hmac_sha512_tv_template[] = {
2867 {
2868 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2869 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2870 "\x0b\x0b\x0b\x0b",
2871 .ksize = 20,
2872 .plaintext = "Hi There",
2873 .psize = 8,
2874 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
2875 "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
2876 "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
2877 "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
2878 "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
2879 "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
2880 "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
2881 "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
2882 }, {
2883 .key = "Jefe",
2884 .ksize = 4,
2885 .plaintext = "what do ya want for nothing?",
2886 .psize = 28,
2887 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
2888 "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
2889 "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
2890 "\x10\x27\x0c\xd7\xea\x25\x05\x54"
2891 "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
2892 "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
2893 "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
2894 "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
2895 .np = 4,
2896 .tap = { 7, 7, 7, 7 }
2897 }, {
2898 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2899 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2900 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2901 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2902 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2903 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2904 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2905 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2906 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2907 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2908 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2909 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2910 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2911 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2912 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2913 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2914 "\xaa\xaa\xaa",
2915 .ksize = 131,
2916 .plaintext = "Test Using Large"
2917 "r Than Block-Siz"
2918 "e Key - Hash Key"
2919 " First",
2920 .psize = 54,
2921 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
2922 "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
2923 "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
2924 "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
2925 "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
2926 "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
2927 "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
2928 "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
2929 }, {
2930 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2931 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2932 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2933 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2934 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2935 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2936 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2937 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2938 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2939 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2940 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2941 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2942 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2943 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2944 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2945 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2946 "\xaa\xaa\xaa",
2947 .ksize = 131,
2948 .plaintext =
2949 "This is a test u"
2950 "sing a larger th"
2951 "an block-size ke"
2952 "y and a larger t"
2953 "han block-size d"
2954 "ata. The key nee"
2955 "ds to be hashed "
2956 "before being use"
2957 "d by the HMAC al"
2958 "gorithm.",
2959 .psize = 152,
2960 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
2961 "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
2962 "\xde\xbd\x71\xf8\x86\x72\x89\x86"
2963 "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
2964 "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
2965 "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
2966 "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
2967 "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
2968 },
2969};
2970
2971/*
2972 * DES test vectors.
2973 */
8163fc30
JK
2974#define DES_ENC_TEST_VECTORS 11
2975#define DES_DEC_TEST_VECTORS 5
2976#define DES_CBC_ENC_TEST_VECTORS 6
2977#define DES_CBC_DEC_TEST_VECTORS 5
2978#define DES_CTR_ENC_TEST_VECTORS 2
2979#define DES_CTR_DEC_TEST_VECTORS 2
e080b17a
JK
2980#define DES3_EDE_ENC_TEST_VECTORS 4
2981#define DES3_EDE_DEC_TEST_VECTORS 4
2982#define DES3_EDE_CBC_ENC_TEST_VECTORS 2
2983#define DES3_EDE_CBC_DEC_TEST_VECTORS 2
2984#define DES3_EDE_CTR_ENC_TEST_VECTORS 2
2985#define DES3_EDE_CTR_DEC_TEST_VECTORS 2
da7f033d
HX
2986
2987static struct cipher_testvec des_enc_tv_template[] = {
2988 { /* From Applied Cryptography */
2989 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
2990 .klen = 8,
2991 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
2992 .ilen = 8,
2993 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
2994 .rlen = 8,
2995 }, { /* Same key, different plaintext block */
2996 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
2997 .klen = 8,
2998 .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
2999 .ilen = 8,
3000 .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
3001 .rlen = 8,
3002 }, { /* Sbox test from NBS */
3003 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
3004 .klen = 8,
3005 .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
3006 .ilen = 8,
3007 .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
3008 .rlen = 8,
3009 }, { /* Three blocks */
3010 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3011 .klen = 8,
3012 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3013 "\x22\x33\x44\x55\x66\x77\x88\x99"
3014 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
3015 .ilen = 24,
3016 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3017 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
3018 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
3019 .rlen = 24,
3020 }, { /* Weak key */
3021 .fail = 1,
3022 .wk = 1,
3023 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
3024 .klen = 8,
3025 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
3026 .ilen = 8,
3027 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
3028 .rlen = 8,
3029 }, { /* Two blocks -- for testing encryption across pages */
3030 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3031 .klen = 8,
3032 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3033 "\x22\x33\x44\x55\x66\x77\x88\x99",
3034 .ilen = 16,
3035 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3036 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
3037 .rlen = 16,
3038 .np = 2,
3039 .tap = { 8, 8 }
3040 }, { /* Four blocks -- for testing encryption with chunking */
3041 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3042 .klen = 8,
3043 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3044 "\x22\x33\x44\x55\x66\x77\x88\x99"
3045 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
3046 "\x22\x33\x44\x55\x66\x77\x88\x99",
3047 .ilen = 32,
3048 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3049 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
3050 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
3051 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
3052 .rlen = 32,
3053 .np = 3,
3054 .tap = { 14, 10, 8 }
3055 }, {
3056 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3057 .klen = 8,
3058 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3059 "\x22\x33\x44\x55\x66\x77\x88\x99"
3060 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
3061 .ilen = 24,
3062 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3063 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
3064 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
3065 .rlen = 24,
3066 .np = 4,
3067 .tap = { 2, 1, 3, 18 }
3068 }, {
3069 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3070 .klen = 8,
3071 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3072 "\x22\x33\x44\x55\x66\x77\x88\x99",
3073 .ilen = 16,
3074 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3075 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
3076 .rlen = 16,
3077 .np = 5,
3078 .tap = { 2, 2, 2, 2, 8 }
3079 }, {
3080 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3081 .klen = 8,
3082 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
3083 .ilen = 8,
3084 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
3085 .rlen = 8,
3086 .np = 8,
3087 .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
8163fc30
JK
3088 }, { /* Generated with Crypto++ */
3089 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3090 .klen = 8,
3091 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3092 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3093 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3094 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3095 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3096 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3097 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3098 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3099 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3100 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3101 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3102 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3103 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3104 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3105 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3106 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3107 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3108 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3109 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3110 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3111 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3112 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3113 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3114 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3115 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3116 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3117 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3118 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3119 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3120 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3121 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3122 .ilen = 248,
3123 .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
3124 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
3125 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
3126 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
3127 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
3128 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
3129 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
3130 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
3131 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
3132 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
3133 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
3134 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
3135 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
3136 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
3137 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
3138 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
3139 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
3140 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
3141 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
3142 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
3143 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
3144 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
3145 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
3146 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
3147 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
3148 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
3149 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
3150 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
3151 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
3152 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
3153 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
3154 .rlen = 248,
3155 .also_non_np = 1,
3b9b8fe0
AB
3156 .np = 3,
3157 .tap = { 248 - 10, 2, 8 },
da7f033d
HX
3158 },
3159};
3160
3161static struct cipher_testvec des_dec_tv_template[] = {
3162 { /* From Applied Cryptography */
3163 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3164 .klen = 8,
3165 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
3166 .ilen = 8,
3167 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
3168 .rlen = 8,
3169 }, { /* Sbox test from NBS */
3170 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
3171 .klen = 8,
3172 .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
3173 .ilen = 8,
3174 .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
3175 .rlen = 8,
3176 }, { /* Two blocks, for chunking test */
3177 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3178 .klen = 8,
3179 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3180 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
3181 .ilen = 16,
3182 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3183 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
3184 .rlen = 16,
3185 .np = 2,
3186 .tap = { 8, 8 }
3187 }, {
3188 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3189 .klen = 8,
3190 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3191 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
3192 .ilen = 16,
3193 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3194 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
3195 .rlen = 16,
3196 .np = 3,
3197 .tap = { 3, 12, 1 }
8163fc30
JK
3198 }, { /* Generated with Crypto++ */
3199 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3200 .klen = 8,
3201 .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
3202 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
3203 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
3204 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
3205 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
3206 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
3207 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
3208 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
3209 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
3210 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
3211 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
3212 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
3213 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
3214 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
3215 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
3216 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
3217 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
3218 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
3219 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
3220 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
3221 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
3222 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
3223 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
3224 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
3225 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
3226 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
3227 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
3228 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
3229 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
3230 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
3231 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
3232 .ilen = 248,
3233 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3234 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3235 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3236 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3237 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3238 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3239 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3240 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3241 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3242 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3243 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3244 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3245 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3246 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3247 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3248 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3249 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3250 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3251 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3252 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3253 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3254 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3255 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3256 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3257 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3258 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3259 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3260 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3261 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3262 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3263 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3264 .rlen = 248,
3265 .also_non_np = 1,
3b9b8fe0
AB
3266 .np = 3,
3267 .tap = { 248 - 10, 2, 8 },
da7f033d
HX
3268 },
3269};
3270
3271static struct cipher_testvec des_cbc_enc_tv_template[] = {
3272 { /* From OpenSSL */
3273 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3274 .klen = 8,
3275 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3276 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
3277 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
3278 "\x68\x65\x20\x74\x69\x6d\x65\x20",
3279 .ilen = 24,
3280 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
3281 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
3282 "\x46\x8e\x91\x15\x78\x88\xba\x68",
3283 .rlen = 24,
3284 }, { /* FIPS Pub 81 */
3285 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3286 .klen = 8,
3287 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
3288 .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
3289 .ilen = 8,
3290 .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3291 .rlen = 8,
3292 }, {
3293 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3294 .klen = 8,
3295 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3296 .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
3297 .ilen = 8,
3298 .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3299 .rlen = 8,
3300 }, {
3301 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3302 .klen = 8,
3303 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3304 .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
3305 .ilen = 8,
3306 .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
3307 .rlen = 8,
3308 }, { /* Copy of openssl vector for chunk testing */
3309 /* From OpenSSL */
3310 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3311 .klen = 8,
3312 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3313 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
3314 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
3315 "\x68\x65\x20\x74\x69\x6d\x65\x20",
3316 .ilen = 24,
3317 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
3318 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
3319 "\x46\x8e\x91\x15\x78\x88\xba\x68",
3320 .rlen = 24,
3321 .np = 2,
3322 .tap = { 13, 11 }
8163fc30
JK
3323 }, { /* Generated with Crypto++ */
3324 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3325 .klen = 8,
3326 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3327 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3328 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3329 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3330 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3331 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3332 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3333 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3334 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3335 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3336 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3337 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3338 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3339 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3340 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3341 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3342 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3343 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3344 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3345 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3346 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3347 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3348 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3349 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3350 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3351 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3352 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3353 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3354 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3355 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3356 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3357 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3358 .ilen = 248,
3359 .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
3360 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
3361 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
3362 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
3363 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
3364 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
3365 "\x81\x72\x74\xDE\x30\x19\x69\x49"
3366 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
3367 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
3368 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
3369 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
3370 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
3371 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
3372 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
3373 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
3374 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
3375 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
3376 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
3377 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
3378 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
3379 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
3380 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
3381 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
3382 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
3383 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
3384 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
3385 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
3386 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
3387 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
3388 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
3389 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
3390 .rlen = 248,
3391 .also_non_np = 1,
3b9b8fe0
AB
3392 .np = 3,
3393 .tap = { 248 - 10, 2, 8 },
da7f033d
HX
3394 },
3395};
3396
3397static struct cipher_testvec des_cbc_dec_tv_template[] = {
3398 { /* FIPS Pub 81 */
3399 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3400 .klen = 8,
3401 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
3402 .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3403 .ilen = 8,
3404 .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
3405 .rlen = 8,
3406 }, {
3407 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3408 .klen = 8,
3409 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3410 .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3411 .ilen = 8,
3412 .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
3413 .rlen = 8,
3414 }, {
3415 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3416 .klen = 8,
3417 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3418 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
3419 .ilen = 8,
3420 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
3421 .rlen = 8,
3422 }, { /* Copy of above, for chunk testing */
3423 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3424 .klen = 8,
3425 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3426 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
3427 .ilen = 8,
3428 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
3429 .rlen = 8,
3430 .np = 2,
3431 .tap = { 4, 4 }
8163fc30
JK
3432 }, { /* Generated with Crypto++ */
3433 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3434 .klen = 8,
3435 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3436 .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
3437 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
3438 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
3439 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
3440 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
3441 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
3442 "\x81\x72\x74\xDE\x30\x19\x69\x49"
3443 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
3444 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
3445 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
3446 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
3447 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
3448 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
3449 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
3450 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
3451 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
3452 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
3453 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
3454 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
3455 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
3456 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
3457 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
3458 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
3459 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
3460 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
3461 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
3462 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
3463 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
3464 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
3465 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
3466 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
3467 .ilen = 248,
3468 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3469 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3470 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3471 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3472 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3473 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3474 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3475 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3476 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3477 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3478 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3479 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3480 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3481 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3482 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3483 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3484 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3485 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3486 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3487 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3488 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3489 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3490 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3491 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3492 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3493 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3494 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3495 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3496 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3497 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3498 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3499 .rlen = 248,
3500 .also_non_np = 1,
3b9b8fe0
AB
3501 .np = 3,
3502 .tap = { 248 - 10, 2, 8 },
8163fc30
JK
3503 },
3504};
3505
3506static struct cipher_testvec des_ctr_enc_tv_template[] = {
3507 { /* Generated with Crypto++ */
3508 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3509 .klen = 8,
3510 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
3511 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3512 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3513 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3514 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3515 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3516 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3517 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3518 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3519 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3520 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3521 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3522 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3523 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3524 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3525 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3526 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3527 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3528 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3529 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3530 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3531 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3532 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3533 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3534 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3535 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3536 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3537 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3538 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3539 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3540 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3541 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3542 .ilen = 248,
3543 .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
3544 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
3545 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
3546 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
3547 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
3548 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
3549 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
3550 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
3551 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
3552 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
3553 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
3554 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
3555 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
3556 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
3557 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
3558 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
3559 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
3560 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
3561 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
3562 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
3563 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
3564 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
3565 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
3566 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
3567 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
3568 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
3569 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
3570 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
3571 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
3572 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
3573 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
3574 .rlen = 248,
3575 .also_non_np = 1,
3b9b8fe0
AB
3576 .np = 3,
3577 .tap = { 248 - 10, 2, 8 },
8163fc30
JK
3578 }, { /* Generated with Crypto++ */
3579 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3580 .klen = 8,
3581 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3582 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3583 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3584 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3585 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3586 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3587 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3588 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3589 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3590 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3591 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3592 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3593 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3594 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3595 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3596 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3597 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3598 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3599 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3600 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3601 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3602 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3603 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3604 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3605 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3606 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3607 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3608 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3609 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3610 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3611 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3612 "\xC6\x2F\xBB\x24\x8D\x19\x82",
3613 .ilen = 247,
3614 .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
3615 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
3616 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
3617 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
3618 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
3619 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
3620 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
3621 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
3622 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
3623 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
3624 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
3625 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
3626 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
3627 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
3628 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
3629 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
3630 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
3631 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
3632 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
3633 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
3634 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
3635 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
3636 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
3637 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
3638 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
3639 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
3640 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
3641 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
3642 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
3643 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
3644 "\x91\x45\x05\x3E\x58\xBF\x32",
3645 .rlen = 247,
3646 .also_non_np = 1,
3647 .np = 2,
3648 .tap = { 247 - 8, 8 },
3649 },
3650};
3651
3652static struct cipher_testvec des_ctr_dec_tv_template[] = {
3653 { /* Generated with Crypto++ */
3654 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3655 .klen = 8,
3656 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
3657 .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
3658 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
3659 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
3660 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
3661 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
3662 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
3663 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
3664 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
3665 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
3666 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
3667 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
3668 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
3669 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
3670 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
3671 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
3672 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
3673 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
3674 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
3675 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
3676 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
3677 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
3678 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
3679 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
3680 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
3681 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
3682 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
3683 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
3684 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
3685 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
3686 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
3687 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
3688 .ilen = 248,
3689 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3690 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3691 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3692 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3693 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3694 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3695 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3696 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3697 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3698 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3699 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3700 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3701 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3702 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3703 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3704 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3705 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3706 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3707 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3708 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3709 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3710 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3711 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3712 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3713 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3714 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3715 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3716 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3717 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3718 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3719 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3720 .rlen = 248,
3721 .also_non_np = 1,
3b9b8fe0
AB
3722 .np = 3,
3723 .tap = { 248 - 10, 2, 8 },
8163fc30
JK
3724 }, { /* Generated with Crypto++ */
3725 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3726 .klen = 8,
3727 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3728 .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
3729 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
3730 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
3731 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
3732 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
3733 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
3734 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
3735 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
3736 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
3737 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
3738 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
3739 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
3740 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
3741 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
3742 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
3743 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
3744 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
3745 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
3746 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
3747 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
3748 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
3749 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
3750 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
3751 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
3752 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
3753 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
3754 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
3755 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
3756 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
3757 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
3758 "\x91\x45\x05\x3E\x58\xBF\x32",
3759 .ilen = 247,
3760 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3761 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3762 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3763 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3764 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3765 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3766 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3767 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3768 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3769 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3770 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3771 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3772 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3773 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3774 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3775 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3776 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3777 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3778 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3779 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3780 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3781 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3782 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3783 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3784 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3785 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3786 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3787 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3788 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3789 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3790 "\xC6\x2F\xBB\x24\x8D\x19\x82",
3791 .rlen = 247,
3792 .also_non_np = 1,
3793 .np = 2,
3794 .tap = { 247 - 8, 8 },
da7f033d
HX
3795 },
3796};
3797
3798static struct cipher_testvec des3_ede_enc_tv_template[] = {
3799 { /* These are from openssl */
3800 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
3801 "\x55\x55\x55\x55\x55\x55\x55\x55"
3802 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3803 .klen = 24,
3804 .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
3805 .ilen = 8,
3806 .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
3807 .rlen = 8,
3808 }, {
3809 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
3810 "\x86\x02\x87\x66\x59\x08\x21\x98"
3811 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
3812 .klen = 24,
3813 .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
3814 .ilen = 8,
3815 .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
3816 .rlen = 8,
3817 }, {
3818 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
3819 "\x91\x07\xd0\x15\x89\x19\x01\x01"
3820 "\x19\x07\x92\x10\x98\x1a\x01\x01",
3821 .klen = 24,
3822 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
3823 .ilen = 8,
3824 .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
3825 .rlen = 8,
e080b17a
JK
3826 }, { /* Generated with Crypto++ */
3827 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
3828 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
3829 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
3830 .klen = 24,
3831 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3832 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3833 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3834 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3835 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3836 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3837 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3838 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3839 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3840 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3841 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3842 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3843 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3844 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3845 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3846 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3847 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3848 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3849 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3850 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3851 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3852 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3853 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3854 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3855 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3856 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3857 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3858 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3859 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3860 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3861 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3862 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3863 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3864 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3865 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3866 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3867 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3868 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3869 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3870 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3871 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3872 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3873 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3874 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3875 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3876 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3877 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3878 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3879 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3880 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3881 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3882 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3883 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3884 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3885 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3886 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3887 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3888 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3889 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3890 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3891 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3892 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
3893 .ilen = 496,
3894 .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
3895 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
3896 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
3897 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
3898 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
3899 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
3900 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
3901 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
3902 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
3903 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
3904 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
3905 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
3906 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
3907 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
3908 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
3909 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
3910 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
3911 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
3912 "\x45\x86\x50\x01\x70\x35\x99\x92"
3913 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
3914 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
3915 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
3916 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
3917 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
3918 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
3919 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
3920 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
3921 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
3922 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
3923 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
3924 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
3925 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
3926 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
3927 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
3928 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
3929 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
3930 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
3931 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
3932 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
3933 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
3934 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
3935 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
3936 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
3937 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
3938 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
3939 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
3940 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
3941 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
3942 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
3943 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
3944 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
3945 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
3946 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
3947 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
3948 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
3949 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
3950 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
3951 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
3952 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
3953 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
3954 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
3955 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
3956 .rlen = 496,
3957 .also_non_np = 1,
3b9b8fe0
AB
3958 .np = 3,
3959 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
3960 },
3961};
3962
3963static struct cipher_testvec des3_ede_dec_tv_template[] = {
3964 { /* These are from openssl */
3965 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
3966 "\x55\x55\x55\x55\x55\x55\x55\x55"
3967 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3968 .klen = 24,
3969 .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
3970 .ilen = 8,
3971 .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
3972 .rlen = 8,
3973 }, {
3974 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
3975 "\x86\x02\x87\x66\x59\x08\x21\x98"
3976 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
3977 .klen = 24,
3978 .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
3979 .ilen = 8,
3980 .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
3981 .rlen = 8,
3982 }, {
3983 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
3984 "\x91\x07\xd0\x15\x89\x19\x01\x01"
3985 "\x19\x07\x92\x10\x98\x1a\x01\x01",
3986 .klen = 24,
3987 .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
3988 .ilen = 8,
3989 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
3990 .rlen = 8,
e080b17a
JK
3991 }, { /* Generated with Crypto++ */
3992 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
3993 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
3994 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
3995 .klen = 24,
3996 .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
3997 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
3998 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
3999 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
4000 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
4001 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
4002 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
4003 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
4004 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
4005 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
4006 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
4007 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
4008 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
4009 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
4010 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
4011 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
4012 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
4013 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
4014 "\x45\x86\x50\x01\x70\x35\x99\x92"
4015 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
4016 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
4017 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
4018 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
4019 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
4020 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
4021 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
4022 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
4023 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
4024 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
4025 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
4026 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
4027 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
4028 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
4029 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
4030 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
4031 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
4032 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
4033 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
4034 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
4035 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
4036 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
4037 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
4038 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
4039 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
4040 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
4041 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
4042 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
4043 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
4044 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
4045 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
4046 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
4047 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
4048 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
4049 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
4050 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
4051 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
4052 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
4053 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
4054 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
4055 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
4056 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
4057 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
4058 .ilen = 496,
4059 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4060 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4061 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4062 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4063 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4064 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4065 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4066 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4067 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4068 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4069 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4070 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4071 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4072 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4073 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4074 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4075 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4076 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4077 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4078 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4079 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4080 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4081 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4082 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4083 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4084 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4085 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4086 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4087 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4088 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4089 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4090 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4091 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4092 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4093 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4094 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4095 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4096 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4097 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4098 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4099 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4100 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4101 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4102 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4103 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4104 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4105 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4106 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4107 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4108 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4109 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4110 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4111 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4112 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4113 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4114 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4115 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4116 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4117 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4118 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4119 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4120 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4121 .rlen = 496,
4122 .also_non_np = 1,
3b9b8fe0
AB
4123 .np = 3,
4124 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
4125 },
4126};
4127
4128static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
4129 { /* Generated from openssl */
4130 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
4131 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
4132 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
4133 .klen = 24,
4134 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
4135 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
4136 "\x53\x20\x63\x65\x65\x72\x73\x74"
4137 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
4138 "\x20\x79\x65\x53\x72\x63\x74\x65"
4139 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
4140 "\x79\x6e\x53\x20\x63\x65\x65\x72"
4141 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
4142 "\x6e\x61\x20\x79\x65\x53\x72\x63"
4143 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
4144 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
4145 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
4146 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
4147 "\x72\x63\x74\x65\x20\x73\x6f\x54"
4148 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
4149 "\x63\x65\x65\x72\x73\x74\x54\x20"
4150 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
4151 .ilen = 128,
4152 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
4153 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
4154 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
4155 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
4156 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
4157 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
4158 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
4159 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
4160 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
4161 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
4162 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
4163 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
4164 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
4165 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
4166 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
4167 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
4168 .rlen = 128,
e080b17a
JK
4169 }, { /* Generated with Crypto++ */
4170 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4171 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4172 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4173 .klen = 24,
4174 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4175 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4176 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4177 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4178 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4179 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4180 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4181 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4182 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4183 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4184 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4185 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4186 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4187 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4188 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4189 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4190 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4191 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4192 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4193 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4194 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4195 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4196 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4197 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4198 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4199 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4200 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4201 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4202 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4203 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4204 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4205 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4206 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4207 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4208 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4209 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4210 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4211 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4212 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4213 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4214 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4215 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4216 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4217 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4218 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4219 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4220 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4221 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4222 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4223 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4224 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4225 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4226 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4227 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4228 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4229 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4230 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4231 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4232 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4233 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4234 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4235 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4236 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4237 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4238 .ilen = 496,
4239 .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
4240 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
4241 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
4242 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
4243 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
4244 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
4245 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
4246 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
4247 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
4248 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
4249 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
4250 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
4251 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
4252 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
4253 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
4254 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
4255 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
4256 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
4257 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
4258 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
4259 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
4260 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
4261 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
4262 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
4263 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
4264 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
4265 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
4266 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
4267 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
4268 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
4269 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
4270 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
4271 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
4272 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
4273 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
4274 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
4275 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
4276 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
4277 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
4278 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
4279 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
4280 "\x73\x50\x08\x56\x20\x9B\x94\x23"
4281 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
4282 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
4283 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
4284 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
4285 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
4286 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
4287 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
4288 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
4289 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
4290 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
4291 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
4292 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
4293 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
4294 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
4295 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
4296 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
4297 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
4298 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
4299 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
4300 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
4301 .rlen = 496,
4302 .also_non_np = 1,
3b9b8fe0
AB
4303 .np = 3,
4304 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
4305 },
4306};
4307
4308static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
4309 { /* Generated from openssl */
4310 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
4311 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
4312 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
4313 .klen = 24,
4314 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
4315 .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
4316 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
4317 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
4318 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
4319 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
4320 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
4321 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
4322 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
4323 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
4324 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
4325 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
4326 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
4327 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
4328 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
4329 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
4330 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
4331 .ilen = 128,
4332 .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
4333 "\x53\x20\x63\x65\x65\x72\x73\x74"
4334 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
4335 "\x20\x79\x65\x53\x72\x63\x74\x65"
4336 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
4337 "\x79\x6e\x53\x20\x63\x65\x65\x72"
4338 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
4339 "\x6e\x61\x20\x79\x65\x53\x72\x63"
4340 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
4341 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
4342 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
4343 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
4344 "\x72\x63\x74\x65\x20\x73\x6f\x54"
4345 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
4346 "\x63\x65\x65\x72\x73\x74\x54\x20"
4347 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
4348 .rlen = 128,
e080b17a
JK
4349 }, { /* Generated with Crypto++ */
4350 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4351 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4352 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4353 .klen = 24,
4354 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4355 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4356 .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
4357 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
4358 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
4359 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
4360 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
4361 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
4362 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
4363 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
4364 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
4365 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
4366 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
4367 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
4368 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
4369 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
4370 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
4371 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
4372 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
4373 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
4374 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
4375 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
4376 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
4377 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
4378 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
4379 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
4380 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
4381 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
4382 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
4383 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
4384 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
4385 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
4386 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
4387 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
4388 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
4389 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
4390 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
4391 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
4392 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
4393 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
4394 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
4395 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
4396 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
4397 "\x73\x50\x08\x56\x20\x9B\x94\x23"
4398 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
4399 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
4400 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
4401 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
4402 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
4403 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
4404 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
4405 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
4406 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
4407 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
4408 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
4409 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
4410 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
4411 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
4412 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
4413 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
4414 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
4415 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
4416 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
4417 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
4418 .ilen = 496,
4419 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4420 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4421 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4422 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4423 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4424 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4425 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4426 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4427 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4428 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4429 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4430 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4431 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4432 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4433 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4434 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4435 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4436 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4437 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4438 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4439 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4440 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4441 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4442 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4443 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4444 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4445 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4446 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4447 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4448 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4449 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4450 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4451 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4452 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4453 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4454 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4455 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4456 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4457 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4458 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4459 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4460 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4461 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4462 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4463 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4464 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4465 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4466 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4467 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4468 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4469 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4470 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4471 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4472 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4473 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4474 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4475 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4476 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4477 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4478 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4479 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4480 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4481 .rlen = 496,
4482 .also_non_np = 1,
3b9b8fe0
AB
4483 .np = 3,
4484 .tap = { 496 - 20, 4, 16 },
e080b17a
JK
4485 },
4486};
4487
4488static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
4489 { /* Generated with Crypto++ */
4490 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4491 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4492 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4493 .klen = 24,
4494 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
4495 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
4496 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4497 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4498 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4499 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4500 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4501 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4502 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4503 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4504 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4505 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4506 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4507 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4508 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4509 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4510 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4511 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4512 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4513 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4514 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4515 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4516 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4517 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4518 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4519 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4520 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4521 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4522 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4523 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4524 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4525 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4526 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4527 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4528 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4529 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4530 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4531 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4532 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4533 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4534 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4535 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4536 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4537 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4538 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4539 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4540 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4541 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4542 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4543 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4544 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4545 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4546 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4547 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4548 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4549 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4550 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4551 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4552 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4553 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4554 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4555 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4556 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4557 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4558 .ilen = 496,
4559 .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
4560 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
4561 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
4562 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
4563 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
4564 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
4565 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
4566 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
4567 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
4568 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
4569 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
4570 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
4571 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
4572 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
4573 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
4574 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
4575 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
4576 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
4577 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
4578 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
4579 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
4580 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
4581 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
4582 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
4583 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
4584 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
4585 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
4586 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
4587 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
4588 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
4589 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
4590 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
4591 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
4592 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
4593 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
4594 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
4595 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
4596 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
4597 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
4598 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
4599 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
4600 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
4601 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
4602 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
4603 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
4604 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
4605 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
4606 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
4607 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
4608 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
4609 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
4610 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
4611 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
4612 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
4613 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
4614 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
4615 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
4616 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
4617 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
4618 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
4619 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
4620 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
4621 .rlen = 496,
4622 .also_non_np = 1,
3b9b8fe0
AB
4623 .np = 3,
4624 .tap = { 496 - 20, 4, 16 },
e080b17a
JK
4625 }, { /* Generated with Crypto++ */
4626 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4627 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4628 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4629 .klen = 24,
4630 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4631 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4632 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4633 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4634 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4635 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4636 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4637 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4638 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4639 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4640 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4641 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4642 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4643 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4644 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4645 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4646 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4647 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4648 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4649 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4650 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4651 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4652 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4653 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4654 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4655 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4656 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4657 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4658 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4659 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4660 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4661 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4662 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4663 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4664 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4665 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4666 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4667 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4668 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4669 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4670 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4671 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4672 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4673 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4674 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4675 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4676 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4677 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4678 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4679 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4680 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4681 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4682 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4683 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4684 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4685 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4686 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4687 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4688 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4689 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4690 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4691 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4692 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4693 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
4694 "\x2E\xB1\x18",
4695 .ilen = 499,
4696 .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
4697 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
4698 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
4699 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
4700 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
4701 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
4702 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
4703 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
4704 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
4705 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
4706 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
4707 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
4708 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
4709 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
4710 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
4711 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
4712 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
4713 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
4714 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
4715 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
4716 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
4717 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
4718 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
4719 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
4720 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
4721 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
4722 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
4723 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
4724 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
4725 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
4726 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
4727 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
4728 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
4729 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
4730 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
4731 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
4732 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
4733 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
4734 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
4735 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
4736 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
4737 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
4738 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
4739 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
4740 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
4741 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
4742 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
4743 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
4744 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
4745 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
4746 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
4747 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
4748 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
4749 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
4750 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
4751 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
4752 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
4753 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
4754 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
4755 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
4756 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
4757 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
4758 "\xF2\x79\xD9",
4759 .rlen = 499,
4760 .also_non_np = 1,
4761 .np = 2,
4762 .tap = { 499 - 16, 16 },
4763 },
4764};
4765
4766static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
4767 { /* Generated with Crypto++ */
4768 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4769 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4770 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4771 .klen = 24,
4772 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
4773 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
4774 .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
4775 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
4776 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
4777 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
4778 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
4779 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
4780 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
4781 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
4782 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
4783 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
4784 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
4785 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
4786 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
4787 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
4788 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
4789 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
4790 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
4791 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
4792 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
4793 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
4794 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
4795 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
4796 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
4797 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
4798 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
4799 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
4800 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
4801 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
4802 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
4803 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
4804 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
4805 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
4806 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
4807 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
4808 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
4809 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
4810 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
4811 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
4812 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
4813 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
4814 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
4815 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
4816 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
4817 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
4818 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
4819 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
4820 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
4821 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
4822 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
4823 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
4824 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
4825 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
4826 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
4827 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
4828 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
4829 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
4830 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
4831 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
4832 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
4833 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
4834 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
4835 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
4836 .ilen = 496,
4837 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4838 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4839 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4840 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4841 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4842 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4843 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4844 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4845 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4846 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4847 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4848 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4849 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4850 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4851 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4852 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4853 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4854 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4855 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4856 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4857 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4858 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4859 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4860 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4861 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4862 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4863 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4864 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4865 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4866 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4867 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4868 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4869 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4870 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4871 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4872 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4873 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4874 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4875 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4876 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4877 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4878 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4879 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4880 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4881 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4882 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4883 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4884 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4885 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4886 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4887 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4888 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4889 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4890 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4891 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4892 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4893 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4894 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4895 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4896 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4897 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4898 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4899 .rlen = 496,
4900 .also_non_np = 1,
3b9b8fe0
AB
4901 .np = 3,
4902 .tap = { 496 - 20, 4, 16 },
e080b17a
JK
4903 }, { /* Generated with Crypto++ */
4904 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4905 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4906 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4907 .klen = 24,
4908 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4909 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4910 .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
4911 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
4912 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
4913 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
4914 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
4915 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
4916 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
4917 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
4918 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
4919 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
4920 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
4921 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
4922 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
4923 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
4924 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
4925 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
4926 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
4927 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
4928 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
4929 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
4930 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
4931 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
4932 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
4933 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
4934 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
4935 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
4936 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
4937 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
4938 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
4939 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
4940 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
4941 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
4942 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
4943 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
4944 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
4945 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
4946 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
4947 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
4948 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
4949 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
4950 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
4951 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
4952 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
4953 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
4954 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
4955 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
4956 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
4957 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
4958 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
4959 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
4960 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
4961 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
4962 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
4963 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
4964 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
4965 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
4966 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
4967 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
4968 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
4969 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
4970 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
4971 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
4972 "\xF2\x79\xD9",
4973 .ilen = 499,
4974 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4975 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4976 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4977 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4978 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4979 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4980 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4981 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4982 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4983 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4984 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4985 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4986 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4987 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4988 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4989 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4990 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4991 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4992 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4993 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4994 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4995 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4996 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4997 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4998 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4999 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5000 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5001 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5002 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5003 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5004 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5005 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5006 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5007 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5008 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5009 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5010 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5011 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5012 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5013 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5014 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5015 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5016 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5017 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5018 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5019 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5020 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5021 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5022 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5023 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5024 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5025 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5026 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5027 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5028 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5029 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5030 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5031 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5032 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5033 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5034 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5035 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
5036 "\x2E\xB1\x18",
5037 .rlen = 499,
5038 .also_non_np = 1,
5039 .np = 2,
5040 .tap = { 499 - 16, 16 },
da7f033d
HX
5041 },
5042};
5043
5044/*
5045 * Blowfish test vectors.
5046 */
85b63e34
JK
5047#define BF_ENC_TEST_VECTORS 7
5048#define BF_DEC_TEST_VECTORS 7
5049#define BF_CBC_ENC_TEST_VECTORS 2
5050#define BF_CBC_DEC_TEST_VECTORS 2
5051#define BF_CTR_ENC_TEST_VECTORS 2
5052#define BF_CTR_DEC_TEST_VECTORS 2
da7f033d
HX
5053
5054static struct cipher_testvec bf_enc_tv_template[] = {
5055 { /* DES test vectors from OpenSSL */
5056 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
5057 .klen = 8,
5058 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
5059 .ilen = 8,
5060 .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
5061 .rlen = 8,
5062 }, {
5063 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
5064 .klen = 8,
5065 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5066 .ilen = 8,
5067 .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
5068 .rlen = 8,
5069 }, {
5070 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5071 .klen = 8,
5072 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5073 .ilen = 8,
5074 .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
5075 .rlen = 8,
5076 }, { /* Vary the keylength... */
5077 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5078 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
5079 .klen = 16,
5080 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5081 .ilen = 8,
5082 .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
5083 .rlen = 8,
5084 }, {
5085 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5086 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5087 "\x00\x11\x22\x33\x44",
5088 .klen = 21,
5089 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5090 .ilen = 8,
5091 .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
5092 .rlen = 8,
5093 }, { /* Generated with bf488 */
5094 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5095 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5096 "\x00\x11\x22\x33\x44\x55\x66\x77"
5097 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
5098 "\x58\x40\x23\x64\x1a\xba\x61\x76"
5099 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
5100 "\xff\xff\xff\xff\xff\xff\xff\xff",
5101 .klen = 56,
5102 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5103 .ilen = 8,
5104 .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
5105 .rlen = 8,
85b63e34
JK
5106 }, { /* Generated with Crypto++ */
5107 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5108 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5109 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5110 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5111 .klen = 32,
5112 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5113 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5114 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5115 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
5116 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5117 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5118 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5119 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5120 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5121 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5122 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5123 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5124 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5125 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5126 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5127 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5128 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5129 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5130 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5131 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5132 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5133 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5134 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5135 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5136 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5137 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5138 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5139 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5140 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5141 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5142 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5143 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5144 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5145 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5146 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5147 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5148 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5149 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5150 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5151 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5152 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5153 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5154 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5155 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5156 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5157 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5158 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5159 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5160 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5161 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5162 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5163 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5164 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5165 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5166 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5167 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5168 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5169 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5170 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5171 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5172 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5173 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5174 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5175 .ilen = 504,
85b63e34
JK
5176 .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
5177 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
5178 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
5179 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
963ae397
JK
5180 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
5181 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
5182 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
5183 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
5184 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
5185 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
5186 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
5187 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
5188 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
5189 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
5190 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
5191 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
5192 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
5193 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
5194 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
5195 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
5196 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
5197 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
5198 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
5199 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
5200 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
5201 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
5202 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
5203 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
5204 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
5205 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
5206 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
5207 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
5208 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
5209 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
5210 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
5211 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
5212 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
5213 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
5214 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
5215 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
5216 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
5217 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
5218 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
5219 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
5220 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
5221 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
5222 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
5223 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
5224 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
5225 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
5226 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
5227 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
5228 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
5229 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
5230 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
5231 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
5232 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
5233 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
5234 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
5235 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
5236 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
5237 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
5238 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
5239 .rlen = 504,
f44d83d1 5240 .also_non_np = 1,
3b9b8fe0
AB
5241 .np = 3,
5242 .tap = { 504 - 10, 2, 8 },
da7f033d
HX
5243 },
5244};
5245
5246static struct cipher_testvec bf_dec_tv_template[] = {
5247 { /* DES test vectors from OpenSSL */
5248 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
5249 .klen = 8,
5250 .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
5251 .ilen = 8,
5252 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
5253 .rlen = 8,
5254 }, {
5255 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
5256 .klen = 8,
5257 .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
5258 .ilen = 8,
5259 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5260 .rlen = 8,
5261 }, {
5262 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5263 .klen = 8,
5264 .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
5265 .ilen = 8,
5266 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5267 .rlen = 8,
5268 }, { /* Vary the keylength... */
5269 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5270 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
5271 .klen = 16,
5272 .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
5273 .ilen = 8,
5274 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5275 .rlen = 8,
5276 }, {
5277 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5278 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5279 "\x00\x11\x22\x33\x44",
5280 .klen = 21,
5281 .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
5282 .ilen = 8,
5283 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5284 .rlen = 8,
5285 }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
5286 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5287 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5288 "\x00\x11\x22\x33\x44\x55\x66\x77"
5289 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
5290 "\x58\x40\x23\x64\x1a\xba\x61\x76"
5291 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
5292 "\xff\xff\xff\xff\xff\xff\xff\xff",
5293 .klen = 56,
5294 .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
5295 .ilen = 8,
5296 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5297 .rlen = 8,
85b63e34
JK
5298 }, { /* Generated with Crypto++ */
5299 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5300 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5301 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5302 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5303 .klen = 32,
5304 .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
5305 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
5306 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
5307 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
963ae397
JK
5308 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
5309 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
5310 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
5311 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
5312 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
5313 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
5314 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
5315 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
5316 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
5317 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
5318 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
5319 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
5320 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
5321 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
5322 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
5323 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
5324 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
5325 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
5326 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
5327 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
5328 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
5329 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
5330 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
5331 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
5332 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
5333 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
5334 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
5335 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
5336 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
5337 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
5338 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
5339 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
5340 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
5341 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
5342 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
5343 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
5344 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
5345 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
5346 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
5347 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
5348 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
5349 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
5350 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
5351 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
5352 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
5353 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
5354 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
5355 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
5356 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
5357 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
5358 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
5359 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
5360 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
5361 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
5362 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
5363 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
5364 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
5365 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
5366 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
5367 .ilen = 504,
85b63e34
JK
5368 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5369 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5370 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5371 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
5372 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5373 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5374 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5375 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5376 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5377 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5378 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5379 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5380 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5381 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5382 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5383 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5384 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5385 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5386 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5387 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5388 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5389 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5390 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5391 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5392 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5393 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5394 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5395 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5396 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5397 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5398 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5399 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5400 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5401 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5402 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5403 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5404 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5405 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5406 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5407 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5408 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5409 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5410 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5411 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5412 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5413 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5414 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5415 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5416 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5417 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5418 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5419 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5420 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5421 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5422 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5423 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5424 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5425 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5426 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5427 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5428 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5429 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5430 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5431 .rlen = 504,
f44d83d1 5432 .also_non_np = 1,
3b9b8fe0
AB
5433 .np = 3,
5434 .tap = { 504 - 10, 2, 8 },
da7f033d
HX
5435 },
5436};
5437
5438static struct cipher_testvec bf_cbc_enc_tv_template[] = {
5439 { /* From OpenSSL */
5440 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5441 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5442 .klen = 16,
5443 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5444 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
5445 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5446 "\x68\x65\x20\x74\x69\x6d\x65\x20"
5447 "\x66\x6f\x72\x20\x00\x00\x00\x00",
5448 .ilen = 32,
5449 .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
5450 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
5451 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
5452 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
5453 .rlen = 32,
85b63e34
JK
5454 }, { /* Generated with Crypto++ */
5455 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5456 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5457 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5458 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5459 .klen = 32,
5460 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5461 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5462 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5463 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5464 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
5465 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5466 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5467 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5468 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5469 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5470 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5471 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5472 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5473 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5474 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5475 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5476 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5477 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5478 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5479 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5480 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5481 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5482 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5483 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5484 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5485 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5486 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5487 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5488 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5489 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5490 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5491 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5492 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5493 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5494 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5495 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5496 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5497 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5498 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5499 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5500 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5501 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5502 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5503 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5504 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5505 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5506 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5507 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5508 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5509 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5510 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5511 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5512 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5513 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5514 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5515 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5516 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5517 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5518 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5519 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5520 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5521 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5522 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5523 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5524 .ilen = 504,
85b63e34
JK
5525 .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
5526 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
5527 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
5528 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
963ae397
JK
5529 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
5530 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
5531 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
5532 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
5533 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
5534 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
5535 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
5536 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
5537 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
5538 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
5539 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
5540 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
5541 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
5542 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
5543 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
5544 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
5545 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
5546 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
5547 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
5548 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
5549 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
5550 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
5551 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
5552 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
5553 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
5554 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
5555 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
5556 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
5557 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
5558 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
5559 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
5560 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
5561 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
5562 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
5563 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
5564 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
5565 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
5566 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
5567 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
5568 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
5569 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
5570 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
5571 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
5572 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
5573 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
5574 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
5575 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
5576 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
5577 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
5578 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
5579 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
5580 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
5581 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
5582 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
5583 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
5584 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
5585 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
5586 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
5587 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
5588 .rlen = 504,
f44d83d1 5589 .also_non_np = 1,
3b9b8fe0
AB
5590 .np = 3,
5591 .tap = { 504 - 10, 2, 8 },
da7f033d
HX
5592 },
5593};
5594
5595static struct cipher_testvec bf_cbc_dec_tv_template[] = {
5596 { /* From OpenSSL */
5597 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5598 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5599 .klen = 16,
5600 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5601 .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
5602 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
5603 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
5604 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
5605 .ilen = 32,
5606 .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
5607 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5608 "\x68\x65\x20\x74\x69\x6d\x65\x20"
5609 "\x66\x6f\x72\x20\x00\x00\x00\x00",
5610 .rlen = 32,
85b63e34
JK
5611 }, { /* Generated with Crypto++ */
5612 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5613 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5614 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5615 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5616 .klen = 32,
5617 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5618 .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
5619 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
5620 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
5621 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
963ae397
JK
5622 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
5623 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
5624 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
5625 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
5626 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
5627 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
5628 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
5629 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
5630 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
5631 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
5632 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
5633 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
5634 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
5635 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
5636 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
5637 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
5638 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
5639 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
5640 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
5641 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
5642 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
5643 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
5644 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
5645 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
5646 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
5647 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
5648 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
5649 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
5650 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
5651 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
5652 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
5653 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
5654 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
5655 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
5656 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
5657 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
5658 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
5659 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
5660 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
5661 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
5662 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
5663 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
5664 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
5665 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
5666 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
5667 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
5668 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
5669 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
5670 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
5671 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
5672 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
5673 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
5674 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
5675 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
5676 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
5677 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
5678 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
5679 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
5680 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
5681 .ilen = 504,
85b63e34
JK
5682 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5683 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5684 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5685 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
5686 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5687 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5688 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5689 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5690 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5691 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5692 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5693 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5694 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5695 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5696 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5697 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5698 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5699 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5700 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5701 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5702 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5703 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5704 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5705 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5706 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5707 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5708 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5709 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5710 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5711 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5712 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5713 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5714 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5715 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5716 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5717 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5718 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5719 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5720 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5721 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5722 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5723 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5724 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5725 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5726 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5727 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5728 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5729 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5730 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5731 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5732 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5733 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5734 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5735 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5736 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5737 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5738 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5739 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5740 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5741 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5742 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5743 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5744 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5745 .rlen = 504,
f44d83d1 5746 .also_non_np = 1,
3b9b8fe0
AB
5747 .np = 3,
5748 .tap = { 504 - 10, 2, 8 },
85b63e34
JK
5749 },
5750};
5751
5752static struct cipher_testvec bf_ctr_enc_tv_template[] = {
5753 { /* Generated with Crypto++ */
5754 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5755 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5756 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5757 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5758 .klen = 32,
5759 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5760 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5761 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5762 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5763 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
5764 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5765 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5766 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5767 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5768 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5769 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5770 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5771 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5772 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5773 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5774 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5775 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5776 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5777 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5778 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5779 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5780 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5781 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5782 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5783 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5784 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5785 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5786 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5787 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5788 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5789 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5790 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5791 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5792 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5793 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5794 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5795 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5796 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5797 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5798 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5799 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5800 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5801 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5802 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5803 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5804 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5805 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5806 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5807 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5808 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5809 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5810 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5811 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5812 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5813 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5814 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5815 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5816 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5817 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5818 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5819 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5820 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5821 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5822 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5823 .ilen = 504,
85b63e34
JK
5824 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
5825 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
5826 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
5827 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
963ae397
JK
5828 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
5829 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
5830 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
5831 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
5832 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
5833 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
5834 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
5835 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
5836 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
5837 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
5838 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
5839 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
5840 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
5841 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
5842 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
5843 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
5844 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
5845 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
5846 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
5847 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
5848 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
5849 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
5850 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
5851 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
5852 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
5853 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
5854 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
5855 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
5856 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
5857 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
5858 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
5859 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
5860 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
5861 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
5862 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
5863 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
5864 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
5865 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
5866 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
5867 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
5868 "\x82\x63\x11\xB3\x54\x49\x00\x08"
5869 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
5870 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
5871 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
5872 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
5873 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
5874 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
5875 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
5876 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
5877 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
5878 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
5879 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
5880 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
5881 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
5882 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
5883 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
5884 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
5885 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
5886 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
5887 .rlen = 504,
85b63e34
JK
5888 }, { /* Generated with Crypto++ */
5889 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5890 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5891 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5892 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5893 .klen = 32,
5894 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5895 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5896 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5897 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5898 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5899 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
963ae397
JK
5900 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5901 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5902 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5903 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5904 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5905 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5906 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5907 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5908 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5909 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5910 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5911 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5912 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5913 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5914 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5915 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5916 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5917 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5918 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5919 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5920 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5921 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5922 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5923 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5924 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5925 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5926 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5927 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5928 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5929 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5930 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5931 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5932 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5933 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5934 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5935 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5936 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5937 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5938 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5939 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5940 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5941 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5942 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5943 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5944 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5945 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5946 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5947 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5948 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5949 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5950 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5951 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5952 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5953 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5954 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5955 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5956 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5957 "\x2B\xC2\x59\xF0\x64\xFB\x92",
5958 .ilen = 503,
85b63e34
JK
5959 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
5960 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
5961 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
5962 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
5963 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
963ae397
JK
5964 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
5965 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
5966 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
5967 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
5968 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
5969 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
5970 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
5971 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
5972 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
5973 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
5974 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
5975 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
5976 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
5977 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
5978 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
5979 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
5980 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
5981 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
5982 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
5983 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
5984 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
5985 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
5986 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
5987 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
5988 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
5989 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
5990 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
5991 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
5992 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
5993 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
5994 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
5995 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
5996 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
5997 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
5998 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
5999 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
6000 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
6001 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
6002 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
6003 "\x82\x63\x11\xB3\x54\x49\x00\x08"
6004 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
6005 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
6006 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
6007 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
6008 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
6009 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
6010 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
6011 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
6012 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
6013 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
6014 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
6015 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
6016 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
6017 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
6018 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
6019 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
6020 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
6021 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
6022 .rlen = 503,
f44d83d1
JK
6023 .also_non_np = 1,
6024 .np = 2,
963ae397 6025 .tap = { 503 - 8, 8 },
549595a0
JK
6026 }, { /* Generated with Crypto++ */
6027 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6028 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6029 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6030 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6031 .klen = 32,
6032 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6033 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6034 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6035 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6036 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6037 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6038 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6039 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6040 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6041 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6042 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6043 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6044 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6045 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6046 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6047 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6048 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6049 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6050 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6051 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6052 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6053 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6054 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6055 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6056 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6057 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6058 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6059 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6060 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6061 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6062 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6063 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6064 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6065 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6066 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6067 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6068 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6069 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6070 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6071 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6072 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6073 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6074 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6075 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6076 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6077 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6078 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6079 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6080 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6081 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6082 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6083 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6084 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6085 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6086 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6087 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6088 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6089 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6090 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6091 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6092 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6093 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6094 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6095 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6096 .ilen = 504,
6097 .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
6098 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
6099 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
6100 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
6101 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
6102 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
6103 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
6104 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
6105 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
6106 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
6107 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
6108 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
6109 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
6110 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
6111 "\x0B\x82\x59\x14\x26\x67\x08\x09"
6112 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
6113 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
6114 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
6115 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
6116 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
6117 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
6118 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
6119 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
6120 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
6121 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
6122 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
6123 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
6124 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
6125 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
6126 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
6127 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
6128 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
6129 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
6130 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
6131 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
6132 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
6133 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
6134 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
6135 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
6136 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
6137 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
6138 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
6139 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
6140 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
6141 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
6142 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
6143 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
6144 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
6145 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
6146 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
6147 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
6148 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
6149 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
6150 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
6151 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
6152 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
6153 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
6154 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
6155 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
6156 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
6157 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
6158 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
6159 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
6160 .rlen = 504,
85b63e34
JK
6161 },
6162};
6163
6164static struct cipher_testvec bf_ctr_dec_tv_template[] = {
6165 { /* Generated with Crypto++ */
6166 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6167 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6168 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6169 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6170 .klen = 32,
6171 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6172 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
6173 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
6174 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
6175 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
963ae397
JK
6176 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
6177 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
6178 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
6179 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
6180 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
6181 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
6182 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
6183 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
6184 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
6185 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
6186 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
6187 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
6188 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
6189 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
6190 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
6191 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
6192 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
6193 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
6194 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
6195 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
6196 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
6197 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
6198 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
6199 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
6200 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
6201 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
6202 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
6203 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
6204 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
6205 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
6206 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
6207 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
6208 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
6209 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
6210 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
6211 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
6212 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
6213 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
6214 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
6215 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
6216 "\x82\x63\x11\xB3\x54\x49\x00\x08"
6217 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
6218 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
6219 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
6220 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
6221 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
6222 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
6223 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
6224 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
6225 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
6226 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
6227 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
6228 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
6229 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
6230 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
6231 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
6232 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
6233 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
6234 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
6235 .ilen = 504,
85b63e34
JK
6236 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6237 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6238 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6239 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
6240 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6241 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6242 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6243 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6244 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6245 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6246 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6247 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6248 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6249 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6250 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6251 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6252 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6253 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6254 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6255 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6256 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6257 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6258 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6259 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6260 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6261 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6262 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6263 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6264 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6265 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6266 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6267 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6268 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6269 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6270 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6271 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6272 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6273 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6274 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6275 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6276 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6277 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6278 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6279 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6280 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6281 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6282 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6283 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6284 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6285 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6286 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6287 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6288 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6289 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6290 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6291 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6292 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6293 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6294 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6295 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6296 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6297 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6298 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6299 .rlen = 504,
85b63e34
JK
6300 }, { /* Generated with Crypto++ */
6301 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6302 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6303 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6304 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6305 .klen = 32,
6306 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6307 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
6308 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
6309 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
6310 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
6311 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
963ae397
JK
6312 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
6313 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
6314 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
6315 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
6316 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
6317 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
6318 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
6319 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
6320 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
6321 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
6322 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
6323 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
6324 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
6325 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
6326 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
6327 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
6328 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
6329 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
6330 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
6331 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
6332 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
6333 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
6334 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
6335 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
6336 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
6337 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
6338 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
6339 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
6340 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
6341 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
6342 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
6343 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
6344 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
6345 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
6346 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
6347 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
6348 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
6349 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
6350 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
6351 "\x82\x63\x11\xB3\x54\x49\x00\x08"
6352 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
6353 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
6354 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
6355 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
6356 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
6357 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
6358 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
6359 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
6360 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
6361 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
6362 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
6363 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
6364 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
6365 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
6366 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
6367 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
6368 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
6369 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
6370 .ilen = 503,
85b63e34
JK
6371 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6372 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6373 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6374 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6375 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
963ae397
JK
6376 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6377 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6378 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6379 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6380 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6381 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6382 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6383 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6384 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6385 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6386 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6387 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6388 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6389 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6390 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6391 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6392 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6393 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6394 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6395 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6396 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6397 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6398 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6399 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6400 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6401 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6402 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6403 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6404 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6405 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6406 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6407 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6408 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6409 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6410 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6411 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6412 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6413 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6414 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6415 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6416 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6417 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6418 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6419 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6420 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6421 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6422 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6423 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6424 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6425 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6426 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6427 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6428 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6429 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6430 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6431 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6432 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6433 "\x2B\xC2\x59\xF0\x64\xFB\x92",
6434 .rlen = 503,
f44d83d1
JK
6435 .also_non_np = 1,
6436 .np = 2,
963ae397 6437 .tap = { 503 - 8, 8 },
549595a0
JK
6438 }, { /* Generated with Crypto++ */
6439 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6440 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6441 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6442 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6443 .klen = 32,
6444 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6445 .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
6446 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
6447 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
6448 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
6449 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
6450 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
6451 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
6452 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
6453 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
6454 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
6455 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
6456 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
6457 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
6458 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
6459 "\x0B\x82\x59\x14\x26\x67\x08\x09"
6460 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
6461 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
6462 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
6463 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
6464 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
6465 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
6466 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
6467 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
6468 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
6469 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
6470 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
6471 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
6472 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
6473 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
6474 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
6475 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
6476 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
6477 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
6478 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
6479 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
6480 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
6481 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
6482 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
6483 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
6484 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
6485 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
6486 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
6487 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
6488 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
6489 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
6490 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
6491 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
6492 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
6493 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
6494 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
6495 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
6496 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
6497 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
6498 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
6499 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
6500 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
6501 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
6502 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
6503 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
6504 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
6505 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
6506 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
6507 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
6508 .ilen = 504,
6509 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6510 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6511 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6512 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6513 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6514 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6515 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6516 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6517 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6518 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6519 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6520 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6521 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6522 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6523 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6524 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6525 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6526 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6527 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6528 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6529 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6530 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6531 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6532 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6533 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6534 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6535 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6536 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6537 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6538 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6539 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6540 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6541 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6542 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6543 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6544 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6545 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6546 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6547 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6548 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6549 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6550 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6551 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6552 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6553 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6554 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6555 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6556 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6557 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6558 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6559 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6560 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6561 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6562 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6563 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6564 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6565 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6566 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6567 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6568 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6569 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6570 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6571 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6572 .rlen = 504,
da7f033d
HX
6573 },
6574};
6575
6576/*
6577 * Twofish test vectors.
6578 */
573da620
JK
6579#define TF_ENC_TEST_VECTORS 4
6580#define TF_DEC_TEST_VECTORS 4
6581#define TF_CBC_ENC_TEST_VECTORS 5
6582#define TF_CBC_DEC_TEST_VECTORS 5
6583#define TF_CTR_ENC_TEST_VECTORS 2
6584#define TF_CTR_DEC_TEST_VECTORS 2
0b2a1551
JK
6585#define TF_LRW_ENC_TEST_VECTORS 8
6586#define TF_LRW_DEC_TEST_VECTORS 8
aed265b9
JK
6587#define TF_XTS_ENC_TEST_VECTORS 5
6588#define TF_XTS_DEC_TEST_VECTORS 5
da7f033d
HX
6589
6590static struct cipher_testvec tf_enc_tv_template[] = {
6591 {
6592 .key = zeroed_string,
6593 .klen = 16,
6594 .input = zeroed_string,
6595 .ilen = 16,
6596 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6597 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6598 .rlen = 16,
6599 }, {
6600 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6601 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6602 "\x00\x11\x22\x33\x44\x55\x66\x77",
6603 .klen = 24,
6604 .input = zeroed_string,
6605 .ilen = 16,
6606 .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
6607 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
6608 .rlen = 16,
6609 }, {
6610 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6611 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6612 "\x00\x11\x22\x33\x44\x55\x66\x77"
6613 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
6614 .klen = 32,
6615 .input = zeroed_string,
6616 .ilen = 16,
6617 .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
6618 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
6619 .rlen = 16,
573da620
JK
6620 }, { /* Generated with Crypto++ */
6621 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
6622 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
6623 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
6624 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
6625 .klen = 32,
6626 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6627 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6628 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6629 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6630 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6631 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6632 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
6633 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6634 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6635 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6636 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6637 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6638 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6639 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6640 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6641 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6642 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6643 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6644 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6645 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6646 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6647 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6648 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6649 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6650 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6651 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6652 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6653 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6654 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6655 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6656 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6657 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6658 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6659 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6660 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6661 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6662 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6663 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6664 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6665 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6666 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6667 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6668 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6669 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6670 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6671 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6672 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6673 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6674 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6675 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6676 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6677 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6678 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6679 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6680 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6681 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6682 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6683 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6684 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6685 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6686 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6687 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6688 .ilen = 496,
573da620
JK
6689 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
6690 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
6691 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
6692 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
6693 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
6694 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
6695 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
4da7de4d
JG
6696 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
6697 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
6698 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
6699 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
6700 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
6701 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
6702 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
6703 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
6704 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
6705 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
6706 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
6707 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
6708 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
6709 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
6710 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
6711 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
6712 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
6713 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
6714 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
6715 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
6716 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
6717 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
6718 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
6719 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
6720 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
6721 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
6722 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
6723 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
6724 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
6725 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
6726 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
6727 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
6728 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
6729 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
6730 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
6731 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
6732 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
6733 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
6734 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
6735 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
6736 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
6737 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
6738 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
6739 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
6740 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
6741 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
6742 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
6743 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
6744 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
6745 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
6746 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
6747 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
6748 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
6749 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
6750 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
6751 .rlen = 496,
f44d83d1 6752 .also_non_np = 1,
3b9b8fe0
AB
6753 .np = 3,
6754 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
6755 },
6756};
6757
6758static struct cipher_testvec tf_dec_tv_template[] = {
6759 {
6760 .key = zeroed_string,
6761 .klen = 16,
6762 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6763 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6764 .ilen = 16,
6765 .result = zeroed_string,
6766 .rlen = 16,
6767 }, {
6768 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6769 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6770 "\x00\x11\x22\x33\x44\x55\x66\x77",
6771 .klen = 24,
6772 .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
6773 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
6774 .ilen = 16,
6775 .result = zeroed_string,
6776 .rlen = 16,
6777 }, {
6778 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6779 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6780 "\x00\x11\x22\x33\x44\x55\x66\x77"
6781 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
6782 .klen = 32,
6783 .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
6784 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
6785 .ilen = 16,
6786 .result = zeroed_string,
6787 .rlen = 16,
573da620
JK
6788 }, { /* Generated with Crypto++ */
6789 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
6790 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
6791 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
6792 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
6793 .klen = 32,
6794 .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
6795 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
6796 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
6797 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
6798 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
6799 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
6800 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
4da7de4d
JG
6801 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
6802 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
6803 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
6804 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
6805 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
6806 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
6807 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
6808 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
6809 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
6810 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
6811 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
6812 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
6813 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
6814 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
6815 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
6816 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
6817 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
6818 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
6819 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
6820 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
6821 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
6822 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
6823 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
6824 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
6825 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
6826 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
6827 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
6828 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
6829 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
6830 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
6831 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
6832 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
6833 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
6834 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
6835 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
6836 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
6837 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
6838 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
6839 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
6840 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
6841 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
6842 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
6843 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
6844 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
6845 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
6846 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
6847 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
6848 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
6849 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
6850 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
6851 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
6852 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
6853 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
6854 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
6855 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
6856 .ilen = 496,
573da620
JK
6857 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6858 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6859 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6860 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6861 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6862 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6863 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
6864 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6865 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6866 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6867 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6868 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6869 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6870 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6871 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6872 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6873 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6874 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6875 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6876 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6877 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6878 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6879 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6880 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6881 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6882 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6883 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6884 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6885 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6886 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6887 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6888 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6889 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6890 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6891 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6892 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6893 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6894 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6895 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6896 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6897 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6898 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6899 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6900 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6901 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6902 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6903 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6904 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6905 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6906 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6907 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6908 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6909 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6910 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6911 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6912 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6913 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6914 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6915 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6916 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6917 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6918 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6919 .rlen = 496,
f44d83d1 6920 .also_non_np = 1,
3b9b8fe0
AB
6921 .np = 3,
6922 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
6923 },
6924};
6925
6926static struct cipher_testvec tf_cbc_enc_tv_template[] = {
6927 { /* Generated with Nettle */
6928 .key = zeroed_string,
6929 .klen = 16,
6930 .iv = zeroed_string,
6931 .input = zeroed_string,
6932 .ilen = 16,
6933 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6934 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6935 .rlen = 16,
6936 }, {
6937 .key = zeroed_string,
6938 .klen = 16,
6939 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6940 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6941 .input = zeroed_string,
6942 .ilen = 16,
6943 .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6944 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
6945 .rlen = 16,
6946 }, {
6947 .key = zeroed_string,
6948 .klen = 16,
6949 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6950 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
6951 .input = zeroed_string,
6952 .ilen = 16,
6953 .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6954 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6955 .rlen = 16,
6956 }, {
6957 .key = zeroed_string,
6958 .klen = 16,
6959 .iv = zeroed_string,
6960 .input = zeroed_string,
6961 .ilen = 48,
6962 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6963 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
6964 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6965 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
6966 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6967 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6968 .rlen = 48,
573da620
JK
6969 }, { /* Generated with Crypto++ */
6970 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6971 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6972 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6973 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6974 .klen = 32,
6975 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
6976 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
6977 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6978 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6979 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6980 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6981 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6982 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6983 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
6984 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6985 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6986 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6987 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6988 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6989 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6990 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6991 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6992 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6993 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6994 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6995 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6996 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6997 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6998 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6999 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7000 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7001 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7002 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7003 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7004 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7005 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7006 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7007 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7008 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7009 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7010 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7011 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7012 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7013 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7014 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7015 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7016 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7017 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7018 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7019 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7020 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7021 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7022 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7023 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7024 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7025 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7026 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7027 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7028 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7029 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7030 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7031 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7032 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7033 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7034 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7035 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7036 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7037 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7038 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7039 .ilen = 496,
573da620
JK
7040 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
7041 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
7042 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
7043 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
7044 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
7045 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
7046 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
4da7de4d
JG
7047 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
7048 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
7049 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
7050 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
7051 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
7052 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
7053 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
7054 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
7055 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7056 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7057 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7058 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7059 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7060 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7061 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7062 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7063 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7064 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7065 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7066 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7067 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7068 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7069 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7070 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7071 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7072 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7073 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7074 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7075 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7076 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7077 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7078 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7079 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7080 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7081 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7082 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7083 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7084 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7085 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7086 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7087 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7088 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7089 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7090 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7091 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7092 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7093 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7094 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7095 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7096 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7097 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7098 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7099 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7100 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7101 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
7102 .rlen = 496,
f44d83d1 7103 .also_non_np = 1,
3b9b8fe0
AB
7104 .np = 3,
7105 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
7106 },
7107};
7108
7109static struct cipher_testvec tf_cbc_dec_tv_template[] = {
7110 { /* Reverse of the first four above */
7111 .key = zeroed_string,
7112 .klen = 16,
7113 .iv = zeroed_string,
7114 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7115 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7116 .ilen = 16,
7117 .result = zeroed_string,
7118 .rlen = 16,
7119 }, {
7120 .key = zeroed_string,
7121 .klen = 16,
7122 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7123 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7124 .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7125 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7126 .ilen = 16,
7127 .result = zeroed_string,
7128 .rlen = 16,
7129 }, {
7130 .key = zeroed_string,
7131 .klen = 16,
7132 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7133 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7134 .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7135 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7136 .ilen = 16,
7137 .result = zeroed_string,
7138 .rlen = 16,
7139 }, {
7140 .key = zeroed_string,
7141 .klen = 16,
7142 .iv = zeroed_string,
7143 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7144 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
7145 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7146 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
7147 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7148 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7149 .ilen = 48,
7150 .result = zeroed_string,
7151 .rlen = 48,
573da620
JK
7152 }, { /* Generated with Crypto++ */
7153 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7154 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7155 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7156 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7157 .klen = 32,
7158 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7159 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7160 .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
7161 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
7162 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
7163 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
7164 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
7165 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
7166 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
4da7de4d
JG
7167 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
7168 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
7169 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
7170 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
7171 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
7172 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
7173 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
7174 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
7175 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7176 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7177 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7178 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7179 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7180 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7181 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7182 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7183 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7184 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7185 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7186 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7187 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7188 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7189 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7190 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7191 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7192 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7193 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7194 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7195 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7196 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7197 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7198 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7199 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7200 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7201 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7202 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7203 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7204 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7205 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7206 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7207 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7208 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7209 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7210 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7211 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7212 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7213 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7214 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7215 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7216 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7217 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7218 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7219 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7220 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7221 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
7222 .ilen = 496,
573da620
JK
7223 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7224 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7225 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7226 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7227 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7228 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7229 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
7230 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7231 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7232 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7233 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7234 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7235 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7236 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7237 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7238 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7239 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7240 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7241 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7242 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7243 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7244 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7245 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7246 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7247 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7248 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7249 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7250 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7251 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7252 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7253 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7254 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7255 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7256 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7257 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7258 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7259 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7260 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7261 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7262 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7263 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7264 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7265 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7266 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7267 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7268 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7269 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7270 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7271 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7272 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7273 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7274 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7275 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7276 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7277 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7278 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7279 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7280 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7281 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7282 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7283 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7284 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7285 .rlen = 496,
f44d83d1 7286 .also_non_np = 1,
3b9b8fe0
AB
7287 .np = 3,
7288 .tap = { 496 - 20, 4, 16 },
573da620
JK
7289 },
7290};
7291
7292static struct cipher_testvec tf_ctr_enc_tv_template[] = {
7293 { /* Generated with Crypto++ */
7294 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7295 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7296 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7297 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7298 .klen = 32,
7299 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7300 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7301 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7302 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7303 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7304 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7305 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7306 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7307 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
7308 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7309 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7310 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7311 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7312 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7313 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7314 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7315 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7316 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7317 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7318 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7319 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7320 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7321 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7322 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7323 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7324 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7325 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7326 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7327 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7328 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7329 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7330 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7331 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7332 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7333 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7334 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7335 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7336 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7337 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7338 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7339 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7340 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7341 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7342 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7343 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7344 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7345 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7346 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7347 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7348 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7349 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7350 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7351 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7352 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7353 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7354 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7355 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7356 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7357 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7358 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7359 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7360 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7361 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7362 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7363 .ilen = 496,
573da620
JK
7364 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7365 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7366 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7367 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7368 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7369 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7370 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
4da7de4d
JG
7371 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7372 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7373 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7374 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7375 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7376 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7377 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7378 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7379 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7380 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7381 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7382 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7383 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7384 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7385 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7386 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7387 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7388 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7389 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7390 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7391 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7392 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7393 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7394 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7395 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7396 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7397 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7398 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7399 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7400 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7401 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7402 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7403 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7404 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7405 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7406 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7407 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7408 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7409 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7410 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7411 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7412 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7413 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7414 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7415 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7416 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7417 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7418 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7419 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7420 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7421 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7422 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7423 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7424 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7425 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
7426 .rlen = 496,
549595a0
JK
7427 }, { /* Generated with Crypto++ */
7428 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7429 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7430 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7431 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7432 .klen = 32,
7433 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7434 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7435 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7436 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7437 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7438 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7439 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7440 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7441 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7442 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7443 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7444 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7445 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7446 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7447 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7448 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7449 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7450 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7451 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7452 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7453 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7454 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7455 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7456 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7457 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7458 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7459 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7460 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7461 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7462 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7463 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7464 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7465 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7466 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7467 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7468 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7469 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7470 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7471 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7472 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7473 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7474 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7475 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7476 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7477 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7478 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7479 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7480 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7481 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7482 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7483 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7484 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7485 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7486 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7487 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7488 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7489 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7490 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7491 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7492 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7493 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7494 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7495 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7496 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7497 .ilen = 496,
7498 .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
7499 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
7500 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
7501 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
7502 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
7503 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
7504 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
7505 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
7506 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
7507 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
7508 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
7509 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
7510 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
7511 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
7512 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
7513 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
7514 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
7515 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
7516 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
7517 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
7518 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
7519 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
7520 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
7521 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
7522 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
7523 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
7524 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
7525 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
7526 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
7527 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
7528 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
7529 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
7530 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
7531 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
7532 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
7533 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
7534 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
7535 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
7536 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
7537 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
7538 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
7539 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
7540 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
7541 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
7542 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
7543 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
7544 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
7545 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
7546 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
7547 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
7548 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
7549 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
7550 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
7551 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
7552 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
7553 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
7554 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
7555 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
7556 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
7557 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
7558 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
7559 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
7560 .rlen = 496,
573da620
JK
7561 }, { /* Generated with Crypto++ */
7562 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7563 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7564 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7565 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7566 .klen = 32,
7567 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7568 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7569 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7570 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7571 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7572 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7573 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7574 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7575 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7576 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4da7de4d
JG
7577 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7578 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7579 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7580 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7581 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7582 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7583 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7584 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7585 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7586 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7587 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7588 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7589 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7590 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7591 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7592 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7593 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7594 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7595 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7596 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7597 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7598 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7599 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7600 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7601 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7602 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7603 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7604 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7605 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7606 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7607 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7608 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7609 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7610 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7611 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7612 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7613 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7614 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7615 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7616 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7617 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7618 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7619 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7620 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7621 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7622 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7623 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7624 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7625 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7626 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7627 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7628 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7629 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7630 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7631 "\x2B\xC2\x59",
7632 .ilen = 499,
573da620
JK
7633 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7634 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7635 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7636 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7637 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7638 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7639 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7640 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
4da7de4d
JG
7641 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7642 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7643 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7644 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7645 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7646 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7647 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7648 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7649 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7650 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7651 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7652 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7653 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7654 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7655 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7656 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7657 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7658 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7659 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7660 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7661 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7662 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7663 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7664 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7665 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7666 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7667 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7668 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7669 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7670 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7671 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7672 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7673 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7674 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7675 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7676 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7677 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7678 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7679 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7680 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7681 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7682 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7683 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7684 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7685 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7686 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7687 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7688 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7689 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7690 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7691 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7692 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7693 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7694 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
7695 "\x6C\x82\x9D",
7696 .rlen = 499,
f44d83d1
JK
7697 .also_non_np = 1,
7698 .np = 2,
7699 .tap = { 499 - 16, 16 },
573da620
JK
7700 },
7701};
7702
7703static struct cipher_testvec tf_ctr_dec_tv_template[] = {
7704 { /* Generated with Crypto++ */
7705 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7706 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7707 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7708 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7709 .klen = 32,
7710 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7711 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7712 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7713 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7714 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7715 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7716 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7717 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7718 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
4da7de4d
JG
7719 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7720 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7721 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7722 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7723 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7724 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7725 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7726 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7727 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7728 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7729 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7730 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7731 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7732 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7733 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7734 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7735 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7736 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7737 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7738 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7739 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7740 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7741 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7742 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7743 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7744 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7745 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7746 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7747 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7748 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7749 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7750 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7751 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7752 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7753 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7754 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7755 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7756 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7757 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7758 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7759 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7760 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7761 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7762 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7763 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7764 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7765 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7766 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7767 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7768 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7769 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7770 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7771 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7772 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7773 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
7774 .ilen = 496,
573da620
JK
7775 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7776 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7777 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7778 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7779 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7780 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7781 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
7782 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7783 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7784 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7785 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7786 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7787 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7788 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7789 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7790 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7791 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7792 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7793 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7794 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7795 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7796 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7797 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7798 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7799 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7800 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7801 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7802 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7803 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7804 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7805 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7806 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7807 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7808 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7809 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7810 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7811 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7812 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7813 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7814 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7815 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7816 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7817 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7818 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7819 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7820 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7821 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7822 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7823 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7824 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7825 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7826 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7827 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7828 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7829 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7830 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7831 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7832 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7833 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7834 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7835 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7836 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7837 .rlen = 496,
549595a0
JK
7838 }, { /* Generated with Crypto++ */
7839 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7840 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7841 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7842 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7843 .klen = 32,
7844 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7845 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7846 .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
7847 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
7848 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
7849 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
7850 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
7851 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
7852 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
7853 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
7854 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
7855 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
7856 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
7857 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
7858 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
7859 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
7860 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
7861 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
7862 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
7863 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
7864 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
7865 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
7866 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
7867 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
7868 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
7869 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
7870 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
7871 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
7872 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
7873 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
7874 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
7875 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
7876 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
7877 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
7878 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
7879 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
7880 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
7881 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
7882 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
7883 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
7884 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
7885 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
7886 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
7887 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
7888 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
7889 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
7890 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
7891 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
7892 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
7893 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
7894 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
7895 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
7896 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
7897 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
7898 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
7899 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
7900 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
7901 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
7902 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
7903 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
7904 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
7905 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
7906 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
7907 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
7908 .ilen = 496,
7909 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7910 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7911 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7912 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7913 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7914 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7915 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7916 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7917 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7918 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7919 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7920 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7921 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7922 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7923 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7924 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7925 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7926 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7927 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7928 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7929 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7930 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7931 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7932 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7933 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7934 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7935 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7936 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7937 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7938 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7939 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7940 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7941 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7942 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7943 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7944 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7945 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7946 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7947 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7948 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7949 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7950 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7951 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7952 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7953 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7954 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7955 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7956 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7957 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7958 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7959 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7960 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7961 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7962 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7963 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7964 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7965 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7966 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7967 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7968 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7969 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7970 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7971 .rlen = 496,
573da620
JK
7972 }, { /* Generated with Crypto++ */
7973 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7974 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7975 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7976 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7977 .klen = 32,
7978 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7979 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7980 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7981 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7982 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7983 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7984 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7985 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7986 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7987 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
4da7de4d
JG
7988 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7989 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7990 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7991 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7992 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7993 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7994 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7995 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7996 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7997 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7998 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7999 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8000 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8001 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8002 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8003 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8004 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8005 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8006 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8007 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8008 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8009 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8010 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8011 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
8012 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
8013 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
8014 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
8015 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
8016 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
8017 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
8018 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
8019 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
8020 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
8021 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
8022 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
8023 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
8024 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
8025 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
8026 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
8027 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
8028 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
8029 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
8030 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
8031 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8032 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8033 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8034 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8035 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8036 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8037 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8038 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8039 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
8040 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
8041 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
8042 "\x6C\x82\x9D",
8043 .ilen = 499,
573da620
JK
8044 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8045 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8046 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8047 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8048 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8049 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8050 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8051 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4da7de4d
JG
8052 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8053 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8054 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8055 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8056 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8057 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8058 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8059 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8060 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8061 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8062 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8063 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8064 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8065 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8066 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8067 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8068 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8069 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8070 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8071 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8072 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8073 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8074 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8075 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8076 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8077 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8078 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8079 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8080 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8081 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8082 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8083 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8084 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8085 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8086 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8087 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8088 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8089 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8090 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8091 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8092 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8093 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8094 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8095 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8096 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8097 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8098 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8099 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8100 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8101 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8102 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8103 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8104 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8105 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8106 "\x2B\xC2\x59",
8107 .rlen = 499,
f44d83d1
JK
8108 .also_non_np = 1,
8109 .np = 2,
8110 .tap = { 499 - 16, 16 },
da7f033d
HX
8111 },
8112};
8113
0b2a1551
JK
8114static struct cipher_testvec tf_lrw_enc_tv_template[] = {
8115 /* Generated from AES-LRW test vectors */
8116 {
8117 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8118 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8119 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8120 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8121 .klen = 32,
8122 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8123 "\x00\x00\x00\x00\x00\x00\x00\x01",
8124 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8125 "\x38\x39\x41\x42\x43\x44\x45\x46",
8126 .ilen = 16,
8127 .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
8128 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
8129 .rlen = 16,
8130 }, {
8131 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8132 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8133 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8134 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8135 .klen = 32,
8136 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8137 "\x00\x00\x00\x00\x00\x00\x00\x02",
8138 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8139 "\x38\x39\x41\x42\x43\x44\x45\x46",
8140 .ilen = 16,
8141 .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
8142 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
8143 .rlen = 16,
8144 }, {
8145 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8146 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8147 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8148 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8149 .klen = 32,
8150 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8151 "\x00\x00\x00\x02\x00\x00\x00\x00",
8152 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8153 "\x38\x39\x41\x42\x43\x44\x45\x46",
8154 .ilen = 16,
8155 .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
8156 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
8157 .rlen = 16,
8158 }, {
8159 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8160 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8161 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8162 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8163 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8164 .klen = 40,
8165 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8166 "\x00\x00\x00\x00\x00\x00\x00\x01",
8167 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8168 "\x38\x39\x41\x42\x43\x44\x45\x46",
8169 .ilen = 16,
8170 .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
8171 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
8172 .rlen = 16,
8173 }, {
8174 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8175 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8176 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8177 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8178 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8179 .klen = 40,
8180 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8181 "\x00\x00\x00\x02\x00\x00\x00\x00",
8182 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8183 "\x38\x39\x41\x42\x43\x44\x45\x46",
8184 .ilen = 16,
8185 .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
8186 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
8187 .rlen = 16,
8188 }, {
8189 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8190 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8191 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8192 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8193 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8194 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8195 .klen = 48,
8196 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8197 "\x00\x00\x00\x00\x00\x00\x00\x01",
8198 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8199 "\x38\x39\x41\x42\x43\x44\x45\x46",
8200 .ilen = 16,
8201 .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
8202 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
8203 .rlen = 16,
8204 }, {
8205 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8206 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8207 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8208 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8209 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8210 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8211 .klen = 48,
8212 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8213 "\x00\x00\x00\x02\x00\x00\x00\x00",
8214 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8215 "\x38\x39\x41\x42\x43\x44\x45\x46",
8216 .ilen = 16,
8217 .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
8218 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
8219 .rlen = 16,
8220 }, {
8221 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8222 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8223 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8224 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8225 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8226 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8227 .klen = 48,
8228 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8229 "\x00\x00\x00\x00\x00\x00\x00\x01",
8230 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
8231 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8232 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8233 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8234 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8235 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8236 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8237 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8238 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8239 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8240 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8241 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8242 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8243 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8244 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8245 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8246 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8247 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8248 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8249 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8250 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8251 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8252 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8253 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8254 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8255 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8256 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8257 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8258 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8259 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8260 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8261 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8262 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8263 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8264 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8265 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8266 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8267 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8268 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8269 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8270 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8271 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8272 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8273 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8274 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8275 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8276 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8277 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8278 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8279 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8280 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8281 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8282 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8283 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8284 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8285 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8286 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8287 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8288 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8289 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8290 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8291 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8292 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8293 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
8294 .ilen = 512,
8295 .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
8296 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8297 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8298 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8299 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8300 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8301 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8302 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8303 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8304 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8305 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8306 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8307 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8308 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8309 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8310 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8311 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8312 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8313 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8314 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8315 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8316 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8317 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8318 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8319 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8320 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8321 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8322 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8323 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8324 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8325 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8326 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8327 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8328 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8329 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8330 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8331 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8332 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8333 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8334 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8335 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8336 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8337 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8338 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8339 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8340 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8341 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8342 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8343 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8344 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8345 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8346 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8347 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8348 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8349 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8350 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8351 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8352 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8353 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8354 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8355 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8356 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8357 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8358 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
8359 .rlen = 512,
f44d83d1 8360 .also_non_np = 1,
3b9b8fe0
AB
8361 .np = 3,
8362 .tap = { 512 - 20, 4, 16 },
0b2a1551
JK
8363 },
8364};
8365
8366static struct cipher_testvec tf_lrw_dec_tv_template[] = {
8367 /* Generated from AES-LRW test vectors */
8368 /* same as enc vectors with input and result reversed */
8369 {
8370 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8371 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8372 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8373 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8374 .klen = 32,
8375 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8376 "\x00\x00\x00\x00\x00\x00\x00\x01",
8377 .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
8378 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
8379 .ilen = 16,
8380 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8381 "\x38\x39\x41\x42\x43\x44\x45\x46",
8382 .rlen = 16,
8383 }, {
8384 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8385 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8386 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8387 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8388 .klen = 32,
8389 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8390 "\x00\x00\x00\x00\x00\x00\x00\x02",
8391 .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
8392 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
8393 .ilen = 16,
8394 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8395 "\x38\x39\x41\x42\x43\x44\x45\x46",
8396 .rlen = 16,
8397 }, {
8398 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8399 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8400 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8401 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8402 .klen = 32,
8403 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8404 "\x00\x00\x00\x02\x00\x00\x00\x00",
8405 .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
8406 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
8407 .ilen = 16,
8408 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8409 "\x38\x39\x41\x42\x43\x44\x45\x46",
8410 .rlen = 16,
8411 }, {
8412 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8413 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8414 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8415 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8416 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8417 .klen = 40,
8418 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8419 "\x00\x00\x00\x00\x00\x00\x00\x01",
8420 .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
8421 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
8422 .ilen = 16,
8423 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8424 "\x38\x39\x41\x42\x43\x44\x45\x46",
8425 .rlen = 16,
8426 }, {
8427 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8428 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8429 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8430 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8431 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8432 .klen = 40,
8433 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8434 "\x00\x00\x00\x02\x00\x00\x00\x00",
8435 .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
8436 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
8437 .ilen = 16,
8438 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8439 "\x38\x39\x41\x42\x43\x44\x45\x46",
8440 .rlen = 16,
8441 }, {
8442 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8443 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8444 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8445 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8446 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8447 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8448 .klen = 48,
8449 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8450 "\x00\x00\x00\x00\x00\x00\x00\x01",
8451 .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
8452 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
8453 .ilen = 16,
8454 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8455 "\x38\x39\x41\x42\x43\x44\x45\x46",
8456 .rlen = 16,
8457 }, {
8458 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8459 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8460 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8461 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8462 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8463 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8464 .klen = 48,
8465 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8466 "\x00\x00\x00\x02\x00\x00\x00\x00",
8467 .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
8468 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
8469 .ilen = 16,
8470 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8471 "\x38\x39\x41\x42\x43\x44\x45\x46",
8472 .rlen = 16,
8473 }, {
8474 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8475 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8476 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8477 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8478 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8479 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8480 .klen = 48,
8481 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8482 "\x00\x00\x00\x00\x00\x00\x00\x01",
8483 .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
8484 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8485 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8486 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8487 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8488 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8489 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8490 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8491 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8492 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8493 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8494 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8495 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8496 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8497 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8498 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8499 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8500 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8501 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8502 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8503 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8504 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8505 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8506 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8507 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8508 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8509 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8510 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8511 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8512 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8513 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8514 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8515 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8516 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8517 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8518 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8519 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8520 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8521 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8522 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8523 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8524 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8525 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8526 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8527 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8528 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8529 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8530 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8531 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8532 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8533 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8534 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8535 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8536 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8537 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8538 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8539 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8540 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8541 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8542 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8543 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8544 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8545 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8546 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
8547 .ilen = 512,
8548 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
8549 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8550 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8551 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8552 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8553 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8554 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8555 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8556 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8557 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8558 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8559 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8560 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8561 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8562 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8563 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8564 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8565 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8566 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8567 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8568 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8569 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8570 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8571 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8572 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8573 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8574 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8575 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8576 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8577 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8578 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8579 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8580 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8581 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8582 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8583 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8584 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8585 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8586 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8587 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8588 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8589 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8590 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8591 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8592 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8593 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8594 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8595 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8596 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8597 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8598 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8599 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8600 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8601 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8602 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8603 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8604 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8605 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8606 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8607 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8608 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8609 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8610 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8611 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
8612 .rlen = 512,
f44d83d1 8613 .also_non_np = 1,
3b9b8fe0
AB
8614 .np = 3,
8615 .tap = { 512 - 20, 4, 16 },
0b2a1551
JK
8616 },
8617};
8618
aed265b9
JK
8619static struct cipher_testvec tf_xts_enc_tv_template[] = {
8620 /* Generated from AES-XTS test vectors */
8621{
8622 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
8623 "\x00\x00\x00\x00\x00\x00\x00\x00"
8624 "\x00\x00\x00\x00\x00\x00\x00\x00"
8625 "\x00\x00\x00\x00\x00\x00\x00\x00",
8626 .klen = 32,
8627 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8628 "\x00\x00\x00\x00\x00\x00\x00\x00",
8629 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
8630 "\x00\x00\x00\x00\x00\x00\x00\x00"
8631 "\x00\x00\x00\x00\x00\x00\x00\x00"
8632 "\x00\x00\x00\x00\x00\x00\x00\x00",
8633 .ilen = 32,
8634 .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8635 "\x30\x74\xe4\x44\x52\x77\x97\x43"
8636 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8637 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8638 .rlen = 32,
8639 }, {
8640 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
8641 "\x11\x11\x11\x11\x11\x11\x11\x11"
8642 "\x22\x22\x22\x22\x22\x22\x22\x22"
8643 "\x22\x22\x22\x22\x22\x22\x22\x22",
8644 .klen = 32,
8645 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8646 "\x00\x00\x00\x00\x00\x00\x00\x00",
8647 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
8648 "\x44\x44\x44\x44\x44\x44\x44\x44"
8649 "\x44\x44\x44\x44\x44\x44\x44\x44"
8650 "\x44\x44\x44\x44\x44\x44\x44\x44",
8651 .ilen = 32,
8652 .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8653 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8654 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8655 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8656 .rlen = 32,
8657 }, {
8658 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8659 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8660 "\x22\x22\x22\x22\x22\x22\x22\x22"
8661 "\x22\x22\x22\x22\x22\x22\x22\x22",
8662 .klen = 32,
8663 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8664 "\x00\x00\x00\x00\x00\x00\x00\x00",
8665 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
8666 "\x44\x44\x44\x44\x44\x44\x44\x44"
8667 "\x44\x44\x44\x44\x44\x44\x44\x44"
8668 "\x44\x44\x44\x44\x44\x44\x44\x44",
8669 .ilen = 32,
8670 .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
8671 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8672 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8673 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
8674 .rlen = 32,
8675 }, {
8676 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
8677 "\x23\x53\x60\x28\x74\x71\x35\x26"
8678 "\x31\x41\x59\x26\x53\x58\x97\x93"
8679 "\x23\x84\x62\x64\x33\x83\x27\x95",
8680 .klen = 32,
8681 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8682 "\x00\x00\x00\x00\x00\x00\x00\x00",
8683 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
8684 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8685 "\x10\x11\x12\x13\x14\x15\x16\x17"
8686 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8687 "\x20\x21\x22\x23\x24\x25\x26\x27"
8688 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8689 "\x30\x31\x32\x33\x34\x35\x36\x37"
8690 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8691 "\x40\x41\x42\x43\x44\x45\x46\x47"
8692 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8693 "\x50\x51\x52\x53\x54\x55\x56\x57"
8694 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8695 "\x60\x61\x62\x63\x64\x65\x66\x67"
8696 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8697 "\x70\x71\x72\x73\x74\x75\x76\x77"
8698 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8699 "\x80\x81\x82\x83\x84\x85\x86\x87"
8700 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8701 "\x90\x91\x92\x93\x94\x95\x96\x97"
8702 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8703 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8704 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8705 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8706 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8707 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8708 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8709 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8710 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8711 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8712 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8713 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8714 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8715 "\x00\x01\x02\x03\x04\x05\x06\x07"
8716 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8717 "\x10\x11\x12\x13\x14\x15\x16\x17"
8718 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8719 "\x20\x21\x22\x23\x24\x25\x26\x27"
8720 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8721 "\x30\x31\x32\x33\x34\x35\x36\x37"
8722 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8723 "\x40\x41\x42\x43\x44\x45\x46\x47"
8724 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8725 "\x50\x51\x52\x53\x54\x55\x56\x57"
8726 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8727 "\x60\x61\x62\x63\x64\x65\x66\x67"
8728 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8729 "\x70\x71\x72\x73\x74\x75\x76\x77"
8730 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8731 "\x80\x81\x82\x83\x84\x85\x86\x87"
8732 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8733 "\x90\x91\x92\x93\x94\x95\x96\x97"
8734 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8735 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8736 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8737 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8738 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8739 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8740 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8741 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8742 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8743 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8744 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8745 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8746 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8747 .ilen = 512,
8748 .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
8749 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8750 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8751 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8752 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8753 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8754 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8755 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8756 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8757 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8758 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8759 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8760 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8761 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8762 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8763 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8764 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8765 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8766 "\x39\x80\x39\x09\x97\x65\xf2\x83"
8767 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8768 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8769 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8770 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8771 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8772 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8773 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8774 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8775 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8776 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8777 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
8778 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
8779 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
8780 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
8781 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
8782 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
8783 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
8784 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
8785 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
8786 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
8787 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
8788 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
8789 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
8790 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
8791 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
8792 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
8793 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
8794 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
8795 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
8796 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
8797 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
8798 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
8799 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
8800 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
8801 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
8802 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
8803 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
8804 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
8805 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
8806 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
8807 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
8808 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
8809 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
8810 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
8811 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
8812 .rlen = 512,
8813 }, {
8814 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
8815 "\x23\x53\x60\x28\x74\x71\x35\x26"
8816 "\x62\x49\x77\x57\x24\x70\x93\x69"
8817 "\x99\x59\x57\x49\x66\x96\x76\x27"
8818 "\x31\x41\x59\x26\x53\x58\x97\x93"
8819 "\x23\x84\x62\x64\x33\x83\x27\x95"
8820 "\x02\x88\x41\x97\x16\x93\x99\x37"
8821 "\x51\x05\x82\x09\x74\x94\x45\x92",
8822 .klen = 64,
8823 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
8824 "\x00\x00\x00\x00\x00\x00\x00\x00",
8825 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
8826 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8827 "\x10\x11\x12\x13\x14\x15\x16\x17"
8828 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8829 "\x20\x21\x22\x23\x24\x25\x26\x27"
8830 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8831 "\x30\x31\x32\x33\x34\x35\x36\x37"
8832 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8833 "\x40\x41\x42\x43\x44\x45\x46\x47"
8834 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8835 "\x50\x51\x52\x53\x54\x55\x56\x57"
8836 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8837 "\x60\x61\x62\x63\x64\x65\x66\x67"
8838 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8839 "\x70\x71\x72\x73\x74\x75\x76\x77"
8840 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8841 "\x80\x81\x82\x83\x84\x85\x86\x87"
8842 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8843 "\x90\x91\x92\x93\x94\x95\x96\x97"
8844 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8845 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8846 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8847 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8848 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8849 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8850 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8851 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8852 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8853 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8854 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8855 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8856 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8857 "\x00\x01\x02\x03\x04\x05\x06\x07"
8858 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8859 "\x10\x11\x12\x13\x14\x15\x16\x17"
8860 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8861 "\x20\x21\x22\x23\x24\x25\x26\x27"
8862 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8863 "\x30\x31\x32\x33\x34\x35\x36\x37"
8864 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8865 "\x40\x41\x42\x43\x44\x45\x46\x47"
8866 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8867 "\x50\x51\x52\x53\x54\x55\x56\x57"
8868 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8869 "\x60\x61\x62\x63\x64\x65\x66\x67"
8870 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8871 "\x70\x71\x72\x73\x74\x75\x76\x77"
8872 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8873 "\x80\x81\x82\x83\x84\x85\x86\x87"
8874 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8875 "\x90\x91\x92\x93\x94\x95\x96\x97"
8876 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8877 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8878 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8879 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8880 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8881 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8882 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8883 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8884 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8885 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8886 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8887 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8888 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8889 .ilen = 512,
8890 .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
8891 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
8892 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
8893 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
8894 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
8895 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
8896 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
8897 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
8898 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
8899 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
8900 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
8901 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
8902 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
8903 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
8904 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
8905 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
8906 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
8907 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
8908 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
8909 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
8910 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
8911 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
8912 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
8913 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
8914 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
8915 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
8916 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
8917 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
8918 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
8919 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
8920 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
8921 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
8922 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
8923 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
8924 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
8925 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
8926 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
8927 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
8928 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
8929 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
8930 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
8931 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
8932 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
8933 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
8934 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
8935 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
8936 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
8937 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
8938 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
8939 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
8940 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
8941 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
8942 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
8943 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
8944 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
8945 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
8946 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8947 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8948 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8949 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8950 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8951 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8952 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8953 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
8954 .rlen = 512,
f44d83d1 8955 .also_non_np = 1,
3b9b8fe0
AB
8956 .np = 3,
8957 .tap = { 512 - 20, 4, 16 },
aed265b9
JK
8958 },
8959};
8960
8961static struct cipher_testvec tf_xts_dec_tv_template[] = {
8962 /* Generated from AES-XTS test vectors */
8963 /* same as enc vectors with input and result reversed */
8964 {
8965 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
8966 "\x00\x00\x00\x00\x00\x00\x00\x00"
8967 "\x00\x00\x00\x00\x00\x00\x00\x00"
8968 "\x00\x00\x00\x00\x00\x00\x00\x00",
8969 .klen = 32,
8970 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8971 "\x00\x00\x00\x00\x00\x00\x00\x00",
8972 .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8973 "\x30\x74\xe4\x44\x52\x77\x97\x43"
8974 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8975 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8976 .ilen = 32,
8977 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
8978 "\x00\x00\x00\x00\x00\x00\x00\x00"
8979 "\x00\x00\x00\x00\x00\x00\x00\x00"
8980 "\x00\x00\x00\x00\x00\x00\x00\x00",
8981 .rlen = 32,
8982 }, {
8983 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
8984 "\x11\x11\x11\x11\x11\x11\x11\x11"
8985 "\x22\x22\x22\x22\x22\x22\x22\x22"
8986 "\x22\x22\x22\x22\x22\x22\x22\x22",
8987 .klen = 32,
8988 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8989 "\x00\x00\x00\x00\x00\x00\x00\x00",
8990 .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8991 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8992 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8993 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8994 .ilen = 32,
8995 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
8996 "\x44\x44\x44\x44\x44\x44\x44\x44"
8997 "\x44\x44\x44\x44\x44\x44\x44\x44"
8998 "\x44\x44\x44\x44\x44\x44\x44\x44",
8999 .rlen = 32,
9000 }, {
9001 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
9002 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
9003 "\x22\x22\x22\x22\x22\x22\x22\x22"
9004 "\x22\x22\x22\x22\x22\x22\x22\x22",
9005 .klen = 32,
9006 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
9007 "\x00\x00\x00\x00\x00\x00\x00\x00",
9008 .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
9009 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
9010 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
9011 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
9012 .ilen = 32,
9013 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
9014 "\x44\x44\x44\x44\x44\x44\x44\x44"
9015 "\x44\x44\x44\x44\x44\x44\x44\x44"
9016 "\x44\x44\x44\x44\x44\x44\x44\x44",
9017 .rlen = 32,
9018 }, {
9019 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
9020 "\x23\x53\x60\x28\x74\x71\x35\x26"
9021 "\x31\x41\x59\x26\x53\x58\x97\x93"
9022 "\x23\x84\x62\x64\x33\x83\x27\x95",
9023 .klen = 32,
9024 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9025 "\x00\x00\x00\x00\x00\x00\x00\x00",
9026 .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
9027 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
9028 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
9029 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
9030 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
9031 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
9032 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
9033 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
9034 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
9035 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
9036 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
9037 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
9038 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
9039 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
9040 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
9041 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
9042 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
9043 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
9044 "\x39\x80\x39\x09\x97\x65\xf2\x83"
9045 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
9046 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
9047 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
9048 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
9049 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
9050 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
9051 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
9052 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
9053 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
9054 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
9055 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
9056 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
9057 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
9058 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
9059 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
9060 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
9061 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
9062 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
9063 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
9064 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
9065 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
9066 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
9067 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
9068 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
9069 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
9070 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
9071 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
9072 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
9073 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
9074 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
9075 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
9076 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
9077 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
9078 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
9079 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
9080 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
9081 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
9082 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
9083 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
9084 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
9085 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
9086 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
9087 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
9088 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
9089 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
9090 .ilen = 512,
9091 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9092 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9093 "\x10\x11\x12\x13\x14\x15\x16\x17"
9094 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9095 "\x20\x21\x22\x23\x24\x25\x26\x27"
9096 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9097 "\x30\x31\x32\x33\x34\x35\x36\x37"
9098 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9099 "\x40\x41\x42\x43\x44\x45\x46\x47"
9100 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9101 "\x50\x51\x52\x53\x54\x55\x56\x57"
9102 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9103 "\x60\x61\x62\x63\x64\x65\x66\x67"
9104 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9105 "\x70\x71\x72\x73\x74\x75\x76\x77"
9106 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9107 "\x80\x81\x82\x83\x84\x85\x86\x87"
9108 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9109 "\x90\x91\x92\x93\x94\x95\x96\x97"
9110 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9111 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9112 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9113 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9114 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9115 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9116 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9117 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9118 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9119 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9120 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9121 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9122 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9123 "\x00\x01\x02\x03\x04\x05\x06\x07"
9124 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9125 "\x10\x11\x12\x13\x14\x15\x16\x17"
9126 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9127 "\x20\x21\x22\x23\x24\x25\x26\x27"
9128 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9129 "\x30\x31\x32\x33\x34\x35\x36\x37"
9130 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9131 "\x40\x41\x42\x43\x44\x45\x46\x47"
9132 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9133 "\x50\x51\x52\x53\x54\x55\x56\x57"
9134 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9135 "\x60\x61\x62\x63\x64\x65\x66\x67"
9136 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9137 "\x70\x71\x72\x73\x74\x75\x76\x77"
9138 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9139 "\x80\x81\x82\x83\x84\x85\x86\x87"
9140 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9141 "\x90\x91\x92\x93\x94\x95\x96\x97"
9142 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9143 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9144 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9145 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9146 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9147 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9148 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9149 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9150 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9151 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9152 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9153 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9154 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
9155 .rlen = 512,
9156 }, {
9157 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
9158 "\x23\x53\x60\x28\x74\x71\x35\x26"
9159 "\x62\x49\x77\x57\x24\x70\x93\x69"
9160 "\x99\x59\x57\x49\x66\x96\x76\x27"
9161 "\x31\x41\x59\x26\x53\x58\x97\x93"
9162 "\x23\x84\x62\x64\x33\x83\x27\x95"
9163 "\x02\x88\x41\x97\x16\x93\x99\x37"
9164 "\x51\x05\x82\x09\x74\x94\x45\x92",
9165 .klen = 64,
9166 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
9167 "\x00\x00\x00\x00\x00\x00\x00\x00",
9168 .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
9169 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
9170 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
9171 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
9172 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
9173 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
9174 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
9175 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
9176 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
9177 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
9178 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
9179 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
9180 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
9181 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
9182 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
9183 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
9184 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
9185 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
9186 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
9187 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
9188 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
9189 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
9190 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
9191 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
9192 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
9193 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
9194 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
9195 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
9196 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
9197 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
9198 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
9199 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
9200 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
9201 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
9202 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
9203 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
9204 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
9205 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
9206 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
9207 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
9208 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
9209 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
9210 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
9211 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
9212 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
9213 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
9214 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
9215 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
9216 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
9217 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
9218 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
9219 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
9220 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
9221 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
9222 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
9223 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
9224 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
9225 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
9226 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
9227 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
9228 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
9229 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
9230 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
9231 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
9232 .ilen = 512,
9233 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9234 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9235 "\x10\x11\x12\x13\x14\x15\x16\x17"
9236 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9237 "\x20\x21\x22\x23\x24\x25\x26\x27"
9238 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9239 "\x30\x31\x32\x33\x34\x35\x36\x37"
9240 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9241 "\x40\x41\x42\x43\x44\x45\x46\x47"
9242 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9243 "\x50\x51\x52\x53\x54\x55\x56\x57"
9244 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9245 "\x60\x61\x62\x63\x64\x65\x66\x67"
9246 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9247 "\x70\x71\x72\x73\x74\x75\x76\x77"
9248 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9249 "\x80\x81\x82\x83\x84\x85\x86\x87"
9250 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9251 "\x90\x91\x92\x93\x94\x95\x96\x97"
9252 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9253 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9254 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9255 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9256 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9257 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9258 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9259 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9260 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9261 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9262 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9263 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9264 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9265 "\x00\x01\x02\x03\x04\x05\x06\x07"
9266 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9267 "\x10\x11\x12\x13\x14\x15\x16\x17"
9268 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9269 "\x20\x21\x22\x23\x24\x25\x26\x27"
9270 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9271 "\x30\x31\x32\x33\x34\x35\x36\x37"
9272 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9273 "\x40\x41\x42\x43\x44\x45\x46\x47"
9274 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9275 "\x50\x51\x52\x53\x54\x55\x56\x57"
9276 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9277 "\x60\x61\x62\x63\x64\x65\x66\x67"
9278 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9279 "\x70\x71\x72\x73\x74\x75\x76\x77"
9280 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9281 "\x80\x81\x82\x83\x84\x85\x86\x87"
9282 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9283 "\x90\x91\x92\x93\x94\x95\x96\x97"
9284 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9285 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9286 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9287 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9288 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9289 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9290 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9291 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9292 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9293 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9294 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9295 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9296 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
9297 .rlen = 512,
f44d83d1 9298 .also_non_np = 1,
3b9b8fe0
AB
9299 .np = 3,
9300 .tap = { 512 - 20, 4, 16 },
aed265b9
JK
9301 },
9302};
9303
da7f033d
HX
9304/*
9305 * Serpent test vectors. These are backwards because Serpent writes
9306 * octet sequences in right-to-left mode.
9307 */
9d25917d
JK
9308#define SERPENT_ENC_TEST_VECTORS 5
9309#define SERPENT_DEC_TEST_VECTORS 5
da7f033d
HX
9310
9311#define TNEPRES_ENC_TEST_VECTORS 4
9312#define TNEPRES_DEC_TEST_VECTORS 4
9313
9d25917d
JK
9314#define SERPENT_CBC_ENC_TEST_VECTORS 1
9315#define SERPENT_CBC_DEC_TEST_VECTORS 1
9316
9317#define SERPENT_CTR_ENC_TEST_VECTORS 2
9318#define SERPENT_CTR_DEC_TEST_VECTORS 2
9319
d7bfc0fa
JK
9320#define SERPENT_LRW_ENC_TEST_VECTORS 8
9321#define SERPENT_LRW_DEC_TEST_VECTORS 8
9322
18be20b9
JK
9323#define SERPENT_XTS_ENC_TEST_VECTORS 5
9324#define SERPENT_XTS_DEC_TEST_VECTORS 5
9325
da7f033d
HX
9326static struct cipher_testvec serpent_enc_tv_template[] = {
9327 {
9328 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
9329 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9330 .ilen = 16,
9331 .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
9332 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
9333 .rlen = 16,
9334 }, {
9335 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9336 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9337 .klen = 16,
9338 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
9339 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9340 .ilen = 16,
9341 .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
9342 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
9343 .rlen = 16,
9344 }, {
9345 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9346 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9347 "\x10\x11\x12\x13\x14\x15\x16\x17"
9348 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9349 .klen = 32,
9350 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
9351 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9352 .ilen = 16,
9353 .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
9354 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
9355 .rlen = 16,
9356 }, {
9357 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
9358 .klen = 16,
9359 .input = zeroed_string,
9360 .ilen = 16,
9361 .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
9362 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
9363 .rlen = 16,
9d25917d
JK
9364 }, { /* Generated with Crypto++ */
9365 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9366 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9367 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9368 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9369 .klen = 32,
9370 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9371 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9372 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9373 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9374 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9375 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9376 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9377 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9378 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9379 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9380 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9381 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9382 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9383 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9384 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9385 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9386 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
9387 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9388 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9389 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9390 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9391 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9392 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9393 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9394 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9395 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9396 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9397 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9398 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9399 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9400 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9401 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9402 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9403 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9404 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9405 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9406 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9407 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9408 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9409 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9410 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9411 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9412 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9413 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9414 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9415 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9416 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9417 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9418 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9419 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9420 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9421 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9422 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9423 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9424 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9425 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9426 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9427 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9428 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9429 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9430 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9431 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9432 .ilen = 496,
9d25917d
JK
9433 .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
9434 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
9435 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
9436 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
9437 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
9438 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
9439 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
9440 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
9441 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
9442 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
9443 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
9444 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
9445 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
9446 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
9447 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
9448 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
9449 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
9f28e97d
JK
9450 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
9451 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
9452 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
9453 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
9454 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
9455 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
9456 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
9457 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
9458 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
9459 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
9460 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
9461 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
9462 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
9463 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
9464 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
9465 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
9466 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
9467 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
9468 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
9469 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
9470 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
9471 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
9472 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
9473 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
9474 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
9475 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
9476 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
9477 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
9478 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
9479 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
9480 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
9481 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
9482 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
9483 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
9484 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
9485 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
9486 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
9487 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
9488 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
9489 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
9490 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
9491 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
9492 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
9493 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
9494 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
9495 .rlen = 496,
f44d83d1 9496 .also_non_np = 1,
3b9b8fe0
AB
9497 .np = 3,
9498 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
9499 },
9500};
9501
9502static struct cipher_testvec tnepres_enc_tv_template[] = {
9503 { /* KeySize=128, PT=0, I=1 */
9504 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
9505 "\x00\x00\x00\x00\x00\x00\x00\x00",
9506 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9507 "\x00\x00\x00\x00\x00\x00\x00\x00",
9508 .klen = 16,
9509 .ilen = 16,
9510 .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
9511 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
9512 .rlen = 16,
9513 }, { /* KeySize=192, PT=0, I=1 */
9514 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9515 "\x00\x00\x00\x00\x00\x00\x00\x00"
9516 "\x00\x00\x00\x00\x00\x00\x00\x00",
9517 .klen = 24,
9518 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
9519 "\x00\x00\x00\x00\x00\x00\x00\x00",
9520 .ilen = 16,
9521 .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
9522 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
9523 .rlen = 16,
9524 }, { /* KeySize=256, PT=0, I=1 */
9525 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9526 "\x00\x00\x00\x00\x00\x00\x00\x00"
9527 "\x00\x00\x00\x00\x00\x00\x00\x00"
9528 "\x00\x00\x00\x00\x00\x00\x00\x00",
9529 .klen = 32,
9530 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
9531 "\x00\x00\x00\x00\x00\x00\x00\x00",
9532 .ilen = 16,
9533 .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
9534 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
9535 .rlen = 16,
9536 }, { /* KeySize=256, I=257 */
9537 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
9538 "\x17\x16\x15\x14\x13\x12\x11\x10"
9539 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
9540 "\x07\x06\x05\x04\x03\x02\x01\x00",
9541 .klen = 32,
9542 .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
9543 "\x07\x06\x05\x04\x03\x02\x01\x00",
9544 .ilen = 16,
9545 .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
9546 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
9547 .rlen = 16,
9548 },
9549};
9550
9551
9552static struct cipher_testvec serpent_dec_tv_template[] = {
9553 {
9554 .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
9555 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
9556 .ilen = 16,
9557 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9558 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9559 .rlen = 16,
9560 }, {
9561 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9562 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9563 .klen = 16,
9564 .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
9565 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
9566 .ilen = 16,
9567 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9568 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9569 .rlen = 16,
9570 }, {
9571 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9572 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9573 "\x10\x11\x12\x13\x14\x15\x16\x17"
9574 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9575 .klen = 32,
9576 .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
9577 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
9578 .ilen = 16,
9579 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9580 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9581 .rlen = 16,
9582 }, {
9583 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
9584 .klen = 16,
9585 .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
9586 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
9587 .ilen = 16,
9588 .result = zeroed_string,
9589 .rlen = 16,
9d25917d
JK
9590 }, { /* Generated with Crypto++ */
9591 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9592 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9593 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9594 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9595 .klen = 32,
9596 .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
9597 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
9598 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
9599 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
9600 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
9601 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
9602 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
9603 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
9604 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
9605 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
9606 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
9607 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
9608 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
9609 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
9610 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
9611 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
9612 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
9f28e97d
JK
9613 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
9614 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
9615 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
9616 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
9617 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
9618 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
9619 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
9620 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
9621 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
9622 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
9623 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
9624 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
9625 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
9626 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
9627 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
9628 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
9629 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
9630 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
9631 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
9632 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
9633 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
9634 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
9635 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
9636 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
9637 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
9638 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
9639 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
9640 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
9641 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
9642 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
9643 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
9644 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
9645 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
9646 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
9647 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
9648 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
9649 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
9650 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
9651 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
9652 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
9653 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
9654 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
9655 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
9656 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
9657 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
9658 .ilen = 496,
9d25917d
JK
9659 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9660 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9661 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9662 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9663 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9664 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9665 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9666 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9667 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9668 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9669 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9670 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9671 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9672 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9673 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9674 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9675 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
9676 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9677 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9678 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9679 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9680 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9681 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9682 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9683 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9684 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9685 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9686 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9687 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9688 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9689 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9690 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9691 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9692 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9693 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9694 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9695 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9696 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9697 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9698 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9699 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9700 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9701 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9702 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9703 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9704 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9705 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9706 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9707 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9708 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9709 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9710 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9711 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9712 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9713 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9714 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9715 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9716 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9717 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9718 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9719 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9720 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9721 .rlen = 496,
f44d83d1 9722 .also_non_np = 1,
3b9b8fe0
AB
9723 .np = 3,
9724 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
9725 },
9726};
9727
9728static struct cipher_testvec tnepres_dec_tv_template[] = {
9729 {
9730 .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
9731 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
9732 .ilen = 16,
9733 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9734 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9735 .rlen = 16,
9736 }, {
9737 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9738 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9739 .klen = 16,
9740 .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
9741 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
9742 .ilen = 16,
9743 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9744 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9745 .rlen = 16,
9746 }, {
9747 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9748 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9749 "\x10\x11\x12\x13\x14\x15\x16\x17"
9750 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9751 .klen = 32,
9752 .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
9753 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
9754 .ilen = 16,
9755 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9756 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9757 .rlen = 16,
9758 }, { /* KeySize=128, I=121 */
9759 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
9760 .klen = 16,
9761 .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
9762 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
9763 .ilen = 16,
9764 .result = zeroed_string,
9765 .rlen = 16,
9766 },
9767};
9768
9d25917d
JK
9769static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
9770 { /* Generated with Crypto++ */
9771 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9772 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9773 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9774 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9775 .klen = 32,
9776 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9777 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9778 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9779 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9780 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9781 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9782 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9783 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9784 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9785 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9786 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9787 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9788 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9789 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9790 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9791 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9792 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9793 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9794 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
9795 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9796 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9797 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9798 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9799 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9800 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9801 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9802 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9803 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9804 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9805 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9806 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9807 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9808 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9809 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9810 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9811 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9812 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9813 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9814 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9815 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9816 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9817 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9818 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9819 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9820 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9821 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9822 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9823 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9824 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9825 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9826 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9827 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9828 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9829 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9830 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9831 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9832 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9833 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9834 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9835 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9836 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9837 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9838 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9839 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9840 .ilen = 496,
9d25917d
JK
9841 .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
9842 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9843 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9844 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9845 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9846 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9847 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9848 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9849 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9850 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9851 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9852 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9853 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9854 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9855 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9856 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9857 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9f28e97d
JK
9858 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9859 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9860 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9861 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9862 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9863 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9864 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9865 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9866 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9867 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9868 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9869 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9870 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9871 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9872 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9873 "\x81\x92\x66\x67\x15\x1E\x39\x98"
9874 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9875 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9876 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9877 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9878 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9879 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9880 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9881 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9882 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9883 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9884 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9885 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9886 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9887 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9888 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9889 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9890 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9891 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9892 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9893 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9894 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9895 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9896 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9897 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9898 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9899 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9900 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9901 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9902 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9903 .rlen = 496,
f44d83d1 9904 .also_non_np = 1,
3b9b8fe0
AB
9905 .np = 3,
9906 .tap = { 496 - 20, 4, 16 },
9d25917d
JK
9907 },
9908};
9909
9910static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
9911 { /* Generated with Crypto++ */
9912 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9913 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9914 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9915 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9916 .klen = 32,
9917 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9918 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9919 .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
9920 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9921 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9922 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9923 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9924 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9925 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9926 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9927 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9928 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9929 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9930 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9931 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9932 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9933 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9934 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9935 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9f28e97d
JK
9936 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9937 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9938 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9939 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9940 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9941 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9942 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9943 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9944 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9945 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9946 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9947 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9948 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9949 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9950 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9951 "\x81\x92\x66\x67\x15\x1E\x39\x98"
9952 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9953 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9954 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9955 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9956 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9957 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9958 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9959 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9960 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9961 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9962 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9963 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9964 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9965 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9966 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9967 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9968 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9969 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9970 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9971 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9972 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9973 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9974 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9975 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9976 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9977 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9978 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9979 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9980 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9981 .ilen = 496,
9d25917d
JK
9982 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9983 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9984 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9985 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9986 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9987 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9988 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9989 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9990 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9991 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9992 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9993 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9994 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9995 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9996 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9997 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9998 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
9999 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10000 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10001 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10002 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10003 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10004 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10005 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10006 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10007 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10008 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10009 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10010 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10011 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10012 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10013 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10014 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10015 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10016 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10017 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10018 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10019 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10020 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10021 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10022 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10023 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10024 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10025 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10026 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10027 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10028 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10029 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10030 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10031 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10032 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10033 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10034 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10035 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10036 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10037 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10038 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10039 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10040 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10041 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10042 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10043 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10044 .rlen = 496,
f44d83d1 10045 .also_non_np = 1,
3b9b8fe0
AB
10046 .np = 3,
10047 .tap = { 496 - 20, 4, 16 },
9d25917d
JK
10048 },
10049};
10050
10051static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
10052 { /* Generated with Crypto++ */
10053 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10054 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10055 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10056 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10057 .klen = 32,
10058 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10059 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10060 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10061 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10062 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10063 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10064 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10065 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10066 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10067 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10068 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10069 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10070 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10071 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10072 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10073 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10074 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10075 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10076 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
10077 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10078 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10079 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10080 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10081 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10082 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10083 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10084 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10085 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10086 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10087 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10088 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10089 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10090 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10091 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10092 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10093 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10094 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10095 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10096 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10097 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10098 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10099 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10100 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10101 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10102 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10103 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10104 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10105 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10106 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10107 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10108 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10109 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10110 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10111 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10112 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10113 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10114 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10115 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10116 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10117 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10118 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10119 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10120 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10121 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10122 .ilen = 496,
9d25917d
JK
10123 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10124 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10125 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10126 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10127 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10128 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10129 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10130 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10131 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10132 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10133 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10134 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10135 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10136 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10137 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10138 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10139 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9f28e97d
JK
10140 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10141 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10142 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10143 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10144 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10145 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10146 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10147 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10148 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10149 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10150 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10151 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10152 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10153 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10154 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10155 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10156 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10157 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10158 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10159 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10160 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10161 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10162 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10163 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10164 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10165 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10166 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10167 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10168 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10169 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10170 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10171 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10172 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10173 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10174 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10175 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10176 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10177 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10178 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10179 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10180 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10181 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10182 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10183 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10184 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
10185 .rlen = 496,
9d25917d
JK
10186 }, { /* Generated with Crypto++ */
10187 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10188 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10189 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10190 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10191 .klen = 32,
10192 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10193 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10194 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10195 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10196 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10197 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10198 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10199 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10200 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10201 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10202 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10203 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10204 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10205 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10206 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10207 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10208 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10209 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10210 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10211 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9f28e97d
JK
10212 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10213 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10214 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10215 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10216 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10217 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10218 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10219 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10220 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10221 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10222 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10223 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10224 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10225 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10226 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10227 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10228 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10229 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10230 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10231 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10232 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10233 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10234 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10235 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10236 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10237 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10238 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10239 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10240 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10241 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10242 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10243 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10244 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10245 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10246 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10247 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10248 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10249 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10250 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10251 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10252 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10253 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10254 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10255 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
10256 "\x2B\xC2\x59",
10257 .ilen = 499,
9d25917d
JK
10258 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10259 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10260 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10261 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10262 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10263 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10264 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10265 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10266 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10267 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10268 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10269 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10270 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10271 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10272 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10273 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10274 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10275 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9f28e97d
JK
10276 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10277 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10278 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10279 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10280 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10281 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10282 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10283 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10284 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10285 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10286 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10287 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10288 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10289 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10290 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10291 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10292 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10293 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10294 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10295 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10296 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10297 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10298 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10299 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10300 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10301 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10302 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10303 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10304 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10305 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10306 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10307 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10308 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10309 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10310 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10311 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10312 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10313 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10314 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10315 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10316 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10317 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10318 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10319 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
10320 "\x38\xE2\xE5",
10321 .rlen = 499,
f44d83d1
JK
10322 .also_non_np = 1,
10323 .np = 2,
9f28e97d 10324 .tap = { 499 - 16, 16 },
549595a0
JK
10325 }, { /* Generated with Crypto++ */
10326 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10327 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10328 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10329 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10330 .klen = 32,
10331 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
10332 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
10333 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10334 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10335 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10336 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10337 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10338 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10339 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10340 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10341 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10342 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10343 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10344 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10345 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10346 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10347 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10348 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10349 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10350 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10351 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10352 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10353 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10354 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10355 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10356 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10357 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10358 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10359 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10360 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10361 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10362 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10363 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10364 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10365 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10366 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10367 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10368 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10369 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10370 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10371 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10372 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10373 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10374 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10375 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10376 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10377 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10378 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10379 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10380 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10381 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10382 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10383 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10384 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10385 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10386 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10387 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10388 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10389 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10390 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10391 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10392 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10393 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10394 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10395 .ilen = 496,
10396 .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
10397 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
10398 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
10399 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
10400 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
10401 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
10402 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
10403 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
10404 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
10405 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
10406 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
10407 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
10408 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
10409 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
10410 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
10411 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
10412 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
10413 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
10414 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
10415 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
10416 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
10417 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
10418 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
10419 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
10420 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
10421 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
10422 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
10423 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
10424 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
10425 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
10426 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
10427 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
10428 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
10429 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
10430 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
10431 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
10432 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
10433 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
10434 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
10435 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
10436 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
10437 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
10438 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
10439 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
10440 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
10441 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
10442 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
10443 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
10444 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
10445 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
10446 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
10447 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
10448 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
10449 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
10450 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
10451 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
10452 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
10453 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
10454 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
10455 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
10456 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
10457 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
10458 .rlen = 496,
9d25917d
JK
10459 },
10460};
10461
10462static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
10463 { /* Generated with Crypto++ */
10464 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10465 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10466 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10467 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10468 .klen = 32,
10469 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10470 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10471 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10472 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10473 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10474 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10475 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10476 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10477 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10478 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10479 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10480 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10481 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10482 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10483 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10484 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10485 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10486 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10487 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9f28e97d
JK
10488 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10489 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10490 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10491 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10492 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10493 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10494 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10495 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10496 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10497 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10498 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10499 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10500 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10501 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10502 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10503 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10504 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10505 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10506 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10507 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10508 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10509 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10510 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10511 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10512 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10513 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10514 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10515 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10516 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10517 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10518 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10519 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10520 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10521 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10522 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10523 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10524 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10525 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10526 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10527 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10528 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10529 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10530 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10531 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10532 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
10533 .ilen = 496,
9d25917d
JK
10534 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10535 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10536 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10537 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10538 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10539 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10540 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10541 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10542 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10543 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10544 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10545 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10546 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10547 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10548 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10549 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10550 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
10551 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10552 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10553 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10554 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10555 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10556 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10557 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10558 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10559 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10560 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10561 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10562 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10563 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10564 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10565 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10566 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10567 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10568 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10569 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10570 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10571 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10572 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10573 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10574 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10575 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10576 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10577 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10578 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10579 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10580 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10581 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10582 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10583 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10584 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10585 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10586 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10587 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10588 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10589 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10590 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10591 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10592 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10593 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10594 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10595 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10596 .rlen = 496,
9d25917d
JK
10597 }, { /* Generated with Crypto++ */
10598 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10599 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10600 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10601 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10602 .klen = 32,
10603 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10604 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10605 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10606 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10607 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10608 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10609 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10610 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10611 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10612 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10613 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10614 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10615 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10616 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10617 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10618 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10619 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10620 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10621 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10622 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9f28e97d
JK
10623 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10624 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10625 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10626 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10627 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10628 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10629 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10630 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10631 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10632 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10633 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10634 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10635 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10636 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10637 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10638 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10639 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10640 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10641 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10642 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10643 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10644 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10645 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10646 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10647 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10648 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10649 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10650 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10651 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10652 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10653 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10654 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10655 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10656 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10657 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10658 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10659 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10660 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10661 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10662 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10663 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10664 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10665 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10666 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
10667 "\x38\xE2\xE5",
10668 .ilen = 499,
9d25917d
JK
10669 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10670 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10671 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10672 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10673 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10674 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10675 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10676 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10677 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10678 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10679 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10680 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10681 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10682 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10683 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10684 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10685 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10686 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9f28e97d
JK
10687 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10688 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10689 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10690 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10691 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10692 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10693 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10694 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10695 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10696 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10697 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10698 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10699 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10700 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10701 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10702 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10703 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10704 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10705 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10706 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10707 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10708 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10709 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10710 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10711 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10712 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10713 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10714 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10715 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10716 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10717 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10718 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10719 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10720 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10721 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10722 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10723 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10724 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10725 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10726 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10727 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10728 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10729 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10730 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
10731 "\x2B\xC2\x59",
10732 .rlen = 499,
f44d83d1
JK
10733 .also_non_np = 1,
10734 .np = 2,
9f28e97d 10735 .tap = { 499 - 16, 16 },
549595a0
JK
10736 }, { /* Generated with Crypto++ */
10737 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10738 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10739 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10740 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10741 .klen = 32,
10742 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
10743 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
10744 .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
10745 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
10746 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
10747 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
10748 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
10749 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
10750 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
10751 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
10752 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
10753 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
10754 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
10755 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
10756 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
10757 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
10758 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
10759 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
10760 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
10761 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
10762 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
10763 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
10764 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
10765 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
10766 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
10767 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
10768 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
10769 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
10770 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
10771 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
10772 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
10773 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
10774 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
10775 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
10776 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
10777 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
10778 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
10779 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
10780 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
10781 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
10782 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
10783 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
10784 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
10785 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
10786 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
10787 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
10788 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
10789 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
10790 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
10791 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
10792 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
10793 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
10794 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
10795 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
10796 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
10797 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
10798 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
10799 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
10800 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
10801 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
10802 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
10803 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
10804 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
10805 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
10806 .ilen = 496,
10807 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10808 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10809 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10810 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10811 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10812 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10813 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10814 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10815 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10816 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10817 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10818 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10819 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10820 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10821 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10822 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10823 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10824 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10825 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10826 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10827 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10828 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10829 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10830 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10831 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10832 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10833 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10834 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10835 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10836 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10837 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10838 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10839 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10840 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10841 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10842 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10843 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10844 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10845 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10846 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10847 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10848 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10849 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10850 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10851 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10852 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10853 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10854 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10855 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10856 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10857 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10858 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10859 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10860 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10861 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10862 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10863 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10864 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10865 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10866 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10867 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10868 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10869 .rlen = 496,
9d25917d
JK
10870 },
10871};
da7f033d 10872
d7bfc0fa
JK
10873static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
10874 /* Generated from AES-LRW test vectors */
10875 {
10876 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
10877 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
10878 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
10879 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
10880 .klen = 32,
10881 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10882 "\x00\x00\x00\x00\x00\x00\x00\x01",
10883 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10884 "\x38\x39\x41\x42\x43\x44\x45\x46",
10885 .ilen = 16,
10886 .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
10887 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
10888 .rlen = 16,
10889 }, {
10890 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
10891 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
10892 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
10893 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
10894 .klen = 32,
10895 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10896 "\x00\x00\x00\x00\x00\x00\x00\x02",
10897 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10898 "\x38\x39\x41\x42\x43\x44\x45\x46",
10899 .ilen = 16,
10900 .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
10901 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
10902 .rlen = 16,
10903 }, {
10904 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
10905 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
10906 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
10907 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
10908 .klen = 32,
10909 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10910 "\x00\x00\x00\x02\x00\x00\x00\x00",
10911 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10912 "\x38\x39\x41\x42\x43\x44\x45\x46",
10913 .ilen = 16,
10914 .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
10915 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
10916 .rlen = 16,
10917 }, {
10918 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
10919 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
10920 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
10921 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
10922 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
10923 .klen = 40,
10924 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10925 "\x00\x00\x00\x00\x00\x00\x00\x01",
10926 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10927 "\x38\x39\x41\x42\x43\x44\x45\x46",
10928 .ilen = 16,
10929 .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
10930 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
10931 .rlen = 16,
10932 }, {
10933 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
10934 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
10935 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
10936 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
10937 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
10938 .klen = 40,
10939 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10940 "\x00\x00\x00\x02\x00\x00\x00\x00",
10941 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10942 "\x38\x39\x41\x42\x43\x44\x45\x46",
10943 .ilen = 16,
10944 .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
10945 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
10946 .rlen = 16,
10947 }, {
10948 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10949 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10950 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10951 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10952 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10953 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10954 .klen = 48,
10955 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10956 "\x00\x00\x00\x00\x00\x00\x00\x01",
10957 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10958 "\x38\x39\x41\x42\x43\x44\x45\x46",
10959 .ilen = 16,
10960 .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
10961 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
10962 .rlen = 16,
10963 }, {
10964 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10965 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10966 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10967 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10968 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10969 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10970 .klen = 48,
10971 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10972 "\x00\x00\x00\x02\x00\x00\x00\x00",
10973 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10974 "\x38\x39\x41\x42\x43\x44\x45\x46",
10975 .ilen = 16,
10976 .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
10977 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
10978 .rlen = 16,
10979 }, {
10980 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10981 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10982 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10983 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10984 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10985 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10986 .klen = 48,
10987 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10988 "\x00\x00\x00\x00\x00\x00\x00\x01",
10989 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10990 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10991 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10992 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10993 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10994 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10995 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10996 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10997 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10998 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10999 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
11000 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
11001 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
11002 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
11003 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
11004 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
11005 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
11006 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
11007 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
11008 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
11009 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
11010 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
11011 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
11012 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
11013 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
11014 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
11015 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
11016 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
11017 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
11018 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
11019 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
11020 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
11021 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
11022 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
11023 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
11024 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
11025 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
11026 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
11027 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
11028 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
11029 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
11030 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
11031 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
11032 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
11033 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
11034 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
11035 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
11036 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
11037 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
11038 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
11039 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
11040 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
11041 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
11042 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
11043 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
11044 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
11045 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
11046 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
11047 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
11048 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
11049 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
11050 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
11051 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
11052 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
11053 .ilen = 512,
11054 .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
11055 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
11056 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
11057 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
11058 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
11059 "\xce\xab\xda\x33\x30\x20\x12\xfa"
11060 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
11061 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
11062 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
11063 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
11064 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
11065 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
11066 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
11067 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
11068 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
11069 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
11070 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
11071 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
11072 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
11073 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
11074 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
11075 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
11076 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
11077 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
11078 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
11079 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
11080 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
11081 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
11082 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
11083 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
11084 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
11085 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
11086 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
11087 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
11088 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
11089 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
11090 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
11091 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
11092 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
11093 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
11094 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
11095 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
11096 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
11097 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
11098 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
11099 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
11100 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
11101 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
11102 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
11103 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
11104 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
11105 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
11106 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
11107 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
11108 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
11109 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
11110 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
11111 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
11112 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
11113 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
11114 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
11115 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
11116 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
11117 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
11118 .rlen = 512,
f44d83d1 11119 .also_non_np = 1,
3b9b8fe0
AB
11120 .np = 3,
11121 .tap = { 512 - 20, 4, 16 },
d7bfc0fa
JK
11122 },
11123};
11124
11125static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
11126 /* Generated from AES-LRW test vectors */
11127 /* same as enc vectors with input and result reversed */
11128 {
11129 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
11130 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
11131 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
11132 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
11133 .klen = 32,
11134 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11135 "\x00\x00\x00\x00\x00\x00\x00\x01",
11136 .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
11137 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
11138 .ilen = 16,
11139 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11140 "\x38\x39\x41\x42\x43\x44\x45\x46",
11141 .rlen = 16,
11142 }, {
11143 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
11144 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
11145 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
11146 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
11147 .klen = 32,
11148 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11149 "\x00\x00\x00\x00\x00\x00\x00\x02",
11150 .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
11151 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
11152 .ilen = 16,
11153 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11154 "\x38\x39\x41\x42\x43\x44\x45\x46",
11155 .rlen = 16,
11156 }, {
11157 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
11158 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
11159 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
11160 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
11161 .klen = 32,
11162 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11163 "\x00\x00\x00\x02\x00\x00\x00\x00",
11164 .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
11165 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
11166 .ilen = 16,
11167 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11168 "\x38\x39\x41\x42\x43\x44\x45\x46",
11169 .rlen = 16,
11170 }, {
11171 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
11172 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
11173 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
11174 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
11175 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
11176 .klen = 40,
11177 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11178 "\x00\x00\x00\x00\x00\x00\x00\x01",
11179 .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
11180 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
11181 .ilen = 16,
11182 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11183 "\x38\x39\x41\x42\x43\x44\x45\x46",
11184 .rlen = 16,
11185 }, {
11186 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
11187 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
11188 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
11189 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
11190 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
11191 .klen = 40,
11192 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11193 "\x00\x00\x00\x02\x00\x00\x00\x00",
11194 .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
11195 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
11196 .ilen = 16,
11197 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11198 "\x38\x39\x41\x42\x43\x44\x45\x46",
11199 .rlen = 16,
11200 }, {
11201 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11202 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11203 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11204 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11205 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11206 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11207 .klen = 48,
11208 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11209 "\x00\x00\x00\x00\x00\x00\x00\x01",
11210 .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
11211 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
11212 .ilen = 16,
11213 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11214 "\x38\x39\x41\x42\x43\x44\x45\x46",
11215 .rlen = 16,
11216 }, {
11217 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
11218 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
11219 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
11220 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
11221 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
11222 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
11223 .klen = 48,
11224 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11225 "\x00\x00\x00\x02\x00\x00\x00\x00",
11226 .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
11227 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
11228 .ilen = 16,
11229 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11230 "\x38\x39\x41\x42\x43\x44\x45\x46",
11231 .rlen = 16,
11232 }, {
11233 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11234 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11235 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11236 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11237 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11238 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11239 .klen = 48,
11240 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11241 "\x00\x00\x00\x00\x00\x00\x00\x01",
11242 .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
11243 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
11244 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
11245 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
11246 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
11247 "\xce\xab\xda\x33\x30\x20\x12\xfa"
11248 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
11249 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
11250 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
11251 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
11252 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
11253 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
11254 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
11255 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
11256 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
11257 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
11258 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
11259 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
11260 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
11261 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
11262 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
11263 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
11264 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
11265 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
11266 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
11267 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
11268 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
11269 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
11270 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
11271 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
11272 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
11273 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
11274 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
11275 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
11276 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
11277 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
11278 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
11279 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
11280 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
11281 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
11282 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
11283 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
11284 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
11285 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
11286 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
11287 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
11288 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
11289 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
11290 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
11291 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
11292 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
11293 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
11294 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
11295 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
11296 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
11297 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
11298 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
11299 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
11300 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
11301 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
11302 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
11303 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
11304 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
11305 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
11306 .ilen = 512,
11307 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
11308 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
11309 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
11310 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
11311 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
11312 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
11313 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
11314 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
11315 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
11316 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
11317 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
11318 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
11319 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
11320 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
11321 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
11322 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
11323 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
11324 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
11325 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
11326 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
11327 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
11328 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
11329 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
11330 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
11331 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
11332 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
11333 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
11334 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
11335 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
11336 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
11337 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
11338 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
11339 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
11340 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
11341 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
11342 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
11343 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
11344 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
11345 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
11346 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
11347 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
11348 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
11349 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
11350 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
11351 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
11352 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
11353 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
11354 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
11355 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
11356 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
11357 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
11358 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
11359 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
11360 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
11361 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
11362 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
11363 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
11364 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
11365 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
11366 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
11367 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
11368 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
11369 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
11370 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
11371 .rlen = 512,
f44d83d1 11372 .also_non_np = 1,
3b9b8fe0
AB
11373 .np = 3,
11374 .tap = { 512 - 20, 4, 16 },
d7bfc0fa
JK
11375 },
11376};
11377
18be20b9
JK
11378static struct cipher_testvec serpent_xts_enc_tv_template[] = {
11379 /* Generated from AES-XTS test vectors */
11380 {
11381 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
11382 "\x00\x00\x00\x00\x00\x00\x00\x00"
11383 "\x00\x00\x00\x00\x00\x00\x00\x00"
11384 "\x00\x00\x00\x00\x00\x00\x00\x00",
11385 .klen = 32,
11386 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11387 "\x00\x00\x00\x00\x00\x00\x00\x00",
11388 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11389 "\x00\x00\x00\x00\x00\x00\x00\x00"
11390 "\x00\x00\x00\x00\x00\x00\x00\x00"
11391 "\x00\x00\x00\x00\x00\x00\x00\x00",
11392 .ilen = 32,
11393 .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
11394 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
11395 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
11396 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
11397 .rlen = 32,
11398 }, {
11399 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
11400 "\x11\x11\x11\x11\x11\x11\x11\x11"
11401 "\x22\x22\x22\x22\x22\x22\x22\x22"
11402 "\x22\x22\x22\x22\x22\x22\x22\x22",
11403 .klen = 32,
11404 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11405 "\x00\x00\x00\x00\x00\x00\x00\x00",
11406 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
11407 "\x44\x44\x44\x44\x44\x44\x44\x44"
11408 "\x44\x44\x44\x44\x44\x44\x44\x44"
11409 "\x44\x44\x44\x44\x44\x44\x44\x44",
11410 .ilen = 32,
11411 .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
11412 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
11413 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
11414 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
11415 .rlen = 32,
11416 }, {
11417 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
11418 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
11419 "\x22\x22\x22\x22\x22\x22\x22\x22"
11420 "\x22\x22\x22\x22\x22\x22\x22\x22",
11421 .klen = 32,
11422 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11423 "\x00\x00\x00\x00\x00\x00\x00\x00",
11424 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
11425 "\x44\x44\x44\x44\x44\x44\x44\x44"
11426 "\x44\x44\x44\x44\x44\x44\x44\x44"
11427 "\x44\x44\x44\x44\x44\x44\x44\x44",
11428 .ilen = 32,
11429 .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
11430 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
11431 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
11432 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
11433 .rlen = 32,
11434 }, {
11435 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11436 "\x23\x53\x60\x28\x74\x71\x35\x26"
11437 "\x31\x41\x59\x26\x53\x58\x97\x93"
11438 "\x23\x84\x62\x64\x33\x83\x27\x95",
11439 .klen = 32,
11440 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11441 "\x00\x00\x00\x00\x00\x00\x00\x00",
11442 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
11443 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11444 "\x10\x11\x12\x13\x14\x15\x16\x17"
11445 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11446 "\x20\x21\x22\x23\x24\x25\x26\x27"
11447 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11448 "\x30\x31\x32\x33\x34\x35\x36\x37"
11449 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11450 "\x40\x41\x42\x43\x44\x45\x46\x47"
11451 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11452 "\x50\x51\x52\x53\x54\x55\x56\x57"
11453 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11454 "\x60\x61\x62\x63\x64\x65\x66\x67"
11455 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11456 "\x70\x71\x72\x73\x74\x75\x76\x77"
11457 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11458 "\x80\x81\x82\x83\x84\x85\x86\x87"
11459 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11460 "\x90\x91\x92\x93\x94\x95\x96\x97"
11461 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11462 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11463 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11464 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11465 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11466 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11467 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11468 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11469 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11470 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11471 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11472 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11473 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11474 "\x00\x01\x02\x03\x04\x05\x06\x07"
11475 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11476 "\x10\x11\x12\x13\x14\x15\x16\x17"
11477 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11478 "\x20\x21\x22\x23\x24\x25\x26\x27"
11479 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11480 "\x30\x31\x32\x33\x34\x35\x36\x37"
11481 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11482 "\x40\x41\x42\x43\x44\x45\x46\x47"
11483 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11484 "\x50\x51\x52\x53\x54\x55\x56\x57"
11485 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11486 "\x60\x61\x62\x63\x64\x65\x66\x67"
11487 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11488 "\x70\x71\x72\x73\x74\x75\x76\x77"
11489 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11490 "\x80\x81\x82\x83\x84\x85\x86\x87"
11491 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11492 "\x90\x91\x92\x93\x94\x95\x96\x97"
11493 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11494 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11495 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11496 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11497 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11498 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11499 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11500 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11501 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11502 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11503 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11504 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11505 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11506 .ilen = 512,
11507 .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
11508 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
11509 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
11510 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
11511 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
11512 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
11513 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
11514 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
11515 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
11516 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
11517 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
11518 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
11519 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
11520 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
11521 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
11522 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
11523 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
11524 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
11525 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
11526 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
11527 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
11528 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
11529 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
11530 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
11531 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
11532 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
11533 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
11534 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
11535 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
11536 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
11537 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
11538 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
11539 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
11540 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
11541 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
11542 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
11543 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
11544 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
11545 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
11546 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
11547 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
11548 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
11549 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
11550 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
11551 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
11552 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
11553 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
11554 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
11555 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
11556 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
11557 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
11558 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
11559 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
11560 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
11561 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
11562 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
11563 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
11564 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
11565 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
11566 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
11567 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
11568 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
11569 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
11570 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
11571 .rlen = 512,
11572 }, {
11573 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11574 "\x23\x53\x60\x28\x74\x71\x35\x26"
11575 "\x62\x49\x77\x57\x24\x70\x93\x69"
11576 "\x99\x59\x57\x49\x66\x96\x76\x27"
11577 "\x31\x41\x59\x26\x53\x58\x97\x93"
11578 "\x23\x84\x62\x64\x33\x83\x27\x95"
11579 "\x02\x88\x41\x97\x16\x93\x99\x37"
11580 "\x51\x05\x82\x09\x74\x94\x45\x92",
11581 .klen = 64,
11582 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
11583 "\x00\x00\x00\x00\x00\x00\x00\x00",
11584 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
11585 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11586 "\x10\x11\x12\x13\x14\x15\x16\x17"
11587 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11588 "\x20\x21\x22\x23\x24\x25\x26\x27"
11589 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11590 "\x30\x31\x32\x33\x34\x35\x36\x37"
11591 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11592 "\x40\x41\x42\x43\x44\x45\x46\x47"
11593 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11594 "\x50\x51\x52\x53\x54\x55\x56\x57"
11595 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11596 "\x60\x61\x62\x63\x64\x65\x66\x67"
11597 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11598 "\x70\x71\x72\x73\x74\x75\x76\x77"
11599 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11600 "\x80\x81\x82\x83\x84\x85\x86\x87"
11601 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11602 "\x90\x91\x92\x93\x94\x95\x96\x97"
11603 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11604 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11605 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11606 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11607 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11608 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11609 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11610 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11611 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11612 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11613 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11614 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11615 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11616 "\x00\x01\x02\x03\x04\x05\x06\x07"
11617 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11618 "\x10\x11\x12\x13\x14\x15\x16\x17"
11619 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11620 "\x20\x21\x22\x23\x24\x25\x26\x27"
11621 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11622 "\x30\x31\x32\x33\x34\x35\x36\x37"
11623 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11624 "\x40\x41\x42\x43\x44\x45\x46\x47"
11625 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11626 "\x50\x51\x52\x53\x54\x55\x56\x57"
11627 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11628 "\x60\x61\x62\x63\x64\x65\x66\x67"
11629 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11630 "\x70\x71\x72\x73\x74\x75\x76\x77"
11631 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11632 "\x80\x81\x82\x83\x84\x85\x86\x87"
11633 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11634 "\x90\x91\x92\x93\x94\x95\x96\x97"
11635 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11636 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11637 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11638 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11639 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11640 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11641 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11642 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11643 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11644 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11645 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11646 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11647 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11648 .ilen = 512,
11649 .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
11650 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
11651 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
11652 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
11653 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
11654 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
11655 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
11656 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
11657 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
11658 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
11659 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
11660 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
11661 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
11662 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
11663 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
11664 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
11665 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
11666 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
11667 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
11668 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
11669 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
11670 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
11671 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
11672 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
11673 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
11674 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
11675 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
11676 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
11677 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
11678 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
11679 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
11680 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
11681 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
11682 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
11683 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
11684 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
11685 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
11686 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
11687 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
11688 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
11689 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
11690 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
11691 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
11692 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
11693 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
11694 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
11695 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
11696 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
11697 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
11698 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
11699 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
11700 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
11701 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
11702 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
11703 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
11704 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
11705 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
11706 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
11707 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
11708 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
11709 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
11710 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
11711 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
11712 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
11713 .rlen = 512,
f44d83d1 11714 .also_non_np = 1,
3b9b8fe0
AB
11715 .np = 3,
11716 .tap = { 512 - 20, 4, 16 },
18be20b9
JK
11717 },
11718};
11719
11720static struct cipher_testvec serpent_xts_dec_tv_template[] = {
11721 /* Generated from AES-XTS test vectors */
11722 /* same as enc vectors with input and result reversed */
11723 {
11724 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
11725 "\x00\x00\x00\x00\x00\x00\x00\x00"
11726 "\x00\x00\x00\x00\x00\x00\x00\x00"
11727 "\x00\x00\x00\x00\x00\x00\x00\x00",
11728 .klen = 32,
11729 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11730 "\x00\x00\x00\x00\x00\x00\x00\x00",
11731 .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
11732 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
11733 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
11734 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
11735 .ilen = 32,
11736 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
11737 "\x00\x00\x00\x00\x00\x00\x00\x00"
11738 "\x00\x00\x00\x00\x00\x00\x00\x00"
11739 "\x00\x00\x00\x00\x00\x00\x00\x00",
11740 .rlen = 32,
11741 }, {
11742 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
11743 "\x11\x11\x11\x11\x11\x11\x11\x11"
11744 "\x22\x22\x22\x22\x22\x22\x22\x22"
11745 "\x22\x22\x22\x22\x22\x22\x22\x22",
11746 .klen = 32,
11747 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11748 "\x00\x00\x00\x00\x00\x00\x00\x00",
11749 .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
11750 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
11751 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
11752 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
11753 .ilen = 32,
11754 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
11755 "\x44\x44\x44\x44\x44\x44\x44\x44"
11756 "\x44\x44\x44\x44\x44\x44\x44\x44"
11757 "\x44\x44\x44\x44\x44\x44\x44\x44",
11758 .rlen = 32,
11759 }, {
11760 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
11761 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
11762 "\x22\x22\x22\x22\x22\x22\x22\x22"
11763 "\x22\x22\x22\x22\x22\x22\x22\x22",
11764 .klen = 32,
11765 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11766 "\x00\x00\x00\x00\x00\x00\x00\x00",
11767 .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
11768 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
11769 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
11770 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
11771 .ilen = 32,
11772 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
11773 "\x44\x44\x44\x44\x44\x44\x44\x44"
11774 "\x44\x44\x44\x44\x44\x44\x44\x44"
11775 "\x44\x44\x44\x44\x44\x44\x44\x44",
11776 .rlen = 32,
11777 }, {
11778 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11779 "\x23\x53\x60\x28\x74\x71\x35\x26"
11780 "\x31\x41\x59\x26\x53\x58\x97\x93"
11781 "\x23\x84\x62\x64\x33\x83\x27\x95",
11782 .klen = 32,
11783 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11784 "\x00\x00\x00\x00\x00\x00\x00\x00",
11785 .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
11786 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
11787 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
11788 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
11789 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
11790 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
11791 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
11792 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
11793 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
11794 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
11795 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
11796 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
11797 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
11798 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
11799 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
11800 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
11801 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
11802 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
11803 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
11804 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
11805 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
11806 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
11807 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
11808 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
11809 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
11810 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
11811 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
11812 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
11813 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
11814 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
11815 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
11816 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
11817 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
11818 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
11819 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
11820 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
11821 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
11822 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
11823 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
11824 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
11825 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
11826 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
11827 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
11828 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
11829 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
11830 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
11831 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
11832 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
11833 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
11834 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
11835 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
11836 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
11837 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
11838 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
11839 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
11840 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
11841 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
11842 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
11843 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
11844 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
11845 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
11846 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
11847 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
11848 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
11849 .ilen = 512,
11850 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11851 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11852 "\x10\x11\x12\x13\x14\x15\x16\x17"
11853 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11854 "\x20\x21\x22\x23\x24\x25\x26\x27"
11855 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11856 "\x30\x31\x32\x33\x34\x35\x36\x37"
11857 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11858 "\x40\x41\x42\x43\x44\x45\x46\x47"
11859 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11860 "\x50\x51\x52\x53\x54\x55\x56\x57"
11861 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11862 "\x60\x61\x62\x63\x64\x65\x66\x67"
11863 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11864 "\x70\x71\x72\x73\x74\x75\x76\x77"
11865 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11866 "\x80\x81\x82\x83\x84\x85\x86\x87"
11867 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11868 "\x90\x91\x92\x93\x94\x95\x96\x97"
11869 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11870 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11871 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11872 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11873 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11874 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11875 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11876 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11877 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11878 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11879 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11880 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11881 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11882 "\x00\x01\x02\x03\x04\x05\x06\x07"
11883 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11884 "\x10\x11\x12\x13\x14\x15\x16\x17"
11885 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11886 "\x20\x21\x22\x23\x24\x25\x26\x27"
11887 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11888 "\x30\x31\x32\x33\x34\x35\x36\x37"
11889 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11890 "\x40\x41\x42\x43\x44\x45\x46\x47"
11891 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11892 "\x50\x51\x52\x53\x54\x55\x56\x57"
11893 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11894 "\x60\x61\x62\x63\x64\x65\x66\x67"
11895 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11896 "\x70\x71\x72\x73\x74\x75\x76\x77"
11897 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11898 "\x80\x81\x82\x83\x84\x85\x86\x87"
11899 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11900 "\x90\x91\x92\x93\x94\x95\x96\x97"
11901 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11902 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11903 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11904 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11905 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11906 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11907 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11908 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11909 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11910 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11911 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11912 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11913 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11914 .rlen = 512,
11915 }, {
11916 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11917 "\x23\x53\x60\x28\x74\x71\x35\x26"
11918 "\x62\x49\x77\x57\x24\x70\x93\x69"
11919 "\x99\x59\x57\x49\x66\x96\x76\x27"
11920 "\x31\x41\x59\x26\x53\x58\x97\x93"
11921 "\x23\x84\x62\x64\x33\x83\x27\x95"
11922 "\x02\x88\x41\x97\x16\x93\x99\x37"
11923 "\x51\x05\x82\x09\x74\x94\x45\x92",
11924 .klen = 64,
11925 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
11926 "\x00\x00\x00\x00\x00\x00\x00\x00",
11927 .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
11928 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
11929 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
11930 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
11931 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
11932 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
11933 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
11934 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
11935 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
11936 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
11937 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
11938 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
11939 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
11940 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
11941 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
11942 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
11943 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
11944 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
11945 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
11946 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
11947 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
11948 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
11949 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
11950 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
11951 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
11952 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
11953 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
11954 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
11955 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
11956 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
11957 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
11958 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
11959 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
11960 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
11961 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
11962 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
11963 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
11964 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
11965 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
11966 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
11967 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
11968 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
11969 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
11970 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
11971 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
11972 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
11973 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
11974 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
11975 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
11976 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
11977 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
11978 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
11979 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
11980 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
11981 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
11982 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
11983 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
11984 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
11985 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
11986 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
11987 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
11988 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
11989 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
11990 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
11991 .ilen = 512,
11992 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11993 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11994 "\x10\x11\x12\x13\x14\x15\x16\x17"
11995 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11996 "\x20\x21\x22\x23\x24\x25\x26\x27"
11997 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11998 "\x30\x31\x32\x33\x34\x35\x36\x37"
11999 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12000 "\x40\x41\x42\x43\x44\x45\x46\x47"
12001 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12002 "\x50\x51\x52\x53\x54\x55\x56\x57"
12003 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12004 "\x60\x61\x62\x63\x64\x65\x66\x67"
12005 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12006 "\x70\x71\x72\x73\x74\x75\x76\x77"
12007 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12008 "\x80\x81\x82\x83\x84\x85\x86\x87"
12009 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12010 "\x90\x91\x92\x93\x94\x95\x96\x97"
12011 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12012 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12013 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12014 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12015 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12016 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12017 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12018 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12019 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12020 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12021 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12022 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12023 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
12024 "\x00\x01\x02\x03\x04\x05\x06\x07"
12025 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12026 "\x10\x11\x12\x13\x14\x15\x16\x17"
12027 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12028 "\x20\x21\x22\x23\x24\x25\x26\x27"
12029 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12030 "\x30\x31\x32\x33\x34\x35\x36\x37"
12031 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12032 "\x40\x41\x42\x43\x44\x45\x46\x47"
12033 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12034 "\x50\x51\x52\x53\x54\x55\x56\x57"
12035 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12036 "\x60\x61\x62\x63\x64\x65\x66\x67"
12037 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12038 "\x70\x71\x72\x73\x74\x75\x76\x77"
12039 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12040 "\x80\x81\x82\x83\x84\x85\x86\x87"
12041 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12042 "\x90\x91\x92\x93\x94\x95\x96\x97"
12043 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12044 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12045 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12046 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12047 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12048 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12049 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12050 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12051 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12052 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12053 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12054 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12055 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
12056 .rlen = 512,
f44d83d1 12057 .also_non_np = 1,
3b9b8fe0
AB
12058 .np = 3,
12059 .tap = { 512 - 20, 4, 16 },
18be20b9
JK
12060 },
12061};
12062
da7f033d 12063/* Cast6 test vectors from RFC 2612 */
9b8b0405
JG
12064#define CAST6_ENC_TEST_VECTORS 4
12065#define CAST6_DEC_TEST_VECTORS 4
12066#define CAST6_CBC_ENC_TEST_VECTORS 1
12067#define CAST6_CBC_DEC_TEST_VECTORS 1
9cac3a29
JK
12068#define CAST6_CTR_ENC_TEST_VECTORS 2
12069#define CAST6_CTR_DEC_TEST_VECTORS 2
9b8b0405
JG
12070#define CAST6_LRW_ENC_TEST_VECTORS 1
12071#define CAST6_LRW_DEC_TEST_VECTORS 1
12072#define CAST6_XTS_ENC_TEST_VECTORS 1
12073#define CAST6_XTS_DEC_TEST_VECTORS 1
da7f033d
HX
12074
12075static struct cipher_testvec cast6_enc_tv_template[] = {
12076 {
12077 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12078 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
12079 .klen = 16,
12080 .input = zeroed_string,
12081 .ilen = 16,
12082 .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
12083 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
12084 .rlen = 16,
12085 }, {
12086 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12087 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12088 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
12089 .klen = 24,
12090 .input = zeroed_string,
12091 .ilen = 16,
12092 .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
12093 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
12094 .rlen = 16,
12095 }, {
12096 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12097 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12098 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
12099 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
12100 .klen = 32,
12101 .input = zeroed_string,
12102 .ilen = 16,
12103 .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
12104 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
12105 .rlen = 16,
9b8b0405
JG
12106 }, { /* Generated from TF test vectors */
12107 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12108 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12109 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12110 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12111 .klen = 32,
12112 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12113 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12114 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12115 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12116 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12117 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12118 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12119 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12120 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12121 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12122 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12123 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12124 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12125 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12126 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12127 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12128 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12129 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12130 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12131 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12132 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12133 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12134 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12135 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12136 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12137 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12138 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12139 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12140 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12141 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12142 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12143 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12144 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12145 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12146 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12147 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12148 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12149 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12150 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12151 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12152 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12153 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12154 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12155 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12156 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12157 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12158 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12159 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12160 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12161 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12162 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12163 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12164 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12165 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12166 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12167 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12168 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12169 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12170 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12171 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12172 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12173 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12174 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12175 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12176 .ilen = 496,
12177 .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
12178 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
12179 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
12180 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
12181 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
12182 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
12183 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
12184 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
12185 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
12186 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
12187 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
12188 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
12189 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
12190 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
12191 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
12192 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
12193 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
12194 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
12195 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
12196 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
12197 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
12198 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
12199 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
12200 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
12201 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
12202 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
12203 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
12204 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
12205 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
12206 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
12207 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
12208 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
12209 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
12210 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
12211 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
12212 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
12213 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
12214 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
12215 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
12216 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
12217 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
12218 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
12219 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
12220 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
12221 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
12222 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
12223 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
12224 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
12225 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
12226 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
12227 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
12228 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
12229 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
12230 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
12231 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
12232 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
12233 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
12234 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
12235 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
12236 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
12237 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
12238 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
12239 .rlen = 496,
f44d83d1 12240 .also_non_np = 1,
3b9b8fe0
AB
12241 .np = 3,
12242 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
12243 },
12244};
12245
12246static struct cipher_testvec cast6_dec_tv_template[] = {
12247 {
12248 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12249 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
12250 .klen = 16,
12251 .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
12252 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
12253 .ilen = 16,
12254 .result = zeroed_string,
12255 .rlen = 16,
12256 }, {
12257 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12258 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12259 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
12260 .klen = 24,
12261 .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
12262 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
12263 .ilen = 16,
12264 .result = zeroed_string,
12265 .rlen = 16,
12266 }, {
12267 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12268 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12269 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
12270 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
12271 .klen = 32,
12272 .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
12273 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
12274 .ilen = 16,
12275 .result = zeroed_string,
12276 .rlen = 16,
9b8b0405
JG
12277 }, { /* Generated from TF test vectors */
12278 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12279 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12280 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12281 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12282 .klen = 32,
12283 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12284 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12285 .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
12286 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
12287 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
12288 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
12289 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
12290 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
12291 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
12292 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
12293 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
12294 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
12295 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
12296 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
12297 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
12298 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
12299 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
12300 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
12301 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
12302 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
12303 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
12304 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
12305 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
12306 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
12307 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
12308 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
12309 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
12310 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
12311 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
12312 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
12313 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
12314 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
12315 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
12316 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
12317 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
12318 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
12319 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
12320 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
12321 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
12322 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
12323 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
12324 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
12325 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
12326 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
12327 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
12328 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
12329 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
12330 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
12331 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
12332 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
12333 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
12334 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
12335 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
12336 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
12337 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
12338 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
12339 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
12340 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
12341 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
12342 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
12343 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
12344 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
12345 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
12346 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
12347 .ilen = 496,
12348 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12349 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12350 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12351 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12352 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12353 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12354 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12355 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12356 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12357 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12358 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12359 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12360 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12361 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12362 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12363 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12364 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12365 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12366 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12367 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12368 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12369 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12370 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12371 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12372 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12373 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12374 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12375 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12376 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12377 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12378 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12379 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12380 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12381 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12382 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12383 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12384 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12385 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12386 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12387 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12388 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12389 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12390 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12391 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12392 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12393 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12394 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12395 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12396 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12397 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12398 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12399 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12400 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12401 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12402 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12403 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12404 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12405 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12406 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12407 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12408 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12409 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12410 .rlen = 496,
f44d83d1 12411 .also_non_np = 1,
3b9b8fe0
AB
12412 .np = 3,
12413 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
12414 },
12415};
12416
12417static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
12418 { /* Generated from TF test vectors */
12419 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12420 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12421 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12422 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12423 .klen = 32,
12424 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12425 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12426 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12427 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12428 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12429 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12430 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12431 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12432 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12433 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12434 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12435 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12436 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12437 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12438 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12439 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12440 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12441 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12442 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12443 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12444 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12445 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12446 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12447 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12448 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12449 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12450 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12451 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12452 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12453 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12454 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12455 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12456 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12457 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12458 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12459 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12460 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12461 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12462 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12463 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12464 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12465 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12466 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12467 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12468 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12469 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12470 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12471 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12472 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12473 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12474 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12475 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12476 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12477 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12478 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12479 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12480 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12481 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12482 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12483 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12484 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12485 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12486 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12487 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12488 .ilen = 496,
12489 .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
12490 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
12491 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
12492 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
12493 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
12494 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
12495 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
12496 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
12497 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
12498 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
12499 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
12500 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
12501 "\x23\x16\x47\x72\x81\x13\x3A\x72"
12502 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
12503 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
12504 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
12505 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
12506 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
12507 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
12508 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
12509 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
12510 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
12511 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
12512 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
12513 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
12514 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
12515 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
12516 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
12517 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
12518 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
12519 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
12520 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
12521 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
12522 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
12523 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
12524 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
12525 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
12526 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
12527 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
12528 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
12529 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
12530 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
12531 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
12532 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
12533 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
12534 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
12535 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
12536 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
12537 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
12538 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
12539 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
12540 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
12541 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
12542 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
12543 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
12544 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
12545 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
12546 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
12547 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
12548 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
12549 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
12550 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
12551 .rlen = 496,
f44d83d1 12552 .also_non_np = 1,
3b9b8fe0
AB
12553 .np = 3,
12554 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
12555 },
12556};
12557
12558static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
12559 { /* Generated from TF test vectors */
12560 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12561 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12562 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12563 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12564 .klen = 32,
12565 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12566 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12567 .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
12568 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
12569 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
12570 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
12571 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
12572 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
12573 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
12574 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
12575 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
12576 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
12577 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
12578 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
12579 "\x23\x16\x47\x72\x81\x13\x3A\x72"
12580 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
12581 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
12582 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
12583 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
12584 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
12585 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
12586 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
12587 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
12588 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
12589 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
12590 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
12591 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
12592 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
12593 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
12594 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
12595 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
12596 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
12597 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
12598 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
12599 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
12600 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
12601 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
12602 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
12603 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
12604 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
12605 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
12606 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
12607 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
12608 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
12609 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
12610 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
12611 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
12612 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
12613 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
12614 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
12615 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
12616 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
12617 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
12618 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
12619 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
12620 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
12621 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
12622 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
12623 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
12624 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
12625 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
12626 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
12627 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
12628 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
12629 .ilen = 496,
12630 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12631 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12632 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12633 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12634 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12635 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12636 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12637 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12638 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12639 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12640 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12641 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12642 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12643 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12644 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12645 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12646 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12647 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12648 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12649 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12650 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12651 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12652 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12653 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12654 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12655 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12656 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12657 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12658 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12659 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12660 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12661 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12662 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12663 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12664 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12665 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12666 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12667 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12668 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12669 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12670 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12671 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12672 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12673 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12674 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12675 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12676 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12677 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12678 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12679 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12680 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12681 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12682 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12683 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12684 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12685 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12686 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12687 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12688 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12689 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12690 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12691 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12692 .rlen = 496,
f44d83d1 12693 .also_non_np = 1,
3b9b8fe0
AB
12694 .np = 3,
12695 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
12696 },
12697};
12698
12699static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
12700 { /* Generated from TF test vectors */
9cac3a29
JK
12701 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12702 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12703 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12704 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12705 .klen = 32,
12706 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12707 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12708 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12709 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12710 "\x3A",
12711 .ilen = 17,
12712 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12713 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12714 "\x57",
12715 .rlen = 17,
12716 }, { /* Generated from TF test vectors */
9b8b0405
JG
12717 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12718 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12719 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12720 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12721 .klen = 32,
12722 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12723 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12724 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12725 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12726 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12727 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12728 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12729 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12730 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12731 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12732 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12733 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12734 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12735 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12736 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12737 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12738 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12739 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12740 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12741 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12742 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12743 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12744 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12745 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12746 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12747 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12748 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12749 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12750 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12751 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12752 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12753 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12754 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12755 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12756 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12757 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12758 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12759 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12760 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12761 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12762 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12763 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12764 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12765 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12766 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12767 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12768 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12769 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12770 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12771 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12772 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12773 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12774 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12775 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12776 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12777 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12778 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12779 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12780 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12781 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12782 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12783 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12784 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12785 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12786 .ilen = 496,
12787 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12788 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12789 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
12790 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
12791 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
12792 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
12793 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
12794 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
12795 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
12796 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
12797 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
12798 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
12799 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
12800 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
12801 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
12802 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
12803 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
12804 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
12805 "\x49\x61\x22\x52\x64\x8C\x46\x41"
12806 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
12807 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
12808 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
12809 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
12810 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
12811 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
12812 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
12813 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
12814 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
12815 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
12816 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
12817 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
12818 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
12819 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
12820 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
12821 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
12822 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
12823 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
12824 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
12825 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
12826 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
12827 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
12828 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
12829 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
12830 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
12831 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
12832 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
12833 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
12834 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
12835 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
12836 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
12837 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
12838 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
12839 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
12840 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
12841 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
12842 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
12843 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
12844 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
12845 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
12846 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
12847 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
12848 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
12849 .rlen = 496,
f44d83d1 12850 .also_non_np = 1,
3b9b8fe0
AB
12851 .np = 3,
12852 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
12853 },
12854};
12855
12856static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
12857 { /* Generated from TF test vectors */
9cac3a29
JK
12858 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12859 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12860 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12861 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12862 .klen = 32,
12863 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12864 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12865 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12866 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12867 "\x57",
12868 .ilen = 17,
12869 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12870 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12871 "\x3A",
12872 .rlen = 17,
12873 }, { /* Generated from TF test vectors */
9b8b0405
JG
12874 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12875 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12876 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12877 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12878 .klen = 32,
12879 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12880 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12881 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12882 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12883 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
12884 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
12885 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
12886 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
12887 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
12888 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
12889 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
12890 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
12891 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
12892 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
12893 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
12894 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
12895 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
12896 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
12897 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
12898 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
12899 "\x49\x61\x22\x52\x64\x8C\x46\x41"
12900 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
12901 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
12902 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
12903 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
12904 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
12905 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
12906 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
12907 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
12908 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
12909 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
12910 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
12911 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
12912 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
12913 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
12914 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
12915 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
12916 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
12917 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
12918 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
12919 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
12920 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
12921 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
12922 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
12923 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
12924 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
12925 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
12926 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
12927 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
12928 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
12929 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
12930 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
12931 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
12932 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
12933 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
12934 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
12935 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
12936 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
12937 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
12938 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
12939 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
12940 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
12941 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
12942 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
12943 .ilen = 496,
12944 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12945 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12946 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12947 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12948 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12949 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12950 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12951 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12952 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12953 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12954 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12955 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12956 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12957 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12958 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12959 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12960 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12961 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12962 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12963 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12964 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12965 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12966 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12967 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12968 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12969 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12970 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12971 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12972 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12973 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12974 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12975 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12976 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12977 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12978 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12979 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12980 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12981 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12982 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12983 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12984 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12985 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12986 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12987 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12988 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12989 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12990 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12991 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12992 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12993 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12994 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12995 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12996 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12997 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12998 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12999 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
13000 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
13001 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
13002 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
13003 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
13004 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
13005 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
13006 .rlen = 496,
f44d83d1 13007 .also_non_np = 1,
3b9b8fe0
AB
13008 .np = 3,
13009 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
13010 },
13011};
13012
13013static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
13014 { /* Generated from TF test vectors */
13015 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13016 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13017 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13018 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13019 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13020 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13021 .klen = 48,
13022 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13023 "\x00\x00\x00\x00\x00\x00\x00\x01",
13024 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
13025 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13026 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13027 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13028 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13029 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13030 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13031 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13032 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13033 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13034 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13035 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13036 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13037 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13038 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13039 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13040 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13041 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13042 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13043 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13044 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13045 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13046 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13047 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13048 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13049 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13050 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13051 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13052 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13053 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13054 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13055 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13056 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13057 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13058 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13059 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13060 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13061 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13062 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13063 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13064 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13065 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13066 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13067 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13068 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13069 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13070 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13071 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13072 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13073 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13074 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13075 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13076 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13077 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13078 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13079 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13080 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13081 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13082 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13083 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13084 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13085 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13086 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13087 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13088 .ilen = 512,
13089 .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
13090 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
13091 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
13092 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
13093 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
13094 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
13095 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
13096 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
13097 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
13098 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
13099 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
13100 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
13101 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
13102 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
13103 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
13104 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
13105 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
13106 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
13107 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
13108 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
13109 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
13110 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
13111 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
13112 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
13113 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
13114 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
13115 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
13116 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
13117 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
13118 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
13119 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
13120 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
13121 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
13122 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
13123 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
13124 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
13125 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
13126 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
13127 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
13128 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
13129 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
13130 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
13131 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
13132 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
13133 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
13134 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
13135 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
13136 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
13137 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
13138 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
13139 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
13140 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
13141 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
13142 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
13143 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
13144 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
13145 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
13146 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
13147 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
13148 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
13149 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
13150 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
13151 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
13152 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
13153 .rlen = 512,
f44d83d1 13154 .also_non_np = 1,
3b9b8fe0
AB
13155 .np = 3,
13156 .tap = { 512 - 20, 4, 16 },
9b8b0405
JG
13157 },
13158};
13159
13160static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
13161 { /* Generated from TF test vectors */
13162 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13163 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13164 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13165 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13166 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13167 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13168 .klen = 48,
13169 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13170 "\x00\x00\x00\x00\x00\x00\x00\x01",
13171 .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
13172 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
13173 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
13174 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
13175 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
13176 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
13177 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
13178 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
13179 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
13180 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
13181 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
13182 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
13183 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
13184 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
13185 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
13186 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
13187 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
13188 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
13189 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
13190 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
13191 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
13192 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
13193 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
13194 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
13195 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
13196 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
13197 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
13198 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
13199 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
13200 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
13201 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
13202 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
13203 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
13204 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
13205 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
13206 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
13207 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
13208 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
13209 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
13210 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
13211 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
13212 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
13213 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
13214 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
13215 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
13216 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
13217 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
13218 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
13219 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
13220 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
13221 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
13222 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
13223 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
13224 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
13225 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
13226 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
13227 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
13228 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
13229 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
13230 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
13231 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
13232 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
13233 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
13234 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
13235 .ilen = 512,
13236 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
13237 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13238 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13239 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13240 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13241 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13242 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13243 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13244 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13245 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13246 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13247 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13248 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13249 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13250 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13251 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13252 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13253 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13254 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13255 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13256 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13257 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13258 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13259 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13260 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13261 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13262 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13263 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13264 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13265 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13266 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13267 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13268 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13269 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13270 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13271 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13272 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13273 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13274 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13275 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13276 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13277 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13278 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13279 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13280 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13281 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13282 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13283 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13284 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13285 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13286 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13287 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13288 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13289 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13290 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13291 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13292 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13293 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13294 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13295 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13296 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13297 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13298 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13299 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13300 .rlen = 512,
f44d83d1 13301 .also_non_np = 1,
3b9b8fe0
AB
13302 .np = 3,
13303 .tap = { 512 - 20, 4, 16 },
9b8b0405
JG
13304 },
13305};
13306
13307static struct cipher_testvec cast6_xts_enc_tv_template[] = {
13308 { /* Generated from TF test vectors */
13309 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13310 "\x23\x53\x60\x28\x74\x71\x35\x26"
13311 "\x62\x49\x77\x57\x24\x70\x93\x69"
13312 "\x99\x59\x57\x49\x66\x96\x76\x27"
13313 "\x31\x41\x59\x26\x53\x58\x97\x93"
13314 "\x23\x84\x62\x64\x33\x83\x27\x95"
13315 "\x02\x88\x41\x97\x16\x93\x99\x37"
13316 "\x51\x05\x82\x09\x74\x94\x45\x92",
13317 .klen = 64,
13318 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13319 "\x00\x00\x00\x00\x00\x00\x00\x00",
13320 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13321 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13322 "\x10\x11\x12\x13\x14\x15\x16\x17"
13323 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13324 "\x20\x21\x22\x23\x24\x25\x26\x27"
13325 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13326 "\x30\x31\x32\x33\x34\x35\x36\x37"
13327 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13328 "\x40\x41\x42\x43\x44\x45\x46\x47"
13329 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13330 "\x50\x51\x52\x53\x54\x55\x56\x57"
13331 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13332 "\x60\x61\x62\x63\x64\x65\x66\x67"
13333 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13334 "\x70\x71\x72\x73\x74\x75\x76\x77"
13335 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13336 "\x80\x81\x82\x83\x84\x85\x86\x87"
13337 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13338 "\x90\x91\x92\x93\x94\x95\x96\x97"
13339 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13340 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13341 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13342 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13343 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13344 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13345 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13346 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13347 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13348 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13349 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13350 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13351 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13352 "\x00\x01\x02\x03\x04\x05\x06\x07"
13353 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13354 "\x10\x11\x12\x13\x14\x15\x16\x17"
13355 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13356 "\x20\x21\x22\x23\x24\x25\x26\x27"
13357 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13358 "\x30\x31\x32\x33\x34\x35\x36\x37"
13359 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13360 "\x40\x41\x42\x43\x44\x45\x46\x47"
13361 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13362 "\x50\x51\x52\x53\x54\x55\x56\x57"
13363 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13364 "\x60\x61\x62\x63\x64\x65\x66\x67"
13365 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13366 "\x70\x71\x72\x73\x74\x75\x76\x77"
13367 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13368 "\x80\x81\x82\x83\x84\x85\x86\x87"
13369 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13370 "\x90\x91\x92\x93\x94\x95\x96\x97"
13371 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13372 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13373 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13374 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13375 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13376 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13377 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13378 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13379 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13380 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13381 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13382 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13383 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13384 .ilen = 512,
13385 .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
13386 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
13387 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
13388 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
13389 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
13390 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
13391 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
13392 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
13393 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
13394 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
13395 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
13396 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
13397 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
13398 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
13399 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
13400 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
13401 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
13402 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
13403 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
13404 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
13405 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
13406 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
13407 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
13408 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
13409 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
13410 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
13411 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
13412 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
13413 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
13414 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
13415 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
13416 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
13417 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
13418 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
13419 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
13420 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
13421 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
13422 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
13423 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
13424 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
13425 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
13426 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
13427 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
13428 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
13429 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
13430 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
13431 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
13432 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
13433 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
13434 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
13435 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
13436 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
13437 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
13438 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
13439 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
13440 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
13441 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
13442 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
13443 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
13444 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
13445 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
13446 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
13447 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
13448 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
13449 .rlen = 512,
f44d83d1 13450 .also_non_np = 1,
3b9b8fe0
AB
13451 .np = 3,
13452 .tap = { 512 - 20, 4, 16 },
9b8b0405
JG
13453 },
13454};
13455
13456static struct cipher_testvec cast6_xts_dec_tv_template[] = {
13457 { /* Generated from TF test vectors */
13458 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13459 "\x23\x53\x60\x28\x74\x71\x35\x26"
13460 "\x62\x49\x77\x57\x24\x70\x93\x69"
13461 "\x99\x59\x57\x49\x66\x96\x76\x27"
13462 "\x31\x41\x59\x26\x53\x58\x97\x93"
13463 "\x23\x84\x62\x64\x33\x83\x27\x95"
13464 "\x02\x88\x41\x97\x16\x93\x99\x37"
13465 "\x51\x05\x82\x09\x74\x94\x45\x92",
13466 .klen = 64,
13467 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13468 "\x00\x00\x00\x00\x00\x00\x00\x00",
13469 .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
13470 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
13471 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
13472 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
13473 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
13474 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
13475 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
13476 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
13477 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
13478 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
13479 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
13480 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
13481 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
13482 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
13483 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
13484 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
13485 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
13486 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
13487 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
13488 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
13489 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
13490 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
13491 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
13492 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
13493 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
13494 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
13495 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
13496 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
13497 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
13498 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
13499 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
13500 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
13501 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
13502 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
13503 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
13504 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
13505 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
13506 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
13507 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
13508 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
13509 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
13510 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
13511 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
13512 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
13513 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
13514 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
13515 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
13516 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
13517 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
13518 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
13519 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
13520 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
13521 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
13522 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
13523 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
13524 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
13525 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
13526 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
13527 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
13528 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
13529 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
13530 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
13531 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
13532 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
13533 .ilen = 512,
13534 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13535 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13536 "\x10\x11\x12\x13\x14\x15\x16\x17"
13537 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13538 "\x20\x21\x22\x23\x24\x25\x26\x27"
13539 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13540 "\x30\x31\x32\x33\x34\x35\x36\x37"
13541 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13542 "\x40\x41\x42\x43\x44\x45\x46\x47"
13543 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13544 "\x50\x51\x52\x53\x54\x55\x56\x57"
13545 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13546 "\x60\x61\x62\x63\x64\x65\x66\x67"
13547 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13548 "\x70\x71\x72\x73\x74\x75\x76\x77"
13549 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13550 "\x80\x81\x82\x83\x84\x85\x86\x87"
13551 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13552 "\x90\x91\x92\x93\x94\x95\x96\x97"
13553 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13554 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13555 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13556 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13557 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13558 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13559 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13560 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13561 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13562 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13563 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13564 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13565 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13566 "\x00\x01\x02\x03\x04\x05\x06\x07"
13567 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13568 "\x10\x11\x12\x13\x14\x15\x16\x17"
13569 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13570 "\x20\x21\x22\x23\x24\x25\x26\x27"
13571 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13572 "\x30\x31\x32\x33\x34\x35\x36\x37"
13573 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13574 "\x40\x41\x42\x43\x44\x45\x46\x47"
13575 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13576 "\x50\x51\x52\x53\x54\x55\x56\x57"
13577 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13578 "\x60\x61\x62\x63\x64\x65\x66\x67"
13579 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13580 "\x70\x71\x72\x73\x74\x75\x76\x77"
13581 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13582 "\x80\x81\x82\x83\x84\x85\x86\x87"
13583 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13584 "\x90\x91\x92\x93\x94\x95\x96\x97"
13585 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13586 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13587 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13588 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13589 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13590 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13591 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13592 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13593 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13594 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13595 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13596 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13597 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13598 .rlen = 512,
f44d83d1 13599 .also_non_np = 1,
3b9b8fe0
AB
13600 .np = 3,
13601 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
13602 },
13603};
13604
13605
13606/*
13607 * AES test vectors.
13608 */
c3b9e8f6
JK
13609#define AES_ENC_TEST_VECTORS 4
13610#define AES_DEC_TEST_VECTORS 4
13611#define AES_CBC_ENC_TEST_VECTORS 5
13612#define AES_CBC_DEC_TEST_VECTORS 5
bca4feb0
HG
13613#define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2
13614#define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2
5208ed2c
NL
13615#define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2
13616#define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2
13617#define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7
13618#define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7
13619#define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7
da7f033d
HX
13620#define AES_LRW_ENC_TEST_VECTORS 8
13621#define AES_LRW_DEC_TEST_VECTORS 8
5165e5b1
JW
13622#define AES_XTS_ENC_TEST_VECTORS 5
13623#define AES_XTS_DEC_TEST_VECTORS 5
c3b9e8f6
JK
13624#define AES_CTR_ENC_TEST_VECTORS 5
13625#define AES_CTR_DEC_TEST_VECTORS 5
ba0e14ac
PS
13626#define AES_OFB_ENC_TEST_VECTORS 1
13627#define AES_OFB_DEC_TEST_VECTORS 1
f7cb80f2
JW
13628#define AES_CTR_3686_ENC_TEST_VECTORS 7
13629#define AES_CTR_3686_DEC_TEST_VECTORS 6
da7f033d
HX
13630#define AES_GCM_ENC_TEST_VECTORS 9
13631#define AES_GCM_DEC_TEST_VECTORS 8
69435b94
AH
13632#define AES_GCM_4106_ENC_TEST_VECTORS 7
13633#define AES_GCM_4106_DEC_TEST_VECTORS 7
e9b7441a
JK
13634#define AES_GCM_4543_ENC_TEST_VECTORS 1
13635#define AES_GCM_4543_DEC_TEST_VECTORS 2
4585988f 13636#define AES_CCM_ENC_TEST_VECTORS 8
da7f033d 13637#define AES_CCM_DEC_TEST_VECTORS 7
5d667322
JW
13638#define AES_CCM_4309_ENC_TEST_VECTORS 7
13639#define AES_CCM_4309_DEC_TEST_VECTORS 10
da7f033d
HX
13640
13641static struct cipher_testvec aes_enc_tv_template[] = {
13642 { /* From FIPS-197 */
13643 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13644 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13645 .klen = 16,
13646 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
13647 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13648 .ilen = 16,
13649 .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
13650 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
13651 .rlen = 16,
13652 }, {
13653 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13654 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13655 "\x10\x11\x12\x13\x14\x15\x16\x17",
13656 .klen = 24,
13657 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
13658 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13659 .ilen = 16,
13660 .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
13661 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
13662 .rlen = 16,
13663 }, {
13664 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13665 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13666 "\x10\x11\x12\x13\x14\x15\x16\x17"
13667 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13668 .klen = 32,
13669 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
13670 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13671 .ilen = 16,
13672 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
13673 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
13674 .rlen = 16,
c3b9e8f6
JK
13675 }, { /* Generated with Crypto++ */
13676 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
13677 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
13678 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
13679 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
13680 .klen = 32,
13681 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13682 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13683 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13684 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13685 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13686 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13687 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13688 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13689 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13690 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13691 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13692 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13693 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13694 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13695 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13696 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13697 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13698 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13699 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13700 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13701 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13702 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13703 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13704 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13705 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13706 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13707 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13708 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13709 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13710 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13711 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13712 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13713 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13714 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13715 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13716 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13717 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13718 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13719 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13720 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13721 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13722 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13723 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13724 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13725 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13726 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13727 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13728 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13729 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13730 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13731 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13732 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13733 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13734 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13735 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13736 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13737 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13738 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13739 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13740 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13741 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13742 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13743 .ilen = 496,
13744 .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
13745 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
13746 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
13747 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
13748 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
13749 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
13750 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
13751 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
13752 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
13753 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
13754 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
13755 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
13756 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
13757 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
13758 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
13759 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
13760 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
13761 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
13762 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
13763 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
13764 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
13765 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
13766 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
13767 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
13768 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
13769 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
13770 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
13771 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
13772 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
13773 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
13774 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
13775 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
13776 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
13777 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
13778 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
13779 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
13780 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
13781 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
13782 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
13783 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
13784 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
13785 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
13786 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
13787 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
13788 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
13789 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
13790 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
13791 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
13792 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
13793 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
13794 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
13795 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
13796 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
13797 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
13798 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
13799 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
13800 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
13801 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
13802 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
13803 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
13804 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
13805 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
13806 .rlen = 496,
13807 .also_non_np = 1,
3b9b8fe0
AB
13808 .np = 3,
13809 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
13810 },
13811};
13812
13813static struct cipher_testvec aes_dec_tv_template[] = {
13814 { /* From FIPS-197 */
13815 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13816 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13817 .klen = 16,
13818 .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
13819 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
13820 .ilen = 16,
13821 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
13822 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13823 .rlen = 16,
13824 }, {
13825 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13826 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13827 "\x10\x11\x12\x13\x14\x15\x16\x17",
13828 .klen = 24,
13829 .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
13830 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
13831 .ilen = 16,
13832 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
13833 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13834 .rlen = 16,
13835 }, {
13836 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13837 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13838 "\x10\x11\x12\x13\x14\x15\x16\x17"
13839 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13840 .klen = 32,
13841 .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
13842 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
13843 .ilen = 16,
13844 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
13845 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13846 .rlen = 16,
c3b9e8f6
JK
13847 }, { /* Generated with Crypto++ */
13848 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
13849 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
13850 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
13851 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
13852 .klen = 32,
13853 .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
13854 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
13855 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
13856 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
13857 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
13858 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
13859 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
13860 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
13861 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
13862 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
13863 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
13864 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
13865 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
13866 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
13867 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
13868 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
13869 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
13870 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
13871 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
13872 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
13873 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
13874 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
13875 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
13876 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
13877 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
13878 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
13879 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
13880 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
13881 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
13882 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
13883 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
13884 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
13885 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
13886 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
13887 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
13888 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
13889 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
13890 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
13891 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
13892 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
13893 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
13894 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
13895 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
13896 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
13897 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
13898 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
13899 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
13900 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
13901 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
13902 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
13903 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
13904 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
13905 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
13906 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
13907 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
13908 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
13909 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
13910 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
13911 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
13912 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
13913 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
13914 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
13915 .ilen = 496,
13916 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13917 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13918 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13919 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13920 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13921 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13922 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13923 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13924 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13925 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13926 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13927 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13928 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13929 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13930 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13931 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13932 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13933 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13934 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13935 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13936 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13937 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13938 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13939 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13940 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13941 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13942 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13943 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13944 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13945 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13946 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13947 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13948 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13949 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13950 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13951 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13952 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13953 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13954 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13955 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13956 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13957 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13958 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13959 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13960 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13961 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13962 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13963 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13964 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13965 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13966 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13967 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13968 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13969 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13970 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13971 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13972 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13973 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13974 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13975 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13976 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13977 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13978 .rlen = 496,
13979 .also_non_np = 1,
3b9b8fe0
AB
13980 .np = 3,
13981 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
13982 },
13983};
13984
13985static struct cipher_testvec aes_cbc_enc_tv_template[] = {
13986 { /* From RFC 3602 */
13987 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13988 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13989 .klen = 16,
13990 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13991 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13992 .input = "Single block msg",
13993 .ilen = 16,
13994 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13995 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
13996 .rlen = 16,
13997 }, {
13998 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13999 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14000 .klen = 16,
14001 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14002 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14003 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14004 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14005 "\x10\x11\x12\x13\x14\x15\x16\x17"
14006 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14007 .ilen = 32,
14008 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14009 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14010 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14011 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
14012 .rlen = 32,
14013 }, { /* From NIST SP800-38A */
14014 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14015 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14016 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14017 .klen = 24,
14018 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14019 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14020 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14021 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14022 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14023 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14024 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14025 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14026 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14027 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14028 .ilen = 64,
14029 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
14030 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14031 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
14032 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
14033 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
14034 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
14035 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
14036 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
14037 .rlen = 64,
14038 }, {
14039 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14040 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14041 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14042 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14043 .klen = 32,
14044 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14045 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14046 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14047 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14048 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14049 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14050 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14051 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14052 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14053 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14054 .ilen = 64,
14055 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
14056 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14057 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14058 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14059 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14060 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14061 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14062 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
14063 .rlen = 64,
c3b9e8f6
JK
14064 }, { /* Generated with Crypto++ */
14065 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14066 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14067 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14068 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14069 .klen = 32,
14070 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14071 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14072 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14073 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14074 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14075 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14076 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14077 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14078 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14079 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14080 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14081 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14082 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14083 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14084 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14085 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14086 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14087 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14088 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14089 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14090 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14091 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14092 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14093 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14094 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14095 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14096 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14097 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14098 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14099 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14100 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14101 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14102 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14103 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14104 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14105 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14106 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14107 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14108 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14109 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14110 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14111 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14112 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14113 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14114 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14115 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14116 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14117 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14118 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14119 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14120 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14121 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14122 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14123 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14124 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14125 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14126 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14127 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14128 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14129 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14130 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14131 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14132 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14133 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
14134 .ilen = 496,
14135 .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
14136 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
14137 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
14138 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
14139 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
14140 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
14141 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
14142 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
14143 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
14144 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
14145 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
14146 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
14147 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
14148 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
14149 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
14150 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
14151 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
14152 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
14153 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
14154 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
14155 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
14156 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
14157 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
14158 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
14159 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
14160 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
14161 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
14162 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
14163 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
14164 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
14165 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
14166 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
14167 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
14168 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
14169 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
14170 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
14171 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
14172 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
14173 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
14174 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
14175 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
14176 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
14177 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
14178 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
14179 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
14180 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
14181 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
14182 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
14183 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
14184 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
14185 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
14186 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
14187 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
14188 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
14189 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
14190 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
14191 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
14192 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
14193 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
14194 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
14195 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
14196 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
14197 .rlen = 496,
14198 .also_non_np = 1,
3b9b8fe0
AB
14199 .np = 3,
14200 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
14201 },
14202};
14203
14204static struct cipher_testvec aes_cbc_dec_tv_template[] = {
14205 { /* From RFC 3602 */
14206 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
14207 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
14208 .klen = 16,
14209 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
14210 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
14211 .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
14212 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
14213 .ilen = 16,
14214 .result = "Single block msg",
14215 .rlen = 16,
14216 }, {
14217 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
14218 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14219 .klen = 16,
14220 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14221 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14222 .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14223 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14224 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14225 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
14226 .ilen = 32,
14227 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
14228 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14229 "\x10\x11\x12\x13\x14\x15\x16\x17"
14230 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14231 .rlen = 32,
14232 }, { /* From NIST SP800-38A */
14233 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14234 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14235 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14236 .klen = 24,
14237 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14238 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14239 .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
14240 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14241 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
14242 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
14243 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
14244 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
14245 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
14246 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
14247 .ilen = 64,
14248 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14249 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14250 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14251 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14252 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14253 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14254 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14255 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14256 .rlen = 64,
14257 }, {
14258 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14259 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14260 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14261 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14262 .klen = 32,
14263 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14264 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14265 .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
14266 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14267 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14268 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14269 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14270 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14271 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14272 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
14273 .ilen = 64,
14274 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14275 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14276 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14277 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14278 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14279 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14280 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14281 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14282 .rlen = 64,
c3b9e8f6
JK
14283 }, { /* Generated with Crypto++ */
14284 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14285 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14286 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14287 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14288 .klen = 32,
14289 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14290 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14291 .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
14292 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
14293 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
14294 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
14295 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
14296 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
14297 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
14298 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
14299 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
14300 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
14301 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
14302 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
14303 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
14304 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
14305 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
14306 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
14307 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
14308 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
14309 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
14310 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
14311 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
14312 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
14313 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
14314 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
14315 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
14316 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
14317 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
14318 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
14319 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
14320 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
14321 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
14322 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
14323 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
14324 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
14325 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
14326 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
14327 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
14328 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
14329 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
14330 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
14331 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
14332 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
14333 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
14334 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
14335 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
14336 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
14337 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
14338 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
14339 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
14340 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
14341 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
14342 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
14343 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
14344 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
14345 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
14346 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
14347 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
14348 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
14349 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
14350 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
14351 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
14352 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
14353 .ilen = 496,
14354 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14355 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14356 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14357 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14358 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14359 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14360 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14361 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14362 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14363 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14364 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14365 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14366 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14367 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14368 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14369 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14370 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14371 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14372 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14373 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14374 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14375 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14376 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14377 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14378 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14379 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14380 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14381 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14382 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14383 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14384 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14385 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14386 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14387 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14388 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14389 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14390 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14391 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14392 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14393 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14394 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14395 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14396 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14397 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14398 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14399 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14400 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14401 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14402 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14403 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14404 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14405 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14406 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14407 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14408 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14409 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14410 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14411 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14412 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14413 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14414 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14415 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
14416 .rlen = 496,
14417 .also_non_np = 1,
3b9b8fe0
AB
14418 .np = 3,
14419 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
14420 },
14421};
14422
bca4feb0
HG
14423static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
14424 { /* Input data from RFC 2410 Case 1 */
14425#ifdef __LITTLE_ENDIAN
14426 .key = "\x08\x00" /* rta length */
14427 "\x01\x00" /* rta type */
14428#else
14429 .key = "\x00\x08" /* rta length */
14430 "\x00\x01" /* rta type */
14431#endif
14432 "\x00\x00\x00\x00" /* enc key length */
14433 "\x00\x00\x00\x00\x00\x00\x00\x00"
14434 "\x00\x00\x00\x00\x00\x00\x00\x00",
14435 .klen = 8 + 16 + 0,
14436 .iv = "",
14437 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14438 .ilen = 8,
14439 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14440 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
14441 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
14442 .rlen = 8 + 16,
14443 }, { /* Input data from RFC 2410 Case 2 */
14444#ifdef __LITTLE_ENDIAN
14445 .key = "\x08\x00" /* rta length */
14446 "\x01\x00" /* rta type */
14447#else
14448 .key = "\x00\x08" /* rta length */
14449 "\x00\x01" /* rta type */
14450#endif
14451 "\x00\x00\x00\x00" /* enc key length */
14452 "\x00\x00\x00\x00\x00\x00\x00\x00"
14453 "\x00\x00\x00\x00\x00\x00\x00\x00",
14454 .klen = 8 + 16 + 0,
14455 .iv = "",
14456 .input = "Network Security People Have A Strange Sense Of Humor",
14457 .ilen = 53,
14458 .result = "Network Security People Have A Strange Sense Of Humor"
14459 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
14460 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
14461 .rlen = 53 + 16,
14462 },
14463};
14464
14465static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
14466 {
14467#ifdef __LITTLE_ENDIAN
14468 .key = "\x08\x00" /* rta length */
14469 "\x01\x00" /* rta type */
14470#else
14471 .key = "\x00\x08" /* rta length */
14472 "\x00\x01" /* rta type */
14473#endif
14474 "\x00\x00\x00\x00" /* enc key length */
14475 "\x00\x00\x00\x00\x00\x00\x00\x00"
14476 "\x00\x00\x00\x00\x00\x00\x00\x00",
14477 .klen = 8 + 16 + 0,
14478 .iv = "",
14479 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14480 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
14481 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
14482 .ilen = 8 + 16,
14483 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14484 .rlen = 8,
14485 }, {
14486#ifdef __LITTLE_ENDIAN
14487 .key = "\x08\x00" /* rta length */
14488 "\x01\x00" /* rta type */
14489#else
14490 .key = "\x00\x08" /* rta length */
14491 "\x00\x01" /* rta type */
14492#endif
14493 "\x00\x00\x00\x00" /* enc key length */
14494 "\x00\x00\x00\x00\x00\x00\x00\x00"
14495 "\x00\x00\x00\x00\x00\x00\x00\x00",
14496 .klen = 8 + 16 + 0,
14497 .iv = "",
14498 .input = "Network Security People Have A Strange Sense Of Humor"
14499 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
14500 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
14501 .ilen = 53 + 16,
14502 .result = "Network Security People Have A Strange Sense Of Humor",
14503 .rlen = 53,
14504 },
14505};
14506
5208ed2c 14507static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
e46e9a46
HG
14508 { /* RFC 3602 Case 1 */
14509#ifdef __LITTLE_ENDIAN
14510 .key = "\x08\x00" /* rta length */
14511 "\x01\x00" /* rta type */
14512#else
14513 .key = "\x00\x08" /* rta length */
14514 "\x00\x01" /* rta type */
14515#endif
14516 "\x00\x00\x00\x10" /* enc key length */
14517 "\x00\x00\x00\x00\x00\x00\x00\x00"
14518 "\x00\x00\x00\x00\x00\x00\x00\x00"
14519 "\x00\x00\x00\x00"
14520 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
14521 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
14522 .klen = 8 + 20 + 16,
14523 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
14524 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
14525 .input = "Single block msg",
14526 .ilen = 16,
14527 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
14528 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
14529 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
14530 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
14531 "\x03\x71\xa2\x06",
14532 .rlen = 16 + 20,
14533 }, { /* RFC 3602 Case 2 */
14534#ifdef __LITTLE_ENDIAN
14535 .key = "\x08\x00" /* rta length */
14536 "\x01\x00" /* rta type */
14537#else
14538 .key = "\x00\x08" /* rta length */
14539 "\x00\x01" /* rta type */
14540#endif
14541 "\x00\x00\x00\x10" /* enc key length */
14542 "\x20\x21\x22\x23\x24\x25\x26\x27"
14543 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14544 "\x30\x31\x32\x33"
14545 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
14546 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14547 .klen = 8 + 20 + 16,
14548 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14549 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14550 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14551 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14552 "\x10\x11\x12\x13\x14\x15\x16\x17"
14553 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14554 .ilen = 32,
14555 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14556 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14557 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14558 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
14559 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
14560 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
14561 "\x65\x39\xf8\xde",
14562 .rlen = 32 + 20,
14563 }, { /* RFC 3602 Case 3 */
14564#ifdef __LITTLE_ENDIAN
14565 .key = "\x08\x00" /* rta length */
14566 "\x01\x00" /* rta type */
14567#else
14568 .key = "\x00\x08" /* rta length */
14569 "\x00\x01" /* rta type */
14570#endif
14571 "\x00\x00\x00\x10" /* enc key length */
14572 "\x11\x22\x33\x44\x55\x66\x77\x88"
14573 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14574 "\x22\x33\x44\x55"
14575 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
14576 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
14577 .klen = 8 + 20 + 16,
14578 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
14579 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
14580 .input = "This is a 48-byte message (exactly 3 AES blocks)",
14581 .ilen = 48,
14582 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
14583 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
14584 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
14585 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
14586 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
14587 "\x85\x79\x69\x5d\x83\xba\x26\x84"
14588 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
14589 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
14590 "\x8d\x62\xf2\x1e",
14591 .rlen = 48 + 20,
14592 }, { /* RFC 3602 Case 4 */
14593#ifdef __LITTLE_ENDIAN
14594 .key = "\x08\x00" /* rta length */
14595 "\x01\x00" /* rta type */
14596#else
14597 .key = "\x00\x08" /* rta length */
14598 "\x00\x01" /* rta type */
14599#endif
14600 "\x00\x00\x00\x10" /* enc key length */
14601 "\x11\x22\x33\x44\x55\x66\x77\x88"
14602 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14603 "\x22\x33\x44\x55"
14604 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
14605 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
14606 .klen = 8 + 20 + 16,
14607 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
14608 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
14609 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14610 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14611 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14612 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14613 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14614 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14615 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14616 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
14617 .ilen = 64,
14618 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
14619 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
14620 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
14621 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
14622 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
14623 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
14624 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
14625 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
14626 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
14627 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
14628 "\x1d\xbe\xc6\xe9",
14629 .rlen = 64 + 20,
14630 }, { /* RFC 3602 Case 5 */
14631#ifdef __LITTLE_ENDIAN
14632 .key = "\x08\x00" /* rta length */
14633 "\x01\x00" /* rta type */
14634#else
14635 .key = "\x00\x08" /* rta length */
14636 "\x00\x01" /* rta type */
14637#endif
14638 "\x00\x00\x00\x10" /* enc key length */
14639 "\x11\x22\x33\x44\x55\x66\x77\x88"
14640 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14641 "\x22\x33\x44\x55"
14642 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
14643 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
14644 .klen = 8 + 20 + 16,
14645 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
14646 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
14647 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
14648 .alen = 8,
14649 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
14650 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
14651 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14652 "\x10\x11\x12\x13\x14\x15\x16\x17"
14653 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14654 "\x20\x21\x22\x23\x24\x25\x26\x27"
14655 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14656 "\x30\x31\x32\x33\x34\x35\x36\x37"
14657 "\x01\x02\x03\x04\x05\x06\x07\x08"
14658 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
14659 .ilen = 80,
14660 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
14661 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
14662 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
14663 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
14664 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
14665 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
14666 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
14667 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
14668 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
14669 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
14670 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
14671 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
14672 "\x85\xe1\x59\xf7",
14673 .rlen = 80 + 20,
14674 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
14675#ifdef __LITTLE_ENDIAN
14676 .key = "\x08\x00" /* rta length */
14677 "\x01\x00" /* rta type */
14678#else
14679 .key = "\x00\x08" /* rta length */
14680 "\x00\x01" /* rta type */
14681#endif
14682 "\x00\x00\x00\x18" /* enc key length */
14683 "\x11\x22\x33\x44\x55\x66\x77\x88"
14684 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14685 "\x22\x33\x44\x55"
14686 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14687 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14688 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14689 .klen = 8 + 20 + 24,
14690 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14691 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14692 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14693 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14694 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14695 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14696 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14697 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14698 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14699 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14700 .ilen = 64,
14701 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
14702 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14703 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
14704 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
14705 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
14706 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
14707 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
14708 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
14709 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
14710 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
14711 "\x47\x4c\xfc\x36",
14712 .rlen = 64 + 20,
14713 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
14714#ifdef __LITTLE_ENDIAN
14715 .key = "\x08\x00" /* rta length */
14716 "\x01\x00" /* rta type */
14717#else
14718 .key = "\x00\x08" /* rta length */
14719 "\x00\x01" /* rta type */
14720#endif
14721 "\x00\x00\x00\x20" /* enc key length */
14722 "\x11\x22\x33\x44\x55\x66\x77\x88"
14723 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14724 "\x22\x33\x44\x55"
14725 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14726 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14727 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14728 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14729 .klen = 8 + 20 + 32,
14730 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14731 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14732 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14733 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14734 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14735 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14736 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14737 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14738 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14739 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14740 .ilen = 64,
14741 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
14742 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14743 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14744 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14745 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14746 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14747 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14748 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
14749 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
14750 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
14751 "\x51\xee\xd6\x4e",
14752 .rlen = 64 + 20,
14753 },
14754};
14755
5208ed2c 14756static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
bca4feb0
HG
14757 { /* Input data from RFC 2410 Case 1 */
14758#ifdef __LITTLE_ENDIAN
14759 .key = "\x08\x00" /* rta length */
14760 "\x01\x00" /* rta type */
14761#else
14762 .key = "\x00\x08" /* rta length */
14763 "\x00\x01" /* rta type */
14764#endif
14765 "\x00\x00\x00\x00" /* enc key length */
14766 "\x00\x00\x00\x00\x00\x00\x00\x00"
14767 "\x00\x00\x00\x00\x00\x00\x00\x00"
14768 "\x00\x00\x00\x00",
14769 .klen = 8 + 20 + 0,
14770 .iv = "",
14771 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14772 .ilen = 8,
14773 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14774 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
14775 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
14776 "\x8c\x5e\xe4\x08",
14777 .rlen = 8 + 20,
14778 }, { /* Input data from RFC 2410 Case 2 */
14779#ifdef __LITTLE_ENDIAN
14780 .key = "\x08\x00" /* rta length */
14781 "\x01\x00" /* rta type */
14782#else
14783 .key = "\x00\x08" /* rta length */
14784 "\x00\x01" /* rta type */
14785#endif
14786 "\x00\x00\x00\x00" /* enc key length */
14787 "\x00\x00\x00\x00\x00\x00\x00\x00"
14788 "\x00\x00\x00\x00\x00\x00\x00\x00"
14789 "\x00\x00\x00\x00",
14790 .klen = 8 + 20 + 0,
14791 .iv = "",
14792 .input = "Network Security People Have A Strange Sense Of Humor",
14793 .ilen = 53,
14794 .result = "Network Security People Have A Strange Sense Of Humor"
14795 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
14796 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
14797 "\x91\x56\xe4\xd6",
14798 .rlen = 53 + 20,
14799 },
14800};
14801
5208ed2c 14802static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
bca4feb0
HG
14803 {
14804#ifdef __LITTLE_ENDIAN
14805 .key = "\x08\x00" /* rta length */
14806 "\x01\x00" /* rta type */
14807#else
14808 .key = "\x00\x08" /* rta length */
14809 "\x00\x01" /* rta type */
14810#endif
14811 "\x00\x00\x00\x00" /* enc key length */
14812 "\x00\x00\x00\x00\x00\x00\x00\x00"
14813 "\x00\x00\x00\x00\x00\x00\x00\x00"
14814 "\x00\x00\x00\x00",
14815 .klen = 8 + 20 + 0,
14816 .iv = "",
14817 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14818 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
14819 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
14820 "\x8c\x5e\xe4\x08",
14821 .ilen = 8 + 20,
14822 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14823 .rlen = 8,
14824 }, {
14825#ifdef __LITTLE_ENDIAN
14826 .key = "\x08\x00" /* rta length */
14827 "\x01\x00" /* rta type */
14828#else
14829 .key = "\x00\x08" /* rta length */
14830 "\x00\x01" /* rta type */
14831#endif
14832 "\x00\x00\x00\x00" /* enc key length */
14833 "\x00\x00\x00\x00\x00\x00\x00\x00"
14834 "\x00\x00\x00\x00\x00\x00\x00\x00"
14835 "\x00\x00\x00\x00",
14836 .klen = 8 + 20 + 0,
14837 .iv = "",
14838 .input = "Network Security People Have A Strange Sense Of Humor"
14839 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
14840 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
14841 "\x91\x56\xe4\xd6",
14842 .ilen = 53 + 20,
14843 .result = "Network Security People Have A Strange Sense Of Humor",
14844 .rlen = 53,
14845 },
14846};
14847
5208ed2c 14848static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
e46e9a46
HG
14849 { /* RFC 3602 Case 1 */
14850#ifdef __LITTLE_ENDIAN
14851 .key = "\x08\x00" /* rta length */
14852 "\x01\x00" /* rta type */
14853#else
14854 .key = "\x00\x08" /* rta length */
14855 "\x00\x01" /* rta type */
14856#endif
14857 "\x00\x00\x00\x10" /* enc key length */
14858 "\x00\x00\x00\x00\x00\x00\x00\x00"
14859 "\x00\x00\x00\x00\x00\x00\x00\x00"
14860 "\x00\x00\x00\x00\x00\x00\x00\x00"
14861 "\x00\x00\x00\x00\x00\x00\x00\x00"
14862 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
14863 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
14864 .klen = 8 + 32 + 16,
14865 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
14866 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
14867 .input = "Single block msg",
14868 .ilen = 16,
14869 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
14870 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
14871 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
14872 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
14873 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
14874 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
14875 .rlen = 16 + 32,
14876 }, { /* RFC 3602 Case 2 */
14877#ifdef __LITTLE_ENDIAN
14878 .key = "\x08\x00" /* rta length */
14879 "\x01\x00" /* rta type */
14880#else
14881 .key = "\x00\x08" /* rta length */
14882 "\x00\x01" /* rta type */
14883#endif
14884 "\x00\x00\x00\x10" /* enc key length */
14885 "\x20\x21\x22\x23\x24\x25\x26\x27"
14886 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14887 "\x30\x31\x32\x33\x34\x35\x36\x37"
14888 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14889 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
14890 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14891 .klen = 8 + 32 + 16,
14892 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14893 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14894 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14895 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14896 "\x10\x11\x12\x13\x14\x15\x16\x17"
14897 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14898 .ilen = 32,
14899 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14900 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14901 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14902 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
14903 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
14904 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
14905 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
14906 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
14907 .rlen = 32 + 32,
14908 }, { /* RFC 3602 Case 3 */
14909#ifdef __LITTLE_ENDIAN
14910 .key = "\x08\x00" /* rta length */
14911 "\x01\x00" /* rta type */
14912#else
14913 .key = "\x00\x08" /* rta length */
14914 "\x00\x01" /* rta type */
14915#endif
14916 "\x00\x00\x00\x10" /* enc key length */
14917 "\x11\x22\x33\x44\x55\x66\x77\x88"
14918 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14919 "\x22\x33\x44\x55\x66\x77\x88\x99"
14920 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14921 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
14922 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
14923 .klen = 8 + 32 + 16,
14924 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
14925 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
14926 .input = "This is a 48-byte message (exactly 3 AES blocks)",
14927 .ilen = 48,
14928 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
14929 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
14930 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
14931 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
14932 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
14933 "\x85\x79\x69\x5d\x83\xba\x26\x84"
14934 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
14935 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
14936 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
14937 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
14938 .rlen = 48 + 32,
14939 }, { /* RFC 3602 Case 4 */
14940#ifdef __LITTLE_ENDIAN
14941 .key = "\x08\x00" /* rta length */
14942 "\x01\x00" /* rta type */
14943#else
14944 .key = "\x00\x08" /* rta length */
14945 "\x00\x01" /* rta type */
14946#endif
14947 "\x00\x00\x00\x10" /* enc key length */
14948 "\x11\x22\x33\x44\x55\x66\x77\x88"
14949 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14950 "\x22\x33\x44\x55\x66\x77\x88\x99"
14951 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14952 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
14953 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
14954 .klen = 8 + 32 + 16,
14955 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
14956 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
14957 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14958 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14959 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14960 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14961 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14962 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14963 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14964 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
14965 .ilen = 64,
14966 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
14967 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
14968 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
14969 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
14970 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
14971 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
14972 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
14973 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
14974 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
14975 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
14976 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
14977 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
14978 .rlen = 64 + 32,
14979 }, { /* RFC 3602 Case 5 */
14980#ifdef __LITTLE_ENDIAN
14981 .key = "\x08\x00" /* rta length */
14982 "\x01\x00" /* rta type */
14983#else
14984 .key = "\x00\x08" /* rta length */
14985 "\x00\x01" /* rta type */
14986#endif
14987 "\x00\x00\x00\x10" /* enc key length */
14988 "\x11\x22\x33\x44\x55\x66\x77\x88"
14989 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14990 "\x22\x33\x44\x55\x66\x77\x88\x99"
14991 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14992 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
14993 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
14994 .klen = 8 + 32 + 16,
14995 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
14996 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
14997 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
14998 .alen = 8,
14999 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
15000 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
15001 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15002 "\x10\x11\x12\x13\x14\x15\x16\x17"
15003 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15004 "\x20\x21\x22\x23\x24\x25\x26\x27"
15005 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15006 "\x30\x31\x32\x33\x34\x35\x36\x37"
15007 "\x01\x02\x03\x04\x05\x06\x07\x08"
15008 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
15009 .ilen = 80,
15010 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
15011 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
15012 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
15013 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
15014 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
15015 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
15016 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
15017 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
15018 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
15019 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
15020 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
15021 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
15022 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
15023 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
15024 .rlen = 80 + 32,
15025 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
15026#ifdef __LITTLE_ENDIAN
15027 .key = "\x08\x00" /* rta length */
15028 "\x01\x00" /* rta type */
15029#else
15030 .key = "\x00\x08" /* rta length */
15031 "\x00\x01" /* rta type */
15032#endif
15033 "\x00\x00\x00\x18" /* enc key length */
15034 "\x11\x22\x33\x44\x55\x66\x77\x88"
15035 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15036 "\x22\x33\x44\x55\x66\x77\x88\x99"
15037 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15038 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15039 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15040 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15041 .klen = 8 + 32 + 24,
15042 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15043 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15044 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15045 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15046 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15047 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15048 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15049 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15050 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15051 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15052 .ilen = 64,
15053 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15054 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15055 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15056 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15057 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15058 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15059 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15060 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
15061 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
15062 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
15063 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
15064 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
15065 .rlen = 64 + 32,
15066 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
15067#ifdef __LITTLE_ENDIAN
15068 .key = "\x08\x00" /* rta length */
15069 "\x01\x00" /* rta type */
15070#else
15071 .key = "\x00\x08" /* rta length */
15072 "\x00\x01" /* rta type */
15073#endif
15074 "\x00\x00\x00\x20" /* enc key length */
15075 "\x11\x22\x33\x44\x55\x66\x77\x88"
15076 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15077 "\x22\x33\x44\x55\x66\x77\x88\x99"
15078 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15079 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15080 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15081 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15082 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15083 .klen = 8 + 32 + 32,
15084 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15085 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15086 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15087 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15088 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15089 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15090 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15091 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15092 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15093 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15094 .ilen = 64,
15095 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15096 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15097 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15098 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15099 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15100 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15101 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15102 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
15103 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
15104 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
15105 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
15106 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
15107 .rlen = 64 + 32,
15108 },
15109};
15110
5208ed2c 15111static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
e46e9a46
HG
15112 { /* RFC 3602 Case 1 */
15113#ifdef __LITTLE_ENDIAN
15114 .key = "\x08\x00" /* rta length */
15115 "\x01\x00" /* rta type */
15116#else
15117 .key = "\x00\x08" /* rta length */
15118 "\x00\x01" /* rta type */
15119#endif
15120 "\x00\x00\x00\x10" /* enc key length */
15121 "\x00\x00\x00\x00\x00\x00\x00\x00"
15122 "\x00\x00\x00\x00\x00\x00\x00\x00"
15123 "\x00\x00\x00\x00\x00\x00\x00\x00"
15124 "\x00\x00\x00\x00\x00\x00\x00\x00"
15125 "\x00\x00\x00\x00\x00\x00\x00\x00"
15126 "\x00\x00\x00\x00\x00\x00\x00\x00"
15127 "\x00\x00\x00\x00\x00\x00\x00\x00"
15128 "\x00\x00\x00\x00\x00\x00\x00\x00"
15129 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15130 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15131 .klen = 8 + 64 + 16,
15132 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15133 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15134 .input = "Single block msg",
15135 .ilen = 16,
15136 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15137 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
15138 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
15139 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
15140 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
15141 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
15142 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
15143 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
15144 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
15145 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
15146 .rlen = 16 + 64,
15147 }, { /* RFC 3602 Case 2 */
15148#ifdef __LITTLE_ENDIAN
15149 .key = "\x08\x00" /* rta length */
15150 "\x01\x00" /* rta type */
15151#else
15152 .key = "\x00\x08" /* rta length */
15153 "\x00\x01" /* rta type */
15154#endif
15155 "\x00\x00\x00\x10" /* enc key length */
15156 "\x20\x21\x22\x23\x24\x25\x26\x27"
15157 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15158 "\x30\x31\x32\x33\x34\x35\x36\x37"
15159 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15160 "\x40\x41\x42\x43\x44\x45\x46\x47"
15161 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15162 "\x50\x51\x52\x53\x54\x55\x56\x57"
15163 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15164 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15165 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15166 .klen = 8 + 64 + 16,
15167 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15168 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15169 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
15170 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15171 "\x10\x11\x12\x13\x14\x15\x16\x17"
15172 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15173 .ilen = 32,
15174 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15175 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15176 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15177 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
15178 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
15179 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
15180 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
15181 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
15182 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
15183 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
15184 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
15185 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
15186 .rlen = 32 + 64,
15187 }, { /* RFC 3602 Case 3 */
15188#ifdef __LITTLE_ENDIAN
15189 .key = "\x08\x00" /* rta length */
15190 "\x01\x00" /* rta type */
15191#else
15192 .key = "\x00\x08" /* rta length */
15193 "\x00\x01" /* rta type */
15194#endif
15195 "\x00\x00\x00\x10" /* enc key length */
15196 "\x11\x22\x33\x44\x55\x66\x77\x88"
15197 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15198 "\x22\x33\x44\x55\x66\x77\x88\x99"
15199 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15200 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15201 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15202 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15203 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15204 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
15205 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
15206 .klen = 8 + 64 + 16,
15207 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
15208 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
15209 .input = "This is a 48-byte message (exactly 3 AES blocks)",
15210 .ilen = 48,
15211 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
15212 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
15213 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
15214 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
15215 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
15216 "\x85\x79\x69\x5d\x83\xba\x26\x84"
15217 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
15218 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
15219 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
15220 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
15221 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
15222 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
15223 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
15224 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
15225 .rlen = 48 + 64,
15226 }, { /* RFC 3602 Case 4 */
15227#ifdef __LITTLE_ENDIAN
15228 .key = "\x08\x00" /* rta length */
15229 "\x01\x00" /* rta type */
15230#else
15231 .key = "\x00\x08" /* rta length */
15232 "\x00\x01" /* rta type */
15233#endif
15234 "\x00\x00\x00\x10" /* enc key length */
15235 "\x11\x22\x33\x44\x55\x66\x77\x88"
15236 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15237 "\x22\x33\x44\x55\x66\x77\x88\x99"
15238 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15239 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15240 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15241 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15242 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15243 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
15244 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
15245 .klen = 8 + 64 + 16,
15246 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
15247 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
15248 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15249 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15250 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15251 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15252 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15253 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15254 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15255 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
15256 .ilen = 64,
15257 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
15258 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
15259 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
15260 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
15261 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
15262 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
15263 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
15264 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
15265 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
15266 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
15267 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
15268 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
15269 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
15270 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
15271 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
15272 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
15273 .rlen = 64 + 64,
15274 }, { /* RFC 3602 Case 5 */
15275#ifdef __LITTLE_ENDIAN
15276 .key = "\x08\x00" /* rta length */
15277 "\x01\x00" /* rta type */
15278#else
15279 .key = "\x00\x08" /* rta length */
15280 "\x00\x01" /* rta type */
15281#endif
15282 "\x00\x00\x00\x10" /* enc key length */
15283 "\x11\x22\x33\x44\x55\x66\x77\x88"
15284 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15285 "\x22\x33\x44\x55\x66\x77\x88\x99"
15286 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15287 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15288 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15289 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15290 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15291 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
15292 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
15293 .klen = 8 + 64 + 16,
15294 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
15295 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
15296 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15297 .alen = 8,
15298 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
15299 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
15300 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15301 "\x10\x11\x12\x13\x14\x15\x16\x17"
15302 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15303 "\x20\x21\x22\x23\x24\x25\x26\x27"
15304 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15305 "\x30\x31\x32\x33\x34\x35\x36\x37"
15306 "\x01\x02\x03\x04\x05\x06\x07\x08"
15307 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
15308 .ilen = 80,
15309 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
15310 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
15311 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
15312 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
15313 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
15314 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
15315 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
15316 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
15317 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
15318 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
15319 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
15320 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
15321 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
15322 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
15323 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
15324 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
15325 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
15326 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
15327 .rlen = 80 + 64,
15328 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
15329#ifdef __LITTLE_ENDIAN
15330 .key = "\x08\x00" /* rta length */
15331 "\x01\x00" /* rta type */
15332#else
15333 .key = "\x00\x08" /* rta length */
15334 "\x00\x01" /* rta type */
15335#endif
15336 "\x00\x00\x00\x18" /* enc key length */
15337 "\x11\x22\x33\x44\x55\x66\x77\x88"
15338 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15339 "\x22\x33\x44\x55\x66\x77\x88\x99"
15340 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15341 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15342 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15343 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15344 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15345 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15346 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15347 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15348 .klen = 8 + 64 + 24,
15349 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15350 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15351 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15352 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15353 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15354 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15355 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15356 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15357 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15358 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15359 .ilen = 64,
15360 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15361 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15362 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15363 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15364 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15365 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15366 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15367 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
15368 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
15369 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
15370 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
15371 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
15372 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
15373 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
15374 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
15375 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
15376 .rlen = 64 + 64,
15377 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
15378#ifdef __LITTLE_ENDIAN
15379 .key = "\x08\x00" /* rta length */
15380 "\x01\x00" /* rta type */
15381#else
15382 .key = "\x00\x08" /* rta length */
15383 "\x00\x01" /* rta type */
15384#endif
15385 "\x00\x00\x00\x20" /* enc key length */
15386 "\x11\x22\x33\x44\x55\x66\x77\x88"
15387 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15388 "\x22\x33\x44\x55\x66\x77\x88\x99"
15389 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15390 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15391 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15392 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15393 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15394 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15395 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15396 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15397 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15398 .klen = 8 + 64 + 32,
15399 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15400 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15401 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15402 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15403 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15404 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15405 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15406 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15407 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15408 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15409 .ilen = 64,
15410 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15411 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15412 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15413 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15414 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15415 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15416 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15417 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
15418 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
15419 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
15420 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
15421 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
15422 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
15423 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
15424 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
15425 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
15426 .rlen = 64 + 64,
15427 },
15428};
15429
5208ed2c
NL
15430#define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1
15431
15432static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
15433 { /*Generated with cryptopp*/
15434#ifdef __LITTLE_ENDIAN
15435 .key = "\x08\x00" /* rta length */
15436 "\x01\x00" /* rta type */
15437#else
15438 .key = "\x00\x08" /* rta length */
15439 "\x00\x01" /* rta type */
15440#endif
15441 "\x00\x00\x00\x08" /* enc key length */
15442 "\x11\x22\x33\x44\x55\x66\x77\x88"
15443 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15444 "\x22\x33\x44\x55"
15445 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15446 .klen = 8 + 20 + 8,
15447 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15448 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15449 .alen = 8,
15450 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15451 "\x53\x20\x63\x65\x65\x72\x73\x74"
15452 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15453 "\x20\x79\x65\x53\x72\x63\x74\x65"
15454 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15455 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15456 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15457 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15458 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15459 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15460 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15461 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15462 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15463 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15464 "\x63\x65\x65\x72\x73\x74\x54\x20"
15465 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15466 .ilen = 128,
15467 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15468 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15469 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15470 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15471 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15472 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15473 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15474 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15475 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15476 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15477 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15478 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15479 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15480 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15481 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15482 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15483 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
15484 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
15485 "\x5c\x44\xa9\x37",
15486 .rlen = 128 + 20,
15487 },
15488};
15489
15490#define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1
15491
15492static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
15493 { /*Generated with cryptopp*/
15494#ifdef __LITTLE_ENDIAN
15495 .key = "\x08\x00" /* rta length */
15496 "\x01\x00" /* rta type */
15497#else
15498 .key = "\x00\x08" /* rta length */
15499 "\x00\x01" /* rta type */
15500#endif
15501 "\x00\x00\x00\x08" /* enc key length */
15502 "\x11\x22\x33\x44\x55\x66\x77\x88"
15503 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15504 "\x22\x33\x44\x55\x66\x77\x88\x99"
15505 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15506 .klen = 8 + 24 + 8,
15507 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15508 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15509 .alen = 8,
15510 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15511 "\x53\x20\x63\x65\x65\x72\x73\x74"
15512 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15513 "\x20\x79\x65\x53\x72\x63\x74\x65"
15514 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15515 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15516 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15517 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15518 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15519 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15520 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15521 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15522 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15523 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15524 "\x63\x65\x65\x72\x73\x74\x54\x20"
15525 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15526 .ilen = 128,
15527 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15528 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15529 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15530 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15531 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15532 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15533 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15534 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15535 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15536 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15537 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15538 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15539 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15540 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15541 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15542 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15543 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
15544 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
15545 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
15546 .rlen = 128 + 24,
15547 },
15548};
15549
15550#define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1
15551
15552static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
15553 { /*Generated with cryptopp*/
15554#ifdef __LITTLE_ENDIAN
15555 .key = "\x08\x00" /* rta length */
15556 "\x01\x00" /* rta type */
15557#else
15558 .key = "\x00\x08" /* rta length */
15559 "\x00\x01" /* rta type */
15560#endif
15561 "\x00\x00\x00\x08" /* enc key length */
15562 "\x11\x22\x33\x44\x55\x66\x77\x88"
15563 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15564 "\x22\x33\x44\x55\x66\x77\x88\x99"
15565 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15566 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15567 .klen = 8 + 32 + 8,
15568 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15569 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15570 .alen = 8,
15571 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15572 "\x53\x20\x63\x65\x65\x72\x73\x74"
15573 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15574 "\x20\x79\x65\x53\x72\x63\x74\x65"
15575 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15576 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15577 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15578 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15579 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15580 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15581 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15582 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15583 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15584 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15585 "\x63\x65\x65\x72\x73\x74\x54\x20"
15586 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15587 .ilen = 128,
15588 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15589 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15590 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15591 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15592 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15593 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15594 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15595 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15596 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15597 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15598 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15599 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15600 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15601 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15602 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15603 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15604 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
15605 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
15606 "\xde\x63\xde\x76\x52\xde\x9f\xba"
15607 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
15608 .rlen = 128 + 32,
15609 },
15610};
15611
15612#define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1
15613
15614static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
15615 { /*Generated with cryptopp*/
15616#ifdef __LITTLE_ENDIAN
15617 .key = "\x08\x00" /* rta length */
15618 "\x01\x00" /* rta type */
15619#else
15620 .key = "\x00\x08" /* rta length */
15621 "\x00\x01" /* rta type */
15622#endif
15623 "\x00\x00\x00\x08" /* enc key length */
15624 "\x11\x22\x33\x44\x55\x66\x77\x88"
15625 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15626 "\x22\x33\x44\x55\x66\x77\x88\x99"
15627 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15628 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15629 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15630 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15631 .klen = 8 + 48 + 8,
15632 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15633 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15634 .alen = 8,
15635 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15636 "\x53\x20\x63\x65\x65\x72\x73\x74"
15637 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15638 "\x20\x79\x65\x53\x72\x63\x74\x65"
15639 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15640 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15641 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15642 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15643 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15644 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15645 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15646 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15647 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15648 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15649 "\x63\x65\x65\x72\x73\x74\x54\x20"
15650 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15651 .ilen = 128,
15652 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15653 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15654 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15655 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15656 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15657 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15658 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15659 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15660 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15661 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15662 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15663 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15664 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15665 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15666 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15667 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15668 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
15669 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
15670 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
15671 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
15672 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
15673 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
15674 .rlen = 128 + 48,
15675 },
15676};
15677
15678#define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1
15679
15680static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
15681 { /*Generated with cryptopp*/
15682#ifdef __LITTLE_ENDIAN
15683 .key = "\x08\x00" /* rta length */
15684 "\x01\x00" /* rta type */
15685#else
15686 .key = "\x00\x08" /* rta length */
15687 "\x00\x01" /* rta type */
15688#endif
15689 "\x00\x00\x00\x08" /* enc key length */
15690 "\x11\x22\x33\x44\x55\x66\x77\x88"
15691 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15692 "\x22\x33\x44\x55\x66\x77\x88\x99"
15693 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15694 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15695 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15696 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15697 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15698 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15699 .klen = 8 + 64 + 8,
15700 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15701 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15702 .alen = 8,
15703 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15704 "\x53\x20\x63\x65\x65\x72\x73\x74"
15705 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15706 "\x20\x79\x65\x53\x72\x63\x74\x65"
15707 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15708 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15709 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15710 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15711 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15712 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15713 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15714 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15715 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15716 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15717 "\x63\x65\x65\x72\x73\x74\x54\x20"
15718 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15719 .ilen = 128,
15720 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15721 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15722 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15723 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15724 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15725 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15726 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15727 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15728 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15729 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15730 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15731 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15732 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15733 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15734 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15735 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15736 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
15737 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
15738 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
15739 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
15740 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
15741 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
15742 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
15743 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
15744 .rlen = 128 + 64,
15745 },
15746};
15747
15748#define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1
15749
15750static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
15751 { /*Generated with cryptopp*/
15752#ifdef __LITTLE_ENDIAN
15753 .key = "\x08\x00" /* rta length */
15754 "\x01\x00" /* rta type */
15755#else
15756 .key = "\x00\x08" /* rta length */
15757 "\x00\x01" /* rta type */
15758#endif
15759 "\x00\x00\x00\x18" /* enc key length */
15760 "\x11\x22\x33\x44\x55\x66\x77\x88"
15761 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15762 "\x22\x33\x44\x55"
15763 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15764 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15765 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15766 .klen = 8 + 20 + 24,
15767 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15768 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15769 .alen = 8,
15770 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15771 "\x53\x20\x63\x65\x65\x72\x73\x74"
15772 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15773 "\x20\x79\x65\x53\x72\x63\x74\x65"
15774 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15775 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15776 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15777 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15778 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15779 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15780 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15781 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15782 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15783 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15784 "\x63\x65\x65\x72\x73\x74\x54\x20"
15785 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15786 .ilen = 128,
15787 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15788 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15789 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15790 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15791 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15792 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15793 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15794 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15795 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15796 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15797 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15798 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15799 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15800 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15801 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15802 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15803 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
15804 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
15805 "\xd1\x60\x91\xb3",
15806 .rlen = 128 + 20,
15807 },
15808};
15809
15810#define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1
15811
15812static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
15813 { /*Generated with cryptopp*/
15814#ifdef __LITTLE_ENDIAN
15815 .key = "\x08\x00" /* rta length */
15816 "\x01\x00" /* rta type */
15817#else
15818 .key = "\x00\x08" /* rta length */
15819 "\x00\x01" /* rta type */
15820#endif
15821 "\x00\x00\x00\x18" /* enc key length */
15822 "\x11\x22\x33\x44\x55\x66\x77\x88"
15823 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15824 "\x22\x33\x44\x55\x66\x77\x88\x99"
15825 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15826 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15827 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15828 .klen = 8 + 24 + 24,
15829 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15830 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15831 .alen = 8,
15832 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15833 "\x53\x20\x63\x65\x65\x72\x73\x74"
15834 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15835 "\x20\x79\x65\x53\x72\x63\x74\x65"
15836 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15837 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15838 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15839 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15840 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15841 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15842 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15843 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15844 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15845 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15846 "\x63\x65\x65\x72\x73\x74\x54\x20"
15847 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15848 .ilen = 128,
15849 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15850 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15851 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15852 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15853 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15854 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15855 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15856 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15857 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15858 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15859 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15860 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15861 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15862 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15863 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15864 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15865 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
15866 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
15867 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
15868 .rlen = 128 + 24,
15869 },
15870};
15871
15872#define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1
15873
15874static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
15875 { /*Generated with cryptopp*/
15876#ifdef __LITTLE_ENDIAN
15877 .key = "\x08\x00" /* rta length */
15878 "\x01\x00" /* rta type */
15879#else
15880 .key = "\x00\x08" /* rta length */
15881 "\x00\x01" /* rta type */
15882#endif
15883 "\x00\x00\x00\x18" /* enc key length */
15884 "\x11\x22\x33\x44\x55\x66\x77\x88"
15885 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15886 "\x22\x33\x44\x55\x66\x77\x88\x99"
15887 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15888 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15889 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15890 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15891 .klen = 8 + 32 + 24,
15892 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15893 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15894 .alen = 8,
15895 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15896 "\x53\x20\x63\x65\x65\x72\x73\x74"
15897 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15898 "\x20\x79\x65\x53\x72\x63\x74\x65"
15899 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15900 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15901 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15902 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15903 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15904 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15905 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15906 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15907 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15908 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15909 "\x63\x65\x65\x72\x73\x74\x54\x20"
15910 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15911 .ilen = 128,
15912 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15913 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15914 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15915 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15916 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15917 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15918 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15919 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15920 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15921 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15922 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15923 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15924 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15925 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15926 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15927 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15928 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
15929 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
15930 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
15931 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
15932 .rlen = 128 + 32,
15933 },
15934};
15935
15936#define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1
15937
15938static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
15939 { /*Generated with cryptopp*/
15940#ifdef __LITTLE_ENDIAN
15941 .key = "\x08\x00" /* rta length */
15942 "\x01\x00" /* rta type */
15943#else
15944 .key = "\x00\x08" /* rta length */
15945 "\x00\x01" /* rta type */
15946#endif
15947 "\x00\x00\x00\x18" /* enc key length */
15948 "\x11\x22\x33\x44\x55\x66\x77\x88"
15949 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15950 "\x22\x33\x44\x55\x66\x77\x88\x99"
15951 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15952 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15953 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15954 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15955 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15956 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15957 .klen = 8 + 48 + 24,
15958 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15959 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15960 .alen = 8,
15961 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15962 "\x53\x20\x63\x65\x65\x72\x73\x74"
15963 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15964 "\x20\x79\x65\x53\x72\x63\x74\x65"
15965 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15966 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15967 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15968 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15969 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15970 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15971 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15972 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15973 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15974 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15975 "\x63\x65\x65\x72\x73\x74\x54\x20"
15976 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15977 .ilen = 128,
15978 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15979 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15980 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15981 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15982 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15983 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15984 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15985 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15986 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15987 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15988 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15989 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15990 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15991 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15992 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15993 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15994 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
15995 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
15996 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
15997 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
15998 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
15999 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
16000 .rlen = 128 + 48,
16001 },
16002};
16003
16004#define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1
16005
16006static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
16007 { /*Generated with cryptopp*/
16008#ifdef __LITTLE_ENDIAN
16009 .key = "\x08\x00" /* rta length */
16010 "\x01\x00" /* rta type */
16011#else
16012 .key = "\x00\x08" /* rta length */
16013 "\x00\x01" /* rta type */
16014#endif
16015 "\x00\x00\x00\x18" /* enc key length */
16016 "\x11\x22\x33\x44\x55\x66\x77\x88"
16017 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16018 "\x22\x33\x44\x55\x66\x77\x88\x99"
16019 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16020 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16021 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16022 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16023 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16024 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
16025 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
16026 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
16027 .klen = 8 + 64 + 24,
16028 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
16029 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
16030 .alen = 8,
16031 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
16032 "\x53\x20\x63\x65\x65\x72\x73\x74"
16033 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
16034 "\x20\x79\x65\x53\x72\x63\x74\x65"
16035 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
16036 "\x79\x6e\x53\x20\x63\x65\x65\x72"
16037 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
16038 "\x6e\x61\x20\x79\x65\x53\x72\x63"
16039 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
16040 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
16041 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
16042 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
16043 "\x72\x63\x74\x65\x20\x73\x6f\x54"
16044 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
16045 "\x63\x65\x65\x72\x73\x74\x54\x20"
16046 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
16047 .ilen = 128,
16048 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
16049 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
16050 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
16051 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
16052 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
16053 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
16054 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
16055 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
16056 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
16057 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
16058 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
16059 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
16060 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
16061 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
16062 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
16063 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
16064 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
16065 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
16066 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
16067 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
16068 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
16069 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
16070 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
16071 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
16072 .rlen = 128 + 64,
16073 },
16074};
16075
da7f033d
HX
16076static struct cipher_testvec aes_lrw_enc_tv_template[] = {
16077 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
16078 { /* LRW-32-AES 1 */
16079 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
16080 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
16081 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
16082 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
16083 .klen = 32,
16084 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16085 "\x00\x00\x00\x00\x00\x00\x00\x01",
16086 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16087 "\x38\x39\x41\x42\x43\x44\x45\x46",
16088 .ilen = 16,
16089 .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
16090 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
16091 .rlen = 16,
16092 }, { /* LRW-32-AES 2 */
16093 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
16094 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
16095 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
16096 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
16097 .klen = 32,
16098 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16099 "\x00\x00\x00\x00\x00\x00\x00\x02",
16100 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16101 "\x38\x39\x41\x42\x43\x44\x45\x46",
16102 .ilen = 16,
16103 .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
16104 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
16105 .rlen = 16,
16106 }, { /* LRW-32-AES 3 */
16107 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
16108 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
16109 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
16110 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
16111 .klen = 32,
16112 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16113 "\x00\x00\x00\x02\x00\x00\x00\x00",
16114 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16115 "\x38\x39\x41\x42\x43\x44\x45\x46",
16116 .ilen = 16,
16117 .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
16118 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
16119 .rlen = 16,
16120 }, { /* LRW-32-AES 4 */
16121 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
16122 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
16123 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
16124 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
16125 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
16126 .klen = 40,
16127 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16128 "\x00\x00\x00\x00\x00\x00\x00\x01",
16129 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16130 "\x38\x39\x41\x42\x43\x44\x45\x46",
16131 .ilen = 16,
16132 .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
16133 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
16134 .rlen = 16,
16135 }, { /* LRW-32-AES 5 */
16136 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
16137 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
16138 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
16139 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
16140 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
16141 .klen = 40,
16142 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16143 "\x00\x00\x00\x02\x00\x00\x00\x00",
16144 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16145 "\x38\x39\x41\x42\x43\x44\x45\x46",
16146 .ilen = 16,
16147 .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
16148 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
16149 .rlen = 16,
16150 }, { /* LRW-32-AES 6 */
16151 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16152 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16153 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16154 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16155 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16156 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16157 .klen = 48,
16158 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16159 "\x00\x00\x00\x00\x00\x00\x00\x01",
16160 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16161 "\x38\x39\x41\x42\x43\x44\x45\x46",
16162 .ilen = 16,
16163 .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
16164 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
16165 .rlen = 16,
16166 }, { /* LRW-32-AES 7 */
16167 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
16168 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
16169 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
16170 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
16171 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
16172 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
16173 .klen = 48,
16174 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16175 "\x00\x00\x00\x02\x00\x00\x00\x00",
16176 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16177 "\x38\x39\x41\x42\x43\x44\x45\x46",
16178 .ilen = 16,
16179 .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
16180 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
16181 .rlen = 16,
16182 }, {
16183/* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
16184 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16185 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16186 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16187 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16188 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16189 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16190 .klen = 48,
16191 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16192 "\x00\x00\x00\x00\x00\x00\x00\x01",
16193 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
16194 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
16195 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
16196 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
16197 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
16198 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
16199 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
16200 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
16201 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
16202 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
16203 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
16204 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
16205 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
16206 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
16207 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
16208 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
16209 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
16210 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
16211 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
16212 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
16213 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
16214 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
16215 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
16216 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
16217 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
16218 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
16219 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
16220 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
16221 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
16222 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
16223 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
16224 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
16225 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
16226 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
16227 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
16228 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
16229 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
16230 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
16231 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
16232 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
16233 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
16234 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
16235 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
16236 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
16237 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
16238 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
16239 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
16240 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
16241 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
16242 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
16243 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
16244 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
16245 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
16246 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
16247 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
16248 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
16249 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
16250 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
16251 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
16252 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
16253 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
16254 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
16255 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
16256 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
16257 .ilen = 512,
16258 .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
16259 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
16260 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
16261 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
16262 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
16263 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
16264 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
16265 "\xe8\x58\x46\x97\x39\x51\x07\xde"
16266 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
16267 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
16268 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
16269 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
16270 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
16271 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
16272 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
16273 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
16274 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
16275 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
16276 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
16277 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
16278 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
16279 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
16280 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
16281 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
16282 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
16283 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
16284 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
16285 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
16286 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
16287 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
16288 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
16289 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
16290 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
16291 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
16292 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
16293 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
16294 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
16295 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
16296 "\xb8\x79\x78\x97\x94\xff\x72\x13"
16297 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
16298 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
16299 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
16300 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
16301 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
16302 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
16303 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
16304 "\x1e\x86\x53\x11\x53\x94\x00\xee"
16305 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
16306 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
16307 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
16308 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
16309 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
16310 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
16311 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
16312 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
16313 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
16314 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
16315 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
16316 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
16317 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
16318 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
16319 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
16320 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
16321 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
16322 .rlen = 512,
f44d83d1 16323 .also_non_np = 1,
3b9b8fe0
AB
16324 .np = 3,
16325 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
16326 }
16327};
16328
16329static struct cipher_testvec aes_lrw_dec_tv_template[] = {
16330 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
16331 /* same as enc vectors with input and result reversed */
16332 { /* LRW-32-AES 1 */
16333 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
16334 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
16335 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
16336 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
16337 .klen = 32,
16338 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16339 "\x00\x00\x00\x00\x00\x00\x00\x01",
16340 .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
16341 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
16342 .ilen = 16,
16343 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16344 "\x38\x39\x41\x42\x43\x44\x45\x46",
16345 .rlen = 16,
16346 }, { /* LRW-32-AES 2 */
16347 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
16348 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
16349 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
16350 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
16351 .klen = 32,
16352 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16353 "\x00\x00\x00\x00\x00\x00\x00\x02",
16354 .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
16355 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
16356 .ilen = 16,
16357 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16358 "\x38\x39\x41\x42\x43\x44\x45\x46",
16359 .rlen = 16,
16360 }, { /* LRW-32-AES 3 */
16361 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
16362 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
16363 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
16364 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
16365 .klen = 32,
16366 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16367 "\x00\x00\x00\x02\x00\x00\x00\x00",
16368 .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
16369 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
16370 .ilen = 16,
16371 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16372 "\x38\x39\x41\x42\x43\x44\x45\x46",
16373 .rlen = 16,
16374 }, { /* LRW-32-AES 4 */
16375 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
16376 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
16377 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
16378 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
16379 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
16380 .klen = 40,
16381 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16382 "\x00\x00\x00\x00\x00\x00\x00\x01",
16383 .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
16384 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
16385 .ilen = 16,
16386 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16387 "\x38\x39\x41\x42\x43\x44\x45\x46",
16388 .rlen = 16,
16389 }, { /* LRW-32-AES 5 */
16390 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
16391 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
16392 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
16393 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
16394 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
16395 .klen = 40,
16396 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16397 "\x00\x00\x00\x02\x00\x00\x00\x00",
16398 .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
16399 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
16400 .ilen = 16,
16401 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16402 "\x38\x39\x41\x42\x43\x44\x45\x46",
16403 .rlen = 16,
16404 }, { /* LRW-32-AES 6 */
16405 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16406 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16407 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16408 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16409 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16410 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16411 .klen = 48,
16412 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16413 "\x00\x00\x00\x00\x00\x00\x00\x01",
16414 .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
16415 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
16416 .ilen = 16,
16417 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16418 "\x38\x39\x41\x42\x43\x44\x45\x46",
16419 .rlen = 16,
16420 }, { /* LRW-32-AES 7 */
16421 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
16422 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
16423 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
16424 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
16425 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
16426 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
16427 .klen = 48,
16428 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16429 "\x00\x00\x00\x02\x00\x00\x00\x00",
16430 .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
16431 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
16432 .ilen = 16,
16433 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16434 "\x38\x39\x41\x42\x43\x44\x45\x46",
16435 .rlen = 16,
16436 }, {
16437/* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
16438 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16439 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16440 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16441 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16442 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16443 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16444 .klen = 48,
16445 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16446 "\x00\x00\x00\x00\x00\x00\x00\x01",
16447 .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
16448 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
16449 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
16450 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
16451 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
16452 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
16453 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
16454 "\xe8\x58\x46\x97\x39\x51\x07\xde"
16455 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
16456 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
16457 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
16458 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
16459 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
16460 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
16461 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
16462 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
16463 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
16464 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
16465 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
16466 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
16467 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
16468 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
16469 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
16470 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
16471 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
16472 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
16473 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
16474 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
16475 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
16476 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
16477 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
16478 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
16479 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
16480 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
16481 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
16482 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
16483 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
16484 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
16485 "\xb8\x79\x78\x97\x94\xff\x72\x13"
16486 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
16487 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
16488 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
16489 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
16490 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
16491 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
16492 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
16493 "\x1e\x86\x53\x11\x53\x94\x00\xee"
16494 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
16495 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
16496 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
16497 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
16498 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
16499 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
16500 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
16501 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
16502 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
16503 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
16504 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
16505 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
16506 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
16507 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
16508 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
16509 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
16510 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
16511 .ilen = 512,
16512 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
16513 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
16514 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
16515 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
16516 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
16517 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
16518 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
16519 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
16520 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
16521 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
16522 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
16523 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
16524 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
16525 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
16526 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
16527 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
16528 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
16529 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
16530 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
16531 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
16532 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
16533 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
16534 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
16535 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
16536 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
16537 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
16538 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
16539 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
16540 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
16541 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
16542 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
16543 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
16544 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
16545 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
16546 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
16547 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
16548 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
16549 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
16550 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
16551 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
16552 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
16553 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
16554 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
16555 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
16556 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
16557 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
16558 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
16559 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
16560 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
16561 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
16562 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
16563 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
16564 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
16565 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
16566 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
16567 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
16568 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
16569 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
16570 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
16571 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
16572 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
16573 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
16574 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
16575 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
16576 .rlen = 512,
f44d83d1 16577 .also_non_np = 1,
3b9b8fe0
AB
16578 .np = 3,
16579 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
16580 }
16581};
16582
16583static struct cipher_testvec aes_xts_enc_tv_template[] = {
16584 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
16585 { /* XTS-AES 1 */
16586 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
16587 "\x00\x00\x00\x00\x00\x00\x00\x00"
16588 "\x00\x00\x00\x00\x00\x00\x00\x00"
16589 "\x00\x00\x00\x00\x00\x00\x00\x00",
16590 .klen = 32,
16591 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16592 "\x00\x00\x00\x00\x00\x00\x00\x00",
16593 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
16594 "\x00\x00\x00\x00\x00\x00\x00\x00"
16595 "\x00\x00\x00\x00\x00\x00\x00\x00"
16596 "\x00\x00\x00\x00\x00\x00\x00\x00",
16597 .ilen = 32,
16598 .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
16599 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
16600 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
16601 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
16602 .rlen = 32,
16603 }, { /* XTS-AES 2 */
16604 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
16605 "\x11\x11\x11\x11\x11\x11\x11\x11"
16606 "\x22\x22\x22\x22\x22\x22\x22\x22"
16607 "\x22\x22\x22\x22\x22\x22\x22\x22",
16608 .klen = 32,
16609 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16610 "\x00\x00\x00\x00\x00\x00\x00\x00",
16611 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
16612 "\x44\x44\x44\x44\x44\x44\x44\x44"
16613 "\x44\x44\x44\x44\x44\x44\x44\x44"
16614 "\x44\x44\x44\x44\x44\x44\x44\x44",
16615 .ilen = 32,
16616 .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
16617 "\x39\x33\x40\x38\xac\xef\x83\x8b"
16618 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
16619 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
16620 .rlen = 32,
16621 }, { /* XTS-AES 3 */
16622 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
16623 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
16624 "\x22\x22\x22\x22\x22\x22\x22\x22"
16625 "\x22\x22\x22\x22\x22\x22\x22\x22",
16626 .klen = 32,
16627 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16628 "\x00\x00\x00\x00\x00\x00\x00\x00",
16629 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
16630 "\x44\x44\x44\x44\x44\x44\x44\x44"
16631 "\x44\x44\x44\x44\x44\x44\x44\x44"
16632 "\x44\x44\x44\x44\x44\x44\x44\x44",
16633 .ilen = 32,
16634 .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
16635 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
16636 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
16637 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
16638 .rlen = 32,
16639 }, { /* XTS-AES 4 */
16640 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
16641 "\x23\x53\x60\x28\x74\x71\x35\x26"
16642 "\x31\x41\x59\x26\x53\x58\x97\x93"
16643 "\x23\x84\x62\x64\x33\x83\x27\x95",
16644 .klen = 32,
16645 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16646 "\x00\x00\x00\x00\x00\x00\x00\x00",
16647 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16648 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16649 "\x10\x11\x12\x13\x14\x15\x16\x17"
16650 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16651 "\x20\x21\x22\x23\x24\x25\x26\x27"
16652 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16653 "\x30\x31\x32\x33\x34\x35\x36\x37"
16654 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16655 "\x40\x41\x42\x43\x44\x45\x46\x47"
16656 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16657 "\x50\x51\x52\x53\x54\x55\x56\x57"
16658 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16659 "\x60\x61\x62\x63\x64\x65\x66\x67"
16660 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16661 "\x70\x71\x72\x73\x74\x75\x76\x77"
16662 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16663 "\x80\x81\x82\x83\x84\x85\x86\x87"
16664 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16665 "\x90\x91\x92\x93\x94\x95\x96\x97"
16666 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16667 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16668 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16669 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16670 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16671 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16672 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16673 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16674 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16675 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16676 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16677 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16678 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
16679 "\x00\x01\x02\x03\x04\x05\x06\x07"
16680 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16681 "\x10\x11\x12\x13\x14\x15\x16\x17"
16682 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16683 "\x20\x21\x22\x23\x24\x25\x26\x27"
16684 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16685 "\x30\x31\x32\x33\x34\x35\x36\x37"
16686 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16687 "\x40\x41\x42\x43\x44\x45\x46\x47"
16688 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16689 "\x50\x51\x52\x53\x54\x55\x56\x57"
16690 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16691 "\x60\x61\x62\x63\x64\x65\x66\x67"
16692 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16693 "\x70\x71\x72\x73\x74\x75\x76\x77"
16694 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16695 "\x80\x81\x82\x83\x84\x85\x86\x87"
16696 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16697 "\x90\x91\x92\x93\x94\x95\x96\x97"
16698 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16699 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16700 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16701 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16702 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16703 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16704 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16705 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16706 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16707 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16708 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16709 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16710 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
16711 .ilen = 512,
16712 .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
16713 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
16714 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
16715 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
16716 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
16717 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
16718 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
16719 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
16720 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
16721 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
16722 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
16723 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
16724 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
16725 "\x22\x97\x61\x46\xae\x20\xce\x84"
16726 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
16727 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
16728 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
16729 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
16730 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
16731 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
16732 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
16733 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
16734 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
16735 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
16736 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
16737 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
16738 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
16739 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
16740 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
16741 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
16742 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
16743 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
16744 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
16745 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
16746 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
16747 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
16748 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
16749 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
16750 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
16751 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
16752 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
16753 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
16754 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
16755 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
16756 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
16757 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
16758 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
16759 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
16760 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
16761 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
16762 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
16763 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
16764 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
16765 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
16766 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
16767 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
16768 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
16769 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
16770 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
16771 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
16772 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
16773 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
16774 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
16775 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
16776 .rlen = 512,
5165e5b1
JW
16777 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
16778 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
16779 "\x23\x53\x60\x28\x74\x71\x35\x26"
16780 "\x62\x49\x77\x57\x24\x70\x93\x69"
16781 "\x99\x59\x57\x49\x66\x96\x76\x27"
16782 "\x31\x41\x59\x26\x53\x58\x97\x93"
16783 "\x23\x84\x62\x64\x33\x83\x27\x95"
16784 "\x02\x88\x41\x97\x16\x93\x99\x37"
16785 "\x51\x05\x82\x09\x74\x94\x45\x92",
16786 .klen = 64,
16787 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
16788 "\x00\x00\x00\x00\x00\x00\x00\x00",
5165e5b1
JW
16789 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16790 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16791 "\x10\x11\x12\x13\x14\x15\x16\x17"
16792 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16793 "\x20\x21\x22\x23\x24\x25\x26\x27"
16794 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16795 "\x30\x31\x32\x33\x34\x35\x36\x37"
16796 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16797 "\x40\x41\x42\x43\x44\x45\x46\x47"
16798 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16799 "\x50\x51\x52\x53\x54\x55\x56\x57"
16800 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16801 "\x60\x61\x62\x63\x64\x65\x66\x67"
16802 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16803 "\x70\x71\x72\x73\x74\x75\x76\x77"
16804 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16805 "\x80\x81\x82\x83\x84\x85\x86\x87"
16806 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16807 "\x90\x91\x92\x93\x94\x95\x96\x97"
16808 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16809 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16810 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16811 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16812 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16813 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16814 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16815 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16816 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16817 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16818 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16819 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16820 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
16821 "\x00\x01\x02\x03\x04\x05\x06\x07"
16822 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16823 "\x10\x11\x12\x13\x14\x15\x16\x17"
16824 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16825 "\x20\x21\x22\x23\x24\x25\x26\x27"
16826 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16827 "\x30\x31\x32\x33\x34\x35\x36\x37"
16828 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16829 "\x40\x41\x42\x43\x44\x45\x46\x47"
16830 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16831 "\x50\x51\x52\x53\x54\x55\x56\x57"
16832 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16833 "\x60\x61\x62\x63\x64\x65\x66\x67"
16834 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16835 "\x70\x71\x72\x73\x74\x75\x76\x77"
16836 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16837 "\x80\x81\x82\x83\x84\x85\x86\x87"
16838 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16839 "\x90\x91\x92\x93\x94\x95\x96\x97"
16840 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16841 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16842 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16843 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16844 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16845 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16846 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16847 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16848 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16849 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16850 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16851 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16852 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
16853 .ilen = 512,
16854 .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
16855 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
16856 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
16857 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
16858 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
16859 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
16860 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
16861 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
16862 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
16863 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
16864 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
16865 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
16866 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
16867 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
16868 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
16869 "\x00\x02\x08\x87\x89\x14\x29\xca"
16870 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
16871 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
16872 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
16873 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
16874 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
16875 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
16876 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
16877 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
16878 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
16879 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
16880 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
16881 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
16882 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
16883 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
16884 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
16885 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
16886 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
16887 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
16888 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
16889 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
16890 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
16891 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
16892 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
16893 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
16894 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
16895 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
16896 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
16897 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
16898 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
16899 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
16900 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
16901 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
16902 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
16903 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
16904 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
16905 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
16906 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
16907 "\x94\x30\x54\xff\x84\x01\x14\x93"
16908 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
16909 "\x53\x76\x44\x1a\x77\xed\x43\x85"
16910 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
16911 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
16912 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
16913 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
16914 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
16915 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
16916 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
16917 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
16918 .rlen = 512,
f44d83d1 16919 .also_non_np = 1,
3b9b8fe0
AB
16920 .np = 3,
16921 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
16922 }
16923};
16924
16925static struct cipher_testvec aes_xts_dec_tv_template[] = {
16926 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
16927 { /* XTS-AES 1 */
16928 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
16929 "\x00\x00\x00\x00\x00\x00\x00\x00"
16930 "\x00\x00\x00\x00\x00\x00\x00\x00"
16931 "\x00\x00\x00\x00\x00\x00\x00\x00",
16932 .klen = 32,
16933 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16934 "\x00\x00\x00\x00\x00\x00\x00\x00",
16935 .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
16936 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
16937 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
16938 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
16939 .ilen = 32,
16940 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
16941 "\x00\x00\x00\x00\x00\x00\x00\x00"
16942 "\x00\x00\x00\x00\x00\x00\x00\x00"
16943 "\x00\x00\x00\x00\x00\x00\x00\x00",
16944 .rlen = 32,
16945 }, { /* XTS-AES 2 */
16946 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
16947 "\x11\x11\x11\x11\x11\x11\x11\x11"
16948 "\x22\x22\x22\x22\x22\x22\x22\x22"
16949 "\x22\x22\x22\x22\x22\x22\x22\x22",
16950 .klen = 32,
16951 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16952 "\x00\x00\x00\x00\x00\x00\x00\x00",
16953 .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
16954 "\x39\x33\x40\x38\xac\xef\x83\x8b"
16955 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
16956 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
16957 .ilen = 32,
16958 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
16959 "\x44\x44\x44\x44\x44\x44\x44\x44"
16960 "\x44\x44\x44\x44\x44\x44\x44\x44"
16961 "\x44\x44\x44\x44\x44\x44\x44\x44",
16962 .rlen = 32,
16963 }, { /* XTS-AES 3 */
16964 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
16965 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
16966 "\x22\x22\x22\x22\x22\x22\x22\x22"
16967 "\x22\x22\x22\x22\x22\x22\x22\x22",
16968 .klen = 32,
16969 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16970 "\x00\x00\x00\x00\x00\x00\x00\x00",
16971 .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
16972 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
16973 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
16974 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
16975 .ilen = 32,
16976 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
16977 "\x44\x44\x44\x44\x44\x44\x44\x44"
16978 "\x44\x44\x44\x44\x44\x44\x44\x44"
16979 "\x44\x44\x44\x44\x44\x44\x44\x44",
16980 .rlen = 32,
16981 }, { /* XTS-AES 4 */
16982 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
16983 "\x23\x53\x60\x28\x74\x71\x35\x26"
16984 "\x31\x41\x59\x26\x53\x58\x97\x93"
16985 "\x23\x84\x62\x64\x33\x83\x27\x95",
16986 .klen = 32,
16987 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16988 "\x00\x00\x00\x00\x00\x00\x00\x00",
16989 .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
16990 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
16991 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
16992 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
16993 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
16994 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
16995 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
16996 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
16997 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
16998 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
16999 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
17000 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
17001 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
17002 "\x22\x97\x61\x46\xae\x20\xce\x84"
17003 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
17004 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
17005 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
17006 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
17007 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
17008 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
17009 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
17010 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
17011 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
17012 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
17013 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
17014 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
17015 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
17016 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
17017 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
17018 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
17019 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
17020 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
17021 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
17022 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
17023 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
17024 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
17025 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
17026 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
17027 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
17028 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
17029 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
17030 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
17031 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
17032 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
17033 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
17034 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
17035 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
17036 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
17037 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
17038 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
17039 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
17040 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
17041 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
17042 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
17043 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
17044 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
17045 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
17046 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
17047 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
17048 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
17049 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
17050 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
17051 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
17052 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
17053 .ilen = 512,
17054 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
17055 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17056 "\x10\x11\x12\x13\x14\x15\x16\x17"
17057 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17058 "\x20\x21\x22\x23\x24\x25\x26\x27"
17059 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17060 "\x30\x31\x32\x33\x34\x35\x36\x37"
17061 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17062 "\x40\x41\x42\x43\x44\x45\x46\x47"
17063 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17064 "\x50\x51\x52\x53\x54\x55\x56\x57"
17065 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17066 "\x60\x61\x62\x63\x64\x65\x66\x67"
17067 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17068 "\x70\x71\x72\x73\x74\x75\x76\x77"
17069 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17070 "\x80\x81\x82\x83\x84\x85\x86\x87"
17071 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17072 "\x90\x91\x92\x93\x94\x95\x96\x97"
17073 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17074 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17075 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17076 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17077 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17078 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17079 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17080 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17081 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17082 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17083 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17084 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17085 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
17086 "\x00\x01\x02\x03\x04\x05\x06\x07"
17087 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17088 "\x10\x11\x12\x13\x14\x15\x16\x17"
17089 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17090 "\x20\x21\x22\x23\x24\x25\x26\x27"
17091 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17092 "\x30\x31\x32\x33\x34\x35\x36\x37"
17093 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17094 "\x40\x41\x42\x43\x44\x45\x46\x47"
17095 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17096 "\x50\x51\x52\x53\x54\x55\x56\x57"
17097 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17098 "\x60\x61\x62\x63\x64\x65\x66\x67"
17099 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17100 "\x70\x71\x72\x73\x74\x75\x76\x77"
17101 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17102 "\x80\x81\x82\x83\x84\x85\x86\x87"
17103 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17104 "\x90\x91\x92\x93\x94\x95\x96\x97"
17105 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17106 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17107 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17108 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17109 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17110 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17111 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17112 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17113 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17114 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17115 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17116 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17117 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17118 .rlen = 512,
5165e5b1
JW
17119 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
17120 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
17121 "\x23\x53\x60\x28\x74\x71\x35\x26"
17122 "\x62\x49\x77\x57\x24\x70\x93\x69"
17123 "\x99\x59\x57\x49\x66\x96\x76\x27"
17124 "\x31\x41\x59\x26\x53\x58\x97\x93"
17125 "\x23\x84\x62\x64\x33\x83\x27\x95"
17126 "\x02\x88\x41\x97\x16\x93\x99\x37"
17127 "\x51\x05\x82\x09\x74\x94\x45\x92",
17128 .klen = 64,
17129 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
17130 "\x00\x00\x00\x00\x00\x00\x00\x00",
5165e5b1
JW
17131 .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
17132 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
17133 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
17134 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
17135 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
17136 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
17137 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
17138 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
17139 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
17140 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
17141 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
17142 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
17143 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
17144 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
17145 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
17146 "\x00\x02\x08\x87\x89\x14\x29\xca"
17147 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
17148 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
17149 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
17150 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
17151 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
17152 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
17153 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
17154 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
17155 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
17156 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
17157 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
17158 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
17159 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
17160 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
17161 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
17162 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
17163 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
17164 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
17165 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
17166 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
17167 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
17168 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
17169 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
17170 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
17171 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
17172 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
17173 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
17174 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
17175 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
17176 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
17177 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
17178 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
17179 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
17180 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
17181 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
17182 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
17183 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
17184 "\x94\x30\x54\xff\x84\x01\x14\x93"
17185 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
17186 "\x53\x76\x44\x1a\x77\xed\x43\x85"
17187 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
17188 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
17189 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
17190 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
17191 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
17192 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
17193 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
17194 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
17195 .ilen = 512,
17196 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
17197 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17198 "\x10\x11\x12\x13\x14\x15\x16\x17"
17199 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17200 "\x20\x21\x22\x23\x24\x25\x26\x27"
17201 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17202 "\x30\x31\x32\x33\x34\x35\x36\x37"
17203 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17204 "\x40\x41\x42\x43\x44\x45\x46\x47"
17205 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17206 "\x50\x51\x52\x53\x54\x55\x56\x57"
17207 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17208 "\x60\x61\x62\x63\x64\x65\x66\x67"
17209 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17210 "\x70\x71\x72\x73\x74\x75\x76\x77"
17211 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17212 "\x80\x81\x82\x83\x84\x85\x86\x87"
17213 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17214 "\x90\x91\x92\x93\x94\x95\x96\x97"
17215 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17216 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17217 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17218 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17219 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17220 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17221 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17222 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17223 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17224 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17225 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17226 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17227 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
17228 "\x00\x01\x02\x03\x04\x05\x06\x07"
17229 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17230 "\x10\x11\x12\x13\x14\x15\x16\x17"
17231 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17232 "\x20\x21\x22\x23\x24\x25\x26\x27"
17233 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17234 "\x30\x31\x32\x33\x34\x35\x36\x37"
17235 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17236 "\x40\x41\x42\x43\x44\x45\x46\x47"
17237 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17238 "\x50\x51\x52\x53\x54\x55\x56\x57"
17239 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17240 "\x60\x61\x62\x63\x64\x65\x66\x67"
17241 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17242 "\x70\x71\x72\x73\x74\x75\x76\x77"
17243 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17244 "\x80\x81\x82\x83\x84\x85\x86\x87"
17245 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17246 "\x90\x91\x92\x93\x94\x95\x96\x97"
17247 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17248 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17249 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17250 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17251 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17252 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17253 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17254 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17255 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17256 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17257 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17258 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17259 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17260 .rlen = 512,
f44d83d1 17261 .also_non_np = 1,
3b9b8fe0
AB
17262 .np = 3,
17263 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
17264 }
17265};
17266
17267
17268static struct cipher_testvec aes_ctr_enc_tv_template[] = {
f7cb80f2
JW
17269 { /* From NIST Special Publication 800-38A, Appendix F.5 */
17270 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
17271 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
17272 .klen = 16,
17273 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17274 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17275 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17276 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17277 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17278 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17279 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17280 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17281 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17282 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17283 .ilen = 64,
17284 .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
17285 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
17286 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
17287 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
17288 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
17289 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
17290 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
17291 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
17292 .rlen = 64,
17293 }, {
17294 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
17295 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
17296 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
17297 .klen = 24,
17298 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17299 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17300 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17301 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17302 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17303 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17304 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17305 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17306 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17307 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17308 .ilen = 64,
17309 .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
17310 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
17311 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
17312 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
17313 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
17314 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
17315 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
17316 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
17317 .rlen = 64,
17318 }, {
17319 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17320 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17321 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17322 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17323 .klen = 32,
17324 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17325 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17326 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17327 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17328 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17329 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17330 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17331 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17332 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17333 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17334 .ilen = 64,
17335 .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
17336 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
17337 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
17338 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
17339 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
17340 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
17341 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
17342 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
17343 .rlen = 64,
c3b9e8f6
JK
17344 }, { /* Generated with Crypto++ */
17345 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17346 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17347 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17348 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17349 .klen = 32,
17350 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
17351 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
17352 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17353 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17354 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17355 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17356 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17357 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17358 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17359 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17360 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17361 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17362 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17363 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17364 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17365 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17366 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17367 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17368 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17369 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17370 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17371 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17372 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17373 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17374 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17375 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17376 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17377 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17378 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17379 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17380 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17381 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17382 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17383 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17384 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17385 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17386 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17387 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17388 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17389 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17390 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17391 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17392 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17393 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17394 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17395 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17396 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17397 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17398 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17399 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17400 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17401 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17402 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17403 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17404 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17405 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17406 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17407 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17408 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17409 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17410 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17411 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17412 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17413 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
17414 .ilen = 496,
17415 .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
17416 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
17417 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
17418 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
17419 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
17420 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
17421 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
17422 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
17423 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
17424 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
17425 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
17426 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
17427 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
17428 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
17429 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
17430 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
17431 "\x34\x4B\x31\x69\x84\x66\x96\x44"
17432 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
17433 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
17434 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
17435 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
17436 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
17437 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
17438 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
17439 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
17440 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
17441 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
17442 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
17443 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
17444 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
17445 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
17446 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
17447 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
17448 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
17449 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
17450 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
17451 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
17452 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
17453 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
17454 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
17455 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
17456 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
17457 "\x85\x99\x22\xE8\x91\x38\x70\x83"
17458 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
17459 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
17460 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
17461 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
17462 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
17463 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
17464 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
17465 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
17466 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
17467 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
17468 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
17469 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
17470 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
17471 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
17472 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
17473 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
17474 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
17475 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
17476 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
17477 .rlen = 496,
17478 .also_non_np = 1,
3b9b8fe0
AB
17479 .np = 3,
17480 .tap = { 496 - 20, 4, 16 },
c3b9e8f6
JK
17481 }, { /* Generated with Crypto++ */
17482 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17483 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17484 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17485 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17486 .klen = 32,
17487 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
17488 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
17489 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17490 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17491 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17492 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17493 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17494 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17495 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17496 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17497 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17498 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17499 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17500 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17501 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17502 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17503 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17504 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17505 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17506 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17507 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17508 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17509 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17510 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17511 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17512 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17513 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17514 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17515 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17516 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17517 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17518 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17519 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17520 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17521 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17522 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17523 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17524 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17525 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17526 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17527 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17528 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17529 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17530 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17531 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17532 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17533 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17534 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17535 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17536 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17537 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17538 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17539 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17540 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17541 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17542 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17543 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17544 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17545 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17546 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17547 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17548 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17549 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17550 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
17551 "\x7B\xE4\x4D",
17552 .ilen = 499,
17553 .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
17554 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
17555 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
17556 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
17557 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
17558 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
17559 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
17560 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
17561 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
17562 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
17563 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
17564 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
17565 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
17566 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
17567 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
17568 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
17569 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
17570 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
17571 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
17572 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
17573 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
17574 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
17575 "\x45\x18\x18\x74\x19\xAD\x71\x01"
17576 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
17577 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
17578 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
17579 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
17580 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
17581 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
17582 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
17583 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
17584 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
17585 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
17586 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
17587 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
17588 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
17589 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
17590 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
17591 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
17592 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
17593 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
17594 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
17595 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
17596 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
17597 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
17598 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
17599 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
17600 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
17601 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
17602 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
17603 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
17604 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
17605 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
17606 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
17607 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
17608 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
17609 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
17610 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
17611 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
17612 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
17613 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
17614 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
17615 "\xFB\xF2\x3F",
17616 .rlen = 499,
17617 .also_non_np = 1,
17618 .np = 2,
17619 .tap = { 499 - 16, 16 },
17620 },
f7cb80f2
JW
17621};
17622
17623static struct cipher_testvec aes_ctr_dec_tv_template[] = {
17624 { /* From NIST Special Publication 800-38A, Appendix F.5 */
17625 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
17626 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
17627 .klen = 16,
17628 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17629 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17630 .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
17631 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
17632 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
17633 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
17634 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
17635 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
17636 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
17637 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
17638 .ilen = 64,
17639 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17640 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17641 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17642 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17643 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17644 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17645 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17646 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17647 .rlen = 64,
17648 }, {
17649 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
17650 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
17651 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
17652 .klen = 24,
17653 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17654 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17655 .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
17656 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
17657 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
17658 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
17659 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
17660 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
17661 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
17662 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
17663 .ilen = 64,
17664 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17665 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17666 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17667 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17668 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17669 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17670 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17671 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17672 .rlen = 64,
17673 }, {
17674 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17675 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17676 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17677 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17678 .klen = 32,
17679 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17680 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17681 .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
17682 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
17683 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
17684 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
17685 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
17686 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
17687 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
17688 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
17689 .ilen = 64,
17690 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17691 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17692 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17693 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17694 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17695 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17696 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17697 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17698 .rlen = 64,
c3b9e8f6
JK
17699 }, { /* Generated with Crypto++ */
17700 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17701 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17702 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17703 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17704 .klen = 32,
17705 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
17706 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
17707 .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
17708 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
17709 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
17710 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
17711 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
17712 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
17713 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
17714 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
17715 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
17716 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
17717 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
17718 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
17719 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
17720 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
17721 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
17722 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
17723 "\x34\x4B\x31\x69\x84\x66\x96\x44"
17724 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
17725 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
17726 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
17727 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
17728 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
17729 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
17730 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
17731 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
17732 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
17733 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
17734 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
17735 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
17736 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
17737 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
17738 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
17739 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
17740 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
17741 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
17742 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
17743 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
17744 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
17745 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
17746 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
17747 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
17748 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
17749 "\x85\x99\x22\xE8\x91\x38\x70\x83"
17750 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
17751 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
17752 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
17753 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
17754 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
17755 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
17756 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
17757 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
17758 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
17759 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
17760 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
17761 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
17762 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
17763 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
17764 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
17765 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
17766 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
17767 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
17768 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
17769 .ilen = 496,
17770 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17771 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17772 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17773 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17774 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17775 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17776 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17777 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17778 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17779 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17780 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17781 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17782 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17783 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17784 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17785 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17786 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17787 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17788 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17789 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17790 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17791 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17792 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17793 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17794 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17795 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17796 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17797 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17798 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17799 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17800 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17801 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17802 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17803 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17804 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17805 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17806 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17807 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17808 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17809 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17810 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17811 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17812 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17813 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17814 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17815 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17816 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17817 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17818 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17819 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17820 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17821 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17822 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17823 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17824 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17825 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17826 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17827 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17828 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17829 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17830 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17831 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
17832 .rlen = 496,
17833 .also_non_np = 1,
3b9b8fe0
AB
17834 .np = 3,
17835 .tap = { 496 - 20, 4, 16 },
c3b9e8f6
JK
17836 }, { /* Generated with Crypto++ */
17837 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17838 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17839 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17840 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17841 .klen = 32,
17842 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
17843 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
17844 .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
17845 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
17846 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
17847 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
17848 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
17849 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
17850 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
17851 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
17852 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
17853 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
17854 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
17855 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
17856 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
17857 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
17858 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
17859 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
17860 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
17861 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
17862 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
17863 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
17864 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
17865 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
17866 "\x45\x18\x18\x74\x19\xAD\x71\x01"
17867 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
17868 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
17869 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
17870 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
17871 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
17872 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
17873 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
17874 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
17875 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
17876 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
17877 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
17878 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
17879 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
17880 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
17881 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
17882 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
17883 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
17884 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
17885 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
17886 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
17887 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
17888 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
17889 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
17890 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
17891 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
17892 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
17893 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
17894 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
17895 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
17896 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
17897 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
17898 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
17899 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
17900 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
17901 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
17902 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
17903 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
17904 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
17905 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
17906 "\xFB\xF2\x3F",
17907 .ilen = 499,
17908 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17909 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17910 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17911 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17912 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17913 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17914 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17915 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17916 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17917 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17918 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17919 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17920 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17921 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17922 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17923 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17924 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17925 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17926 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17927 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17928 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17929 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17930 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17931 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17932 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17933 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17934 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17935 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17936 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17937 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17938 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17939 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17940 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17941 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17942 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17943 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17944 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17945 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17946 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17947 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17948 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17949 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17950 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17951 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17952 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17953 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17954 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17955 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17956 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17957 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17958 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17959 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17960 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17961 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17962 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17963 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17964 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17965 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17966 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17967 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17968 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17969 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
17970 "\x7B\xE4\x4D",
17971 .rlen = 499,
17972 .also_non_np = 1,
17973 .np = 2,
17974 .tap = { 499 - 16, 16 },
17975 },
f7cb80f2
JW
17976};
17977
17978static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
da7f033d
HX
17979 { /* From RFC 3686 */
17980 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
17981 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
17982 "\x00\x00\x00\x30",
17983 .klen = 20,
17984 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
17985 .input = "Single block msg",
17986 .ilen = 16,
17987 .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
17988 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
17989 .rlen = 16,
17990 }, {
17991 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
17992 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
17993 "\x00\x6c\xb6\xdb",
17994 .klen = 20,
17995 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
17996 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
17997 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17998 "\x10\x11\x12\x13\x14\x15\x16\x17"
17999 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
18000 .ilen = 32,
18001 .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
18002 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
18003 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
18004 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
18005 .rlen = 32,
18006 }, {
18007 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
18008 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
18009 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
18010 "\x00\x00\x00\x48",
18011 .klen = 28,
18012 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
18013 .input = "Single block msg",
18014 .ilen = 16,
18015 .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
18016 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
18017 .rlen = 16,
18018 }, {
18019 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
18020 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
18021 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
18022 "\x00\x96\xb0\x3b",
18023 .klen = 28,
18024 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
18025 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18026 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18027 "\x10\x11\x12\x13\x14\x15\x16\x17"
18028 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
18029 .ilen = 32,
18030 .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
18031 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
18032 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
18033 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
18034 .rlen = 32,
18035 }, {
18036 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
18037 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
18038 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
18039 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
18040 "\x00\x00\x00\x60",
18041 .klen = 36,
18042 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
18043 .input = "Single block msg",
18044 .ilen = 16,
18045 .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
18046 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
18047 .rlen = 16,
18048 }, {
18049 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
18050 "\x07\x96\x36\x58\x79\xef\xf8\x86"
18051 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
18052 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
18053 "\x00\xfa\xac\x24",
18054 .klen = 36,
18055 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
18056 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18057 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18058 "\x10\x11\x12\x13\x14\x15\x16\x17"
18059 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
18060 .ilen = 32,
18061 .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
18062 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
18063 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
18064 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
18065 .rlen = 32,
18066 }, {
18067 // generated using Crypto++
18068 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
18069 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18070 "\x10\x11\x12\x13\x14\x15\x16\x17"
18071 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18072 "\x00\x00\x00\x00",
18073 .klen = 32 + 4,
18074 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
18075 .input =
18076 "\x00\x01\x02\x03\x04\x05\x06\x07"
18077 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18078 "\x10\x11\x12\x13\x14\x15\x16\x17"
18079 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18080 "\x20\x21\x22\x23\x24\x25\x26\x27"
18081 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18082 "\x30\x31\x32\x33\x34\x35\x36\x37"
18083 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18084 "\x40\x41\x42\x43\x44\x45\x46\x47"
18085 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18086 "\x50\x51\x52\x53\x54\x55\x56\x57"
18087 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18088 "\x60\x61\x62\x63\x64\x65\x66\x67"
18089 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18090 "\x70\x71\x72\x73\x74\x75\x76\x77"
18091 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18092 "\x80\x81\x82\x83\x84\x85\x86\x87"
18093 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18094 "\x90\x91\x92\x93\x94\x95\x96\x97"
18095 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18096 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18097 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18098 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18099 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18100 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18101 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18102 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18103 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18104 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18105 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18106 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18107 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18108 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
18109 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
18110 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
18111 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
18112 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
18113 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
18114 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
18115 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
18116 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
18117 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
18118 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
18119 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
18120 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
18121 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
18122 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
18123 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
18124 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
18125 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
18126 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
18127 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
18128 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
18129 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
18130 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
18131 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
18132 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
18133 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
18134 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
18135 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
18136 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
18137 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
18138 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
18139 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
18140 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
18141 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
18142 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
18143 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
18144 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
18145 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
18146 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
18147 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
18148 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
18149 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
18150 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
18151 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
18152 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
18153 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
18154 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
18155 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
18156 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
18157 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
18158 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
18159 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
18160 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
18161 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
18162 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
18163 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
18164 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
18165 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
18166 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
18167 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
18168 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
18169 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
18170 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
18171 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
18172 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
18173 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
18174 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
18175 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
18176 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
18177 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
18178 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
18179 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
18180 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
18181 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
18182 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
18183 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
18184 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
18185 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
18186 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
18187 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
18188 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
18189 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
18190 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
18191 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
18192 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
18193 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
18194 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
18195 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
18196 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
18197 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
18198 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
18199 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
18200 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
18201 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
18202 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
18203 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
18204 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
18205 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
18206 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
18207 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
18208 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
18209 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
18210 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
18211 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
18212 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
18213 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
18214 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
18215 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
18216 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
18217 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
18218 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
18219 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
18220 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
18221 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
18222 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
18223 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
18224 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
18225 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
18226 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
18227 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
18228 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
18229 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
18230 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
18231 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
18232 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
18233 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
18234 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
18235 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
18236 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
18237 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
18238 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
18239 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
18240 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
18241 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
18242 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
18243 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
18244 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
18245 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
18246 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
18247 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
18248 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
18249 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
18250 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
18251 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
18252 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
18253 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
18254 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
18255 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
18256 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
18257 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
18258 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
18259 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
18260 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
18261 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
18262 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
18263 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
18264 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
18265 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
18266 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
18267 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
18268 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
18269 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
18270 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
18271 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
18272 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
18273 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
18274 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
18275 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
18276 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
18277 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
18278 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
18279 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
18280 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
18281 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
18282 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
18283 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
18284 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
18285 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
18286 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
18287 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
18288 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
18289 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
18290 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
18291 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
18292 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
18293 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
18294 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
18295 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
18296 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
18297 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
18298 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
18299 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
18300 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
18301 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
18302 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
18303 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
18304 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
18305 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
18306 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
18307 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
18308 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
18309 "\x38\x47\x56\x65\x74\x83\x92\xa1"
18310 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
18311 "\x28\x37\x46\x55\x64\x73\x82\x91"
18312 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
18313 "\x18\x27\x36\x45\x54\x63\x72\x81"
18314 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
18315 "\x08\x17\x26\x35\x44\x53\x62\x71"
18316 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
18317 "\xf8\x07\x16\x25\x34\x43\x52\x61"
18318 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
18319 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
18320 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
18321 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
18322 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
18323 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
18324 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
18325 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
18326 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
18327 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
18328 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
18329 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
18330 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
18331 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
18332 "\x00\x11\x22\x33\x44\x55\x66\x77"
18333 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
18334 "\x10\x21\x32\x43\x54\x65\x76\x87"
18335 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
18336 "\x20\x31\x42\x53\x64\x75\x86\x97"
18337 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
18338 "\x30\x41\x52\x63\x74\x85\x96\xa7"
18339 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
18340 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
18341 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
18342 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
18343 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
18344 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
18345 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
18346 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
18347 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
18348 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
18349 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
18350 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
18351 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
18352 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
18353 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
18354 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
18355 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
18356 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
18357 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
18358 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
18359 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
18360 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
18361 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
18362 "\xf0\x01\x12\x23\x34\x45\x56\x67"
18363 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
18364 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
18365 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
18366 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
18367 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
18368 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
18369 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
18370 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
18371 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
18372 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
18373 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
18374 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
18375 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
18376 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
18377 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
18378 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
18379 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
18380 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
18381 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
18382 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
18383 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
18384 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
18385 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
18386 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
18387 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
18388 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
18389 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
18390 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
18391 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
18392 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
18393 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
18394 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
18395 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
18396 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
18397 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
18398 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
18399 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
18400 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
18401 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
18402 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
18403 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
18404 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
18405 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
18406 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
18407 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
18408 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
18409 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
18410 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
18411 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
18412 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
18413 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
18414 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
18415 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
18416 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
18417 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
18418 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
18419 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
18420 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
18421 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
18422 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
18423 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
18424 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
18425 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
18426 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
18427 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
18428 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
18429 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
18430 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
18431 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
18432 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
18433 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
18434 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
18435 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
18436 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
18437 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
18438 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
18439 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
18440 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
18441 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
18442 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
18443 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
18444 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
18445 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
18446 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
18447 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
18448 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
18449 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
18450 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
18451 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
18452 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
18453 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
18454 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
18455 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
18456 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
18457 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
18458 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
18459 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
18460 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
18461 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
18462 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
18463 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
18464 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
18465 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
18466 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
18467 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
18468 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
18469 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
18470 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
18471 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
18472 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
18473 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
18474 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
18475 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
18476 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
18477 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
18478 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
18479 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
18480 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
18481 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
18482 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
18483 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
18484 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
18485 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
18486 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
18487 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
18488 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
18489 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
18490 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
18491 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
18492 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
18493 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
18494 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
18495 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
18496 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
18497 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
18498 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
18499 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
18500 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
18501 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
18502 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
18503 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
18504 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
18505 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
18506 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
18507 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
18508 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
18509 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
18510 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
18511 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
18512 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
18513 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
18514 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
18515 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
18516 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
18517 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
18518 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
18519 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
18520 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
18521 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
18522 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
18523 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
18524 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
18525 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
18526 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
18527 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
18528 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
18529 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
18530 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
18531 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
18532 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
18533 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
18534 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
18535 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
18536 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
18537 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
18538 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
18539 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
18540 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
18541 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
18542 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
18543 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
18544 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
18545 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
18546 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
18547 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
18548 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
18549 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
18550 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
18551 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
18552 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
18553 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
18554 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
18555 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
18556 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
18557 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
18558 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
18559 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
18560 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
18561 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
18562 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
18563 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
18564 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
18565 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
18566 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
18567 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
18568 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
18569 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
18570 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
18571 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
18572 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
18573 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
18574 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
18575 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
18576 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
18577 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
18578 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
18579 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
18580 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
18581 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
18582 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
18583 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
18584 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
18585 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
18586 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
18587 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
18588 "\x00\x21\x42\x63",
18589 .ilen = 4100,
18590 .result =
18591 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
18592 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
18593 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
18594 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
18595 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
18596 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
18597 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
18598 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
18599 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
18600 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
18601 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
18602 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
18603 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
18604 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
18605 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
18606 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
18607 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
18608 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
18609 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
18610 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
18611 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
18612 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
18613 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
18614 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
18615 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
18616 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
18617 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
18618 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
18619 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
18620 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
18621 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
18622 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
18623 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
18624 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
18625 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
18626 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
18627 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
18628 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
18629 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
18630 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
18631 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
18632 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
18633 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
18634 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
18635 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
18636 "\x04\x02\xef\xd3\x44\xde\x76\x31"
18637 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
18638 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
18639 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
18640 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
18641 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
18642 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
18643 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
18644 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
18645 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
18646 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
18647 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
18648 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
18649 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
18650 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
18651 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
18652 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
18653 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
18654 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
18655 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
18656 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
18657 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
18658 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
18659 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
18660 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
18661 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
18662 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
18663 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
18664 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
18665 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
18666 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
18667 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
18668 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
18669 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
18670 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
18671 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
18672 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
18673 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
18674 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
18675 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
18676 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
18677 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
18678 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
18679 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
18680 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
18681 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
18682 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
18683 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
18684 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
18685 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
18686 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
18687 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
18688 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
18689 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
18690 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
18691 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
18692 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
18693 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
18694 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
18695 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
18696 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
18697 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
18698 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
18699 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
18700 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
18701 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
18702 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
18703 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
18704 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
18705 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
18706 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
18707 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
18708 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
18709 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
18710 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
18711 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
18712 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
18713 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
18714 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
18715 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
18716 "\x26\x39\x83\x94\xef\x27\xd8\x53"
18717 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
18718 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
18719 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
18720 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
18721 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
18722 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
18723 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
18724 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
18725 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
18726 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
18727 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
18728 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
18729 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
18730 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
18731 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
18732 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
18733 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
18734 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
18735 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
18736 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
18737 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
18738 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
18739 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
18740 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
18741 "\x35\x12\xe3\x36\x28\x27\x36\x58"
18742 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
18743 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
18744 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
18745 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
18746 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
18747 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
18748 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
18749 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
18750 "\x89\xf3\x78\x35\x44\x62\x78\x72"
18751 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
18752 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
18753 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
18754 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
18755 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
18756 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
18757 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
18758 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
18759 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
18760 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
18761 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
18762 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
18763 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
18764 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
18765 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
18766 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
18767 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
18768 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
18769 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
18770 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
18771 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
18772 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
18773 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
18774 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
18775 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
18776 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
18777 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
18778 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
18779 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
18780 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
18781 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
18782 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
18783 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
18784 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
18785 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
18786 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
18787 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
18788 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
18789 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
18790 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
18791 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
18792 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
18793 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
18794 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
18795 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
18796 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
18797 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
18798 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
18799 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
18800 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
18801 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
18802 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
18803 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
18804 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
18805 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
18806 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
18807 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
18808 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
18809 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
18810 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
18811 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
18812 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
18813 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
18814 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
18815 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
18816 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
18817 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
18818 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
18819 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
18820 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
18821 "\x29\x90\x46\x30\x92\x69\x7d\x13"
18822 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
18823 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
18824 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
18825 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
18826 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
18827 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
18828 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
18829 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
18830 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
18831 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
18832 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
18833 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
18834 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
18835 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
18836 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
18837 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
18838 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
18839 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
18840 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
18841 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
18842 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
18843 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
18844 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
18845 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
18846 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
18847 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
18848 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
18849 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
18850 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
18851 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
18852 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
18853 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
18854 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
18855 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
18856 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
18857 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
18858 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
18859 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
18860 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
18861 "\x73\x02\x3b\x78\x21\x72\x43\x00"
18862 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
18863 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
18864 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
18865 "\x11\x94\x13\x69\x51\x09\x28\xde"
18866 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
18867 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
18868 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
18869 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
18870 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
18871 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
18872 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
18873 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
18874 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
18875 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
18876 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
18877 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
18878 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
18879 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
18880 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
18881 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
18882 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
18883 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
18884 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
18885 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
18886 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
18887 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
18888 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
18889 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
18890 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
18891 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
18892 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
18893 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
18894 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
18895 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
18896 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
18897 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
18898 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
18899 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
18900 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
18901 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
18902 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
18903 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
18904 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
18905 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
18906 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
18907 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
18908 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
18909 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
18910 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
18911 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
18912 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
18913 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
18914 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
18915 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
18916 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
18917 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
18918 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
18919 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
18920 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
18921 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
18922 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
18923 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
18924 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
18925 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
18926 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
18927 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
18928 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
18929 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
18930 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
18931 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
18932 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
18933 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
18934 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
18935 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
18936 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
18937 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
18938 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
18939 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
18940 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
18941 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
18942 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
18943 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
18944 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
18945 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
18946 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
18947 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
18948 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
18949 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
18950 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
18951 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
18952 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
18953 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
18954 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
18955 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
18956 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
18957 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
18958 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
18959 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
18960 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
18961 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
18962 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
18963 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
18964 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
18965 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
18966 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
18967 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
18968 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
18969 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
18970 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
18971 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
18972 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
18973 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
18974 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
18975 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
18976 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
18977 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
18978 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
18979 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
18980 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
18981 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
18982 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
18983 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
18984 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
18985 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
18986 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
18987 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
18988 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
18989 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
18990 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
18991 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
18992 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
18993 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
18994 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
18995 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
18996 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
18997 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
18998 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
18999 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
19000 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
19001 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
19002 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
19003 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
19004 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
19005 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
19006 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
19007 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
19008 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
19009 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
19010 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
19011 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
19012 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
19013 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
19014 "\xae\xed\x39\x88\x42\x11\x3c\xed"
19015 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
19016 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
19017 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
19018 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
19019 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
19020 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
19021 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
19022 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
19023 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
19024 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
19025 "\x34\x17\xde\xba\x47\xf1\x06\x18"
19026 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
19027 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
19028 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
19029 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
19030 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
19031 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
19032 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
19033 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
19034 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
19035 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
19036 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
19037 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
19038 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
19039 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
19040 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
19041 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
19042 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
19043 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
19044 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
19045 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
19046 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
19047 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
19048 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
19049 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
19050 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
19051 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
19052 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
19053 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
19054 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
19055 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
19056 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
19057 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
19058 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
19059 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
19060 "\x74\x56\x58\x40\x02\x37\x52\x2c"
19061 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
19062 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
19063 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
19064 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
19065 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
19066 "\xed\x38\x80\x36\x72\x43\x27\x49"
19067 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
19068 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
19069 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
19070 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
19071 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
19072 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
19073 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
19074 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
19075 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
19076 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
19077 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
19078 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
19079 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
19080 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
19081 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
19082 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
19083 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
19084 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
19085 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
19086 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
19087 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
19088 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
19089 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
19090 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
19091 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
19092 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
19093 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
19094 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
19095 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
19096 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
19097 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
19098 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
19099 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
19100 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
19101 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
19102 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
19103 "\x21\xed\xda\x86",
19104 .rlen = 4100,
19105 .np = 2,
19106 .tap = { 4064, 36 },
19107 },
19108};
19109
f7cb80f2 19110static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
da7f033d
HX
19111 { /* From RFC 3686 */
19112 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
19113 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
19114 "\x00\x00\x00\x30",
19115 .klen = 20,
19116 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19117 .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
19118 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
19119 .ilen = 16,
19120 .result = "Single block msg",
19121 .rlen = 16,
19122 }, {
19123 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
19124 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
19125 "\x00\x6c\xb6\xdb",
19126 .klen = 20,
19127 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
19128 .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
19129 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
19130 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
19131 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
19132 .ilen = 32,
19133 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
19134 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19135 "\x10\x11\x12\x13\x14\x15\x16\x17"
19136 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19137 .rlen = 32,
19138 }, {
19139 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
19140 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
19141 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
19142 "\x00\x00\x00\x48",
19143 .klen = 28,
19144 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
19145 .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
19146 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
19147 .ilen = 16,
19148 .result = "Single block msg",
19149 .rlen = 16,
19150 }, {
19151 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
19152 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
19153 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
19154 "\x00\x96\xb0\x3b",
19155 .klen = 28,
19156 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
19157 .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
19158 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
19159 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
19160 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
19161 .ilen = 32,
19162 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
19163 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19164 "\x10\x11\x12\x13\x14\x15\x16\x17"
19165 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19166 .rlen = 32,
19167 }, {
19168 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
19169 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
19170 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
19171 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
19172 "\x00\x00\x00\x60",
19173 .klen = 36,
19174 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
19175 .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
19176 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
19177 .ilen = 16,
19178 .result = "Single block msg",
19179 .rlen = 16,
19180 }, {
19181 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
19182 "\x07\x96\x36\x58\x79\xef\xf8\x86"
19183 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
19184 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
19185 "\x00\xfa\xac\x24",
19186 .klen = 36,
19187 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
19188 .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
19189 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
19190 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
19191 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
19192 .ilen = 32,
19193 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
19194 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19195 "\x10\x11\x12\x13\x14\x15\x16\x17"
19196 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19197 .rlen = 32,
19198 },
19199};
19200
ba0e14ac
PS
19201static struct cipher_testvec aes_ofb_enc_tv_template[] = {
19202 /* From NIST Special Publication 800-38A, Appendix F.5 */
19203 {
19204 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19205 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19206 .klen = 16,
19207 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
19208 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
19209 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19210 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19211 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19212 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19213 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19214 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19215 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19216 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19217 .ilen = 64,
19218 .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
19219 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
19220 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
19221 "\x3c\x52\xda\xc5\x4e\xd8\x25"
19222 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
19223 "\x44\xf7\xa8\x22\x60\xed\xcc"
19224 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
19225 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
19226 .rlen = 64,
19227 }
19228};
19229
19230static struct cipher_testvec aes_ofb_dec_tv_template[] = {
19231 /* From NIST Special Publication 800-38A, Appendix F.5 */
19232 {
19233 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19234 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19235 .klen = 16,
19236 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
19237 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
19238 .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
19239 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
19240 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
19241 "\x3c\x52\xda\xc5\x4e\xd8\x25"
19242 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
19243 "\x44\xf7\xa8\x22\x60\xed\xcc"
19244 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
19245 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
19246 .ilen = 64,
19247 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19248 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19249 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19250 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19251 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19252 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19253 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19254 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19255 .rlen = 64,
19256 }
19257};
19258
da7f033d
HX
19259static struct aead_testvec aes_gcm_enc_tv_template[] = {
19260 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
19261 .key = zeroed_string,
19262 .klen = 16,
19263 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
19264 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
19265 .rlen = 16,
19266 }, {
19267 .key = zeroed_string,
19268 .klen = 16,
19269 .input = zeroed_string,
19270 .ilen = 16,
19271 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
19272 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
19273 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
19274 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
19275 .rlen = 32,
19276 }, {
19277 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19278 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19279 .klen = 16,
19280 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19281 "\xde\xca\xf8\x88",
19282 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19283 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19284 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19285 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19286 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19287 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19288 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19289 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19290 .ilen = 64,
19291 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19292 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19293 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19294 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19295 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19296 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19297 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19298 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
19299 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
19300 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
19301 .rlen = 80,
19302 }, {
19303 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19304 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19305 .klen = 16,
19306 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19307 "\xde\xca\xf8\x88",
19308 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19309 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19310 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19311 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19312 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19313 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19314 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19315 "\xba\x63\x7b\x39",
19316 .ilen = 60,
19317 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19318 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19319 "\xab\xad\xda\xd2",
19320 .alen = 20,
19321 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19322 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19323 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19324 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19325 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19326 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19327 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19328 "\x3d\x58\xe0\x91"
19329 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
19330 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
19331 .rlen = 76,
19332 }, {
19333 .key = zeroed_string,
19334 .klen = 24,
19335 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
19336 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
19337 .rlen = 16,
19338 }, {
19339 .key = zeroed_string,
19340 .klen = 24,
19341 .input = zeroed_string,
19342 .ilen = 16,
19343 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
19344 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
19345 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
19346 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
19347 .rlen = 32,
19348 }, {
19349 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19350 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19351 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19352 .klen = 24,
19353 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19354 "\xde\xca\xf8\x88",
19355 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19356 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19357 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19358 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19359 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19360 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19361 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19362 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19363 .ilen = 64,
19364 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19365 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19366 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19367 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19368 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19369 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19370 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19371 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
19372 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
19373 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
19374 .rlen = 80,
19375 }, {
19376 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19377 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19378 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19379 .klen = 24,
19380 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19381 "\xde\xca\xf8\x88",
19382 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19383 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19384 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19385 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19386 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19387 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19388 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19389 "\xba\x63\x7b\x39",
19390 .ilen = 60,
19391 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19392 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19393 "\xab\xad\xda\xd2",
19394 .alen = 20,
19395 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19396 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19397 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19398 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19399 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19400 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19401 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19402 "\xcc\xda\x27\x10"
19403 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
19404 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
19405 .rlen = 76,
19406 .np = 2,
19407 .tap = { 32, 28 },
19408 .anp = 2,
19409 .atap = { 8, 12 }
19410 }, {
19411 .key = zeroed_string,
19412 .klen = 32,
19413 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
19414 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
19415 .rlen = 16,
19416 }
19417};
19418
19419static struct aead_testvec aes_gcm_dec_tv_template[] = {
19420 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
19421 .key = zeroed_string,
19422 .klen = 32,
19423 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
19424 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
19425 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
19426 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
19427 .ilen = 32,
19428 .result = zeroed_string,
19429 .rlen = 16,
19430 }, {
19431 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19432 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19433 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19434 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19435 .klen = 32,
19436 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19437 "\xde\xca\xf8\x88",
19438 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
19439 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
19440 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
19441 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
19442 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
19443 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
19444 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
19445 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
19446 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
19447 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
19448 .ilen = 80,
19449 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19450 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19451 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19452 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19453 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19454 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19455 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19456 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19457 .rlen = 64,
19458 }, {
19459 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19460 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19461 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19462 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19463 .klen = 32,
19464 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19465 "\xde\xca\xf8\x88",
19466 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
19467 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
19468 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
19469 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
19470 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
19471 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
19472 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
19473 "\xbc\xc9\xf6\x62"
19474 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
19475 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
19476 .ilen = 76,
19477 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19478 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19479 "\xab\xad\xda\xd2",
19480 .alen = 20,
19481 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19482 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19483 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19484 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19485 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19486 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19487 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19488 "\xba\x63\x7b\x39",
19489 .rlen = 60,
19490 .np = 2,
19491 .tap = { 48, 28 },
19492 .anp = 3,
19493 .atap = { 8, 8, 4 }
19494 }, {
19495 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19496 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19497 .klen = 16,
19498 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19499 "\xde\xca\xf8\x88",
19500 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19501 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19502 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19503 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19504 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19505 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19506 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19507 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
19508 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
19509 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
19510 .ilen = 80,
19511 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19512 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19513 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19514 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19515 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19516 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19517 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19518 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19519 .rlen = 64,
19520 }, {
19521 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19522 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19523 .klen = 16,
19524 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19525 "\xde\xca\xf8\x88",
19526 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19527 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19528 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19529 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19530 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19531 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19532 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19533 "\x3d\x58\xe0\x91"
19534 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
19535 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
19536 .ilen = 76,
19537 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19538 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19539 "\xab\xad\xda\xd2",
19540 .alen = 20,
19541 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19542 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19543 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19544 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19545 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19546 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19547 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19548 "\xba\x63\x7b\x39",
19549 .rlen = 60,
19550 }, {
19551 .key = zeroed_string,
19552 .klen = 24,
19553 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
19554 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
19555 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
19556 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
19557 .ilen = 32,
19558 .result = zeroed_string,
19559 .rlen = 16,
19560 }, {
19561 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19562 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19563 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19564 .klen = 24,
19565 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19566 "\xde\xca\xf8\x88",
19567 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19568 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19569 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19570 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19571 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19572 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19573 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19574 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
19575 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
19576 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
19577 .ilen = 80,
19578 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19579 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19580 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19581 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19582 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19583 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19584 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19585 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19586 .rlen = 64,
19587 }, {
19588 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19589 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19590 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19591 .klen = 24,
19592 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19593 "\xde\xca\xf8\x88",
19594 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19595 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19596 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19597 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19598 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19599 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19600 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19601 "\xcc\xda\x27\x10"
19602 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
19603 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
19604 .ilen = 76,
19605 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19606 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19607 "\xab\xad\xda\xd2",
19608 .alen = 20,
19609 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19610 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19611 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19612 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19613 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19614 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19615 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19616 "\xba\x63\x7b\x39",
19617 .rlen = 60,
19618 }
19619};
19620
69435b94
AH
19621static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
19622 { /* Generated using Crypto++ */
19623 .key = zeroed_string,
19624 .klen = 20,
19625 .iv = zeroed_string,
19626 .input = zeroed_string,
19627 .ilen = 16,
19628 .assoc = zeroed_string,
19629 .alen = 8,
19630 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
19631 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
19632 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
19633 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
19634 .rlen = 32,
19635 },{
19636 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19637 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19638 "\x00\x00\x00\x00",
19639 .klen = 20,
19640 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19641 "\x00\x00\x00\x00",
19642 .input = zeroed_string,
19643 .ilen = 16,
19644 .assoc = zeroed_string,
19645 .alen = 8,
19646 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
19647 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
19648 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
19649 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
19650 .rlen = 32,
19651
19652 }, {
19653 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19654 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19655 "\x00\x00\x00\x00",
19656 .klen = 20,
19657 .iv = zeroed_string,
19658 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19659 "\x01\x01\x01\x01\x01\x01\x01\x01",
19660 .ilen = 16,
19661 .assoc = zeroed_string,
19662 .alen = 8,
19663 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19664 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19665 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
19666 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
19667 .rlen = 32,
19668 }, {
19669 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19670 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19671 "\x00\x00\x00\x00",
19672 .klen = 20,
19673 .iv = zeroed_string,
19674 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19675 "\x01\x01\x01\x01\x01\x01\x01\x01",
19676 .ilen = 16,
19677 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19678 .alen = 8,
19679 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19680 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19681 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
19682 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
19683 .rlen = 32,
19684 }, {
19685 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19686 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19687 "\x00\x00\x00\x00",
19688 .klen = 20,
19689 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19690 "\x00\x00\x00\x00",
19691 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19692 "\x01\x01\x01\x01\x01\x01\x01\x01",
19693 .ilen = 16,
19694 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19695 .alen = 8,
19696 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19697 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19698 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
19699 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
19700 .rlen = 32,
19701 }, {
19702 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19703 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19704 "\x00\x00\x00\x00",
19705 .klen = 20,
19706 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19707 "\x00\x00\x00\x00",
19708 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19709 "\x01\x01\x01\x01\x01\x01\x01\x01"
19710 "\x01\x01\x01\x01\x01\x01\x01\x01"
19711 "\x01\x01\x01\x01\x01\x01\x01\x01"
19712 "\x01\x01\x01\x01\x01\x01\x01\x01"
19713 "\x01\x01\x01\x01\x01\x01\x01\x01"
19714 "\x01\x01\x01\x01\x01\x01\x01\x01"
19715 "\x01\x01\x01\x01\x01\x01\x01\x01",
19716 .ilen = 64,
19717 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19718 .alen = 8,
19719 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19720 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19721 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
19722 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
19723 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
19724 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
19725 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
19726 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
19727 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
19728 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
19729 .rlen = 80,
19730 }, {
19731 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19732 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19733 "\x00\x00\x00\x00",
19734 .klen = 20,
19735 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
19736 "\x00\x00\x00\x00",
19737 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
19738 "\xff\xff\xff\xff\xff\xff\xff\xff"
19739 "\xff\xff\xff\xff\xff\xff\xff\xff"
19740 "\xff\xff\xff\xff\xff\xff\xff\xff"
19741 "\xff\xff\xff\xff\xff\xff\xff\xff"
19742 "\xff\xff\xff\xff\xff\xff\xff\xff"
19743 "\xff\xff\xff\xff\xff\xff\xff\xff"
19744 "\xff\xff\xff\xff\xff\xff\xff\xff"
19745 "\xff\xff\xff\xff\xff\xff\xff\xff"
19746 "\xff\xff\xff\xff\xff\xff\xff\xff"
19747 "\xff\xff\xff\xff\xff\xff\xff\xff"
19748 "\xff\xff\xff\xff\xff\xff\xff\xff"
19749 "\xff\xff\xff\xff\xff\xff\xff\xff"
19750 "\xff\xff\xff\xff\xff\xff\xff\xff"
19751 "\xff\xff\xff\xff\xff\xff\xff\xff"
19752 "\xff\xff\xff\xff\xff\xff\xff\xff"
19753 "\xff\xff\xff\xff\xff\xff\xff\xff"
19754 "\xff\xff\xff\xff\xff\xff\xff\xff"
19755 "\xff\xff\xff\xff\xff\xff\xff\xff"
19756 "\xff\xff\xff\xff\xff\xff\xff\xff"
19757 "\xff\xff\xff\xff\xff\xff\xff\xff"
19758 "\xff\xff\xff\xff\xff\xff\xff\xff"
19759 "\xff\xff\xff\xff\xff\xff\xff\xff"
19760 "\xff\xff\xff\xff\xff\xff\xff\xff",
19761 .ilen = 192,
19762 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
19763 "\xaa\xaa\xaa\xaa",
19764 .alen = 12,
19765 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
19766 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
19767 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
19768 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
19769 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
19770 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
19771 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
19772 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
19773 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
19774 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
19775 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
19776 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
19777 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
19778 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
19779 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
19780 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
19781 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
19782 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
19783 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
19784 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
19785 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
19786 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
19787 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
19788 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
19789 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
19790 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
19791 .rlen = 208,
19792 }
19793};
19794
19795static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
19796 { /* Generated using Crypto++ */
19797 .key = zeroed_string,
19798 .klen = 20,
19799 .iv = zeroed_string,
19800 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
19801 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
19802 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
19803 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
19804 .ilen = 32,
19805 .assoc = zeroed_string,
19806 .alen = 8,
19807 .result = zeroed_string,
19808 .rlen = 16,
19809
19810 },{
19811 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19812 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19813 "\x00\x00\x00\x00",
19814 .klen = 20,
19815 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19816 "\x00\x00\x00\x00",
19817 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
19818 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
19819 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
19820 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
19821 .ilen = 32,
19822 .assoc = zeroed_string,
19823 .alen = 8,
19824 .result = zeroed_string,
19825 .rlen = 16,
19826 }, {
19827 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19828 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19829 "\x00\x00\x00\x00",
19830 .klen = 20,
19831 .iv = zeroed_string,
19832 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19833 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19834 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
19835 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
19836 .ilen = 32,
19837 .assoc = zeroed_string,
19838 .alen = 8,
19839 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19840 "\x01\x01\x01\x01\x01\x01\x01\x01",
19841 .rlen = 16,
19842 }, {
19843 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19844 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19845 "\x00\x00\x00\x00",
19846 .klen = 20,
19847 .iv = zeroed_string,
19848 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19849 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19850 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
19851 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
19852 .ilen = 32,
19853 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19854 .alen = 8,
19855 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19856 "\x01\x01\x01\x01\x01\x01\x01\x01",
19857 .rlen = 16,
19858
19859 }, {
19860 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19861 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19862 "\x00\x00\x00\x00",
19863 .klen = 20,
19864 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19865 "\x00\x00\x00\x00",
19866 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19867 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19868 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
19869 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
19870 .ilen = 32,
19871 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19872 .alen = 8,
19873 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19874 "\x01\x01\x01\x01\x01\x01\x01\x01",
19875 .rlen = 16,
19876 }, {
19877 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19878 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19879 "\x00\x00\x00\x00",
19880 .klen = 20,
19881 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19882 "\x00\x00\x00\x00",
19883 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19884 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19885 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
19886 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
19887 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
19888 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
19889 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
19890 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
19891 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
19892 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
19893 .ilen = 80,
19894 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19895 .alen = 8,
19896 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19897 "\x01\x01\x01\x01\x01\x01\x01\x01"
19898 "\x01\x01\x01\x01\x01\x01\x01\x01"
19899 "\x01\x01\x01\x01\x01\x01\x01\x01"
19900 "\x01\x01\x01\x01\x01\x01\x01\x01"
19901 "\x01\x01\x01\x01\x01\x01\x01\x01"
19902 "\x01\x01\x01\x01\x01\x01\x01\x01"
19903 "\x01\x01\x01\x01\x01\x01\x01\x01",
19904 .rlen = 64,
19905 }, {
19906 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19907 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19908 "\x00\x00\x00\x00",
19909 .klen = 20,
19910 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
19911 "\x00\x00\x00\x00",
19912 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
19913 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
19914 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
19915 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
19916 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
19917 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
19918 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
19919 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
19920 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
19921 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
19922 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
19923 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
19924 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
19925 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
19926 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
19927 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
19928 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
19929 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
19930 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
19931 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
19932 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
19933 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
19934 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
19935 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
19936 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
19937 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
19938 .ilen = 208,
19939 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
19940 "\xaa\xaa\xaa\xaa",
19941 .alen = 12,
19942 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
19943 "\xff\xff\xff\xff\xff\xff\xff\xff"
19944 "\xff\xff\xff\xff\xff\xff\xff\xff"
19945 "\xff\xff\xff\xff\xff\xff\xff\xff"
19946 "\xff\xff\xff\xff\xff\xff\xff\xff"
19947 "\xff\xff\xff\xff\xff\xff\xff\xff"
19948 "\xff\xff\xff\xff\xff\xff\xff\xff"
19949 "\xff\xff\xff\xff\xff\xff\xff\xff"
19950 "\xff\xff\xff\xff\xff\xff\xff\xff"
19951 "\xff\xff\xff\xff\xff\xff\xff\xff"
19952 "\xff\xff\xff\xff\xff\xff\xff\xff"
19953 "\xff\xff\xff\xff\xff\xff\xff\xff"
19954 "\xff\xff\xff\xff\xff\xff\xff\xff"
19955 "\xff\xff\xff\xff\xff\xff\xff\xff"
19956 "\xff\xff\xff\xff\xff\xff\xff\xff"
19957 "\xff\xff\xff\xff\xff\xff\xff\xff"
19958 "\xff\xff\xff\xff\xff\xff\xff\xff"
19959 "\xff\xff\xff\xff\xff\xff\xff\xff"
19960 "\xff\xff\xff\xff\xff\xff\xff\xff"
19961 "\xff\xff\xff\xff\xff\xff\xff\xff"
19962 "\xff\xff\xff\xff\xff\xff\xff\xff"
19963 "\xff\xff\xff\xff\xff\xff\xff\xff"
19964 "\xff\xff\xff\xff\xff\xff\xff\xff"
19965 "\xff\xff\xff\xff\xff\xff\xff\xff",
19966 .rlen = 192,
19967
19968 }
19969};
19970
e9b7441a
JK
19971static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
19972 { /* From draft-mcgrew-gcm-test-01 */
19973 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
19974 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
19975 "\x22\x43\x3c\x64",
19976 .klen = 20,
19977 .iv = zeroed_string,
19978 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07",
19979 .alen = 8,
19980 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
19981 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
19982 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
19983 "\x02\x00\x07\x00\x61\x62\x63\x64"
19984 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
19985 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
19986 "\x01\x02\x02\x01",
19987 .ilen = 52,
19988 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
19989 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
19990 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
19991 "\x02\x00\x07\x00\x61\x62\x63\x64"
19992 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
19993 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
19994 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
19995 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
19996 "\xe4\x09\x9a\xaa",
19997 .rlen = 68,
19998 }
19999};
20000
20001static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
20002 { /* From draft-mcgrew-gcm-test-01 */
20003 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
20004 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
20005 "\x22\x43\x3c\x64",
20006 .klen = 20,
20007 .iv = zeroed_string,
20008 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07",
20009 .alen = 8,
20010 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
20011 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
20012 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
20013 "\x02\x00\x07\x00\x61\x62\x63\x64"
20014 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
20015 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
20016 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
20017 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
20018 "\xe4\x09\x9a\xaa",
20019 .ilen = 68,
20020 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
20021 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
20022 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
20023 "\x02\x00\x07\x00\x61\x62\x63\x64"
20024 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
20025 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
20026 "\x01\x02\x02\x01",
20027 .rlen = 52,
20028 }, { /* nearly same as previous, but should fail */
20029 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
20030 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
20031 "\x22\x43\x3c\x64",
20032 .klen = 20,
20033 .iv = zeroed_string,
20034 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07",
20035 .alen = 8,
20036 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
20037 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
20038 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
20039 "\x02\x00\x07\x00\x61\x62\x63\x64"
20040 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
20041 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
20042 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
20043 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
20044 "\x00\x00\x00\x00",
20045 .ilen = 68,
20046 .novrfy = 1,
20047 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
20048 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
20049 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
20050 "\x02\x00\x07\x00\x61\x62\x63\x64"
20051 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
20052 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
20053 "\x01\x02\x02\x01",
20054 .rlen = 52,
20055 },
20056};
20057
da7f033d
HX
20058static struct aead_testvec aes_ccm_enc_tv_template[] = {
20059 { /* From RFC 3610 */
20060 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20061 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20062 .klen = 16,
20063 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
20064 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20065 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20066 .alen = 8,
20067 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20068 "\x10\x11\x12\x13\x14\x15\x16\x17"
20069 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
20070 .ilen = 23,
20071 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
20072 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
20073 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
20074 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
20075 .rlen = 31,
20076 }, {
20077 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20078 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20079 .klen = 16,
20080 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
20081 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20082 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20083 "\x08\x09\x0a\x0b",
20084 .alen = 12,
20085 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20086 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20087 "\x1c\x1d\x1e\x1f",
20088 .ilen = 20,
20089 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
20090 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
20091 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
20092 "\x7d\x9c\x2d\x93",
20093 .rlen = 28,
20094 }, {
20095 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20096 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20097 .klen = 16,
20098 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
20099 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20100 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20101 .alen = 8,
20102 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20103 "\x10\x11\x12\x13\x14\x15\x16\x17"
20104 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
20105 "\x20",
20106 .ilen = 25,
20107 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
20108 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
20109 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
20110 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
20111 "\x7e\x5f\x4e",
20112 .rlen = 35,
20113 }, {
20114 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20115 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20116 .klen = 16,
20117 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
20118 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20119 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20120 "\x08\x09\x0a\x0b",
20121 .alen = 12,
20122 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20123 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20124 "\x1c\x1d\x1e",
20125 .ilen = 19,
20126 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
20127 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
20128 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
20129 "\x4d\x99\x99\x88\xdd",
20130 .rlen = 29,
20131 }, {
20132 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20133 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20134 .klen = 16,
20135 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
20136 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20137 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
20138 .alen = 8,
20139 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
20140 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
20141 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
20142 .ilen = 24,
20143 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
20144 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
20145 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
20146 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
20147 .rlen = 32,
20148 }, {
20149 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20150 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20151 .klen = 16,
20152 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
20153 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20154 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
20155 "\x20\xea\x60\xc0",
20156 .alen = 12,
20157 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
20158 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
20159 "\x3a\x80\x3b\xa8\x7f",
20160 .ilen = 21,
20161 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
20162 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
20163 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
20164 "\x5a\xe0\x70\x45\x51",
20165 .rlen = 29,
20166 }, {
20167 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20168 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20169 .klen = 16,
20170 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
20171 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20172 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
20173 .alen = 8,
20174 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
20175 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
20176 "\x98\x09\xd6\x7d\xbe\xdd\x18",
20177 .ilen = 23,
20178 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
20179 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
20180 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
20181 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
20182 "\xba",
20183 .rlen = 33,
4585988f
AB
20184 }, {
20185 /*
20186 * This is the same vector as aes_ccm_rfc4309_enc_tv_template[0]
20187 * below but rewritten to use the ccm algorithm directly.
20188 */
20189 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
20190 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
20191 .klen = 16,
20192 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
20193 .alen = 0,
20194 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
20195 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
20196 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
20197 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
20198 .ilen = 32,
20199 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
20200 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
20201 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
20202 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
20203 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
20204 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
20205 .rlen = 48,
20206 }
da7f033d
HX
20207};
20208
20209static struct aead_testvec aes_ccm_dec_tv_template[] = {
20210 { /* From RFC 3610 */
20211 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20212 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20213 .klen = 16,
20214 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
20215 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20216 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20217 .alen = 8,
20218 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
20219 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
20220 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
20221 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
20222 .ilen = 31,
20223 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20224 "\x10\x11\x12\x13\x14\x15\x16\x17"
20225 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
20226 .rlen = 23,
20227 }, {
20228 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20229 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20230 .klen = 16,
20231 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
20232 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20233 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20234 "\x08\x09\x0a\x0b",
20235 .alen = 12,
20236 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
20237 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
20238 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
20239 "\x7d\x9c\x2d\x93",
20240 .ilen = 28,
20241 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20242 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20243 "\x1c\x1d\x1e\x1f",
20244 .rlen = 20,
20245 }, {
20246 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20247 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20248 .klen = 16,
20249 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
20250 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20251 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20252 .alen = 8,
20253 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
20254 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
20255 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
20256 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
20257 "\x7e\x5f\x4e",
20258 .ilen = 35,
20259 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20260 "\x10\x11\x12\x13\x14\x15\x16\x17"
20261 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
20262 "\x20",
20263 .rlen = 25,
20264 }, {
20265 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20266 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20267 .klen = 16,
20268 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
20269 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20270 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20271 "\x08\x09\x0a\x0b",
20272 .alen = 12,
20273 .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
20274 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
20275 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
20276 "\x4d\x99\x99\x88\xdd",
20277 .ilen = 29,
20278 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20279 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20280 "\x1c\x1d\x1e",
20281 .rlen = 19,
20282 }, {
20283 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20284 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20285 .klen = 16,
20286 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
20287 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20288 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
20289 .alen = 8,
20290 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
20291 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
20292 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
20293 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
20294 .ilen = 32,
20295 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
20296 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
20297 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
20298 .rlen = 24,
20299 }, {
20300 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20301 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20302 .klen = 16,
20303 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
20304 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20305 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
20306 "\x20\xea\x60\xc0",
20307 .alen = 12,
20308 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
20309 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
20310 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
20311 "\x5a\xe0\x70\x45\x51",
20312 .ilen = 29,
20313 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
20314 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
20315 "\x3a\x80\x3b\xa8\x7f",
20316 .rlen = 21,
20317 }, {
20318 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20319 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20320 .klen = 16,
20321 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
20322 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20323 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
20324 .alen = 8,
20325 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
20326 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
20327 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
20328 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
20329 "\xba",
20330 .ilen = 33,
20331 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
20332 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
20333 "\x98\x09\xd6\x7d\xbe\xdd\x18",
20334 .rlen = 23,
20335 },
20336};
20337
5d667322
JW
20338/*
20339 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
20340 * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
20341 * Special Publication 800-38C's test vectors also use nonce lengths our
20342 * implementation doesn't support. The following are taken from fips cavs
20343 * fax files on hand at Red Hat.
20344 *
20345 * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
20346 * part of the nonce which combine w/the iv, but need to be input this way.
20347 */
20348static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
20349 {
20350 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
20351 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
20352 "\x96\xac\x59",
20353 .klen = 19,
20354 .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
20355 .alen = 0,
20356 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
20357 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
20358 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
20359 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
20360 .ilen = 32,
20361 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
20362 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
20363 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
20364 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
20365 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
20366 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
20367 .rlen = 48,
20368 }, {
20369 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
20370 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
20371 "\x4f\xa3\x19",
20372 .klen = 19,
20373 .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
20374 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
20375 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
20376 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
20377 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
20378 .alen = 32,
20379 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
20380 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
20381 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
20382 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
20383 .ilen = 32,
20384 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
20385 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
20386 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
20387 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
20388 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
20389 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
20390 .rlen = 48,
20391 }, {
20392 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
20393 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
20394 "\x53\x14\x73\x66\x8d\x88\xf6\x80"
20395 "\xa0\x20\x35",
20396 .klen = 27,
20397 .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
20398 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
20399 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
20400 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
20401 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
20402 .alen = 32,
20403 .ilen = 0,
20404 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
20405 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
20406 .rlen = 16,
20407 }, {
20408 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
20409 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
20410 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
20411 "\xd6\x3c\x8c",
20412 .klen = 27,
20413 .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
20414 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
20415 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
20416 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
20417 "\xe3\x00\x73\x69\x84\x69\x87\x79",
20418 .alen = 32,
20419 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
20420 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
20421 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
20422 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
20423 .ilen = 32,
20424 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
20425 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
20426 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
20427 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
20428 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
20429 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
20430 .rlen = 48,
20431 }, {
20432 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
20433 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
20434 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
20435 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
20436 "\x1e\x29\x91",
20437 .klen = 35,
20438 .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
20439 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
20440 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
20441 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
20442 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
20443 .alen = 32,
20444 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
20445 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
20446 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
20447 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
20448 .ilen = 32,
20449 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
20450 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
20451 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
20452 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
20453 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
20454 .rlen = 40,
20455 }, {
20456 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
20457 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
20458 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
20459 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
20460 "\xf9\xd9\x4e",
20461 .klen = 35,
20462 .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
20463 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
20464 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
20465 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
20466 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
20467 .alen = 32,
20468 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
20469 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
20470 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
20471 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
20472 .ilen = 32,
20473 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
20474 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
20475 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
20476 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
20477 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
20478 "\x7b\x72\x8a\xf7",
20479 .rlen = 44,
20480 }, {
20481 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
20482 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
20483 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
20484 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
20485 "\x24\xa7\x8b",
20486 .klen = 35,
20487 .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
20488 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
20489 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
20490 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
20491 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
20492 .alen = 32,
20493 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
20494 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
20495 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
20496 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
20497 .ilen = 32,
20498 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
20499 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
20500 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
20501 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
20502 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
20503 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
20504 .rlen = 48,
20505 },
20506};
20507
20508static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
20509 {
20510 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
20511 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
20512 "\xc6\xfb\x7d",
20513 .klen = 19,
20514 .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
20515 .alen = 0,
20516 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
20517 .ilen = 8,
20518 .result = "\x00",
20519 .rlen = 0,
20520 .novrfy = 1,
20521 }, {
20522 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
20523 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
20524 "\xaf\x94\x87",
20525 .klen = 19,
20526 .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
20527 .alen = 0,
20528 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
20529 .ilen = 8,
20530 .result = "\x00",
20531 .rlen = 0,
20532 }, {
20533 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
20534 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
20535 "\xc6\xfb\x7d",
20536 .klen = 19,
20537 .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
20538 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
20539 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
20540 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
20541 "\xd8\x94\x99\x91\x81\x54\x62\x57",
20542 .alen = 32,
20543 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
20544 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
20545 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
20546 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
20547 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
20548 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
20549 .ilen = 48,
20550 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
20551 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
20552 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
20553 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
20554 .rlen = 32,
20555 .novrfy = 1,
20556 }, {
20557 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
20558 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
20559 "\x05\xe0\xc9",
20560 .klen = 19,
20561 .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
20562 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
20563 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
20564 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
20565 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
20566 .alen = 32,
20567 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
20568 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
20569 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
20570 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
20571 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
20572 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
20573 .ilen = 48,
20574 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
20575 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
20576 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
20577 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
20578 .rlen = 32,
20579 }, {
20580 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
20581 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
20582 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
20583 "\xee\x49\x83",
20584 .klen = 27,
20585 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
20586 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
20587 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
20588 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
20589 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
20590 .alen = 32,
20591 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
20592 .ilen = 8,
20593 .result = "\x00",
20594 .rlen = 0,
20595 }, {
20596 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
20597 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
20598 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
20599 "\xee\x49\x83",
20600 .klen = 27,
20601 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
20602 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
20603 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
20604 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
20605 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
20606 .alen = 32,
20607 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
20608 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
20609 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
20610 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
20611 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
20612 .ilen = 40,
20613 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
20614 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
20615 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
20616 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
20617 .rlen = 32,
20618 }, {
20619 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
20620 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
20621 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
20622 "\xd1\xfc\x57",
20623 .klen = 27,
20624 .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
20625 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
20626 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
20627 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
20628 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
20629 .alen = 32,
20630 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
20631 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
20632 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
20633 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
20634 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
20635 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
20636 .ilen = 48,
20637 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
20638 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
20639 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
20640 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
20641 .rlen = 32,
20642 .novrfy = 1,
20643 }, {
20644 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
20645 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
20646 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
20647 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
20648 "\xee\x49\x83",
20649 .klen = 35,
20650 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
20651 .alen = 0,
20652 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
20653 .ilen = 8,
20654 .result = "\x00",
20655 .rlen = 0,
20656 }, {
20657 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
20658 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
20659 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
20660 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
20661 "\x85\x34\x66",
20662 .klen = 35,
20663 .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
20664 .alen = 0,
20665 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
20666 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
20667 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
20668 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
20669 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
20670 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
20671 .ilen = 48,
20672 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
20673 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
20674 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
20675 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
20676 .rlen = 32,
20677 .novrfy = 1,
20678 }, {
20679 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
20680 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
20681 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
20682 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
20683 "\xcf\x76\x3f",
20684 .klen = 35,
20685 .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
20686 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
20687 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
20688 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
20689 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
20690 .alen = 32,
20691 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
20692 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
20693 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
20694 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
20695 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
20696 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
20697 .ilen = 48,
20698 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
20699 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
20700 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
20701 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
20702 .rlen = 32,
20703 },
20704};
20705
e08ca2da
JW
20706/*
20707 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
20708 * test vectors, taken from Appendix B.2.9 and B.2.10:
20709 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
20710 * Only AES-128 is supported at this time.
20711 */
20712#define ANSI_CPRNG_AES_TEST_VECTORS 6
20713
20714static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
20715 {
20716 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20717 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20718 .klen = 16,
20719 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20720 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
20721 .dtlen = 16,
20722 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
20723 "\x00\x00\x00\x00\x00\x00\x00\x00",
20724 .vlen = 16,
20725 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
20726 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
20727 .rlen = 16,
20728 .loops = 1,
20729 }, {
20730 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20731 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20732 .klen = 16,
20733 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20734 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
20735 .dtlen = 16,
20736 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
20737 "\x00\x00\x00\x00\x00\x00\x00\x00",
20738 .vlen = 16,
20739 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
20740 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
20741 .rlen = 16,
20742 .loops = 1,
20743 }, {
20744 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20745 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20746 .klen = 16,
20747 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20748 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
20749 .dtlen = 16,
20750 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
20751 "\x00\x00\x00\x00\x00\x00\x00\x00",
20752 .vlen = 16,
20753 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
20754 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
20755 .rlen = 16,
20756 .loops = 1,
20757 }, {
20758 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20759 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20760 .klen = 16,
20761 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20762 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
20763 .dtlen = 16,
20764 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
20765 "\x00\x00\x00\x00\x00\x00\x00\x00",
20766 .vlen = 16,
20767 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
20768 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
20769 .rlen = 16,
20770 .loops = 1,
20771 }, {
20772 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20773 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20774 .klen = 16,
20775 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20776 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
20777 .dtlen = 16,
20778 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
20779 "\x00\x00\x00\x00\x00\x00\x00\x00",
20780 .vlen = 16,
20781 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
20782 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
20783 .rlen = 16,
20784 .loops = 1,
20785 }, { /* Monte Carlo Test */
20786 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
20787 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
20788 .klen = 16,
20789 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
20790 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
20791 .dtlen = 16,
20792 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
20793 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
20794 .vlen = 16,
20795 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
20796 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
20797 .rlen = 16,
20798 .loops = 10000,
20799 },
20800};
20801
3332ee2a
SM
20802/*
20803 * SP800-90A DRBG Test vectors from
20804 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
20805 *
20806 * Test vectors for DRBG with prediction resistance. All types of DRBGs
20807 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
20808 * w/o personalization string, w/ and w/o additional input string).
20809 */
20810static struct drbg_testvec drbg_pr_sha256_tv_template[] = {
20811 {
20812 .entropy = (unsigned char *)
20813 "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
20814 "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
20815 "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
20816 "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
20817 .entropylen = 48,
20818 .entpra = (unsigned char *)
20819 "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
20820 "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
20821 "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
20822 .entprb = (unsigned char *)
20823 "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
20824 "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
20825 "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
20826 .entprlen = 32,
20827 .expected = (unsigned char *)
20828 "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
20829 "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
20830 "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
20831 "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
20832 "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
20833 "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
20834 "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
20835 "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
20836 "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
20837 "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
20838 "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
20839 .expectedlen = 128,
20840 .addtla = NULL,
20841 .addtlb = NULL,
20842 .addtllen = 0,
20843 .pers = NULL,
20844 .perslen = 0,
20845 }, {
20846 .entropy = (unsigned char *)
20847 "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
20848 "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
20849 "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
20850 "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
20851 .entropylen = 48,
20852 .entpra = (unsigned char *)
20853 "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
20854 "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
20855 "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
20856 .entprb = (unsigned char *)
20857 "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
20858 "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
20859 "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
20860 .entprlen = 32,
20861 .expected = (unsigned char *)
20862 "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
20863 "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
20864 "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
20865 "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
20866 "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
20867 "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
20868 "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
20869 "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
20870 "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
20871 "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
20872 "\x50\x47\xa3\x63\x81\x16\xaf\x19",
20873 .expectedlen = 128,
20874 .addtla = (unsigned char *)
20875 "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
20876 "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
20877 "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
20878 .addtlb = (unsigned char *)
20879 "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
20880 "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
20881 "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
20882 .addtllen = 32,
20883 .pers = NULL,
20884 .perslen = 0,
20885 }, {
20886 .entropy = (unsigned char *)
20887 "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
20888 "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
20889 "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
20890 "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
20891 .entropylen = 48,
20892 .entpra = (unsigned char *)
20893 "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
20894 "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
20895 "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
20896 .entprb = (unsigned char *)
20897 "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
20898 "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
20899 "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
20900 .entprlen = 32,
20901 .expected = (unsigned char *)
20902 "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
20903 "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
20904 "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
20905 "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
20906 "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
20907 "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
20908 "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
20909 "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
20910 "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
20911 "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
20912 "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
20913 .expectedlen = 128,
20914 .addtla = NULL,
20915 .addtlb = NULL,
20916 .addtllen = 0,
20917 .pers = (unsigned char *)
20918 "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
20919 "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
20920 "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
20921 .perslen = 32,
20922 }, {
20923 .entropy = (unsigned char *)
20924 "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
20925 "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
20926 "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
20927 "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
20928 .entropylen = 48,
20929 .entpra = (unsigned char *)
20930 "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
20931 "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
20932 "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
20933 .entprb = (unsigned char *)
20934 "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
20935 "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
20936 "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
20937 .entprlen = 32,
20938 .expected = (unsigned char *)
20939 "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
20940 "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
20941 "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
20942 "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
20943 "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
20944 "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
20945 "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
20946 "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
20947 "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
20948 "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
20949 "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
20950 .expectedlen = 128,
20951 .addtla = (unsigned char *)
20952 "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
20953 "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
20954 "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
20955 .addtlb = (unsigned char *)
20956 "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
20957 "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
20958 "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
20959 .addtllen = 32,
20960 .pers = (unsigned char *)
20961 "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
20962 "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
20963 "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
20964 .perslen = 32,
20965 },
20966};
20967
20968static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
20969 {
20970 .entropy = (unsigned char *)
20971 "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
20972 "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
20973 "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
20974 "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
20975 .entropylen = 48,
20976 .entpra = (unsigned char *)
20977 "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
20978 "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
20979 "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
20980 .entprb = (unsigned char *)
20981 "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
20982 "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
20983 "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
20984 .entprlen = 32,
20985 .expected = (unsigned char *)
20986 "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
20987 "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
20988 "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
20989 "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
20990 "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
20991 "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
20992 "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
20993 "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
20994 "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
20995 "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
20996 "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
20997 .expectedlen = 128,
20998 .addtla = NULL,
20999 .addtlb = NULL,
21000 .addtllen = 0,
21001 .pers = NULL,
21002 .perslen = 0,
21003 }, {
21004 .entropy = (unsigned char *)
21005 "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
21006 "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
21007 "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
21008 "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
21009 .entropylen = 48,
21010 .entpra = (unsigned char *)
21011 "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
21012 "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
21013 "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
21014 .entprb = (unsigned char *)
21015 "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
21016 "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
21017 "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
21018 .entprlen = 32,
21019 .expected = (unsigned char *)
21020 "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
21021 "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
21022 "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
21023 "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
21024 "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
21025 "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
21026 "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
21027 "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
21028 "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
21029 "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
21030 "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
21031 .expectedlen = 128,
21032 .addtla = (unsigned char *)
21033 "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
21034 "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
21035 "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
21036 .addtlb = (unsigned char *)
21037 "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
21038 "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
21039 "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
21040 .addtllen = 32,
21041 .pers = NULL,
21042 .perslen = 0,
21043 }, {
21044 .entropy = (unsigned char *)
21045 "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
21046 "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
21047 "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
21048 "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
21049 .entropylen = 48,
21050 .entpra = (unsigned char *)
21051 "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
21052 "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
21053 "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
21054 .entprb = (unsigned char *)
21055 "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
21056 "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
21057 "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
21058 .entprlen = 32,
21059 .expected = (unsigned char *)
21060 "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
21061 "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
21062 "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
21063 "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
21064 "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
21065 "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
21066 "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
21067 "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
21068 "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
21069 "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
21070 "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
21071 .expectedlen = 128,
21072 .addtla = NULL,
21073 .addtlb = NULL,
21074 .addtllen = 0,
21075 .pers = (unsigned char *)
21076 "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
21077 "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
21078 "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
21079 .perslen = 32,
21080 }, {
21081 .entropy = (unsigned char *)
21082 "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
21083 "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
21084 "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
21085 "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
21086 .entropylen = 48,
21087 .entpra = (unsigned char *)
21088 "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
21089 "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
21090 "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
21091 .entprb = (unsigned char *)
21092 "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
21093 "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
21094 "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
21095 .entprlen = 32,
21096 .expected = (unsigned char *)
21097 "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
21098 "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
21099 "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
21100 "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
21101 "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
21102 "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
21103 "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
21104 "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
21105 "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
21106 "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
21107 "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
21108 .expectedlen = 128,
21109 .addtla = (unsigned char *)
21110 "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
21111 "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
21112 "\x86\x88\x55\x28\xc1\x69\xdd\x76",
21113 .addtlb = (unsigned char *)
21114 "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
21115 "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
21116 "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
21117 .addtllen = 32,
21118 .pers = (unsigned char *)
21119 "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
21120 "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
21121 "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
21122 .perslen = 32,
21123 },
21124};
21125
21126static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
21127 {
21128 .entropy = (unsigned char *)
21129 "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
21130 "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
21131 .entropylen = 24,
21132 .entpra = (unsigned char *)
21133 "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
21134 "\xb4\xec\x80\xb1",
21135 .entprb = (unsigned char *)
21136 "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
21137 "\x28\x07\xeb\xc2",
21138 .entprlen = 16,
21139 .expected = (unsigned char *)
21140 "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
21141 "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
21142 "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
21143 "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
21144 "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
21145 "\x8a\xf1\x23\xa8",
21146 .expectedlen = 64,
21147 .addtla = NULL,
21148 .addtlb = NULL,
21149 .addtllen = 0,
21150 .pers = NULL,
21151 .perslen = 0,
21152 }, {
21153 .entropy = (unsigned char *)
21154 "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
21155 "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
21156 .entropylen = 24,
21157 .entpra = (unsigned char *)
21158 "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
21159 "\x67\xd1\x08\xf8",
21160 .entprb = (unsigned char *)
21161 "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
21162 "\xd4\xba\x04\x58",
21163 .entprlen = 16,
21164 .expected = (unsigned char *)
21165 "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
21166 "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
21167 "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
21168 "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
21169 "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
21170 "\xc1\x02\x41\x82",
21171 .expectedlen = 64,
21172 .addtla = (unsigned char *)
21173 "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
21174 "\xeb\xb3\x01\x76",
21175 .addtlb = (unsigned char *)
21176 "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
21177 "\xd0\x7f\xcc\x43",
21178 .addtllen = 16,
21179 .pers = NULL,
21180 .perslen = 0,
21181 }, {
21182 .entropy = (unsigned char *)
21183 "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
21184 "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
21185 .entropylen = 24,
21186 .entpra = (unsigned char *)
21187 "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
21188 "\xc3\x0f\xe3\xb0",
21189 .entprb = (unsigned char *)
21190 "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
21191 "\xd6\x9c\x9d\xe8",
21192 .entprlen = 16,
21193 .expected = (unsigned char *)
21194 "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
21195 "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
21196 "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
21197 "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
21198 "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
21199 "\x72\x82\x0c\xcf",
21200 .expectedlen = 64,
21201 .addtla = NULL,
21202 .addtlb = NULL,
21203 .addtllen = 0,
21204 .pers = (unsigned char *)
21205 "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
21206 "\x21\x52\xb3\xad",
21207 .perslen = 16,
21208 }, {
21209 .entropy = (unsigned char *)
21210 "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
21211 "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
21212 .entropylen = 24,
21213 .entpra = (unsigned char *)
21214 "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
21215 "\xc4\x2c\xe8\x10",
21216 .entprb = (unsigned char *)
21217 "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
21218 "\x08\xf7\xa5\x01",
21219 .entprlen = 16,
21220 .expected = (unsigned char *)
21221 "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
21222 "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
21223 "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
21224 "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
21225 "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
21226 "\x23\xc5\x1f\x68",
21227 .expectedlen = 64,
21228 .addtla = (unsigned char *)
21229 "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
21230 "\x23\x6d\xad\x1d",
21231 .addtlb = (unsigned char *)
21232 "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
21233 "\xbc\x59\x31\x8c",
21234 .addtllen = 16,
21235 .pers = (unsigned char *)
21236 "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
21237 "\x37\x3c\x5c\x0b",
21238 .perslen = 16,
21239 },
21240};
21241
21242/*
21243 * SP800-90A DRBG Test vectors from
21244 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
21245 *
21246 * Test vectors for DRBG without prediction resistance. All types of DRBGs
21247 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
21248 * w/o personalization string, w/ and w/o additional input string).
21249 */
21250static struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
21251 {
21252 .entropy = (unsigned char *)
21253 "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
21254 "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
21255 "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
21256 "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
21257 .entropylen = 48,
21258 .expected = (unsigned char *)
21259 "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
21260 "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
21261 "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
21262 "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
21263 "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
21264 "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
21265 "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
21266 "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
21267 "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
21268 "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
21269 "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
21270 .expectedlen = 128,
21271 .addtla = NULL,
21272 .addtlb = NULL,
21273 .addtllen = 0,
21274 .pers = NULL,
21275 .perslen = 0,
21276 }, {
21277 .entropy = (unsigned char *)
21278 "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
21279 "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
21280 "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
21281 "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
21282 .entropylen = 48,
21283 .expected = (unsigned char *)
21284 "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
21285 "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
21286 "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
21287 "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
21288 "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
21289 "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
21290 "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
21291 "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
21292 "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
21293 "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
21294 "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
21295 .expectedlen = 128,
21296 .addtla = (unsigned char *)
21297 "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
21298 "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
21299 "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
21300 .addtlb = (unsigned char *)
21301 "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
21302 "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
21303 "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
21304 .addtllen = 32,
21305 .pers = NULL,
21306 .perslen = 0,
21307 }, {
21308 .entropy = (unsigned char *)
21309 "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
21310 "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
21311 "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
21312 "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
21313 .entropylen = 48,
21314 .expected = (unsigned char *)
21315 "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
21316 "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
21317 "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
21318 "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
21319 "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
21320 "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
21321 "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
21322 "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
21323 "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
21324 "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
21325 "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
21326 .expectedlen = 128,
21327 .addtla = NULL,
21328 .addtlb = NULL,
21329 .addtllen = 0,
21330 .pers = (unsigned char *)
21331 "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
21332 "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
21333 "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
21334 .perslen = 32,
21335 }, {
21336 .entropy = (unsigned char *)
21337 "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
21338 "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
21339 "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
21340 "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
21341 .entropylen = 48,
21342 .expected = (unsigned char *)
21343 "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
21344 "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
21345 "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
21346 "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
21347 "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
21348 "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
21349 "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
21350 "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
21351 "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
21352 "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
21353 "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
21354 .expectedlen = 128,
21355 .addtla = (unsigned char *)
21356 "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
21357 "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
21358 "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
21359 .addtlb = (unsigned char *)
21360 "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
21361 "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
21362 "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
21363 .addtllen = 32,
21364 .pers = (unsigned char *)
21365 "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
21366 "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
21367 "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
21368 .perslen = 32,
21369 },
21370};
21371
21372static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
21373 {
21374 .entropy = (unsigned char *)
21375 "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
21376 "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
21377 "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
21378 "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
21379 .entropylen = 48,
21380 .expected = (unsigned char *)
21381 "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
21382 "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
21383 "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
21384 "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
21385 "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
21386 "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
21387 "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
21388 "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
21389 "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
21390 "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
21391 "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
21392 .expectedlen = 128,
21393 .addtla = NULL,
21394 .addtlb = NULL,
21395 .addtllen = 0,
21396 .pers = NULL,
21397 .perslen = 0,
21398 }, {
21399 .entropy = (unsigned char *)
21400 "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
21401 "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
21402 "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
21403 "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
21404 .entropylen = 48,
21405 .expected = (unsigned char *)
21406 "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
21407 "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
21408 "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
21409 "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
21410 "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
21411 "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
21412 "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
21413 "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
21414 "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
21415 "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
21416 "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
21417 .expectedlen = 128,
21418 .addtla = (unsigned char *)
21419 "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
21420 "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
21421 "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
21422 .addtlb = (unsigned char *)
21423 "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
21424 "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
21425 "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
21426 .addtllen = 32,
21427 .pers = NULL,
21428 .perslen = 0,
21429 }, {
21430 .entropy = (unsigned char *)
21431 "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
21432 "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
21433 "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
21434 "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
21435 .entropylen = 48,
21436 .expected = (unsigned char *)
21437 "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
21438 "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
21439 "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
21440 "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
21441 "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
21442 "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
21443 "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
21444 "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
21445 "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
21446 "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
21447 "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
21448 .expectedlen = 128,
21449 .addtla = NULL,
21450 .addtlb = NULL,
21451 .addtllen = 0,
21452 .pers = (unsigned char *)
21453 "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
21454 "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
21455 "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
21456 .perslen = 32,
21457 }, {
21458 .entropy = (unsigned char *)
21459 "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
21460 "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
21461 "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
21462 "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
21463 .entropylen = 48,
21464 .expected = (unsigned char *)
21465 "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
21466 "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
21467 "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
21468 "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
21469 "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
21470 "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
21471 "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
21472 "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
21473 "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
21474 "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
21475 "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
21476 .expectedlen = 128,
21477 .addtla = (unsigned char *)
21478 "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
21479 "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
21480 "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
21481 .addtlb = (unsigned char *)
21482 "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
21483 "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
21484 "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
21485 .addtllen = 32,
21486 .pers = (unsigned char *)
21487 "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
21488 "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
21489 "\x36\x60\x3b\xca\x37\xc9\xee\x29",
21490 .perslen = 32,
21491 },
21492};
21493
21494static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
21495 {
21496 .entropy = (unsigned char *)
21497 "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
21498 "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
21499 "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
21500 "\xac\x9b\xbb\x00",
21501 .entropylen = 40,
21502 .expected = (unsigned char *)
21503 "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
21504 "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
21505 "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
21506 "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
21507 "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
21508 "\x9a\x9d\xf1\x0d",
21509 .expectedlen = 64,
21510 .addtla = NULL,
21511 .addtlb = NULL,
21512 .addtllen = 0,
21513 .pers = NULL,
21514 .perslen = 0,
21515 },
21516};
21517
21518static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
21519 {
21520 .entropy = (unsigned char *)
21521 "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
21522 "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
21523 "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
21524 "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
21525 .entropylen = 48,
21526 .expected = (unsigned char *)
21527 "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
21528 "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
21529 "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
21530 "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
21531 "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
21532 "\xb4\xf0\x7e\x1d",
21533 .expectedlen = 64,
21534 .addtla = NULL,
21535 .addtlb = NULL,
21536 .addtllen = 0,
21537 .pers = NULL,
21538 .perslen = 0,
21539 },
21540};
21541
21542static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
21543 {
21544 .entropy = (unsigned char *)
21545 "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
21546 "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
21547 .entropylen = 24,
21548 .expected = (unsigned char *)
21549 "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
21550 "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
21551 "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
21552 "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
21553 "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
21554 "\xcb\x2d\xd6\xb0",
21555 .expectedlen = 64,
21556 .addtla = NULL,
21557 .addtlb = NULL,
21558 .addtllen = 0,
21559 .pers = NULL,
21560 .perslen = 0,
21561 }, {
21562 .entropy = (unsigned char *)
21563 "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
21564 "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
21565 .entropylen = 24,
21566 .expected = (unsigned char *)
21567 "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
21568 "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
21569 "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
21570 "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
21571 "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
21572 "\xc3\xdf\xb3\x81",
21573 .expectedlen = 64,
21574 .addtla = (unsigned char *)
21575 "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
21576 "\x91\x4d\x81\x56",
21577 .addtlb = (unsigned char *)
21578 "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
21579 "\x4a\x55\xd1\xc6",
21580 .addtllen = 16,
21581 .pers = NULL,
21582 .perslen = 0,
21583 }, {
21584 .entropy = (unsigned char *)
21585 "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
21586 "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
21587 .entropylen = 24,
21588 .expected = (unsigned char *)
21589 "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
21590 "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
21591 "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
21592 "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
21593 "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
21594 "\x34\x30\x0c\x3d",
21595 .expectedlen = 64,
21596 .addtla = NULL,
21597 .addtlb = NULL,
21598 .addtllen = 0,
21599 .pers = (unsigned char *)
21600 "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
21601 "\x0b\xc6\x97\x54",
21602 .perslen = 16,
21603 }, {
21604 .entropy = (unsigned char *)
21605 "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
21606 "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
21607 .entropylen = 24,
21608 .expected = (unsigned char *)
21609 "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
21610 "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
21611 "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
21612 "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
21613 "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
21614 "\x2b\x49\x1e\x5c",
21615 .expectedlen = 64,
21616 .addtla = (unsigned char *)
21617 "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
21618 "\x44\x85\xe7\xfe",
21619 .addtlb = (unsigned char *)
21620 "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
21621 "\x82\x16\x62\x7f",
21622 .addtllen = 16,
21623 .pers = (unsigned char *)
21624 "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
21625 "\x8e\xcf\xe0\x02",
21626 .perslen = 16,
21627 },
21628};
21629
da7f033d 21630/* Cast5 test vectors from RFC 2144 */
a2c58260
JG
21631#define CAST5_ENC_TEST_VECTORS 4
21632#define CAST5_DEC_TEST_VECTORS 4
21633#define CAST5_CBC_ENC_TEST_VECTORS 1
21634#define CAST5_CBC_DEC_TEST_VECTORS 1
9cac3a29
JK
21635#define CAST5_CTR_ENC_TEST_VECTORS 2
21636#define CAST5_CTR_DEC_TEST_VECTORS 2
da7f033d
HX
21637
21638static struct cipher_testvec cast5_enc_tv_template[] = {
21639 {
21640 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
21641 "\x23\x45\x67\x89\x34\x56\x78\x9a",
21642 .klen = 16,
21643 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21644 .ilen = 8,
21645 .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
21646 .rlen = 8,
21647 }, {
21648 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
21649 "\x23\x45",
21650 .klen = 10,
21651 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21652 .ilen = 8,
21653 .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
21654 .rlen = 8,
21655 }, {
21656 .key = "\x01\x23\x45\x67\x12",
21657 .klen = 5,
21658 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21659 .ilen = 8,
21660 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
21661 .rlen = 8,
a2c58260
JG
21662 }, { /* Generated from TF test vectors */
21663 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21664 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21665 .klen = 16,
21666 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21667 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21668 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21669 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21670 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21671 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21672 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21673 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21674 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21675 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21676 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21677 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21678 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21679 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21680 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21681 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21682 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21683 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21684 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21685 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21686 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21687 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21688 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21689 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21690 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21691 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21692 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21693 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21694 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21695 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21696 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21697 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21698 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21699 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21700 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21701 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21702 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21703 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21704 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21705 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21706 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21707 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21708 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21709 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21710 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21711 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21712 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21713 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21714 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21715 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21716 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21717 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21718 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21719 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21720 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21721 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21722 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21723 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21724 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21725 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21726 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21727 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21728 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21729 .ilen = 496,
21730 .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
21731 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
21732 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
21733 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
21734 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
21735 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
21736 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
21737 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
21738 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
21739 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
21740 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
21741 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
21742 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
21743 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
21744 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
21745 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
21746 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
21747 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
21748 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
21749 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
21750 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
21751 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
21752 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
21753 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
21754 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
21755 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
21756 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
21757 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
21758 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
21759 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
21760 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
21761 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
21762 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
21763 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
21764 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
21765 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
21766 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
21767 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
21768 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
21769 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
21770 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
21771 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
21772 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
21773 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
21774 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
21775 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
21776 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
21777 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
21778 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
21779 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
21780 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
21781 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
21782 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
21783 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
21784 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
21785 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
21786 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
21787 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
21788 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
21789 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
21790 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
21791 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
21792 .rlen = 496,
f44d83d1 21793 .also_non_np = 1,
3b9b8fe0
AB
21794 .np = 3,
21795 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
21796 },
21797};
21798
21799static struct cipher_testvec cast5_dec_tv_template[] = {
21800 {
21801 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
21802 "\x23\x45\x67\x89\x34\x56\x78\x9a",
21803 .klen = 16,
21804 .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
21805 .ilen = 8,
21806 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21807 .rlen = 8,
21808 }, {
21809 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
21810 "\x23\x45",
21811 .klen = 10,
21812 .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
21813 .ilen = 8,
21814 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21815 .rlen = 8,
21816 }, {
21817 .key = "\x01\x23\x45\x67\x12",
21818 .klen = 5,
21819 .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
21820 .ilen = 8,
21821 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21822 .rlen = 8,
a2c58260
JG
21823 }, { /* Generated from TF test vectors */
21824 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21825 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21826 .klen = 16,
21827 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21828 .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
21829 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
21830 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
21831 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
21832 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
21833 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
21834 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
21835 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
21836 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
21837 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
21838 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
21839 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
21840 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
21841 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
21842 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
21843 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
21844 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
21845 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
21846 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
21847 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
21848 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
21849 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
21850 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
21851 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
21852 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
21853 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
21854 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
21855 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
21856 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
21857 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
21858 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
21859 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
21860 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
21861 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
21862 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
21863 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
21864 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
21865 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
21866 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
21867 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
21868 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
21869 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
21870 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
21871 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
21872 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
21873 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
21874 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
21875 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
21876 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
21877 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
21878 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
21879 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
21880 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
21881 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
21882 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
21883 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
21884 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
21885 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
21886 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
21887 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
21888 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
21889 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
21890 .ilen = 496,
21891 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21892 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21893 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21894 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21895 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21896 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21897 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21898 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21899 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21900 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21901 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21902 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21903 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21904 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21905 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21906 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21907 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21908 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21909 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21910 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21911 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21912 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21913 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21914 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21915 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21916 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21917 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21918 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21919 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21920 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21921 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21922 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21923 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21924 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21925 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21926 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21927 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21928 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21929 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21930 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21931 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21932 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21933 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21934 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21935 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21936 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21937 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21938 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21939 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21940 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21941 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21942 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21943 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21944 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21945 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21946 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21947 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21948 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21949 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21950 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21951 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21952 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21953 .rlen = 496,
f44d83d1 21954 .also_non_np = 1,
3b9b8fe0
AB
21955 .np = 3,
21956 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
21957 },
21958};
21959
21960static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
21961 { /* Generated from TF test vectors */
21962 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21963 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21964 .klen = 16,
21965 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21966 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21967 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21968 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21969 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21970 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21971 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21972 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21973 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21974 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21975 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21976 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21977 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21978 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21979 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21980 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21981 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21982 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21983 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21984 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21985 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21986 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21987 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21988 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21989 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21990 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21991 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21992 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21993 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21994 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21995 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21996 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21997 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21998 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21999 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22000 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22001 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22002 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22003 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22004 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22005 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22006 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22007 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22008 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22009 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22010 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22011 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22012 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22013 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22014 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22015 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22016 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22017 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22018 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22019 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22020 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22021 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22022 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22023 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22024 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22025 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22026 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22027 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
22028 .ilen = 496,
22029 .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
22030 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
22031 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
22032 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
22033 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
22034 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
22035 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
22036 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
22037 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
22038 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
22039 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
22040 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
22041 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
22042 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
22043 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
22044 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
22045 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
22046 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
22047 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
22048 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
22049 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
22050 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
22051 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
22052 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
22053 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
22054 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
22055 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
22056 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
22057 "\x90\x12\x37\x49\x27\x98\x69\x18"
22058 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
22059 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
22060 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
22061 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
22062 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
22063 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
22064 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
22065 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
22066 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
22067 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
22068 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
22069 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
22070 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
22071 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
22072 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
22073 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
22074 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
22075 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
22076 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
22077 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
22078 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
22079 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
22080 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
22081 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
22082 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
22083 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
22084 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
22085 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
22086 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
22087 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
22088 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
22089 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
22090 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
22091 .rlen = 496,
f44d83d1 22092 .also_non_np = 1,
3b9b8fe0
AB
22093 .np = 3,
22094 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
22095 },
22096};
22097
22098static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
22099 { /* Generated from TF test vectors */
22100 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
22101 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
22102 .klen = 16,
22103 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
22104 .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
22105 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
22106 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
22107 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
22108 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
22109 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
22110 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
22111 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
22112 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
22113 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
22114 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
22115 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
22116 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
22117 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
22118 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
22119 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
22120 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
22121 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
22122 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
22123 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
22124 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
22125 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
22126 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
22127 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
22128 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
22129 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
22130 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
22131 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
22132 "\x90\x12\x37\x49\x27\x98\x69\x18"
22133 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
22134 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
22135 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
22136 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
22137 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
22138 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
22139 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
22140 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
22141 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
22142 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
22143 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
22144 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
22145 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
22146 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
22147 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
22148 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
22149 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
22150 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
22151 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
22152 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
22153 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
22154 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
22155 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
22156 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
22157 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
22158 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
22159 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
22160 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
22161 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
22162 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
22163 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
22164 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
22165 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
22166 .ilen = 496,
22167 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22168 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22169 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22170 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22171 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22172 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22173 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22174 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22175 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22176 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22177 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22178 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22179 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22180 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22181 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22182 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22183 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22184 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22185 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22186 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22187 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22188 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22189 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22190 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22191 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22192 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22193 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22194 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22195 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22196 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22197 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22198 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22199 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22200 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22201 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22202 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22203 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22204 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22205 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22206 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22207 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22208 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22209 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22210 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22211 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22212 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22213 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22214 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22215 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22216 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22217 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22218 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22219 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22220 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22221 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22222 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22223 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22224 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22225 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22226 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22227 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22228 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
22229 .rlen = 496,
f44d83d1 22230 .also_non_np = 1,
3b9b8fe0
AB
22231 .np = 3,
22232 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
22233 },
22234};
22235
22236static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
22237 { /* Generated from TF test vectors */
9cac3a29
JK
22238 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
22239 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
22240 .klen = 16,
22241 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
22242 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22243 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22244 "\x3A",
22245 .ilen = 17,
22246 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
22247 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
22248 "\x0C",
22249 .rlen = 17,
22250 }, { /* Generated from TF test vectors */
a2c58260
JG
22251 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
22252 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
22253 .klen = 16,
22254 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
22255 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22256 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22257 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22258 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22259 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22260 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22261 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22262 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22263 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22264 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22265 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22266 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22267 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22268 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22269 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22270 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22271 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22272 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22273 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22274 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22275 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22276 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22277 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22278 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22279 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22280 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22281 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22282 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22283 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22284 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22285 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22286 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22287 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22288 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22289 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22290 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22291 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22292 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22293 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22294 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22295 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22296 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22297 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22298 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22299 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22300 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22301 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22302 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22303 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22304 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22305 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22306 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22307 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22308 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22309 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22310 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22311 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22312 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22313 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22314 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22315 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22316 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
22317 .ilen = 496,
22318 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
22319 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
22320 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
22321 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
22322 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
22323 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
22324 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
22325 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
22326 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
22327 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
22328 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
22329 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
22330 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
22331 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
22332 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
22333 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
22334 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
22335 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
22336 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
22337 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
22338 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
22339 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
22340 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
22341 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
22342 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
22343 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
22344 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
22345 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
22346 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
22347 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
22348 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
22349 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
22350 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
22351 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
22352 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
22353 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
22354 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
22355 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
22356 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
22357 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
22358 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
22359 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
22360 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
22361 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
22362 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
22363 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
22364 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
22365 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
22366 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
22367 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
22368 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
22369 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
22370 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
22371 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
22372 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
22373 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
22374 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
22375 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
22376 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
22377 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
22378 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
22379 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
22380 .rlen = 496,
f44d83d1 22381 .also_non_np = 1,
3b9b8fe0
AB
22382 .np = 3,
22383 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
22384 },
22385};
22386
22387static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
22388 { /* Generated from TF test vectors */
22389 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9cac3a29
JK
22390 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
22391 .klen = 16,
22392 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
22393 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
22394 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
22395 "\x0C",
22396 .ilen = 17,
22397 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22398 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22399 "\x3A",
22400 .rlen = 17,
22401 }, { /* Generated from TF test vectors */
22402 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
a2c58260
JG
22403 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
22404 .klen = 16,
22405 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
22406 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
22407 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
22408 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
22409 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
22410 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
22411 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
22412 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
22413 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
22414 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
22415 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
22416 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
22417 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
22418 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
22419 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
22420 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
22421 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
22422 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
22423 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
22424 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
22425 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
22426 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
22427 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
22428 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
22429 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
22430 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
22431 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
22432 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
22433 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
22434 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
22435 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
22436 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
22437 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
22438 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
22439 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
22440 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
22441 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
22442 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
22443 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
22444 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
22445 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
22446 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
22447 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
22448 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
22449 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
22450 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
22451 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
22452 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
22453 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
22454 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
22455 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
22456 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
22457 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
22458 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
22459 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
22460 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
22461 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
22462 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
22463 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
22464 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
22465 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
22466 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
22467 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
22468 .ilen = 496,
22469 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22470 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22471 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22472 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22473 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22474 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22475 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22476 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22477 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22478 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22479 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22480 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22481 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22482 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22483 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22484 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22485 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22486 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22487 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22488 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22489 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22490 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22491 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22492 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22493 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22494 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22495 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22496 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22497 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22498 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22499 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22500 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22501 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22502 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22503 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22504 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22505 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22506 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22507 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22508 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22509 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22510 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22511 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22512 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22513 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22514 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22515 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22516 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22517 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22518 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22519 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22520 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22521 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22522 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22523 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22524 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22525 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22526 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22527 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22528 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22529 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22530 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
22531 .rlen = 496,
f44d83d1 22532 .also_non_np = 1,
3b9b8fe0
AB
22533 .np = 3,
22534 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
22535 },
22536};
22537
22538/*
22539 * ARC4 test vectors from OpenSSL
22540 */
22541#define ARC4_ENC_TEST_VECTORS 7
22542#define ARC4_DEC_TEST_VECTORS 7
22543
22544static struct cipher_testvec arc4_enc_tv_template[] = {
22545 {
22546 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22547 .klen = 8,
22548 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22549 .ilen = 8,
22550 .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
22551 .rlen = 8,
22552 }, {
22553 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22554 .klen = 8,
22555 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
22556 .ilen = 8,
22557 .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
22558 .rlen = 8,
22559 }, {
22560 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
22561 .klen = 8,
22562 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
22563 .ilen = 8,
22564 .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
22565 .rlen = 8,
22566 }, {
22567 .key = "\xef\x01\x23\x45",
22568 .klen = 4,
22569 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
22570 "\x00\x00\x00\x00\x00\x00\x00\x00"
22571 "\x00\x00\x00\x00",
22572 .ilen = 20,
22573 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
22574 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
22575 "\x36\xb6\x78\x58",
22576 .rlen = 20,
22577 }, {
22578 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22579 .klen = 8,
22580 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
22581 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
22582 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
22583 "\x12\x34\x56\x78",
22584 .ilen = 28,
22585 .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
22586 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
22587 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
22588 "\x40\x01\x1e\xcf",
22589 .rlen = 28,
22590 }, {
22591 .key = "\xef\x01\x23\x45",
22592 .klen = 4,
22593 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
22594 "\x00\x00",
22595 .ilen = 10,
22596 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
22597 "\xbd\x61",
22598 .rlen = 10,
22599 }, {
22600 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
22601 "\x00\x00\x00\x00\x00\x00\x00\x00",
22602 .klen = 16,
22603 .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
22604 .ilen = 8,
22605 .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
22606 .rlen = 8,
22607 },
22608};
22609
22610static struct cipher_testvec arc4_dec_tv_template[] = {
22611 {
22612 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22613 .klen = 8,
22614 .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
22615 .ilen = 8,
22616 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22617 .rlen = 8,
22618 }, {
22619 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22620 .klen = 8,
22621 .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
22622 .ilen = 8,
22623 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
22624 .rlen = 8,
22625 }, {
22626 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
22627 .klen = 8,
22628 .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
22629 .ilen = 8,
22630 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
22631 .rlen = 8,
22632 }, {
22633 .key = "\xef\x01\x23\x45",
22634 .klen = 4,
22635 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
22636 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
22637 "\x36\xb6\x78\x58",
22638 .ilen = 20,
22639 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
22640 "\x00\x00\x00\x00\x00\x00\x00\x00"
22641 "\x00\x00\x00\x00",
22642 .rlen = 20,
22643 }, {
22644 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
22645 .klen = 8,
22646 .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
22647 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
22648 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
22649 "\x40\x01\x1e\xcf",
22650 .ilen = 28,
22651 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
22652 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
22653 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
22654 "\x12\x34\x56\x78",
22655 .rlen = 28,
22656 }, {
22657 .key = "\xef\x01\x23\x45",
22658 .klen = 4,
22659 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
22660 "\xbd\x61",
22661 .ilen = 10,
22662 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
22663 "\x00\x00",
22664 .rlen = 10,
22665 }, {
22666 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
22667 "\x00\x00\x00\x00\x00\x00\x00\x00",
22668 .klen = 16,
22669 .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
22670 .ilen = 8,
22671 .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
22672 .rlen = 8,
22673 },
22674};
22675
22676/*
22677 * TEA test vectors
22678 */
22679#define TEA_ENC_TEST_VECTORS 4
22680#define TEA_DEC_TEST_VECTORS 4
22681
22682static struct cipher_testvec tea_enc_tv_template[] = {
22683 {
22684 .key = zeroed_string,
22685 .klen = 16,
22686 .input = zeroed_string,
22687 .ilen = 8,
22688 .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
22689 .rlen = 8,
22690 }, {
22691 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
22692 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
22693 .klen = 16,
22694 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
22695 .ilen = 8,
22696 .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
22697 .rlen = 8,
22698 }, {
22699 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
22700 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
22701 .klen = 16,
22702 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
22703 "\x65\x73\x74\x5f\x76\x65\x63\x74",
22704 .ilen = 16,
22705 .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
22706 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
22707 .rlen = 16,
22708 }, {
22709 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
22710 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
22711 .klen = 16,
22712 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
22713 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
22714 "\x79\x6f\x75\x21\x21\x21\x20\x72"
22715 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
22716 .ilen = 32,
22717 .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
22718 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
22719 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
22720 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
22721 .rlen = 32,
22722 }
22723};
22724
22725static struct cipher_testvec tea_dec_tv_template[] = {
22726 {
22727 .key = zeroed_string,
22728 .klen = 16,
22729 .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
22730 .ilen = 8,
22731 .result = zeroed_string,
22732 .rlen = 8,
22733 }, {
22734 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
22735 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
22736 .klen = 16,
22737 .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
22738 .ilen = 8,
22739 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
22740 .rlen = 8,
22741 }, {
22742 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
22743 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
22744 .klen = 16,
22745 .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
22746 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
22747 .ilen = 16,
22748 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
22749 "\x65\x73\x74\x5f\x76\x65\x63\x74",
22750 .rlen = 16,
22751 }, {
22752 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
22753 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
22754 .klen = 16,
22755 .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
22756 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
22757 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
22758 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
22759 .ilen = 32,
22760 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
22761 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
22762 "\x79\x6f\x75\x21\x21\x21\x20\x72"
22763 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
22764 .rlen = 32,
22765 }
22766};
22767
22768/*
22769 * XTEA test vectors
22770 */
22771#define XTEA_ENC_TEST_VECTORS 4
22772#define XTEA_DEC_TEST_VECTORS 4
22773
22774static struct cipher_testvec xtea_enc_tv_template[] = {
22775 {
22776 .key = zeroed_string,
22777 .klen = 16,
22778 .input = zeroed_string,
22779 .ilen = 8,
22780 .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
22781 .rlen = 8,
22782 }, {
22783 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
22784 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
22785 .klen = 16,
22786 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
22787 .ilen = 8,
22788 .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
22789 .rlen = 8,
22790 }, {
22791 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
22792 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
22793 .klen = 16,
22794 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
22795 "\x65\x73\x74\x5f\x76\x65\x63\x74",
22796 .ilen = 16,
22797 .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
22798 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
22799 .rlen = 16,
22800 }, {
22801 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
22802 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
22803 .klen = 16,
22804 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
22805 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
22806 "\x79\x6f\x75\x21\x21\x21\x20\x72"
22807 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
22808 .ilen = 32,
22809 .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
22810 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
22811 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
22812 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
22813 .rlen = 32,
22814 }
22815};
22816
22817static struct cipher_testvec xtea_dec_tv_template[] = {
22818 {
22819 .key = zeroed_string,
22820 .klen = 16,
22821 .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
22822 .ilen = 8,
22823 .result = zeroed_string,
22824 .rlen = 8,
22825 }, {
22826 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
22827 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
22828 .klen = 16,
22829 .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
22830 .ilen = 8,
22831 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
22832 .rlen = 8,
22833 }, {
22834 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
22835 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
22836 .klen = 16,
22837 .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
22838 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
22839 .ilen = 16,
22840 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
22841 "\x65\x73\x74\x5f\x76\x65\x63\x74",
22842 .rlen = 16,
22843 }, {
22844 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
22845 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
22846 .klen = 16,
22847 .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
22848 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
22849 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
22850 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
22851 .ilen = 32,
22852 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
22853 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
22854 "\x79\x6f\x75\x21\x21\x21\x20\x72"
22855 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
22856 .rlen = 32,
22857 }
22858};
22859
22860/*
22861 * KHAZAD test vectors.
22862 */
22863#define KHAZAD_ENC_TEST_VECTORS 5
22864#define KHAZAD_DEC_TEST_VECTORS 5
22865
22866static struct cipher_testvec khazad_enc_tv_template[] = {
22867 {
22868 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
22869 "\x00\x00\x00\x00\x00\x00\x00\x00",
22870 .klen = 16,
22871 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
22872 .ilen = 8,
22873 .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
22874 .rlen = 8,
22875 }, {
22876 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
22877 "\x38\x38\x38\x38\x38\x38\x38\x38",
22878 .klen = 16,
22879 .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
22880 .ilen = 8,
22881 .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
22882 .rlen = 8,
22883 }, {
22884 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
22885 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22886 .klen = 16,
22887 .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22888 .ilen = 8,
22889 .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
22890 .rlen = 8,
22891 }, {
22892 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22893 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22894 .klen = 16,
22895 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22896 .ilen = 8,
22897 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22898 .rlen = 8,
22899 }, {
22900 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22901 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22902 .klen = 16,
22903 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22904 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22905 .ilen = 16,
22906 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
22907 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22908 .rlen = 16,
22909 },
22910};
22911
22912static struct cipher_testvec khazad_dec_tv_template[] = {
22913 {
22914 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
22915 "\x00\x00\x00\x00\x00\x00\x00\x00",
22916 .klen = 16,
22917 .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
22918 .ilen = 8,
22919 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
22920 .rlen = 8,
22921 }, {
22922 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
22923 "\x38\x38\x38\x38\x38\x38\x38\x38",
22924 .klen = 16,
22925 .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
22926 .ilen = 8,
22927 .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
22928 .rlen = 8,
22929 }, {
22930 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
22931 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22932 .klen = 16,
22933 .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
22934 .ilen = 8,
22935 .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22936 .rlen = 8,
22937 }, {
22938 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22939 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22940 .klen = 16,
22941 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22942 .ilen = 8,
22943 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22944 .rlen = 8,
22945 }, {
22946 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22947 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22948 .klen = 16,
22949 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
22950 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22951 .ilen = 16,
22952 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22953 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22954 .rlen = 16,
22955 },
22956};
22957
22958/*
22959 * Anubis test vectors.
22960 */
22961
22962#define ANUBIS_ENC_TEST_VECTORS 5
22963#define ANUBIS_DEC_TEST_VECTORS 5
22964#define ANUBIS_CBC_ENC_TEST_VECTORS 2
22965#define ANUBIS_CBC_DEC_TEST_VECTORS 2
22966
22967static struct cipher_testvec anubis_enc_tv_template[] = {
22968 {
22969 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22970 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22971 .klen = 16,
22972 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22973 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22974 .ilen = 16,
22975 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
22976 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
22977 .rlen = 16,
22978 }, {
22979
22980 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
22981 "\x03\x03\x03\x03\x03\x03\x03\x03"
22982 "\x03\x03\x03\x03",
22983 .klen = 20,
22984 .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
22985 "\x03\x03\x03\x03\x03\x03\x03\x03",
22986 .ilen = 16,
22987 .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
22988 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
22989 .rlen = 16,
22990 }, {
22991 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
22992 "\x24\x24\x24\x24\x24\x24\x24\x24"
22993 "\x24\x24\x24\x24\x24\x24\x24\x24"
22994 "\x24\x24\x24\x24",
22995 .klen = 28,
22996 .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
22997 "\x24\x24\x24\x24\x24\x24\x24\x24",
22998 .ilen = 16,
22999 .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
23000 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
23001 .rlen = 16,
23002 }, {
23003 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
23004 "\x25\x25\x25\x25\x25\x25\x25\x25"
23005 "\x25\x25\x25\x25\x25\x25\x25\x25"
23006 "\x25\x25\x25\x25\x25\x25\x25\x25",
23007 .klen = 32,
23008 .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
23009 "\x25\x25\x25\x25\x25\x25\x25\x25",
23010 .ilen = 16,
23011 .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
23012 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
23013 .rlen = 16,
23014 }, {
23015 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
23016 "\x35\x35\x35\x35\x35\x35\x35\x35"
23017 "\x35\x35\x35\x35\x35\x35\x35\x35"
23018 "\x35\x35\x35\x35\x35\x35\x35\x35"
23019 "\x35\x35\x35\x35\x35\x35\x35\x35",
23020 .klen = 40,
23021 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
23022 "\x35\x35\x35\x35\x35\x35\x35\x35",
23023 .ilen = 16,
23024 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
23025 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
23026 .rlen = 16,
23027 },
23028};
23029
23030static struct cipher_testvec anubis_dec_tv_template[] = {
23031 {
23032 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23033 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
23034 .klen = 16,
23035 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
23036 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
23037 .ilen = 16,
23038 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23039 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
23040 .rlen = 16,
23041 }, {
23042
23043 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
23044 "\x03\x03\x03\x03\x03\x03\x03\x03"
23045 "\x03\x03\x03\x03",
23046 .klen = 20,
23047 .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
23048 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
23049 .ilen = 16,
23050 .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
23051 "\x03\x03\x03\x03\x03\x03\x03\x03",
23052 .rlen = 16,
23053 }, {
23054 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
23055 "\x24\x24\x24\x24\x24\x24\x24\x24"
23056 "\x24\x24\x24\x24\x24\x24\x24\x24"
23057 "\x24\x24\x24\x24",
23058 .klen = 28,
23059 .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
23060 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
23061 .ilen = 16,
23062 .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
23063 "\x24\x24\x24\x24\x24\x24\x24\x24",
23064 .rlen = 16,
23065 }, {
23066 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
23067 "\x25\x25\x25\x25\x25\x25\x25\x25"
23068 "\x25\x25\x25\x25\x25\x25\x25\x25"
23069 "\x25\x25\x25\x25\x25\x25\x25\x25",
23070 .klen = 32,
23071 .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
23072 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
23073 .ilen = 16,
23074 .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
23075 "\x25\x25\x25\x25\x25\x25\x25\x25",
23076 .rlen = 16,
23077 }, {
23078 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
23079 "\x35\x35\x35\x35\x35\x35\x35\x35"
23080 "\x35\x35\x35\x35\x35\x35\x35\x35"
23081 "\x35\x35\x35\x35\x35\x35\x35\x35"
23082 "\x35\x35\x35\x35\x35\x35\x35\x35",
23083 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
23084 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
23085 .klen = 40,
23086 .ilen = 16,
23087 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
23088 "\x35\x35\x35\x35\x35\x35\x35\x35",
23089 .rlen = 16,
23090 },
23091};
23092
23093static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
23094 {
23095 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23096 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
23097 .klen = 16,
23098 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23099 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23100 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23101 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
23102 .ilen = 32,
23103 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
23104 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
23105 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
23106 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
23107 .rlen = 32,
23108 }, {
23109 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
23110 "\x35\x35\x35\x35\x35\x35\x35\x35"
23111 "\x35\x35\x35\x35\x35\x35\x35\x35"
23112 "\x35\x35\x35\x35\x35\x35\x35\x35"
23113 "\x35\x35\x35\x35\x35\x35\x35\x35",
23114 .klen = 40,
23115 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
23116 "\x35\x35\x35\x35\x35\x35\x35\x35"
23117 "\x35\x35\x35\x35\x35\x35\x35\x35"
23118 "\x35\x35\x35\x35\x35\x35\x35\x35",
23119 .ilen = 32,
23120 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
23121 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
23122 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
23123 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
23124 .rlen = 32,
23125 },
23126};
23127
23128static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
23129 {
23130 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23131 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
23132 .klen = 16,
23133 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
23134 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
23135 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
23136 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
23137 .ilen = 32,
23138 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23139 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23140 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
23141 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
23142 .rlen = 32,
23143 }, {
23144 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
23145 "\x35\x35\x35\x35\x35\x35\x35\x35"
23146 "\x35\x35\x35\x35\x35\x35\x35\x35"
23147 "\x35\x35\x35\x35\x35\x35\x35\x35"
23148 "\x35\x35\x35\x35\x35\x35\x35\x35",
23149 .klen = 40,
23150 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
23151 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
23152 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
23153 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
23154 .ilen = 32,
23155 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
23156 "\x35\x35\x35\x35\x35\x35\x35\x35"
23157 "\x35\x35\x35\x35\x35\x35\x35\x35"
23158 "\x35\x35\x35\x35\x35\x35\x35\x35",
23159 .rlen = 32,
23160 },
23161};
23162
23163/*
23164 * XETA test vectors
23165 */
23166#define XETA_ENC_TEST_VECTORS 4
23167#define XETA_DEC_TEST_VECTORS 4
23168
23169static struct cipher_testvec xeta_enc_tv_template[] = {
23170 {
23171 .key = zeroed_string,
23172 .klen = 16,
23173 .input = zeroed_string,
23174 .ilen = 8,
23175 .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
23176 .rlen = 8,
23177 }, {
23178 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
23179 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
23180 .klen = 16,
23181 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
23182 .ilen = 8,
23183 .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
23184 .rlen = 8,
23185 }, {
23186 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
23187 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
23188 .klen = 16,
23189 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
23190 "\x65\x73\x74\x5f\x76\x65\x63\x74",
23191 .ilen = 16,
23192 .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
23193 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
23194 .rlen = 16,
23195 }, {
23196 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
23197 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
23198 .klen = 16,
23199 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
23200 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
23201 "\x79\x6f\x75\x21\x21\x21\x20\x72"
23202 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
23203 .ilen = 32,
23204 .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
23205 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
23206 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
23207 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
23208 .rlen = 32,
23209 }
23210};
23211
23212static struct cipher_testvec xeta_dec_tv_template[] = {
23213 {
23214 .key = zeroed_string,
23215 .klen = 16,
23216 .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
23217 .ilen = 8,
23218 .result = zeroed_string,
23219 .rlen = 8,
23220 }, {
23221 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
23222 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
23223 .klen = 16,
23224 .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
23225 .ilen = 8,
23226 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
23227 .rlen = 8,
23228 }, {
23229 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
23230 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
23231 .klen = 16,
23232 .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
23233 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
23234 .ilen = 16,
23235 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
23236 "\x65\x73\x74\x5f\x76\x65\x63\x74",
23237 .rlen = 16,
23238 }, {
23239 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
23240 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
23241 .klen = 16,
23242 .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
23243 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
23244 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
23245 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
23246 .ilen = 32,
23247 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
23248 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
23249 "\x79\x6f\x75\x21\x21\x21\x20\x72"
23250 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
23251 .rlen = 32,
23252 }
23253};
23254
23255/*
23256 * FCrypt test vectors
23257 */
23258#define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
23259#define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
23260
23261static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
23262 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
23263 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
23264 .klen = 8,
23265 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
23266 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
23267 .ilen = 8,
23268 .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
23269 .rlen = 8,
23270 }, {
23271 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
23272 .klen = 8,
23273 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
23274 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
23275 .ilen = 8,
23276 .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
23277 .rlen = 8,
23278 }, { /* From Arla */
23279 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
23280 .klen = 8,
23281 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23282 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
23283 .ilen = 48,
23284 .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
23285 "\xee\xac\x98\x62\x44\x51\xe4\x84"
23286 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
23287 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
23288 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
23289 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
23290 .rlen = 48,
23291 }, {
23292 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23293 .klen = 8,
23294 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
23295 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
23296 .ilen = 48,
23297 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
23298 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
23299 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
23300 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
23301 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
23302 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
23303 .rlen = 48,
23304 }, { /* split-page version */
23305 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23306 .klen = 8,
23307 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
23308 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
23309 .ilen = 48,
23310 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
23311 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
23312 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
23313 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
23314 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
23315 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
23316 .rlen = 48,
23317 .np = 2,
23318 .tap = { 20, 28 },
23319 }
23320};
23321
23322static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
23323 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
23324 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
23325 .klen = 8,
23326 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
23327 .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
23328 .ilen = 8,
23329 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
23330 .rlen = 8,
23331 }, {
23332 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
23333 .klen = 8,
23334 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
23335 .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
23336 .ilen = 8,
23337 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
23338 .rlen = 8,
23339 }, { /* From Arla */
23340 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
23341 .klen = 8,
23342 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23343 .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
23344 "\xee\xac\x98\x62\x44\x51\xe4\x84"
23345 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
23346 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
23347 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
23348 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
23349 .ilen = 48,
23350 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
23351 .rlen = 48,
23352 }, {
23353 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23354 .klen = 8,
23355 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
23356 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
23357 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
23358 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
23359 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
23360 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
23361 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
23362 .ilen = 48,
23363 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
23364 .rlen = 48,
23365 }, { /* split-page version */
23366 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23367 .klen = 8,
23368 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
23369 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
23370 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
23371 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
23372 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
23373 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
23374 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
23375 .ilen = 48,
23376 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
23377 .rlen = 48,
23378 .np = 2,
23379 .tap = { 20, 28 },
23380 }
23381};
23382
23383/*
23384 * CAMELLIA test vectors.
23385 */
0840605e
JK
23386#define CAMELLIA_ENC_TEST_VECTORS 4
23387#define CAMELLIA_DEC_TEST_VECTORS 4
23388#define CAMELLIA_CBC_ENC_TEST_VECTORS 3
23389#define CAMELLIA_CBC_DEC_TEST_VECTORS 3
23390#define CAMELLIA_CTR_ENC_TEST_VECTORS 2
23391#define CAMELLIA_CTR_DEC_TEST_VECTORS 2
23392#define CAMELLIA_LRW_ENC_TEST_VECTORS 8
23393#define CAMELLIA_LRW_DEC_TEST_VECTORS 8
23394#define CAMELLIA_XTS_ENC_TEST_VECTORS 5
23395#define CAMELLIA_XTS_DEC_TEST_VECTORS 5
da7f033d
HX
23396
23397static struct cipher_testvec camellia_enc_tv_template[] = {
23398 {
23399 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23400 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23401 .klen = 16,
23402 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23403 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23404 .ilen = 16,
23405 .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
23406 "\x08\x57\x06\x56\x48\xea\xbe\x43",
23407 .rlen = 16,
23408 }, {
23409 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23410 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
23411 "\x00\x11\x22\x33\x44\x55\x66\x77",
23412 .klen = 24,
23413 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23414 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23415 .ilen = 16,
23416 .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
23417 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
23418 .rlen = 16,
23419 }, {
23420 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23421 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
23422 "\x00\x11\x22\x33\x44\x55\x66\x77"
23423 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
23424 .klen = 32,
23425 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23426 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23427 .ilen = 16,
23428 .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
23429 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
23430 .rlen = 16,
be6314b4 23431 }, { /* Generated with Crypto++ */
0840605e
JK
23432 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
23433 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
23434 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
23435 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
23436 .klen = 32,
23437 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
23438 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
23439 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
23440 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
23441 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
23442 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
23443 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
23444 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
23445 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
23446 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
23447 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
23448 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
23449 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
23450 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
23451 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
23452 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
23453 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
23454 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
23455 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
23456 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
23457 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
23458 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
23459 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
23460 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
23461 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
23462 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
23463 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
23464 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
23465 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
23466 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
23467 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
23468 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
23469 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
23470 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
23471 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
23472 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
23473 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
23474 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
23475 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
23476 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
23477 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
23478 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
23479 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
23480 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
23481 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
23482 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
23483 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
23484 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
23485 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
23486 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
23487 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
23488 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
23489 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
23490 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
23491 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
23492 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
23493 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
23494 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
23495 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
23496 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
23497 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
23498 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23499 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
23500 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
23501 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
23502 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
23503 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
23504 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
23505 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
23506 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
23507 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
23508 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
23509 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
23510 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
23511 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
23512 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
23513 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
23514 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
23515 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
23516 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
23517 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
23518 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
23519 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
23520 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
23521 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
23522 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
23523 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
23524 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
23525 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
23526 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
23527 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
23528 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
23529 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
23530 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
23531 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
23532 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
23533 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
23534 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
23535 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
23536 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
23537 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
23538 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
23539 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
23540 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
23541 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
23542 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
23543 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
23544 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
23545 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
23546 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
23547 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
23548 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
23549 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
23550 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
23551 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
23552 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
23553 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
23554 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
23555 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
23556 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
23557 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
23558 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
23559 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
23560 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
23561 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
23562 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
23563 .ilen = 1008,
0840605e
JK
23564 .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
23565 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
23566 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
23567 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
23568 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
be6314b4
JK
23569 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
23570 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
23571 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
23572 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
23573 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
23574 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
23575 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
23576 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
23577 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
23578 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
23579 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
23580 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
23581 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
23582 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
23583 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
23584 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
23585 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
23586 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
23587 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
23588 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
23589 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
23590 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
23591 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
23592 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
23593 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
23594 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
23595 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
23596 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
23597 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
23598 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
23599 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
23600 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
23601 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
23602 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
23603 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
23604 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
23605 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
23606 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
23607 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
23608 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
23609 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
23610 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
23611 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
23612 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
23613 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
23614 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
23615 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
23616 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
23617 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
23618 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
23619 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
23620 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
23621 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
23622 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
23623 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
23624 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
23a836e8
JK
23625 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
23626 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
23627 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
23628 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
23629 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
23630 "\xED\x28\x39\xE9\x63\xED\x41\x70"
23631 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
23632 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
23633 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
23634 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
23635 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
23636 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
23637 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
23638 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
23639 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
23640 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
23641 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
23642 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
23643 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
23644 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
23645 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
23646 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
23647 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
23648 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
23649 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
23650 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
23651 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
23652 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
23653 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
23654 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
23655 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
23656 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
23657 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
23658 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
23659 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
23660 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
23661 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
23662 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
23663 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
23664 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
23665 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
23666 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
23667 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
23668 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
23669 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
23670 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
23671 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
23672 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
23673 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
23674 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
23675 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
23676 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
23677 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
23678 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
23679 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
23680 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
23681 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
23682 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
23683 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
23684 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
23685 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
23686 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
23687 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
23688 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
23689 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
23690 .rlen = 1008,
f44d83d1 23691 .also_non_np = 1,
3b9b8fe0
AB
23692 .np = 3,
23693 .tap = { 1008 - 20, 4, 16 },
0840605e 23694 },
da7f033d
HX
23695};
23696
23697static struct cipher_testvec camellia_dec_tv_template[] = {
23698 {
23699 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23700 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23701 .klen = 16,
23702 .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
23703 "\x08\x57\x06\x56\x48\xea\xbe\x43",
23704 .ilen = 16,
23705 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23706 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23707 .rlen = 16,
23708 }, {
23709 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23710 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
23711 "\x00\x11\x22\x33\x44\x55\x66\x77",
23712 .klen = 24,
23713 .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
23714 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
23715 .ilen = 16,
23716 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23717 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23718 .rlen = 16,
23719 }, {
23720 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23721 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
23722 "\x00\x11\x22\x33\x44\x55\x66\x77"
23723 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
23724 .klen = 32,
23725 .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
23726 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
23727 .ilen = 16,
23728 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
23729 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
23730 .rlen = 16,
be6314b4 23731 }, { /* Generated with Crypto++ */
0840605e
JK
23732 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
23733 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
23734 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
23735 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
23736 .klen = 32,
23737 .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
23738 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
23739 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
23740 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
23741 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
be6314b4
JK
23742 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
23743 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
23744 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
23745 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
23746 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
23747 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
23748 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
23749 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
23750 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
23751 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
23752 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
23753 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
23754 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
23755 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
23756 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
23757 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
23758 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
23759 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
23760 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
23761 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
23762 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
23763 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
23764 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
23765 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
23766 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
23767 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
23768 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
23769 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
23770 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
23771 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
23772 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
23773 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
23774 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
23775 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
23776 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
23777 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
23778 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
23779 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
23780 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
23781 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
23782 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
23783 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
23784 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
23785 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
23786 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
23787 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
23788 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
23789 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
23790 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
23791 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
23792 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
23793 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
23794 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
23795 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
23796 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
23797 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
23a836e8
JK
23798 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
23799 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
23800 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
23801 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
23802 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
23803 "\xED\x28\x39\xE9\x63\xED\x41\x70"
23804 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
23805 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
23806 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
23807 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
23808 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
23809 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
23810 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
23811 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
23812 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
23813 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
23814 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
23815 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
23816 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
23817 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
23818 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
23819 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
23820 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
23821 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
23822 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
23823 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
23824 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
23825 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
23826 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
23827 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
23828 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
23829 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
23830 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
23831 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
23832 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
23833 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
23834 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
23835 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
23836 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
23837 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
23838 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
23839 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
23840 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
23841 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
23842 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
23843 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
23844 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
23845 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
23846 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
23847 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
23848 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
23849 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
23850 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
23851 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
23852 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
23853 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
23854 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
23855 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
23856 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
23857 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
23858 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
23859 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
23860 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
23861 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
23862 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
23863 .ilen = 1008,
0840605e
JK
23864 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
23865 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
23866 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
23867 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
23868 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
23869 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
23870 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
23871 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
23872 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
23873 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
23874 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
23875 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
23876 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
23877 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
23878 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
23879 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
23880 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
23881 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
23882 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
23883 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
23884 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
23885 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
23886 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
23887 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
23888 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
23889 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
23890 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
23891 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
23892 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
23893 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
23894 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
23895 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
23896 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
23897 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
23898 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
23899 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
23900 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
23901 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
23902 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
23903 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
23904 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
23905 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
23906 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
23907 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
23908 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
23909 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
23910 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
23911 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
23912 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
23913 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
23914 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
23915 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
23916 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
23917 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
23918 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
23919 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
23920 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
23921 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
23922 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
23923 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
23924 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
23925 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23926 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
23927 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
23928 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
23929 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
23930 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
23931 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
23932 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
23933 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
23934 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
23935 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
23936 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
23937 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
23938 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
23939 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
23940 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
23941 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
23942 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
23943 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
23944 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
23945 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
23946 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
23947 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
23948 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
23949 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
23950 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
23951 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
23952 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
23953 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
23954 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
23955 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
23956 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
23957 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
23958 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
23959 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
23960 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
23961 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
23962 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
23963 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
23964 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
23965 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
23966 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
23967 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
23968 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
23969 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
23970 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
23971 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
23972 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
23973 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
23974 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
23975 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
23976 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
23977 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
23978 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
23979 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
23980 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
23981 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
23982 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
23983 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
23984 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
23985 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
23986 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
23987 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
23988 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
23989 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
23990 .rlen = 1008,
f44d83d1 23991 .also_non_np = 1,
3b9b8fe0
AB
23992 .np = 3,
23993 .tap = { 1008 - 20, 4, 16 },
0840605e 23994 },
da7f033d
HX
23995};
23996
23997static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
23998 {
23999 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
24000 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
24001 .klen = 16,
24002 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
24003 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
24004 .input = "Single block msg",
24005 .ilen = 16,
24006 .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
24007 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
24008 .rlen = 16,
24009 }, {
24010 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
24011 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
24012 .klen = 16,
24013 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
24014 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
24015 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
24016 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
24017 "\x10\x11\x12\x13\x14\x15\x16\x17"
24018 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
24019 .ilen = 32,
24020 .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
24021 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
24022 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
24023 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
24024 .rlen = 32,
be6314b4 24025 }, { /* Generated with Crypto++ */
0840605e
JK
24026 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24027 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24028 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24029 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24030 .klen = 32,
24031 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
24032 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
24033 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24034 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24035 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24036 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24037 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
24038 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
24039 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24040 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24041 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24042 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24043 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24044 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24045 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24046 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24047 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24048 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24049 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24050 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24051 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24052 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24053 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24054 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24055 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24056 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24057 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24058 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24059 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24060 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24061 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24062 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24063 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24064 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24065 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24066 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24067 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24068 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24069 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24070 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24071 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24072 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24073 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24074 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24075 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24076 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24077 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24078 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24079 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24080 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24081 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24082 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24083 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24084 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24085 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24086 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24087 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24088 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24089 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24090 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24091 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24092 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24093 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
24094 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
24095 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
24096 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
24097 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
24098 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
24099 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
24100 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
24101 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
24102 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
24103 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
24104 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
24105 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
24106 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
24107 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
24108 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
24109 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
24110 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
24111 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
24112 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
24113 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
24114 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
24115 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
24116 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
24117 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
24118 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
24119 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
24120 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
24121 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
24122 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
24123 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
24124 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
24125 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
24126 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
24127 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
24128 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
24129 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
24130 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
24131 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
24132 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
24133 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
24134 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
24135 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
24136 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
24137 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
24138 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
24139 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
24140 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
24141 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
24142 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
24143 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
24144 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
24145 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
24146 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
24147 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
24148 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
24149 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
24150 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
24151 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
24152 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
24153 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
24154 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
24155 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
24156 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
24157 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
24158 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
24159 .ilen = 1008,
0840605e
JK
24160 .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
24161 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
24162 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
24163 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
24164 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
be6314b4
JK
24165 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
24166 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
24167 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
24168 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
24169 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
24170 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
24171 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
24172 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
24173 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
24174 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
24175 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
24176 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
24177 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
24178 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
24179 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
24180 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
24181 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
24182 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
24183 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
24184 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
24185 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
24186 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
24187 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
24188 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
24189 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
24190 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
24191 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
24192 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
24193 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
24194 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
24195 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
24196 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
24197 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
24198 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
24199 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
24200 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
24201 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
24202 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
24203 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
24204 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
24205 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
24206 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
24207 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
24208 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
24209 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
24210 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
24211 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
24212 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
24213 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
24214 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
24215 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
24216 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
24217 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
24218 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
24219 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
24220 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
23a836e8
JK
24221 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
24222 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
24223 "\x21\x41\x56\x72\x13\xE1\x86\x07"
24224 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
24225 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
24226 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
24227 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
24228 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
24229 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
24230 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
24231 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
24232 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
24233 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
24234 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
24235 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
24236 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
24237 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
24238 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
24239 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
24240 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
24241 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
24242 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
24243 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
24244 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
24245 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
24246 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
24247 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
24248 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
24249 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
24250 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
24251 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
24252 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
24253 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
24254 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
24255 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
24256 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
24257 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
24258 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
24259 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
24260 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
24261 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
24262 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
24263 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
24264 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
24265 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
24266 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
24267 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
24268 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
24269 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
24270 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
24271 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
24272 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
24273 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
24274 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
24275 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
24276 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
24277 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
24278 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
24279 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
24280 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
24281 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
24282 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
24283 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
24284 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
24285 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
24286 .rlen = 1008,
f44d83d1 24287 .also_non_np = 1,
3b9b8fe0
AB
24288 .np = 3,
24289 .tap = { 1008 - 20, 4, 16 },
0840605e 24290 },
da7f033d
HX
24291};
24292
24293static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
24294 {
24295 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
24296 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
24297 .klen = 16,
24298 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
24299 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
24300 .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
24301 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
24302 .ilen = 16,
24303 .result = "Single block msg",
24304 .rlen = 16,
24305 }, {
24306 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
24307 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
24308 .klen = 16,
24309 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
24310 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
24311 .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
24312 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
24313 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
24314 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
24315 .ilen = 32,
24316 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
24317 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
24318 "\x10\x11\x12\x13\x14\x15\x16\x17"
24319 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
24320 .rlen = 32,
be6314b4 24321 }, { /* Generated with Crypto++ */
0840605e
JK
24322 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24323 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24324 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24325 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24326 .klen = 32,
24327 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
24328 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
24329 .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
24330 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
24331 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
24332 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
24333 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
be6314b4
JK
24334 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
24335 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
24336 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
24337 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
24338 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
24339 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
24340 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
24341 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
24342 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
24343 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
24344 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
24345 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
24346 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
24347 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
24348 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
24349 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
24350 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
24351 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
24352 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
24353 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
24354 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
24355 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
24356 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
24357 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
24358 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
24359 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
24360 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
24361 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
24362 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
24363 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
24364 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
24365 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
24366 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
24367 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
24368 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
24369 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
24370 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
24371 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
24372 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
24373 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
24374 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
24375 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
24376 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
24377 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
24378 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
24379 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
24380 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
24381 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
24382 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
24383 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
24384 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
24385 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
24386 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
24387 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
24388 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
24389 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
23a836e8
JK
24390 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
24391 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
24392 "\x21\x41\x56\x72\x13\xE1\x86\x07"
24393 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
24394 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
24395 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
24396 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
24397 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
24398 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
24399 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
24400 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
24401 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
24402 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
24403 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
24404 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
24405 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
24406 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
24407 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
24408 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
24409 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
24410 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
24411 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
24412 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
24413 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
24414 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
24415 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
24416 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
24417 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
24418 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
24419 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
24420 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
24421 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
24422 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
24423 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
24424 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
24425 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
24426 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
24427 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
24428 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
24429 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
24430 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
24431 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
24432 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
24433 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
24434 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
24435 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
24436 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
24437 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
24438 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
24439 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
24440 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
24441 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
24442 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
24443 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
24444 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
24445 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
24446 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
24447 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
24448 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
24449 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
24450 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
24451 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
24452 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
24453 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
24454 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
24455 .ilen = 1008,
0840605e
JK
24456 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24457 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24458 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24459 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24460 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
24461 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
24462 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24463 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24464 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24465 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24466 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24467 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24468 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24469 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24470 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24471 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24472 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24473 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24474 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24475 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24476 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24477 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24478 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24479 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24480 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24481 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24482 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24483 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24484 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24485 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24486 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24487 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24488 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24489 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24490 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24491 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24492 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24493 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24494 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24495 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24496 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24497 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24498 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24499 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24500 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24501 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24502 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24503 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24504 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24505 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24506 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24507 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24508 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24509 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24510 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24511 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24512 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24513 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24514 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24515 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24516 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
24517 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
24518 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
24519 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
24520 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
24521 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
24522 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
24523 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
24524 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
24525 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
24526 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
24527 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
24528 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
24529 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
24530 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
24531 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
24532 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
24533 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
24534 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
24535 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
24536 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
24537 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
24538 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
24539 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
24540 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
24541 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
24542 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
24543 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
24544 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
24545 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
24546 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
24547 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
24548 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
24549 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
24550 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
24551 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
24552 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
24553 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
24554 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
24555 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
24556 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
24557 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
24558 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
24559 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
24560 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
24561 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
24562 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
24563 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
24564 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
24565 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
24566 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
24567 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
24568 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
24569 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
24570 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
24571 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
24572 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
24573 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
24574 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
24575 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
24576 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
24577 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
24578 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
24579 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
24580 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
24581 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
24582 .rlen = 1008,
f44d83d1 24583 .also_non_np = 1,
3b9b8fe0
AB
24584 .np = 3,
24585 .tap = { 1008 - 20, 4, 16 },
0840605e
JK
24586 },
24587};
24588
24589static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
24590 { /* Generated with Crypto++ */
24591 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24592 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24593 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24594 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24595 .klen = 32,
24596 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
24597 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
24598 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24599 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24600 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24601 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24602 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
24603 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
24604 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24605 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24606 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24607 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24608 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24609 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24610 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24611 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24612 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24613 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24614 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24615 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24616 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24617 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24618 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24619 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24620 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24621 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24622 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24623 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24624 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24625 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24626 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24627 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24628 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24629 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24630 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24631 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24632 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24633 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24634 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24635 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24636 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24637 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24638 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24639 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24640 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24641 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24642 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24643 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24644 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24645 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24646 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24647 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24648 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24649 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24650 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24651 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24652 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24653 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24654 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24655 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24656 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24657 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24658 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
24659 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
24660 .ilen = 496,
0840605e
JK
24661 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
24662 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
24663 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
24664 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
24665 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
be6314b4
JK
24666 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
24667 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
24668 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
24669 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
24670 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
24671 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
24672 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
24673 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
24674 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
24675 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
24676 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
24677 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
24678 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
24679 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
24680 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
24681 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
24682 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
24683 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
24684 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
24685 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
24686 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
24687 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
24688 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
24689 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
24690 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
24691 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
24692 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
24693 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
24694 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
24695 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
24696 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
24697 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
24698 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
24699 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
24700 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
24701 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
24702 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
24703 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
24704 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
24705 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
24706 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
24707 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
24708 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
24709 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
24710 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
24711 "\x76\x44\x45\xF3\x24\x11\x57\x98"
24712 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
24713 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
24714 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
24715 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
24716 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
24717 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
24718 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
24719 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
24720 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
24721 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
24722 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
24723 .rlen = 496,
24724 }, { /* Generated with Crypto++ */
0840605e
JK
24725 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24726 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24727 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24728 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24729 .klen = 32,
24730 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
24731 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
24732 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24733 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24734 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24735 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24736 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
24737 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
be6314b4
JK
24738 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24739 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24740 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24741 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24742 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24743 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24744 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24745 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24746 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24747 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24748 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24749 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24750 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24751 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24752 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24753 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24754 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24755 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24756 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24757 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24758 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24759 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24760 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24761 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24762 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24763 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24764 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24765 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24766 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24767 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24768 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24769 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24770 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24771 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24772 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24773 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24774 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24775 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24776 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24777 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24778 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24779 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24780 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24781 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24782 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24783 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24784 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24785 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24786 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24787 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24788 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24789 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24790 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24791 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24792 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
24793 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23a836e8
JK
24794 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
24795 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
24796 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
24797 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
24798 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
24799 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
24800 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
24801 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
24802 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
24803 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
24804 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
24805 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
24806 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
24807 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
24808 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
24809 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
24810 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
24811 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
24812 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
24813 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
24814 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
24815 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
24816 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
24817 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
24818 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
24819 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
24820 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
24821 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
24822 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
24823 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
24824 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
24825 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
24826 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
24827 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
24828 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
24829 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
24830 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
24831 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
24832 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
24833 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
24834 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
24835 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
24836 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
24837 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
24838 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
24839 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
24840 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
24841 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
24842 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
24843 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
24844 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
24845 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
24846 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
24847 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
24848 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
24849 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
24850 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
24851 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
24852 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
24853 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
24854 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
24855 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
24856 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
24857 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
24858 "\xE4\x7B\x12",
24859 .ilen = 1011,
0840605e
JK
24860 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
24861 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
24862 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
24863 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
24864 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
24865 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
be6314b4
JK
24866 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
24867 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
24868 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
24869 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
24870 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
24871 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
24872 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
24873 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
24874 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
24875 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
24876 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
24877 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
24878 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
24879 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
24880 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
24881 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
24882 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
24883 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
24884 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
24885 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
24886 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
24887 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
24888 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
24889 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
24890 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
24891 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
24892 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
24893 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
24894 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
24895 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
24896 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
24897 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
24898 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
24899 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
24900 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
24901 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
24902 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
24903 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
24904 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
24905 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
24906 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
24907 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
24908 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
24909 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
24910 "\x76\x44\x45\xF3\x24\x11\x57\x98"
24911 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
24912 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
24913 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
24914 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
24915 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
24916 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
24917 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
24918 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
24919 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
24920 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
24921 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
23a836e8
JK
24922 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
24923 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
24924 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
24925 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
24926 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
24927 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
24928 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
24929 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
24930 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
24931 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
24932 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
24933 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
24934 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
24935 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
24936 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
24937 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
24938 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
24939 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
24940 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
24941 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
24942 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
24943 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
24944 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
24945 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
24946 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
24947 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
24948 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
24949 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
24950 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
24951 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
24952 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
24953 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
24954 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
24955 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
24956 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
24957 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
24958 "\x00\x70\x12\x56\x56\x50\xAD\x14"
24959 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
24960 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
24961 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
24962 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
24963 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
24964 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
24965 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
24966 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
24967 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
24968 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
24969 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
24970 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
24971 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
24972 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
24973 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
24974 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
24975 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
24976 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
24977 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
24978 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
24979 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
24980 "\x74\x28\x9D\x05\x30\x20\x62\x41"
24981 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
24982 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
24983 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
24984 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
24985 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
24986 "\xF1\x6B\xD9",
24987 .rlen = 1011,
f44d83d1
JK
24988 .also_non_np = 1,
24989 .np = 2,
23a836e8 24990 .tap = { 1011 - 16, 16 },
549595a0
JK
24991 }, { /* Generated with Crypto++ */
24992 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24993 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24994 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24995 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24996 .klen = 32,
24997 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
24998 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
24999 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25000 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25001 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25002 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25003 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
25004 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
25005 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25006 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25007 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25008 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25009 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25010 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25011 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25012 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25013 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25014 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25015 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25016 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25017 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25018 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25019 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25020 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25021 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25022 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25023 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25024 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25025 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25026 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25027 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25028 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25029 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25030 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25031 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25032 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25033 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25034 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25035 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25036 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25037 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25038 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25039 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25040 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25041 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25042 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25043 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25044 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25045 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25046 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25047 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25048 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25049 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25050 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25051 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25052 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
25053 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
25054 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
25055 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
25056 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
25057 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
25058 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
25059 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
25060 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
25061 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
25062 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
25063 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
25064 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
25065 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
25066 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
25067 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
25068 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
25069 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
25070 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
25071 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
25072 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
25073 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
25074 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
25075 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
25076 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
25077 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
25078 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
25079 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
25080 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
25081 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
25082 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
25083 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
25084 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
25085 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
25086 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
25087 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
25088 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
25089 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
25090 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
25091 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
25092 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
25093 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
25094 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
25095 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
25096 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
25097 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
25098 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
25099 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
25100 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
25101 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
25102 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
25103 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
25104 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
25105 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
25106 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
25107 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
25108 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
25109 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
25110 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
25111 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
25112 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
25113 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
25114 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
25115 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
25116 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
25117 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
25118 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
25119 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
25120 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
25121 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
25122 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
25123 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
25124 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
25125 .ilen = 1008,
549595a0
JK
25126 .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
25127 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
25128 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
25129 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
25130 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
25131 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
25132 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
25133 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
25134 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
25135 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
25136 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
25137 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
25138 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
25139 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
25140 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
25141 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
25142 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
25143 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
25144 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
25145 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
25146 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
25147 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
25148 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
25149 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
25150 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
25151 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
25152 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
25153 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
25154 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
25155 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
25156 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
25157 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
25158 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
25159 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
25160 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
25161 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
25162 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
25163 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
25164 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
25165 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
25166 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
25167 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
25168 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
25169 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
25170 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
25171 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
25172 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
25173 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
25174 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
25175 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
25176 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
25177 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
25178 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
25179 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
25180 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
25181 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
25182 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
25183 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
25184 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
25185 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
25186 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
23a836e8
JK
25187 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
25188 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
25189 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
25190 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
25191 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
25192 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
25193 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
25194 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
25195 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
25196 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
25197 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
25198 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
25199 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
25200 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
25201 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
25202 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
25203 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
25204 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
25205 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
25206 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
25207 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
25208 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
25209 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
25210 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
25211 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
25212 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
25213 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
25214 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
25215 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
25216 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
25217 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
25218 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
25219 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
25220 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
25221 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
25222 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
25223 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
25224 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
25225 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
25226 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
25227 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
25228 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
25229 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
25230 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
25231 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
25232 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
25233 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
25234 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
25235 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
25236 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
25237 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
25238 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
25239 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
25240 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
25241 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
25242 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
25243 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
25244 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
25245 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
25246 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
25247 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
25248 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
25249 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
25250 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
25251 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
25252 .rlen = 1008,
0840605e
JK
25253 },
25254};
25255
25256static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
25257 { /* Generated with Crypto++ */
25258 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
25259 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
25260 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
25261 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
25262 .klen = 32,
25263 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
25264 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
25265 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
25266 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
25267 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
25268 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
25269 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
be6314b4
JK
25270 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
25271 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
25272 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
25273 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
25274 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
25275 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
25276 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
25277 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
25278 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
25279 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
25280 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
25281 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
25282 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
25283 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
25284 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
25285 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
25286 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
25287 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
25288 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
25289 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
25290 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
25291 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
25292 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
25293 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
25294 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
25295 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
25296 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
25297 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
25298 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
25299 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
25300 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
25301 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
25302 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
25303 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
25304 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
25305 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
25306 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
25307 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
25308 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
25309 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
25310 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
25311 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
25312 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
25313 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
25314 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
25315 "\x76\x44\x45\xF3\x24\x11\x57\x98"
25316 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
25317 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
25318 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
25319 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
25320 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
25321 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
25322 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
25323 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
25324 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
25325 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
25326 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
25327 .ilen = 496,
0840605e
JK
25328 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25329 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25330 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25331 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25332 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
25333 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
25334 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25335 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25336 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25337 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25338 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25339 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25340 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25341 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25342 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25343 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25344 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25345 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25346 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25347 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25348 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25349 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25350 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25351 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25352 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25353 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25354 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25355 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25356 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25357 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25358 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25359 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25360 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25361 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25362 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25363 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25364 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25365 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25366 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25367 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25368 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25369 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25370 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25371 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25372 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25373 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25374 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25375 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25376 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25377 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25378 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25379 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25380 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25381 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
25382 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
25383 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
25384 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
25385 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
25386 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
25387 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
25388 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
25389 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
25390 .rlen = 496,
25391 }, { /* Generated with Crypto++ */
0840605e
JK
25392 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
25393 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
25394 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
25395 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
25396 .klen = 32,
25397 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
25398 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
25399 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
25400 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
25401 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
25402 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
25403 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
25404 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
be6314b4
JK
25405 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
25406 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
25407 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
25408 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
25409 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
25410 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
25411 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
25412 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
25413 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
25414 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
25415 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
25416 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
25417 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
25418 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
25419 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
25420 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
25421 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
25422 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
25423 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
25424 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
25425 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
25426 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
25427 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
25428 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
25429 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
25430 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
25431 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
25432 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
25433 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
25434 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
25435 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
25436 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
25437 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
25438 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
25439 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
25440 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
25441 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
25442 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
25443 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
25444 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
25445 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
25446 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
25447 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
25448 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
25449 "\x76\x44\x45\xF3\x24\x11\x57\x98"
25450 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
25451 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
25452 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
25453 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
25454 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
25455 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
25456 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
25457 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
25458 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
25459 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
25460 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
23a836e8
JK
25461 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
25462 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
25463 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
25464 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
25465 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
25466 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
25467 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
25468 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
25469 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
25470 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
25471 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
25472 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
25473 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
25474 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
25475 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
25476 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
25477 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
25478 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
25479 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
25480 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
25481 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
25482 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
25483 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
25484 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
25485 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
25486 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
25487 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
25488 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
25489 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
25490 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
25491 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
25492 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
25493 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
25494 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
25495 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
25496 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
25497 "\x00\x70\x12\x56\x56\x50\xAD\x14"
25498 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
25499 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
25500 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
25501 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
25502 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
25503 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
25504 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
25505 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
25506 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
25507 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
25508 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
25509 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
25510 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
25511 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
25512 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
25513 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
25514 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
25515 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
25516 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
25517 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
25518 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
25519 "\x74\x28\x9D\x05\x30\x20\x62\x41"
25520 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
25521 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
25522 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
25523 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
25524 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
25525 "\xF1\x6B\xD9",
25526 .ilen = 1011,
0840605e
JK
25527 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25528 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25529 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25530 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25531 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
25532 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
be6314b4
JK
25533 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25534 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25535 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25536 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25537 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25538 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25539 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25540 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25541 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25542 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25543 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25544 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25545 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25546 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25547 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25548 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25549 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25550 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25551 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25552 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25553 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25554 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25555 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25556 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25557 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25558 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25559 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25560 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25561 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25562 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25563 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25564 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25565 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25566 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25567 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25568 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25569 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25570 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25571 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25572 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25573 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25574 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25575 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25576 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25577 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25578 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25579 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25580 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
25581 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
25582 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
25583 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
25584 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
25585 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
25586 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
25587 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
25588 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23a836e8
JK
25589 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
25590 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
25591 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
25592 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
25593 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
25594 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
25595 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
25596 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
25597 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
25598 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
25599 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
25600 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
25601 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
25602 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
25603 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
25604 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
25605 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
25606 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
25607 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
25608 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
25609 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
25610 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
25611 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
25612 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
25613 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
25614 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
25615 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
25616 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
25617 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
25618 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
25619 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
25620 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
25621 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
25622 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
25623 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
25624 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
25625 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
25626 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
25627 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
25628 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
25629 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
25630 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
25631 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
25632 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
25633 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
25634 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
25635 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
25636 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
25637 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
25638 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
25639 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
25640 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
25641 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
25642 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
25643 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
25644 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
25645 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
25646 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
25647 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
25648 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
25649 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
25650 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
25651 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
25652 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
25653 "\xE4\x7B\x12",
25654 .rlen = 1011,
f44d83d1
JK
25655 .also_non_np = 1,
25656 .np = 2,
23a836e8 25657 .tap = { 1011 - 16, 16 },
549595a0
JK
25658 }, { /* Generated with Crypto++ */
25659 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
25660 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
25661 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
25662 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
25663 .klen = 32,
25664 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
25665 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
25666 .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
25667 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
25668 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
25669 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
25670 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
25671 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
25672 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
25673 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
25674 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
25675 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
25676 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
25677 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
25678 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
25679 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
25680 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
25681 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
25682 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
25683 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
25684 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
25685 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
25686 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
25687 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
25688 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
25689 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
25690 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
25691 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
25692 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
25693 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
25694 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
25695 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
25696 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
25697 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
25698 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
25699 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
25700 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
25701 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
25702 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
25703 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
25704 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
25705 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
25706 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
25707 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
25708 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
25709 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
25710 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
25711 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
25712 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
25713 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
25714 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
25715 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
25716 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
25717 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
25718 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
25719 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
25720 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
25721 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
25722 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
25723 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
25724 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
25725 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
25726 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
23a836e8
JK
25727 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
25728 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
25729 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
25730 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
25731 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
25732 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
25733 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
25734 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
25735 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
25736 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
25737 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
25738 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
25739 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
25740 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
25741 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
25742 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
25743 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
25744 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
25745 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
25746 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
25747 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
25748 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
25749 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
25750 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
25751 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
25752 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
25753 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
25754 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
25755 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
25756 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
25757 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
25758 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
25759 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
25760 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
25761 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
25762 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
25763 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
25764 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
25765 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
25766 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
25767 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
25768 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
25769 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
25770 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
25771 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
25772 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
25773 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
25774 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
25775 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
25776 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
25777 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
25778 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
25779 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
25780 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
25781 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
25782 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
25783 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
25784 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
25785 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
25786 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
25787 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
25788 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
25789 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
25790 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
25791 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
25792 .ilen = 1008,
549595a0
JK
25793 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25794 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25795 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25796 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25797 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
25798 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
25799 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25800 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25801 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25802 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25803 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25804 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25805 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25806 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25807 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25808 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25809 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25810 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25811 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25812 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25813 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25814 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25815 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25816 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25817 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25818 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25819 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25820 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25821 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25822 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25823 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25824 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25825 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25826 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25827 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25828 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25829 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25830 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25831 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25832 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25833 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25834 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25835 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25836 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25837 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25838 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25839 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25840 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25841 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25842 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25843 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25844 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25845 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25846 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
25847 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
25848 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
25849 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
25850 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
25851 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
25852 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
25853 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
25854 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
25855 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
25856 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
25857 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
25858 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
25859 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
25860 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
25861 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
25862 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
25863 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
25864 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
25865 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
25866 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
25867 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
25868 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
25869 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
25870 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
25871 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
25872 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
25873 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
25874 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
25875 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
25876 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
25877 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
25878 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
25879 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
25880 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
25881 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
25882 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
25883 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
25884 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
25885 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
25886 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
25887 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
25888 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
25889 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
25890 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
25891 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
25892 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
25893 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
25894 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
25895 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
25896 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
25897 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
25898 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
25899 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
25900 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
25901 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
25902 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
25903 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
25904 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
25905 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
25906 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
25907 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
25908 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
25909 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
25910 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
25911 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
25912 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
25913 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
25914 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
25915 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
25916 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
25917 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
25918 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
25919 .rlen = 1008,
0840605e 25920 },
0840605e
JK
25921};
25922
25923static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
25924 /* Generated from AES-LRW test vectors */
25925 {
25926 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
25927 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
25928 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
25929 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
25930 .klen = 32,
25931 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25932 "\x00\x00\x00\x00\x00\x00\x00\x01",
25933 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25934 "\x38\x39\x41\x42\x43\x44\x45\x46",
25935 .ilen = 16,
25936 .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
25937 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
25938 .rlen = 16,
25939 }, {
25940 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
25941 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
25942 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
25943 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
25944 .klen = 32,
25945 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25946 "\x00\x00\x00\x00\x00\x00\x00\x02",
25947 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25948 "\x38\x39\x41\x42\x43\x44\x45\x46",
25949 .ilen = 16,
25950 .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
25951 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
25952 .rlen = 16,
25953 }, {
25954 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
25955 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
25956 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
25957 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
25958 .klen = 32,
25959 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25960 "\x00\x00\x00\x02\x00\x00\x00\x00",
25961 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25962 "\x38\x39\x41\x42\x43\x44\x45\x46",
25963 .ilen = 16,
25964 .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
25965 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
25966 .rlen = 16,
25967 }, {
25968 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
25969 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
25970 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
25971 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
25972 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
25973 .klen = 40,
25974 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25975 "\x00\x00\x00\x00\x00\x00\x00\x01",
25976 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25977 "\x38\x39\x41\x42\x43\x44\x45\x46",
25978 .ilen = 16,
25979 .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
25980 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
25981 .rlen = 16,
25982 }, {
25983 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
25984 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
25985 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
25986 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
25987 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
25988 .klen = 40,
25989 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25990 "\x00\x00\x00\x02\x00\x00\x00\x00",
25991 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25992 "\x38\x39\x41\x42\x43\x44\x45\x46",
25993 .ilen = 16,
25994 .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
25995 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
25996 .rlen = 16,
25997 }, {
25998 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
25999 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
26000 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
26001 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
26002 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
26003 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
26004 .klen = 48,
26005 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26006 "\x00\x00\x00\x00\x00\x00\x00\x01",
26007 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
26008 "\x38\x39\x41\x42\x43\x44\x45\x46",
26009 .ilen = 16,
26010 .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
26011 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
26012 .rlen = 16,
26013 }, {
26014 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
26015 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
26016 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
26017 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
26018 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
26019 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
26020 .klen = 48,
26021 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26022 "\x00\x00\x00\x02\x00\x00\x00\x00",
26023 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
26024 "\x38\x39\x41\x42\x43\x44\x45\x46",
26025 .ilen = 16,
26026 .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
26027 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
26028 .rlen = 16,
26029 }, {
26030 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
26031 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
26032 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
26033 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
26034 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
26035 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
26036 .klen = 48,
26037 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26038 "\x00\x00\x00\x00\x00\x00\x00\x01",
26039 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
26040 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
26041 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
26042 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
26043 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
26044 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
26045 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
26046 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
26047 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
26048 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
26049 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
26050 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
26051 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
26052 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
26053 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
26054 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
26055 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
26056 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
26057 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
26058 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
26059 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
26060 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
26061 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
26062 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
26063 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
26064 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
26065 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
26066 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
26067 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
26068 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
26069 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
26070 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
26071 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
26072 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
26073 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
26074 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
26075 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
26076 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
26077 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
26078 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
26079 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
26080 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
26081 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
26082 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
26083 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
26084 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
26085 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
26086 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
26087 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
26088 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
26089 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
26090 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
26091 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
26092 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
26093 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
26094 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
26095 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
26096 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
26097 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
26098 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
26099 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
26100 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
26101 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
26102 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
26103 .ilen = 512,
26104 .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
26105 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
26106 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
26107 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
26108 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
26109 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
26110 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
26111 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
26112 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
26113 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
26114 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
26115 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
26116 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
26117 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
26118 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
26119 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
26120 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
26121 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
26122 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
26123 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
26124 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
26125 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
26126 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
26127 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
26128 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
26129 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
26130 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
26131 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
26132 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
26133 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
26134 "\xed\x14\xa9\x57\x19\x63\x40\x04"
26135 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
26136 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
26137 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
26138 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
26139 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
26140 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
26141 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
26142 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
26143 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
26144 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
26145 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
26146 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
26147 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
26148 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
26149 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
26150 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
26151 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
26152 "\x35\xa5\x83\x04\x84\x01\x99\x56"
26153 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
26154 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
26155 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
26156 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
26157 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
26158 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
26159 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
26160 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
26161 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
26162 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
26163 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
26164 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
26165 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
26166 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
26167 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
26168 .rlen = 512,
f44d83d1 26169 .also_non_np = 1,
3b9b8fe0
AB
26170 .np = 3,
26171 .tap = { 512 - 20, 4, 16 },
0840605e
JK
26172 },
26173};
26174
26175static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
26176 /* Generated from AES-LRW test vectors */
26177 /* same as enc vectors with input and result reversed */
26178 {
26179 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
26180 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
26181 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
26182 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
26183 .klen = 32,
26184 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26185 "\x00\x00\x00\x00\x00\x00\x00\x01",
26186 .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
26187 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
26188 .ilen = 16,
26189 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
26190 "\x38\x39\x41\x42\x43\x44\x45\x46",
26191 .rlen = 16,
26192 }, {
26193 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
26194 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
26195 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
26196 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
26197 .klen = 32,
26198 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26199 "\x00\x00\x00\x00\x00\x00\x00\x02",
26200 .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
26201 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
26202 .ilen = 16,
26203 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
26204 "\x38\x39\x41\x42\x43\x44\x45\x46",
26205 .rlen = 16,
26206 }, {
26207 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
26208 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
26209 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
26210 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
26211 .klen = 32,
26212 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26213 "\x00\x00\x00\x02\x00\x00\x00\x00",
26214 .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
26215 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
26216 .ilen = 16,
26217 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
26218 "\x38\x39\x41\x42\x43\x44\x45\x46",
26219 .rlen = 16,
26220 }, {
26221 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
26222 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
26223 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
26224 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
26225 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
26226 .klen = 40,
26227 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26228 "\x00\x00\x00\x00\x00\x00\x00\x01",
26229 .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
26230 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
26231 .ilen = 16,
26232 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
26233 "\x38\x39\x41\x42\x43\x44\x45\x46",
26234 .rlen = 16,
26235 }, {
26236 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
26237 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
26238 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
26239 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
26240 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
26241 .klen = 40,
26242 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26243 "\x00\x00\x00\x02\x00\x00\x00\x00",
26244 .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
26245 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
26246 .ilen = 16,
26247 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
26248 "\x38\x39\x41\x42\x43\x44\x45\x46",
26249 .rlen = 16,
26250 }, {
26251 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
26252 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
26253 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
26254 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
26255 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
26256 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
26257 .klen = 48,
26258 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26259 "\x00\x00\x00\x00\x00\x00\x00\x01",
26260 .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
26261 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
26262 .ilen = 16,
26263 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
26264 "\x38\x39\x41\x42\x43\x44\x45\x46",
26265 .rlen = 16,
26266 }, {
26267 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
26268 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
26269 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
26270 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
26271 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
26272 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
26273 .klen = 48,
26274 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26275 "\x00\x00\x00\x02\x00\x00\x00\x00",
26276 .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
26277 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
26278 .ilen = 16,
26279 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
26280 "\x38\x39\x41\x42\x43\x44\x45\x46",
26281 .rlen = 16,
26282 }, {
26283 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
26284 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
26285 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
26286 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
26287 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
26288 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
26289 .klen = 48,
26290 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26291 "\x00\x00\x00\x00\x00\x00\x00\x01",
26292 .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
26293 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
26294 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
26295 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
26296 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
26297 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
26298 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
26299 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
26300 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
26301 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
26302 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
26303 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
26304 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
26305 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
26306 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
26307 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
26308 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
26309 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
26310 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
26311 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
26312 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
26313 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
26314 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
26315 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
26316 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
26317 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
26318 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
26319 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
26320 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
26321 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
26322 "\xed\x14\xa9\x57\x19\x63\x40\x04"
26323 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
26324 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
26325 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
26326 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
26327 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
26328 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
26329 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
26330 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
26331 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
26332 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
26333 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
26334 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
26335 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
26336 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
26337 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
26338 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
26339 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
26340 "\x35\xa5\x83\x04\x84\x01\x99\x56"
26341 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
26342 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
26343 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
26344 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
26345 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
26346 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
26347 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
26348 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
26349 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
26350 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
26351 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
26352 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
26353 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
26354 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
26355 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
26356 .ilen = 512,
26357 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
26358 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
26359 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
26360 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
26361 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
26362 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
26363 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
26364 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
26365 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
26366 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
26367 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
26368 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
26369 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
26370 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
26371 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
26372 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
26373 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
26374 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
26375 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
26376 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
26377 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
26378 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
26379 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
26380 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
26381 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
26382 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
26383 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
26384 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
26385 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
26386 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
26387 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
26388 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
26389 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
26390 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
26391 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
26392 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
26393 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
26394 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
26395 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
26396 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
26397 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
26398 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
26399 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
26400 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
26401 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
26402 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
26403 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
26404 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
26405 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
26406 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
26407 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
26408 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
26409 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
26410 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
26411 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
26412 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
26413 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
26414 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
26415 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
26416 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
26417 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
26418 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
26419 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
26420 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
26421 .rlen = 512,
f44d83d1 26422 .also_non_np = 1,
3b9b8fe0
AB
26423 .np = 3,
26424 .tap = { 512 - 20, 4, 16 },
0840605e
JK
26425 },
26426};
26427
26428static struct cipher_testvec camellia_xts_enc_tv_template[] = {
26429 /* Generated from AES-XTS test vectors */
26430 {
26431 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
26432 "\x00\x00\x00\x00\x00\x00\x00\x00"
26433 "\x00\x00\x00\x00\x00\x00\x00\x00"
26434 "\x00\x00\x00\x00\x00\x00\x00\x00",
26435 .klen = 32,
26436 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26437 "\x00\x00\x00\x00\x00\x00\x00\x00",
26438 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26439 "\x00\x00\x00\x00\x00\x00\x00\x00"
26440 "\x00\x00\x00\x00\x00\x00\x00\x00"
26441 "\x00\x00\x00\x00\x00\x00\x00\x00",
26442 .ilen = 32,
26443 .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
26444 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
26445 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
26446 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
26447 .rlen = 32,
26448 }, {
26449 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
26450 "\x11\x11\x11\x11\x11\x11\x11\x11"
26451 "\x22\x22\x22\x22\x22\x22\x22\x22"
26452 "\x22\x22\x22\x22\x22\x22\x22\x22",
26453 .klen = 32,
26454 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
26455 "\x00\x00\x00\x00\x00\x00\x00\x00",
26456 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
26457 "\x44\x44\x44\x44\x44\x44\x44\x44"
26458 "\x44\x44\x44\x44\x44\x44\x44\x44"
26459 "\x44\x44\x44\x44\x44\x44\x44\x44",
26460 .ilen = 32,
26461 .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
26462 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
26463 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
26464 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
26465 .rlen = 32,
26466 }, {
26467 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
26468 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
26469 "\x22\x22\x22\x22\x22\x22\x22\x22"
26470 "\x22\x22\x22\x22\x22\x22\x22\x22",
26471 .klen = 32,
26472 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
26473 "\x00\x00\x00\x00\x00\x00\x00\x00",
26474 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
26475 "\x44\x44\x44\x44\x44\x44\x44\x44"
26476 "\x44\x44\x44\x44\x44\x44\x44\x44"
26477 "\x44\x44\x44\x44\x44\x44\x44\x44",
26478 .ilen = 32,
26479 .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
26480 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
26481 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
26482 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
26483 .rlen = 32,
26484 }, {
26485 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
26486 "\x23\x53\x60\x28\x74\x71\x35\x26"
26487 "\x31\x41\x59\x26\x53\x58\x97\x93"
26488 "\x23\x84\x62\x64\x33\x83\x27\x95",
26489 .klen = 32,
26490 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26491 "\x00\x00\x00\x00\x00\x00\x00\x00",
26492 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
26493 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26494 "\x10\x11\x12\x13\x14\x15\x16\x17"
26495 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26496 "\x20\x21\x22\x23\x24\x25\x26\x27"
26497 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26498 "\x30\x31\x32\x33\x34\x35\x36\x37"
26499 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26500 "\x40\x41\x42\x43\x44\x45\x46\x47"
26501 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26502 "\x50\x51\x52\x53\x54\x55\x56\x57"
26503 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26504 "\x60\x61\x62\x63\x64\x65\x66\x67"
26505 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26506 "\x70\x71\x72\x73\x74\x75\x76\x77"
26507 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26508 "\x80\x81\x82\x83\x84\x85\x86\x87"
26509 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26510 "\x90\x91\x92\x93\x94\x95\x96\x97"
26511 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26512 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26513 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26514 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26515 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26516 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26517 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26518 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26519 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26520 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26521 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26522 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26523 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
26524 "\x00\x01\x02\x03\x04\x05\x06\x07"
26525 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26526 "\x10\x11\x12\x13\x14\x15\x16\x17"
26527 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26528 "\x20\x21\x22\x23\x24\x25\x26\x27"
26529 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26530 "\x30\x31\x32\x33\x34\x35\x36\x37"
26531 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26532 "\x40\x41\x42\x43\x44\x45\x46\x47"
26533 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26534 "\x50\x51\x52\x53\x54\x55\x56\x57"
26535 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26536 "\x60\x61\x62\x63\x64\x65\x66\x67"
26537 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26538 "\x70\x71\x72\x73\x74\x75\x76\x77"
26539 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26540 "\x80\x81\x82\x83\x84\x85\x86\x87"
26541 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26542 "\x90\x91\x92\x93\x94\x95\x96\x97"
26543 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26544 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26545 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26546 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26547 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26548 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26549 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26550 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26551 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26552 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26553 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26554 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26555 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
26556 .ilen = 512,
26557 .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
26558 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
26559 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
26560 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
26561 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
26562 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
26563 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
26564 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
26565 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
26566 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
26567 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
26568 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
26569 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
26570 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
26571 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
26572 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
26573 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
26574 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
26575 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
26576 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
26577 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
26578 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
26579 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
26580 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
26581 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
26582 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
26583 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
26584 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
26585 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
26586 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
26587 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
26588 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
26589 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
26590 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
26591 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
26592 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
26593 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
26594 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
26595 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
26596 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
26597 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
26598 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
26599 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
26600 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
26601 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
26602 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
26603 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
26604 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
26605 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
26606 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
26607 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
26608 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
26609 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
26610 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
26611 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
26612 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
26613 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
26614 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
26615 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
26616 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
26617 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
26618 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
26619 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
26620 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
26621 .rlen = 512,
26622 }, {
26623 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
26624 "\x23\x53\x60\x28\x74\x71\x35\x26"
26625 "\x62\x49\x77\x57\x24\x70\x93\x69"
26626 "\x99\x59\x57\x49\x66\x96\x76\x27"
26627 "\x31\x41\x59\x26\x53\x58\x97\x93"
26628 "\x23\x84\x62\x64\x33\x83\x27\x95"
26629 "\x02\x88\x41\x97\x16\x93\x99\x37"
26630 "\x51\x05\x82\x09\x74\x94\x45\x92",
26631 .klen = 64,
26632 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
26633 "\x00\x00\x00\x00\x00\x00\x00\x00",
26634 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
26635 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26636 "\x10\x11\x12\x13\x14\x15\x16\x17"
26637 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26638 "\x20\x21\x22\x23\x24\x25\x26\x27"
26639 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26640 "\x30\x31\x32\x33\x34\x35\x36\x37"
26641 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26642 "\x40\x41\x42\x43\x44\x45\x46\x47"
26643 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26644 "\x50\x51\x52\x53\x54\x55\x56\x57"
26645 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26646 "\x60\x61\x62\x63\x64\x65\x66\x67"
26647 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26648 "\x70\x71\x72\x73\x74\x75\x76\x77"
26649 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26650 "\x80\x81\x82\x83\x84\x85\x86\x87"
26651 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26652 "\x90\x91\x92\x93\x94\x95\x96\x97"
26653 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26654 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26655 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26656 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26657 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26658 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26659 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26660 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26661 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26662 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26663 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26664 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26665 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
26666 "\x00\x01\x02\x03\x04\x05\x06\x07"
26667 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26668 "\x10\x11\x12\x13\x14\x15\x16\x17"
26669 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26670 "\x20\x21\x22\x23\x24\x25\x26\x27"
26671 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26672 "\x30\x31\x32\x33\x34\x35\x36\x37"
26673 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26674 "\x40\x41\x42\x43\x44\x45\x46\x47"
26675 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26676 "\x50\x51\x52\x53\x54\x55\x56\x57"
26677 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26678 "\x60\x61\x62\x63\x64\x65\x66\x67"
26679 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26680 "\x70\x71\x72\x73\x74\x75\x76\x77"
26681 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26682 "\x80\x81\x82\x83\x84\x85\x86\x87"
26683 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26684 "\x90\x91\x92\x93\x94\x95\x96\x97"
26685 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26686 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26687 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26688 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26689 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26690 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26691 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26692 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26693 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26694 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26695 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26696 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26697 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
26698 .ilen = 512,
26699 .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
26700 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
26701 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
26702 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
26703 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
26704 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
26705 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
26706 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
26707 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
26708 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
26709 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
26710 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
26711 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
26712 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
26713 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
26714 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
26715 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
26716 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
26717 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
26718 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
26719 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
26720 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
26721 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
26722 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
26723 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
26724 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
26725 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
26726 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
26727 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
26728 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
26729 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
26730 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
26731 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
26732 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
26733 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
26734 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
26735 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
26736 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
26737 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
26738 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
26739 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
26740 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
26741 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
26742 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
26743 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
26744 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
26745 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
26746 "\x21\x17\xf8\x59\x15\x24\x64\x22"
26747 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
26748 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
26749 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
26750 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
26751 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
26752 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
26753 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
26754 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
26755 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
26756 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
26757 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
26758 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
26759 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
26760 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
26761 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
26762 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
26763 .rlen = 512,
f44d83d1 26764 .also_non_np = 1,
3b9b8fe0
AB
26765 .np = 3,
26766 .tap = { 512 - 20, 4, 16 },
0840605e
JK
26767 },
26768};
26769
26770static struct cipher_testvec camellia_xts_dec_tv_template[] = {
26771 /* Generated from AES-XTS test vectors */
26772 /* same as enc vectors with input and result reversed */
26773 {
26774 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
26775 "\x00\x00\x00\x00\x00\x00\x00\x00"
26776 "\x00\x00\x00\x00\x00\x00\x00\x00"
26777 "\x00\x00\x00\x00\x00\x00\x00\x00",
26778 .klen = 32,
26779 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26780 "\x00\x00\x00\x00\x00\x00\x00\x00",
26781 .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
26782 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
26783 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
26784 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
26785 .ilen = 32,
26786 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26787 "\x00\x00\x00\x00\x00\x00\x00\x00"
26788 "\x00\x00\x00\x00\x00\x00\x00\x00"
26789 "\x00\x00\x00\x00\x00\x00\x00\x00",
26790 .rlen = 32,
26791 }, {
26792 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
26793 "\x11\x11\x11\x11\x11\x11\x11\x11"
26794 "\x22\x22\x22\x22\x22\x22\x22\x22"
26795 "\x22\x22\x22\x22\x22\x22\x22\x22",
26796 .klen = 32,
26797 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
26798 "\x00\x00\x00\x00\x00\x00\x00\x00",
26799 .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
26800 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
26801 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
26802 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
26803 .ilen = 32,
26804 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
26805 "\x44\x44\x44\x44\x44\x44\x44\x44"
26806 "\x44\x44\x44\x44\x44\x44\x44\x44"
26807 "\x44\x44\x44\x44\x44\x44\x44\x44",
26808 .rlen = 32,
26809 }, {
26810 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
26811 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
26812 "\x22\x22\x22\x22\x22\x22\x22\x22"
26813 "\x22\x22\x22\x22\x22\x22\x22\x22",
26814 .klen = 32,
26815 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
26816 "\x00\x00\x00\x00\x00\x00\x00\x00",
26817 .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
26818 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
26819 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
26820 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
26821 .ilen = 32,
26822 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
26823 "\x44\x44\x44\x44\x44\x44\x44\x44"
26824 "\x44\x44\x44\x44\x44\x44\x44\x44"
26825 "\x44\x44\x44\x44\x44\x44\x44\x44",
26826 .rlen = 32,
26827 }, {
26828 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
26829 "\x23\x53\x60\x28\x74\x71\x35\x26"
26830 "\x31\x41\x59\x26\x53\x58\x97\x93"
26831 "\x23\x84\x62\x64\x33\x83\x27\x95",
26832 .klen = 32,
26833 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26834 "\x00\x00\x00\x00\x00\x00\x00\x00",
26835 .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
26836 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
26837 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
26838 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
26839 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
26840 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
26841 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
26842 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
26843 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
26844 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
26845 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
26846 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
26847 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
26848 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
26849 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
26850 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
26851 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
26852 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
26853 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
26854 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
26855 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
26856 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
26857 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
26858 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
26859 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
26860 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
26861 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
26862 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
26863 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
26864 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
26865 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
26866 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
26867 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
26868 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
26869 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
26870 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
26871 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
26872 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
26873 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
26874 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
26875 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
26876 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
26877 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
26878 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
26879 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
26880 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
26881 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
26882 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
26883 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
26884 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
26885 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
26886 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
26887 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
26888 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
26889 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
26890 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
26891 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
26892 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
26893 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
26894 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
26895 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
26896 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
26897 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
26898 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
26899 .ilen = 512,
26900 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
26901 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26902 "\x10\x11\x12\x13\x14\x15\x16\x17"
26903 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26904 "\x20\x21\x22\x23\x24\x25\x26\x27"
26905 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26906 "\x30\x31\x32\x33\x34\x35\x36\x37"
26907 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26908 "\x40\x41\x42\x43\x44\x45\x46\x47"
26909 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26910 "\x50\x51\x52\x53\x54\x55\x56\x57"
26911 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26912 "\x60\x61\x62\x63\x64\x65\x66\x67"
26913 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26914 "\x70\x71\x72\x73\x74\x75\x76\x77"
26915 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26916 "\x80\x81\x82\x83\x84\x85\x86\x87"
26917 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26918 "\x90\x91\x92\x93\x94\x95\x96\x97"
26919 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26920 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26921 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26922 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26923 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26924 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26925 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26926 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26927 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26928 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26929 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26930 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26931 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
26932 "\x00\x01\x02\x03\x04\x05\x06\x07"
26933 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26934 "\x10\x11\x12\x13\x14\x15\x16\x17"
26935 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26936 "\x20\x21\x22\x23\x24\x25\x26\x27"
26937 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26938 "\x30\x31\x32\x33\x34\x35\x36\x37"
26939 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26940 "\x40\x41\x42\x43\x44\x45\x46\x47"
26941 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26942 "\x50\x51\x52\x53\x54\x55\x56\x57"
26943 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26944 "\x60\x61\x62\x63\x64\x65\x66\x67"
26945 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26946 "\x70\x71\x72\x73\x74\x75\x76\x77"
26947 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26948 "\x80\x81\x82\x83\x84\x85\x86\x87"
26949 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26950 "\x90\x91\x92\x93\x94\x95\x96\x97"
26951 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26952 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26953 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26954 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26955 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26956 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26957 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26958 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26959 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26960 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26961 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26962 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26963 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
26964 .rlen = 512,
26965 }, {
26966 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
26967 "\x23\x53\x60\x28\x74\x71\x35\x26"
26968 "\x62\x49\x77\x57\x24\x70\x93\x69"
26969 "\x99\x59\x57\x49\x66\x96\x76\x27"
26970 "\x31\x41\x59\x26\x53\x58\x97\x93"
26971 "\x23\x84\x62\x64\x33\x83\x27\x95"
26972 "\x02\x88\x41\x97\x16\x93\x99\x37"
26973 "\x51\x05\x82\x09\x74\x94\x45\x92",
26974 .klen = 64,
26975 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
26976 "\x00\x00\x00\x00\x00\x00\x00\x00",
26977 .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
26978 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
26979 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
26980 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
26981 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
26982 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
26983 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
26984 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
26985 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
26986 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
26987 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
26988 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
26989 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
26990 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
26991 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
26992 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
26993 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
26994 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
26995 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
26996 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
26997 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
26998 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
26999 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
27000 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
27001 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
27002 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
27003 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
27004 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
27005 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
27006 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
27007 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
27008 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
27009 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
27010 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
27011 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
27012 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
27013 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
27014 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
27015 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
27016 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
27017 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
27018 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
27019 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
27020 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
27021 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
27022 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
27023 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
27024 "\x21\x17\xf8\x59\x15\x24\x64\x22"
27025 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
27026 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
27027 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
27028 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
27029 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
27030 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
27031 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
27032 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
27033 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
27034 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
27035 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
27036 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
27037 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
27038 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
27039 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
27040 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
27041 .ilen = 512,
27042 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
27043 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
27044 "\x10\x11\x12\x13\x14\x15\x16\x17"
27045 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
27046 "\x20\x21\x22\x23\x24\x25\x26\x27"
27047 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
27048 "\x30\x31\x32\x33\x34\x35\x36\x37"
27049 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
27050 "\x40\x41\x42\x43\x44\x45\x46\x47"
27051 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
27052 "\x50\x51\x52\x53\x54\x55\x56\x57"
27053 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
27054 "\x60\x61\x62\x63\x64\x65\x66\x67"
27055 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
27056 "\x70\x71\x72\x73\x74\x75\x76\x77"
27057 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
27058 "\x80\x81\x82\x83\x84\x85\x86\x87"
27059 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
27060 "\x90\x91\x92\x93\x94\x95\x96\x97"
27061 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
27062 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
27063 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
27064 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
27065 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
27066 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
27067 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
27068 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
27069 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
27070 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
27071 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
27072 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
27073 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
27074 "\x00\x01\x02\x03\x04\x05\x06\x07"
27075 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
27076 "\x10\x11\x12\x13\x14\x15\x16\x17"
27077 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
27078 "\x20\x21\x22\x23\x24\x25\x26\x27"
27079 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
27080 "\x30\x31\x32\x33\x34\x35\x36\x37"
27081 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
27082 "\x40\x41\x42\x43\x44\x45\x46\x47"
27083 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
27084 "\x50\x51\x52\x53\x54\x55\x56\x57"
27085 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
27086 "\x60\x61\x62\x63\x64\x65\x66\x67"
27087 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
27088 "\x70\x71\x72\x73\x74\x75\x76\x77"
27089 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
27090 "\x80\x81\x82\x83\x84\x85\x86\x87"
27091 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
27092 "\x90\x91\x92\x93\x94\x95\x96\x97"
27093 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
27094 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
27095 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
27096 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
27097 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
27098 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
27099 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
27100 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
27101 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
27102 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
27103 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
27104 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
27105 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
27106 .rlen = 512,
f44d83d1 27107 .also_non_np = 1,
3b9b8fe0
AB
27108 .np = 3,
27109 .tap = { 512 - 20, 4, 16 },
0840605e 27110 },
da7f033d
HX
27111};
27112
27113/*
27114 * SEED test vectors
27115 */
27116#define SEED_ENC_TEST_VECTORS 4
27117#define SEED_DEC_TEST_VECTORS 4
27118
27119static struct cipher_testvec seed_enc_tv_template[] = {
27120 {
27121 .key = zeroed_string,
27122 .klen = 16,
27123 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
27124 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
27125 .ilen = 16,
27126 .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
27127 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
27128 .rlen = 16,
27129 }, {
27130 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
27131 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
27132 .klen = 16,
27133 .input = zeroed_string,
27134 .ilen = 16,
27135 .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
27136 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
27137 .rlen = 16,
27138 }, {
27139 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
27140 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
27141 .klen = 16,
27142 .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
27143 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
27144 .ilen = 16,
27145 .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
27146 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
27147 .rlen = 16,
27148 }, {
27149 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
27150 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
27151 .klen = 16,
27152 .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
27153 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
27154 .ilen = 16,
27155 .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
27156 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
27157 .rlen = 16,
27158 }
27159};
27160
27161static struct cipher_testvec seed_dec_tv_template[] = {
27162 {
27163 .key = zeroed_string,
27164 .klen = 16,
27165 .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
27166 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
27167 .ilen = 16,
27168 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
27169 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
27170 .rlen = 16,
27171 }, {
27172 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
27173 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
27174 .klen = 16,
27175 .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
27176 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
27177 .ilen = 16,
27178 .result = zeroed_string,
27179 .rlen = 16,
27180 }, {
27181 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
27182 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
27183 .klen = 16,
27184 .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
27185 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
27186 .ilen = 16,
27187 .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
27188 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
27189 .rlen = 16,
27190 }, {
27191 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
27192 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
27193 .klen = 16,
27194 .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
27195 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
27196 .ilen = 16,
27197 .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
27198 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
27199 .rlen = 16,
27200 }
27201};
27202
27203#define SALSA20_STREAM_ENC_TEST_VECTORS 5
27204static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
27205 /*
27206 * Testvectors from verified.test-vectors submitted to ECRYPT.
27207 * They are truncated to size 39, 64, 111, 129 to test a variety
27208 * of input length.
27209 */
27210 { /* Set 3, vector 0 */
27211 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
27212 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
27213 .klen = 16,
27214 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27215 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
27216 "\x00\x00\x00\x00\x00\x00\x00\x00"
27217 "\x00\x00\x00\x00\x00\x00\x00\x00"
27218 "\x00\x00\x00\x00\x00\x00\x00\x00"
27219 "\x00\x00\x00\x00\x00\x00\x00",
27220 .ilen = 39,
27221 .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
27222 "\x68\x02\x41\x0C\x68\x86\x88\x89"
27223 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
27224 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
27225 "\x58\x3F\x52\x79\x70\xEB\xC1",
27226 .rlen = 39,
27227 }, { /* Set 5, vector 0 */
27228 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
27229 "\x00\x00\x00\x00\x00\x00\x00\x00",
27230 .klen = 16,
27231 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
27232 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
27233 "\x00\x00\x00\x00\x00\x00\x00\x00"
27234 "\x00\x00\x00\x00\x00\x00\x00\x00"
27235 "\x00\x00\x00\x00\x00\x00\x00\x00"
27236 "\x00\x00\x00\x00\x00\x00\x00\x00"
27237 "\x00\x00\x00\x00\x00\x00\x00\x00"
27238 "\x00\x00\x00\x00\x00\x00\x00\x00"
27239 "\x00\x00\x00\x00\x00\x00\x00\x00",
27240 .ilen = 64,
27241 .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
27242 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
27243 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
27244 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
27245 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
27246 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
27247 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
27248 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
27249 .rlen = 64,
27250 }, { /* Set 3, vector 27 */
27251 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
27252 "\x23\x24\x25\x26\x27\x28\x29\x2A"
27253 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
27254 "\x33\x34\x35\x36\x37\x38\x39\x3A",
27255 .klen = 32,
27256 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27257 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
27258 "\x00\x00\x00\x00\x00\x00\x00\x00"
27259 "\x00\x00\x00\x00\x00\x00\x00\x00"
27260 "\x00\x00\x00\x00\x00\x00\x00\x00"
27261 "\x00\x00\x00\x00\x00\x00\x00\x00"
27262 "\x00\x00\x00\x00\x00\x00\x00\x00"
27263 "\x00\x00\x00\x00\x00\x00\x00\x00"
27264 "\x00\x00\x00\x00\x00\x00\x00\x00"
27265 "\x00\x00\x00\x00\x00\x00\x00\x00"
27266 "\x00\x00\x00\x00\x00\x00\x00\x00"
27267 "\x00\x00\x00\x00\x00\x00\x00\x00"
27268 "\x00\x00\x00\x00\x00\x00\x00\x00"
27269 "\x00\x00\x00\x00\x00\x00\x00\x00"
27270 "\x00\x00\x00\x00\x00\x00\x00",
27271 .ilen = 111,
27272 .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
27273 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
27274 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
27275 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
27276 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
27277 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
27278 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
27279 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
27280 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
27281 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
27282 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
27283 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
27284 "\x95\x46\x45\x54\xE9\x75\x03\x08"
27285 "\x44\xAF\xE5\x8A\x81\x12\x09",
27286 .rlen = 111,
27287 }, { /* Set 5, vector 27 */
27288 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
27289 "\x00\x00\x00\x00\x00\x00\x00\x00"
27290 "\x00\x00\x00\x00\x00\x00\x00\x00"
27291 "\x00\x00\x00\x00\x00\x00\x00\x00",
27292 .klen = 32,
27293 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
27294 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
27295 "\x00\x00\x00\x00\x00\x00\x00\x00"
27296 "\x00\x00\x00\x00\x00\x00\x00\x00"
27297 "\x00\x00\x00\x00\x00\x00\x00\x00"
27298 "\x00\x00\x00\x00\x00\x00\x00\x00"
27299 "\x00\x00\x00\x00\x00\x00\x00\x00"
27300 "\x00\x00\x00\x00\x00\x00\x00\x00"
27301 "\x00\x00\x00\x00\x00\x00\x00\x00"
27302 "\x00\x00\x00\x00\x00\x00\x00\x00"
27303 "\x00\x00\x00\x00\x00\x00\x00\x00"
27304 "\x00\x00\x00\x00\x00\x00\x00\x00"
27305 "\x00\x00\x00\x00\x00\x00\x00\x00"
27306 "\x00\x00\x00\x00\x00\x00\x00\x00"
27307 "\x00\x00\x00\x00\x00\x00\x00\x00"
27308 "\x00\x00\x00\x00\x00\x00\x00\x00"
27309 "\x00\x00\x00\x00\x00\x00\x00\x00"
27310 "\x00",
27311 .ilen = 129,
27312 .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
27313 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
27314 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
27315 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
27316 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
27317 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
27318 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
27319 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
27320 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
27321 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
27322 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
27323 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
27324 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
27325 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
27326 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
27327 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
27328 "\x5A",
27329 .rlen = 129,
27330 }, { /* large test vector generated using Crypto++ */
27331 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
27332 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
27333 "\x10\x11\x12\x13\x14\x15\x16\x17"
27334 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
27335 .klen = 32,
27336 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
27337 "\x00\x00\x00\x00\x00\x00\x00\x00",
27338 .input =
27339 "\x00\x01\x02\x03\x04\x05\x06\x07"
27340 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
27341 "\x10\x11\x12\x13\x14\x15\x16\x17"
27342 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
27343 "\x20\x21\x22\x23\x24\x25\x26\x27"
27344 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
27345 "\x30\x31\x32\x33\x34\x35\x36\x37"
27346 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
27347 "\x40\x41\x42\x43\x44\x45\x46\x47"
27348 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
27349 "\x50\x51\x52\x53\x54\x55\x56\x57"
27350 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
27351 "\x60\x61\x62\x63\x64\x65\x66\x67"
27352 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
27353 "\x70\x71\x72\x73\x74\x75\x76\x77"
27354 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
27355 "\x80\x81\x82\x83\x84\x85\x86\x87"
27356 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
27357 "\x90\x91\x92\x93\x94\x95\x96\x97"
27358 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
27359 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
27360 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
27361 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
27362 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
27363 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
27364 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
27365 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
27366 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
27367 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
27368 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
27369 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
27370 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
27371 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
27372 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
27373 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
27374 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
27375 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
27376 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
27377 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
27378 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
27379 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
27380 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
27381 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
27382 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
27383 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
27384 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
27385 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
27386 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
27387 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
27388 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
27389 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
27390 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
27391 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
27392 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
27393 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
27394 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
27395 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
27396 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
27397 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
27398 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
27399 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
27400 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
27401 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
27402 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
27403 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
27404 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
27405 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
27406 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
27407 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
27408 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
27409 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
27410 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
27411 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
27412 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
27413 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
27414 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
27415 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
27416 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
27417 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
27418 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
27419 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
27420 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
27421 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
27422 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
27423 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
27424 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
27425 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
27426 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
27427 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
27428 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
27429 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
27430 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
27431 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
27432 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
27433 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
27434 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
27435 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
27436 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
27437 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
27438 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
27439 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
27440 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
27441 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
27442 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
27443 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
27444 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
27445 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
27446 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
27447 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
27448 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
27449 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
27450 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
27451 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
27452 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
27453 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
27454 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
27455 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
27456 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
27457 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
27458 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
27459 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
27460 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
27461 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
27462 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
27463 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
27464 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
27465 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
27466 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
27467 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
27468 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
27469 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
27470 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
27471 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
27472 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
27473 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
27474 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
27475 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
27476 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
27477 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
27478 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
27479 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
27480 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
27481 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
27482 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
27483 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
27484 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
27485 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
27486 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
27487 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
27488 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
27489 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
27490 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
27491 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
27492 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
27493 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
27494 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
27495 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
27496 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
27497 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
27498 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
27499 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
27500 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
27501 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
27502 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
27503 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
27504 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
27505 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
27506 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
27507 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
27508 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
27509 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
27510 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
27511 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
27512 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
27513 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
27514 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
27515 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
27516 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
27517 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
27518 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
27519 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
27520 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
27521 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
27522 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
27523 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
27524 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
27525 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
27526 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
27527 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
27528 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
27529 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
27530 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
27531 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
27532 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
27533 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
27534 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
27535 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
27536 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
27537 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
27538 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
27539 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
27540 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
27541 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
27542 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
27543 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
27544 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
27545 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
27546 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
27547 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
27548 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
27549 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
27550 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
27551 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
27552 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
27553 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
27554 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
27555 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
27556 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
27557 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
27558 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
27559 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
27560 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
27561 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
27562 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
27563 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
27564 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
27565 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
27566 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
27567 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
27568 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
27569 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
27570 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
27571 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
27572 "\x38\x47\x56\x65\x74\x83\x92\xa1"
27573 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
27574 "\x28\x37\x46\x55\x64\x73\x82\x91"
27575 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
27576 "\x18\x27\x36\x45\x54\x63\x72\x81"
27577 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
27578 "\x08\x17\x26\x35\x44\x53\x62\x71"
27579 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
27580 "\xf8\x07\x16\x25\x34\x43\x52\x61"
27581 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
27582 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
27583 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
27584 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
27585 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
27586 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
27587 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
27588 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
27589 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
27590 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
27591 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
27592 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
27593 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
27594 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
27595 "\x00\x11\x22\x33\x44\x55\x66\x77"
27596 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
27597 "\x10\x21\x32\x43\x54\x65\x76\x87"
27598 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
27599 "\x20\x31\x42\x53\x64\x75\x86\x97"
27600 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
27601 "\x30\x41\x52\x63\x74\x85\x96\xa7"
27602 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
27603 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
27604 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
27605 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
27606 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
27607 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
27608 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
27609 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
27610 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
27611 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
27612 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
27613 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
27614 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
27615 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
27616 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
27617 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
27618 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
27619 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
27620 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
27621 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
27622 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
27623 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
27624 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
27625 "\xf0\x01\x12\x23\x34\x45\x56\x67"
27626 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
27627 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
27628 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
27629 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
27630 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
27631 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
27632 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
27633 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
27634 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
27635 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
27636 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
27637 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
27638 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
27639 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
27640 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
27641 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
27642 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
27643 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
27644 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
27645 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
27646 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
27647 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
27648 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
27649 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
27650 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
27651 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
27652 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
27653 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
27654 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
27655 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
27656 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
27657 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
27658 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
27659 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
27660 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
27661 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
27662 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
27663 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
27664 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
27665 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
27666 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
27667 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
27668 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
27669 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
27670 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
27671 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
27672 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
27673 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
27674 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
27675 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
27676 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
27677 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
27678 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
27679 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
27680 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
27681 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
27682 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
27683 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
27684 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
27685 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
27686 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
27687 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
27688 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
27689 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
27690 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
27691 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
27692 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
27693 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
27694 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
27695 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
27696 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
27697 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
27698 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
27699 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
27700 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
27701 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
27702 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
27703 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
27704 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
27705 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
27706 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
27707 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
27708 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
27709 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
27710 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
27711 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
27712 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
27713 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
27714 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
27715 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
27716 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
27717 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
27718 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
27719 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
27720 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
27721 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
27722 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
27723 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
27724 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
27725 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
27726 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
27727 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
27728 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
27729 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
27730 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
27731 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
27732 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
27733 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
27734 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
27735 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
27736 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
27737 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
27738 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
27739 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
27740 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
27741 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
27742 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
27743 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
27744 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
27745 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
27746 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
27747 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
27748 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
27749 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
27750 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
27751 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
27752 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
27753 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
27754 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
27755 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
27756 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
27757 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
27758 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
27759 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
27760 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
27761 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
27762 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
27763 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
27764 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
27765 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
27766 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
27767 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
27768 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
27769 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
27770 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
27771 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
27772 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
27773 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
27774 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
27775 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
27776 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
27777 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
27778 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
27779 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
27780 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
27781 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
27782 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
27783 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
27784 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
27785 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
27786 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
27787 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
27788 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
27789 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
27790 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
27791 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
27792 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
27793 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
27794 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
27795 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
27796 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
27797 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
27798 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
27799 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
27800 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
27801 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
27802 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
27803 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
27804 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
27805 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
27806 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
27807 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
27808 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
27809 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
27810 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
27811 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
27812 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
27813 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
27814 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
27815 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
27816 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
27817 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
27818 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
27819 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
27820 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
27821 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
27822 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
27823 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
27824 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
27825 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
27826 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
27827 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
27828 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
27829 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
27830 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
27831 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
27832 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
27833 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
27834 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
27835 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
27836 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
27837 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
27838 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
27839 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
27840 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
27841 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
27842 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
27843 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
27844 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
27845 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
27846 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
27847 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
27848 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
27849 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
27850 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
27851 "\x00\x21\x42\x63",
27852 .ilen = 4100,
27853 .result =
27854 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
27855 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
27856 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
27857 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
27858 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
27859 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
27860 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
27861 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
27862 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
27863 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
27864 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
27865 "\xbb\xde\x56\x86\xab\x65\x21\x30"
27866 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
27867 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
27868 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
27869 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
27870 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
27871 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
27872 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
27873 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
27874 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
27875 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
27876 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
27877 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
27878 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
27879 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
27880 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
27881 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
27882 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
27883 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
27884 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
27885 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
27886 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
27887 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
27888 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
27889 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
27890 "\x62\x08\x18\x7a\x25\x49\x28\xac"
27891 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
27892 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
27893 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
27894 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
27895 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
27896 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
27897 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
27898 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
27899 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
27900 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
27901 "\x33\xee\x14\x19\x22\x52\x89\xa7"
27902 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
27903 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
27904 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
27905 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
27906 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
27907 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
27908 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
27909 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
27910 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
27911 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
27912 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
27913 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
27914 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
27915 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
27916 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
27917 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
27918 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
27919 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
27920 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
27921 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
27922 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
27923 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
27924 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
27925 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
27926 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
27927 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
27928 "\x49\x97\x33\xab\x36\x14\x0a\x70"
27929 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
27930 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
27931 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
27932 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
27933 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
27934 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
27935 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
27936 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
27937 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
27938 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
27939 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
27940 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
27941 "\xad\x04\x07\xae\x22\x90\x4a\x93"
27942 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
27943 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
27944 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
27945 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
27946 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
27947 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
27948 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
27949 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
27950 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
27951 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
27952 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
27953 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
27954 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
27955 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
27956 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
27957 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
27958 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
27959 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
27960 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
27961 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
27962 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
27963 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
27964 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
27965 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
27966 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
27967 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
27968 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
27969 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
27970 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
27971 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
27972 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
27973 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
27974 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
27975 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
27976 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
27977 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
27978 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
27979 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
27980 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
27981 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
27982 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
27983 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
27984 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
27985 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
27986 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
27987 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
27988 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
27989 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
27990 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
27991 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
27992 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
27993 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
27994 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
27995 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
27996 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
27997 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
27998 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
27999 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
28000 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
28001 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
28002 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
28003 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
28004 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
28005 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
28006 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
28007 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
28008 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
28009 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
28010 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
28011 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
28012 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
28013 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
28014 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
28015 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
28016 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
28017 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
28018 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
28019 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
28020 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
28021 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
28022 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
28023 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
28024 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
28025 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
28026 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
28027 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
28028 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
28029 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
28030 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
28031 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
28032 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
28033 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
28034 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
28035 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
28036 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
28037 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
28038 "\x2e\x53\x49\x97\x94\x33\xae\x40"
28039 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
28040 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
28041 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
28042 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
28043 "\xce\x87\xad\xcc\x72\x05\x00\x29"
28044 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
28045 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
28046 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
28047 "\xac\xc0\x79\x50\x69\xca\x59\x32"
28048 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
28049 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
28050 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
28051 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
28052 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
28053 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
28054 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
28055 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
28056 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
28057 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
28058 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
28059 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
28060 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
28061 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
28062 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
28063 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
28064 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
28065 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
28066 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
28067 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
28068 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
28069 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
28070 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
28071 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
28072 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
28073 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
28074 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
28075 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
28076 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
28077 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
28078 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
28079 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
28080 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
28081 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
28082 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
28083 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
28084 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
28085 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
28086 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
28087 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
28088 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
28089 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
28090 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
28091 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
28092 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
28093 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
28094 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
28095 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
28096 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
28097 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
28098 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
28099 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
28100 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
28101 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
28102 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
28103 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
28104 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
28105 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
28106 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
28107 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
28108 "\x38\x55\xab\x33\x26\xef\x9f\x43"
28109 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
28110 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
28111 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
28112 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
28113 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
28114 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
28115 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
28116 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
28117 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
28118 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
28119 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
28120 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
28121 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
28122 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
28123 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
28124 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
28125 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
28126 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
28127 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
28128 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
28129 "\x62\x36\x43\xb2\x82\x15\x75\x50"
28130 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
28131 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
28132 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
28133 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
28134 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
28135 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
28136 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
28137 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
28138 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
28139 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
28140 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
28141 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
28142 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
28143 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
28144 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
28145 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
28146 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
28147 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
28148 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
28149 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
28150 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
28151 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
28152 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
28153 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
28154 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
28155 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
28156 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
28157 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
28158 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
28159 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
28160 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
28161 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
28162 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
28163 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
28164 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
28165 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
28166 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
28167 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
28168 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
28169 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
28170 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
28171 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
28172 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
28173 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
28174 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
28175 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
28176 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
28177 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
28178 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
28179 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
28180 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
28181 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
28182 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
28183 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
28184 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
28185 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
28186 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
28187 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
28188 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
28189 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
28190 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
28191 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
28192 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
28193 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
28194 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
28195 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
28196 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
28197 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
28198 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
28199 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
28200 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
28201 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
28202 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
28203 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
28204 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
28205 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
28206 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
28207 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
28208 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
28209 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
28210 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
28211 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
28212 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
28213 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
28214 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
28215 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
28216 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
28217 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
28218 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
28219 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
28220 "\x73\x2e\x71\x79\x16\x06\x63\x28"
28221 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
28222 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
28223 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
28224 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
28225 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
28226 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
28227 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
28228 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
28229 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
28230 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
28231 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
28232 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
28233 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
28234 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
28235 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
28236 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
28237 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
28238 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
28239 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
28240 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
28241 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
28242 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
28243 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
28244 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
28245 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
28246 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
28247 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
28248 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
28249 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
28250 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
28251 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
28252 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
28253 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
28254 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
28255 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
28256 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
28257 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
28258 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
28259 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
28260 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
28261 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
28262 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
28263 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
28264 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
28265 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
28266 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
28267 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
28268 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
28269 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
28270 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
28271 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
28272 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
28273 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
28274 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
28275 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
28276 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
28277 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
28278 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
28279 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
28280 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
28281 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
28282 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
28283 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
28284 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
28285 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
28286 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
28287 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
28288 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
28289 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
28290 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
28291 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
28292 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
28293 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
28294 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
28295 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
28296 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
28297 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
28298 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
28299 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
28300 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
28301 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
28302 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
28303 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
28304 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
28305 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
28306 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
28307 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
28308 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
28309 "\x85\x73\x78\x45\x20\x7f\xae\x13"
28310 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
28311 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
28312 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
28313 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
28314 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
28315 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
28316 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
28317 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
28318 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
28319 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
28320 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
28321 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
28322 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
28323 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
28324 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
28325 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
28326 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
28327 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
28328 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
28329 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
28330 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
28331 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
28332 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
28333 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
28334 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
28335 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
28336 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
28337 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
28338 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
28339 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
28340 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
28341 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
28342 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
28343 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
28344 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
28345 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
28346 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
28347 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
28348 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
28349 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
28350 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
28351 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
28352 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
28353 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
28354 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
28355 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
28356 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
28357 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
28358 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
28359 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
28360 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
28361 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
28362 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
28363 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
28364 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
28365 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
28366 "\xaf\xdf\x11\x95",
28367 .rlen = 4100,
28368 .np = 2,
28369 .tap = { 4064, 36 },
28370 },
28371};
28372
28373/*
28374 * CTS (Cipher Text Stealing) mode tests
28375 */
28376#define CTS_MODE_ENC_TEST_VECTORS 6
28377#define CTS_MODE_DEC_TEST_VECTORS 6
28378static struct cipher_testvec cts_mode_enc_tv_template[] = {
28379 { /* from rfc3962 */
28380 .klen = 16,
28381 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28382 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28383 .ilen = 17,
28384 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28385 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28386 "\x20",
28387 .rlen = 17,
28388 .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
28389 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
28390 "\x97",
28391 }, {
28392 .klen = 16,
28393 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28394 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28395 .ilen = 31,
28396 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28397 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28398 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28399 "\x20\x47\x61\x75\x27\x73\x20",
28400 .rlen = 31,
28401 .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
28402 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
28403 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28404 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
28405 }, {
28406 .klen = 16,
28407 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28408 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28409 .ilen = 32,
28410 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28411 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28412 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28413 "\x20\x47\x61\x75\x27\x73\x20\x43",
28414 .rlen = 32,
28415 .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28416 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
28417 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28418 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
28419 }, {
28420 .klen = 16,
28421 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28422 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28423 .ilen = 47,
28424 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28425 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28426 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28427 "\x20\x47\x61\x75\x27\x73\x20\x43"
28428 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
28429 "\x70\x6c\x65\x61\x73\x65\x2c",
28430 .rlen = 47,
28431 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28432 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
28433 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
28434 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
28435 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28436 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
28437 }, {
28438 .klen = 16,
28439 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28440 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28441 .ilen = 48,
28442 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28443 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28444 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28445 "\x20\x47\x61\x75\x27\x73\x20\x43"
28446 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
28447 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
28448 .rlen = 48,
28449 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28450 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
28451 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
28452 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
28453 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28454 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
28455 }, {
28456 .klen = 16,
28457 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28458 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28459 .ilen = 64,
28460 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28461 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28462 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28463 "\x20\x47\x61\x75\x27\x73\x20\x43"
28464 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
28465 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
28466 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
28467 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
28468 .rlen = 64,
28469 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28470 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
28471 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28472 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
28473 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
28474 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
28475 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
28476 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
28477 }
28478};
28479
28480static struct cipher_testvec cts_mode_dec_tv_template[] = {
28481 { /* from rfc3962 */
28482 .klen = 16,
28483 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28484 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28485 .rlen = 17,
28486 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28487 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28488 "\x20",
28489 .ilen = 17,
28490 .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
28491 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
28492 "\x97",
28493 }, {
28494 .klen = 16,
28495 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28496 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28497 .rlen = 31,
28498 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28499 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28500 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28501 "\x20\x47\x61\x75\x27\x73\x20",
28502 .ilen = 31,
28503 .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
28504 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
28505 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28506 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
28507 }, {
28508 .klen = 16,
28509 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28510 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28511 .rlen = 32,
28512 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28513 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28514 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28515 "\x20\x47\x61\x75\x27\x73\x20\x43",
28516 .ilen = 32,
28517 .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28518 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
28519 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28520 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
28521 }, {
28522 .klen = 16,
28523 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28524 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28525 .rlen = 47,
28526 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28527 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28528 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28529 "\x20\x47\x61\x75\x27\x73\x20\x43"
28530 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
28531 "\x70\x6c\x65\x61\x73\x65\x2c",
28532 .ilen = 47,
28533 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28534 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
28535 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
28536 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
28537 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28538 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
28539 }, {
28540 .klen = 16,
28541 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28542 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28543 .rlen = 48,
28544 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28545 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28546 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28547 "\x20\x47\x61\x75\x27\x73\x20\x43"
28548 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
28549 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
28550 .ilen = 48,
28551 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28552 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
28553 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
28554 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
28555 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28556 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
28557 }, {
28558 .klen = 16,
28559 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
28560 "\x74\x65\x72\x69\x79\x61\x6b\x69",
28561 .rlen = 64,
28562 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
28563 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
28564 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
28565 "\x20\x47\x61\x75\x27\x73\x20\x43"
28566 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
28567 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
28568 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
28569 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
28570 .ilen = 64,
28571 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
28572 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
28573 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
28574 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
28575 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
28576 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
28577 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
28578 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
28579 }
28580};
28581
28582/*
28583 * Compression stuff.
28584 */
28585#define COMP_BUF_SIZE 512
28586
28587struct comp_testvec {
28588 int inlen, outlen;
28589 char input[COMP_BUF_SIZE];
28590 char output[COMP_BUF_SIZE];
28591};
28592
8064efb8
GU
28593struct pcomp_testvec {
28594 void *params;
28595 unsigned int paramsize;
28596 int inlen, outlen;
28597 char input[COMP_BUF_SIZE];
28598 char output[COMP_BUF_SIZE];
28599};
28600
da7f033d
HX
28601/*
28602 * Deflate test vectors (null-terminated strings).
bcf84a38 28603 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
da7f033d 28604 */
0c01aed5 28605
da7f033d
HX
28606#define DEFLATE_COMP_TEST_VECTORS 2
28607#define DEFLATE_DECOMP_TEST_VECTORS 2
28608
28609static struct comp_testvec deflate_comp_tv_template[] = {
28610 {
28611 .inlen = 70,
28612 .outlen = 38,
28613 .input = "Join us now and share the software "
28614 "Join us now and share the software ",
28615 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
28616 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
28617 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
28618 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
28619 "\x71\xbc\x08\x2b\x01\x00",
28620 }, {
28621 .inlen = 191,
28622 .outlen = 122,
28623 .input = "This document describes a compression method based on the DEFLATE"
28624 "compression algorithm. This document defines the application of "
28625 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
28626 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
28627 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
28628 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
28629 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
28630 "\x68\x12\x51\xae\x76\x67\xd6\x27"
28631 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
28632 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
28633 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
28634 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
28635 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
28636 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
28637 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
28638 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
28639 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
28640 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
28641 "\xfa\x02",
28642 },
28643};
28644
28645static struct comp_testvec deflate_decomp_tv_template[] = {
28646 {
28647 .inlen = 122,
28648 .outlen = 191,
28649 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
28650 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
28651 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
28652 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
28653 "\x68\x12\x51\xae\x76\x67\xd6\x27"
28654 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
28655 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
28656 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
28657 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
28658 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
28659 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
28660 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
28661 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
28662 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
28663 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
28664 "\xfa\x02",
28665 .output = "This document describes a compression method based on the DEFLATE"
28666 "compression algorithm. This document defines the application of "
28667 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
28668 }, {
28669 .inlen = 38,
28670 .outlen = 70,
28671 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
28672 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
28673 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
28674 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
0c01aed5
GU
28675 "\x71\xbc\x08\x2b\x01\x00",
28676 .output = "Join us now and share the software "
28677 "Join us now and share the software ",
28678 },
28679};
28680
28681#define ZLIB_COMP_TEST_VECTORS 2
28682#define ZLIB_DECOMP_TEST_VECTORS 2
28683
28684static const struct {
28685 struct nlattr nla;
28686 int val;
28687} deflate_comp_params[] = {
28688 {
28689 .nla = {
28690 .nla_len = NLA_HDRLEN + sizeof(int),
28691 .nla_type = ZLIB_COMP_LEVEL,
28692 },
28693 .val = Z_DEFAULT_COMPRESSION,
28694 }, {
28695 .nla = {
28696 .nla_len = NLA_HDRLEN + sizeof(int),
28697 .nla_type = ZLIB_COMP_METHOD,
28698 },
28699 .val = Z_DEFLATED,
28700 }, {
28701 .nla = {
28702 .nla_len = NLA_HDRLEN + sizeof(int),
28703 .nla_type = ZLIB_COMP_WINDOWBITS,
28704 },
28705 .val = -11,
28706 }, {
28707 .nla = {
28708 .nla_len = NLA_HDRLEN + sizeof(int),
28709 .nla_type = ZLIB_COMP_MEMLEVEL,
28710 },
28711 .val = MAX_MEM_LEVEL,
28712 }, {
28713 .nla = {
28714 .nla_len = NLA_HDRLEN + sizeof(int),
28715 .nla_type = ZLIB_COMP_STRATEGY,
28716 },
28717 .val = Z_DEFAULT_STRATEGY,
28718 }
28719};
28720
28721static const struct {
28722 struct nlattr nla;
28723 int val;
28724} deflate_decomp_params[] = {
28725 {
28726 .nla = {
28727 .nla_len = NLA_HDRLEN + sizeof(int),
28728 .nla_type = ZLIB_DECOMP_WINDOWBITS,
28729 },
28730 .val = -11,
28731 }
28732};
28733
28734static struct pcomp_testvec zlib_comp_tv_template[] = {
28735 {
28736 .params = &deflate_comp_params,
28737 .paramsize = sizeof(deflate_comp_params),
28738 .inlen = 70,
28739 .outlen = 38,
28740 .input = "Join us now and share the software "
28741 "Join us now and share the software ",
28742 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
28743 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
28744 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
28745 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
28746 "\x71\xbc\x08\x2b\x01\x00",
28747 }, {
28748 .params = &deflate_comp_params,
28749 .paramsize = sizeof(deflate_comp_params),
28750 .inlen = 191,
28751 .outlen = 122,
28752 .input = "This document describes a compression method based on the DEFLATE"
28753 "compression algorithm. This document defines the application of "
28754 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
28755 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
28756 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
28757 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
28758 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
28759 "\x68\x12\x51\xae\x76\x67\xd6\x27"
28760 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
28761 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
28762 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
28763 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
28764 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
28765 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
28766 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
28767 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
28768 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
28769 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
28770 "\xfa\x02",
28771 },
28772};
28773
28774static struct pcomp_testvec zlib_decomp_tv_template[] = {
28775 {
28776 .params = &deflate_decomp_params,
28777 .paramsize = sizeof(deflate_decomp_params),
28778 .inlen = 122,
28779 .outlen = 191,
28780 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
28781 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
28782 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
28783 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
28784 "\x68\x12\x51\xae\x76\x67\xd6\x27"
28785 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
28786 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
28787 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
28788 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
28789 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
28790 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
28791 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
28792 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
28793 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
28794 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
28795 "\xfa\x02",
28796 .output = "This document describes a compression method based on the DEFLATE"
28797 "compression algorithm. This document defines the application of "
28798 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
28799 }, {
28800 .params = &deflate_decomp_params,
28801 .paramsize = sizeof(deflate_decomp_params),
28802 .inlen = 38,
28803 .outlen = 70,
28804 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
28805 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
28806 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
28807 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
da7f033d
HX
28808 "\x71\xbc\x08\x2b\x01\x00",
28809 .output = "Join us now and share the software "
28810 "Join us now and share the software ",
28811 },
28812};
28813
28814/*
28815 * LZO test vectors (null-terminated strings).
28816 */
28817#define LZO_COMP_TEST_VECTORS 2
28818#define LZO_DECOMP_TEST_VECTORS 2
28819
28820static struct comp_testvec lzo_comp_tv_template[] = {
28821 {
28822 .inlen = 70,
0ec73820 28823 .outlen = 57,
da7f033d
HX
28824 .input = "Join us now and share the software "
28825 "Join us now and share the software ",
28826 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
0ec73820
MO
28827 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
28828 "\x64\x20\x73\x68\x61\x72\x65\x20"
28829 "\x74\x68\x65\x20\x73\x6f\x66\x74"
28830 "\x77\x70\x01\x32\x88\x00\x0c\x65"
28831 "\x20\x74\x68\x65\x20\x73\x6f\x66"
28832 "\x74\x77\x61\x72\x65\x20\x11\x00"
28833 "\x00",
da7f033d
HX
28834 }, {
28835 .inlen = 159,
0ec73820 28836 .outlen = 131,
da7f033d
HX
28837 .input = "This document describes a compression method based on the LZO "
28838 "compression algorithm. This document defines the application of "
28839 "the LZO algorithm used in UBIFS.",
0ec73820 28840 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
da7f033d
HX
28841 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
28842 "\x64\x65\x73\x63\x72\x69\x62\x65"
28843 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
28844 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
28845 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
28846 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
0ec73820
MO
28847 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
28848 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
28849 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
28850 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
28851 "\x73\x20\x74\x06\x05\x61\x70\x70"
28852 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
28853 "\x66\x88\x02\x60\x09\x27\xf0\x00"
28854 "\x0c\x20\x75\x73\x65\x64\x20\x69"
28855 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
28856 "\x11\x00\x00",
da7f033d
HX
28857 },
28858};
28859
28860static struct comp_testvec lzo_decomp_tv_template[] = {
28861 {
28862 .inlen = 133,
28863 .outlen = 159,
28864 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
28865 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
28866 "\x64\x65\x73\x63\x72\x69\x62\x65"
28867 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
28868 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
28869 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
28870 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
28871 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
28872 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
28873 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
28874 "\x68\x69\x73\x2a\x54\x01\x02\x66"
28875 "\x69\x6e\x65\x73\x94\x06\x05\x61"
28876 "\x70\x70\x6c\x69\x63\x61\x74\x76"
28877 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
28878 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
28879 "\x20\x69\x6e\x20\x55\x42\x49\x46"
28880 "\x53\x2e\x11\x00\x00",
28881 .output = "This document describes a compression method based on the LZO "
28882 "compression algorithm. This document defines the application of "
28883 "the LZO algorithm used in UBIFS.",
28884 }, {
28885 .inlen = 46,
28886 .outlen = 70,
28887 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
28888 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
28889 "\x64\x20\x73\x68\x61\x72\x65\x20"
28890 "\x74\x68\x65\x20\x73\x6f\x66\x74"
28891 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
28892 "\x3d\x88\x00\x11\x00\x00",
28893 .output = "Join us now and share the software "
28894 "Join us now and share the software ",
28895 },
28896};
28897
28898/*
28899 * Michael MIC test vectors from IEEE 802.11i
28900 */
28901#define MICHAEL_MIC_TEST_VECTORS 6
28902
28903static struct hash_testvec michael_mic_tv_template[] = {
28904 {
28905 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
28906 .ksize = 8,
28907 .plaintext = zeroed_string,
28908 .psize = 0,
28909 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
28910 },
28911 {
28912 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
28913 .ksize = 8,
28914 .plaintext = "M",
28915 .psize = 1,
28916 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
28917 },
28918 {
28919 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
28920 .ksize = 8,
28921 .plaintext = "Mi",
28922 .psize = 2,
28923 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
28924 },
28925 {
28926 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
28927 .ksize = 8,
28928 .plaintext = "Mic",
28929 .psize = 3,
28930 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
28931 },
28932 {
28933 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
28934 .ksize = 8,
28935 .plaintext = "Mich",
28936 .psize = 4,
28937 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
28938 },
28939 {
28940 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
28941 .ksize = 8,
28942 .plaintext = "Michael",
28943 .psize = 7,
28944 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
28945 }
28946};
28947
28948/*
28949 * CRC32C test vectors
28950 */
6726ec42 28951#define CRC32C_TEST_VECTORS 15
da7f033d
HX
28952
28953static struct hash_testvec crc32c_tv_template[] = {
28954 {
28955 .psize = 0,
28956 .digest = "\x00\x00\x00\x00",
28957 },
28958 {
28959 .key = "\x87\xa9\xcb\xed",
28960 .ksize = 4,
28961 .psize = 0,
28962 .digest = "\x78\x56\x34\x12",
28963 },
28964 {
28965 .key = "\xff\xff\xff\xff",
28966 .ksize = 4,
28967 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
28968 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
28969 "\x11\x12\x13\x14\x15\x16\x17\x18"
28970 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
28971 "\x21\x22\x23\x24\x25\x26\x27\x28",
28972 .psize = 40,
28973 .digest = "\x7f\x15\x2c\x0e",
28974 },
28975 {
28976 .key = "\xff\xff\xff\xff",
28977 .ksize = 4,
28978 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
28979 "\x31\x32\x33\x34\x35\x36\x37\x38"
28980 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
28981 "\x41\x42\x43\x44\x45\x46\x47\x48"
28982 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
28983 .psize = 40,
28984 .digest = "\xf6\xeb\x80\xe9",
28985 },
28986 {
28987 .key = "\xff\xff\xff\xff",
28988 .ksize = 4,
28989 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
28990 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
28991 "\x61\x62\x63\x64\x65\x66\x67\x68"
28992 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
28993 "\x71\x72\x73\x74\x75\x76\x77\x78",
28994 .psize = 40,
28995 .digest = "\xed\xbd\x74\xde",
28996 },
28997 {
28998 .key = "\xff\xff\xff\xff",
28999 .ksize = 4,
29000 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
29001 "\x81\x82\x83\x84\x85\x86\x87\x88"
29002 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
29003 "\x91\x92\x93\x94\x95\x96\x97\x98"
29004 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
29005 .psize = 40,
29006 .digest = "\x62\xc8\x79\xd5",
29007 },
29008 {
29009 .key = "\xff\xff\xff\xff",
29010 .ksize = 4,
29011 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
29012 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
29013 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
29014 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
29015 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
29016 .psize = 40,
29017 .digest = "\xd0\x9a\x97\xba",
29018 },
29019 {
29020 .key = "\xff\xff\xff\xff",
29021 .ksize = 4,
29022 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
29023 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
29024 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
29025 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
29026 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
29027 .psize = 40,
29028 .digest = "\x13\xd9\x29\x2b",
29029 },
29030 {
29031 .key = "\x80\xea\xd3\xf1",
29032 .ksize = 4,
29033 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
29034 "\x31\x32\x33\x34\x35\x36\x37\x38"
29035 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
29036 "\x41\x42\x43\x44\x45\x46\x47\x48"
29037 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
29038 .psize = 40,
29039 .digest = "\x0c\xb5\xe2\xa2",
29040 },
29041 {
29042 .key = "\xf3\x4a\x1d\x5d",
29043 .ksize = 4,
29044 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
29045 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
29046 "\x61\x62\x63\x64\x65\x66\x67\x68"
29047 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
29048 "\x71\x72\x73\x74\x75\x76\x77\x78",
29049 .psize = 40,
29050 .digest = "\xd1\x7f\xfb\xa6",
29051 },
29052 {
29053 .key = "\x2e\x80\x04\x59",
29054 .ksize = 4,
29055 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
29056 "\x81\x82\x83\x84\x85\x86\x87\x88"
29057 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
29058 "\x91\x92\x93\x94\x95\x96\x97\x98"
29059 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
29060 .psize = 40,
29061 .digest = "\x59\x33\xe6\x7a",
29062 },
29063 {
29064 .key = "\xa6\xcc\x19\x85",
29065 .ksize = 4,
29066 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
29067 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
29068 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
29069 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
29070 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
29071 .psize = 40,
29072 .digest = "\xbe\x03\x01\xd2",
29073 },
29074 {
29075 .key = "\x41\xfc\xfe\x2d",
29076 .ksize = 4,
29077 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
29078 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
29079 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
29080 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
29081 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
29082 .psize = 40,
29083 .digest = "\x75\xd3\xc5\x24",
29084 },
29085 {
29086 .key = "\xff\xff\xff\xff",
29087 .ksize = 4,
29088 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
29089 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
29090 "\x11\x12\x13\x14\x15\x16\x17\x18"
29091 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
29092 "\x21\x22\x23\x24\x25\x26\x27\x28"
29093 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
29094 "\x31\x32\x33\x34\x35\x36\x37\x38"
29095 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
29096 "\x41\x42\x43\x44\x45\x46\x47\x48"
29097 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
29098 "\x51\x52\x53\x54\x55\x56\x57\x58"
29099 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
29100 "\x61\x62\x63\x64\x65\x66\x67\x68"
29101 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
29102 "\x71\x72\x73\x74\x75\x76\x77\x78"
29103 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
29104 "\x81\x82\x83\x84\x85\x86\x87\x88"
29105 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
29106 "\x91\x92\x93\x94\x95\x96\x97\x98"
29107 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
29108 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
29109 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
29110 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
29111 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
29112 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
29113 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
29114 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
29115 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
29116 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
29117 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
29118 .psize = 240,
29119 .digest = "\x75\xd3\xc5\x24",
29120 .np = 2,
29121 .tap = { 31, 209 }
6726ec42
JK
29122 }, {
29123 .key = "\xff\xff\xff\xff",
29124 .ksize = 4,
29125 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
29126 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
29127 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
29128 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
29129 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
29130 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
29131 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
29132 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
29133 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
29134 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
29135 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
29136 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
29137 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
29138 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
29139 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
29140 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
29141 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
29142 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
29143 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
29144 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
29145 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
29146 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
29147 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
29148 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
29149 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
29150 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
29151 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
29152 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
29153 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
29154 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
29155 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
29156 "\x47\xde\x75\x0c\x80\x17\xae\x22"
29157 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
29158 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
29159 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
29160 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
29161 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
29162 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
29163 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
29164 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
29165 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
29166 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
29167 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
29168 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
29169 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
29170 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
29171 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
29172 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
29173 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
29174 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
29175 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
29176 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
29177 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
29178 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
29179 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
29180 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
29181 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
29182 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
29183 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
29184 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
29185 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
29186 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
29187 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
29188 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
29189 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
29190 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
29191 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
29192 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
29193 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
29194 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
29195 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
29196 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
29197 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
29198 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
29199 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
29200 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
29201 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
29202 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
29203 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
29204 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
29205 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
29206 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
29207 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
29208 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
29209 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
29210 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
29211 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
29212 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
29213 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
29214 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
29215 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
29216 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
29217 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
29218 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
29219 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
29220 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
29221 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
29222 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
29223 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
29224 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
29225 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
29226 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
29227 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
29228 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
29229 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
29230 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
29231 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
29232 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
29233 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
29234 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
29235 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
29236 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
29237 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
29238 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
29239 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
29240 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
29241 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
29242 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
29243 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
29244 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
29245 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
29246 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
29247 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
29248 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
29249 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
29250 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
29251 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
29252 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
29253 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
29254 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
29255 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
29256 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
29257 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
29258 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
29259 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
29260 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
29261 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
29262 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
29263 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
29264 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
29265 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
29266 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
29267 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
29268 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
29269 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
29270 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
29271 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
29272 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
29273 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
29274 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
29275 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
29276 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
29277 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
29278 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
29279 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
29280 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
29281 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
29282 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
29283 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
29284 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
29285 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
29286 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
29287 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
29288 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
29289 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
29290 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
29291 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
29292 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
29293 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
29294 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
29295 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
29296 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
29297 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
29298 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
29299 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
29300 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
29301 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
29302 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
29303 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
29304 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
29305 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
29306 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
29307 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
29308 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
29309 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
29310 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
29311 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
29312 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
29313 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
29314 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
29315 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
29316 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
29317 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
29318 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
29319 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
29320 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
29321 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
29322 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
29323 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
29324 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
29325 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
29326 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
29327 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
29328 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
29329 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
29330 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
29331 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
29332 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
29333 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
29334 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
29335 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
29336 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
29337 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
29338 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
29339 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
29340 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
29341 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
29342 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
29343 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
29344 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
29345 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
29346 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
29347 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
29348 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
29349 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
29350 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
29351 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
29352 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
29353 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
29354 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
29355 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
29356 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
29357 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
29358 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
29359 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
29360 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
29361 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
29362 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
29363 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
29364 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
29365 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
29366 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
29367 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
29368 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
29369 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
29370 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
29371 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
29372 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
29373 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
29374 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
29375 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
29376 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
29377 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
29378 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
29379 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
29380 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
29381 .psize = 2048,
29382 .digest = "\xec\x26\x4d\x95",
29383 }
da7f033d
HX
29384};
29385
a482b081
SZ
29386/*
29387 * Blakcifn CRC test vectors
29388 */
29389#define BFIN_CRC_TEST_VECTORS 6
29390
29391static struct hash_testvec bfin_crc_tv_template[] = {
29392 {
29393 .psize = 0,
29394 .digest = "\x00\x00\x00\x00",
29395 },
29396 {
29397 .key = "\x87\xa9\xcb\xed",
29398 .ksize = 4,
29399 .psize = 0,
29400 .digest = "\x87\xa9\xcb\xed",
29401 },
29402 {
29403 .key = "\xff\xff\xff\xff",
29404 .ksize = 4,
29405 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
29406 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
29407 "\x11\x12\x13\x14\x15\x16\x17\x18"
29408 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
29409 "\x21\x22\x23\x24\x25\x26\x27\x28",
29410 .psize = 40,
29411 .digest = "\x84\x0c\x8d\xa2",
29412 },
29413 {
29414 .key = "\xff\xff\xff\xff",
29415 .ksize = 4,
29416 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
29417 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
29418 "\x11\x12\x13\x14\x15\x16\x17\x18"
29419 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
29420 "\x21\x22\x23\x24\x25\x26",
29421 .psize = 38,
29422 .digest = "\x8c\x58\xec\xb7",
29423 },
29424 {
29425 .key = "\xff\xff\xff\xff",
29426 .ksize = 4,
29427 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
29428 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
29429 "\x11\x12\x13\x14\x15\x16\x17\x18"
29430 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
29431 "\x21\x22\x23\x24\x25\x26\x27",
29432 .psize = 39,
29433 .digest = "\xdc\x50\x28\x7b",
29434 },
29435 {
29436 .key = "\xff\xff\xff\xff",
29437 .ksize = 4,
29438 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
29439 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
29440 "\x11\x12\x13\x14\x15\x16\x17\x18"
29441 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
29442 "\x21\x22\x23\x24\x25\x26\x27\x28"
29443 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
29444 "\x31\x32\x33\x34\x35\x36\x37\x38"
29445 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
29446 "\x41\x42\x43\x44\x45\x46\x47\x48"
29447 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
29448 "\x51\x52\x53\x54\x55\x56\x57\x58"
29449 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
29450 "\x61\x62\x63\x64\x65\x66\x67\x68"
29451 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
29452 "\x71\x72\x73\x74\x75\x76\x77\x78"
29453 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
29454 "\x81\x82\x83\x84\x85\x86\x87\x88"
29455 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
29456 "\x91\x92\x93\x94\x95\x96\x97\x98"
29457 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
29458 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
29459 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
29460 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
29461 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
29462 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
29463 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
29464 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
29465 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
29466 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
29467 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
29468 .psize = 240,
29469 .digest = "\x10\x19\x4a\x5c",
29470 .np = 2,
29471 .tap = { 31, 209 }
29472 },
29473
29474};
29475
da7f033d 29476#endif /* _CRYPTO_TESTMGR_H */