drivers/net: macvtap and tun depend on INET
[linux/fpc-iii.git] / crypto / testmgr.h
blob69d0dd8ef27e92450b88eb624436d25c52561aec
1 /*
2 * Algorithm testing framework and tests.
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>
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.
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.
24 #ifndef _CRYPTO_TESTMGR_H
25 #define _CRYPTO_TESTMGR_H
27 #include <linux/netlink.h>
28 #include <linux/zlib.h>
30 #include <crypto/compress.h>
32 #define MAX_DIGEST_SIZE 64
33 #define MAX_TAP 8
35 #define MAX_KEYLEN 56
36 #define MAX_IVLEN 32
38 struct hash_testvec {
39 /* only used with keyed hash algorithms */
40 char *key;
41 char *plaintext;
42 char *digest;
43 unsigned char tap[MAX_TAP];
44 unsigned short psize;
45 unsigned char np;
46 unsigned char ksize;
49 struct cipher_testvec {
50 char *key;
51 char *iv;
52 char *input;
53 char *result;
54 unsigned short tap[MAX_TAP];
55 int np;
56 unsigned char also_non_np;
57 unsigned char fail;
58 unsigned char wk; /* weak key flag */
59 unsigned char klen;
60 unsigned short ilen;
61 unsigned short rlen;
64 struct 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;
75 unsigned char novrfy; /* ccm dec verification failure expected */
76 unsigned char wk; /* weak key flag */
77 unsigned char klen;
78 unsigned short ilen;
79 unsigned short alen;
80 unsigned short rlen;
83 struct 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;
95 static char zeroed_string[48];
98 * MD4 test vectors from RFC1320
100 #define MD4_TEST_VECTORS 7
102 static struct hash_testvec md4_tv_template [] = {
104 .plaintext = "",
105 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
106 "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
107 }, {
108 .plaintext = "a",
109 .psize = 1,
110 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
111 "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
112 }, {
113 .plaintext = "abc",
114 .psize = 3,
115 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
116 "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
117 }, {
118 .plaintext = "message digest",
119 .psize = 14,
120 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
121 "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
122 }, {
123 .plaintext = "abcdefghijklmnopqrstuvwxyz",
124 .psize = 26,
125 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
126 "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
127 .np = 2,
128 .tap = { 13, 13 },
129 }, {
130 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
131 .psize = 62,
132 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
133 "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
134 }, {
135 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
136 "45678901234567890",
137 .psize = 80,
138 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
139 "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
144 * MD5 test vectors from RFC1321
146 #define MD5_TEST_VECTORS 7
148 static struct hash_testvec md5_tv_template[] = {
150 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
151 "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
152 }, {
153 .plaintext = "a",
154 .psize = 1,
155 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
156 "\x31\xc3\x99\xe2\x69\x77\x26\x61",
157 }, {
158 .plaintext = "abc",
159 .psize = 3,
160 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
161 "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
162 }, {
163 .plaintext = "message digest",
164 .psize = 14,
165 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
166 "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
167 }, {
168 .plaintext = "abcdefghijklmnopqrstuvwxyz",
169 .psize = 26,
170 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
171 "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
172 .np = 2,
173 .tap = {13, 13}
174 }, {
175 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
176 .psize = 62,
177 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
178 "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
179 }, {
180 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
181 "345678901234567890",
182 .psize = 80,
183 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
184 "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
190 * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
192 #define RMD128_TEST_VECTORS 10
194 static struct hash_testvec rmd128_tv_template[] = {
196 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
197 "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
198 }, {
199 .plaintext = "a",
200 .psize = 1,
201 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
202 "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
203 }, {
204 .plaintext = "abc",
205 .psize = 3,
206 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
207 "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
208 }, {
209 .plaintext = "message digest",
210 .psize = 14,
211 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
212 "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
213 }, {
214 .plaintext = "abcdefghijklmnopqrstuvwxyz",
215 .psize = 26,
216 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
217 "\x10\x71\x49\x22\xb3\x71\x83\x4e",
218 }, {
219 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
220 "fghijklmnopqrstuvwxyz0123456789",
221 .psize = 62,
222 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
223 "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
224 }, {
225 .plaintext = "1234567890123456789012345678901234567890"
226 "1234567890123456789012345678901234567890",
227 .psize = 80,
228 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
229 "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
230 }, {
231 .plaintext = "abcdbcdecdefdefgefghfghighij"
232 "hijkijkljklmklmnlmnomnopnopq",
233 .psize = 56,
234 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
235 "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
236 .np = 2,
237 .tap = { 28, 28 },
238 }, {
239 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
240 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
241 "lmnopqrsmnopqrstnopqrstu",
242 .psize = 112,
243 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
244 "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
245 }, {
246 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
247 .psize = 32,
248 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
249 "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
254 * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
256 #define RMD160_TEST_VECTORS 10
258 static struct hash_testvec rmd160_tv_template[] = {
260 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
261 "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
262 }, {
263 .plaintext = "a",
264 .psize = 1,
265 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
266 "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
267 }, {
268 .plaintext = "abc",
269 .psize = 3,
270 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
271 "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
272 }, {
273 .plaintext = "message digest",
274 .psize = 14,
275 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
276 "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
277 }, {
278 .plaintext = "abcdefghijklmnopqrstuvwxyz",
279 .psize = 26,
280 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
281 "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
282 }, {
283 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
284 "fghijklmnopqrstuvwxyz0123456789",
285 .psize = 62,
286 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
287 "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
288 }, {
289 .plaintext = "1234567890123456789012345678901234567890"
290 "1234567890123456789012345678901234567890",
291 .psize = 80,
292 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
293 "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
294 }, {
295 .plaintext = "abcdbcdecdefdefgefghfghighij"
296 "hijkijkljklmklmnlmnomnopnopq",
297 .psize = 56,
298 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
299 "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
300 .np = 2,
301 .tap = { 28, 28 },
302 }, {
303 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
304 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
305 "lmnopqrsmnopqrstnopqrstu",
306 .psize = 112,
307 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
308 "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
309 }, {
310 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
311 .psize = 32,
312 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
313 "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
318 * RIPEMD-256 test vectors
320 #define RMD256_TEST_VECTORS 8
322 static struct hash_testvec rmd256_tv_template[] = {
324 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
325 "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
326 "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
327 "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
328 }, {
329 .plaintext = "a",
330 .psize = 1,
331 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
332 "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
333 "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
334 "\xcd\x88\x3a\x91\x34\x69\x29\x25",
335 }, {
336 .plaintext = "abc",
337 .psize = 3,
338 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
339 "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
340 "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
341 "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
342 }, {
343 .plaintext = "message digest",
344 .psize = 14,
345 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
346 "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
347 "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
348 "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
349 }, {
350 .plaintext = "abcdefghijklmnopqrstuvwxyz",
351 .psize = 26,
352 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
353 "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
354 "\x78\x96\x11\x8a\x51\x97\x96\x87"
355 "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
356 }, {
357 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
358 "fghijklmnopqrstuvwxyz0123456789",
359 .psize = 62,
360 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
361 "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
362 "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
363 "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
364 }, {
365 .plaintext = "1234567890123456789012345678901234567890"
366 "1234567890123456789012345678901234567890",
367 .psize = 80,
368 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
369 "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
370 "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
371 "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
372 }, {
373 .plaintext = "abcdbcdecdefdefgefghfghighij"
374 "hijkijkljklmklmnlmnomnopnopq",
375 .psize = 56,
376 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
377 "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
378 "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
379 "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
380 .np = 2,
381 .tap = { 28, 28 },
386 * RIPEMD-320 test vectors
388 #define RMD320_TEST_VECTORS 8
390 static struct hash_testvec rmd320_tv_template[] = {
392 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
393 "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
394 "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
395 "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
396 }, {
397 .plaintext = "a",
398 .psize = 1,
399 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
400 "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
401 "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
402 "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
403 }, {
404 .plaintext = "abc",
405 .psize = 3,
406 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
407 "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
408 "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
409 "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
410 }, {
411 .plaintext = "message digest",
412 .psize = 14,
413 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
414 "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
415 "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
416 "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
417 }, {
418 .plaintext = "abcdefghijklmnopqrstuvwxyz",
419 .psize = 26,
420 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
421 "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
422 "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
423 "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
424 }, {
425 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
426 "fghijklmnopqrstuvwxyz0123456789",
427 .psize = 62,
428 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
429 "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
430 "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
431 "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
432 }, {
433 .plaintext = "1234567890123456789012345678901234567890"
434 "1234567890123456789012345678901234567890",
435 .psize = 80,
436 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
437 "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
438 "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
439 "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
440 }, {
441 .plaintext = "abcdbcdecdefdefgefghfghighij"
442 "hijkijkljklmklmnlmnomnopnopq",
443 .psize = 56,
444 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
445 "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
446 "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
447 "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
448 .np = 2,
449 .tap = { 28, 28 },
453 #define CRCT10DIF_TEST_VECTORS 3
454 static struct hash_testvec crct10dif_tv_template[] = {
456 .plaintext = "abc",
457 .psize = 3,
458 #ifdef __LITTLE_ENDIAN
459 .digest = "\x3b\x44",
460 #else
461 .digest = "\x44\x3b",
462 #endif
463 }, {
464 .plaintext = "1234567890123456789012345678901234567890"
465 "123456789012345678901234567890123456789",
466 .psize = 79,
467 #ifdef __LITTLE_ENDIAN
468 .digest = "\x70\x4b",
469 #else
470 .digest = "\x4b\x70",
471 #endif
472 }, {
473 .plaintext =
474 "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd",
475 .psize = 56,
476 #ifdef __LITTLE_ENDIAN
477 .digest = "\xe3\x9c",
478 #else
479 .digest = "\x9c\xe3",
480 #endif
481 .np = 2,
482 .tap = { 28, 28 }
487 * SHA1 test vectors from from FIPS PUB 180-1
488 * Long vector from CAVS 5.0
490 #define SHA1_TEST_VECTORS 6
492 static struct hash_testvec sha1_tv_template[] = {
494 .plaintext = "",
495 .psize = 0,
496 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
497 "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
498 }, {
499 .plaintext = "abc",
500 .psize = 3,
501 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
502 "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
503 }, {
504 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
505 .psize = 56,
506 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
507 "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
508 .np = 2,
509 .tap = { 28, 28 }
510 }, {
511 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
512 "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
513 "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
514 "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
515 "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
516 "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
517 "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
518 "\x72\x28\x26\xc0\x66\x86\x9e\xda"
519 "\xcd\x73\xb2\x54\x80\x35\x18\x58"
520 "\x13\xe2\x26\x34\xa9\xda\x44\x00"
521 "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
522 "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
523 "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
524 "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
525 "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
526 "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
527 "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
528 "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
529 "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
530 "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
531 "\x5a\x90\x11",
532 .psize = 163,
533 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
534 "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
535 .np = 4,
536 .tap = { 63, 64, 31, 5 }
537 }, {
538 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
539 .psize = 64,
540 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
541 "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
542 }, {
543 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
544 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
545 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
546 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
547 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
548 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
549 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
550 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
551 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
552 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
553 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
554 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
555 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
556 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
557 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
558 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
559 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
560 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
561 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
562 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
563 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
564 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
565 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
566 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
567 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
568 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
569 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
570 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
571 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
572 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
573 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
574 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
575 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
576 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
577 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
578 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
579 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
580 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
581 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
582 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
583 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
584 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
585 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
586 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
587 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
588 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
589 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
590 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
591 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
592 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
593 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
594 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
595 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
596 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
597 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
598 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
599 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
600 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
601 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
602 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
603 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
604 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
605 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
606 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
607 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
608 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
609 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
610 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
611 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
612 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
613 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
614 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
615 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
616 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
617 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
618 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
619 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
620 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
621 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
622 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
623 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
624 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
625 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
626 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
627 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
628 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
629 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
630 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
631 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
632 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
633 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
634 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
635 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
636 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
637 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
638 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
639 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
640 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
641 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
642 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
643 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
644 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
645 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
646 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
647 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
648 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
649 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
650 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
651 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
652 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
653 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
654 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
655 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
656 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
657 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
658 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
659 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
660 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
661 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
662 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
663 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
664 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
665 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
666 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
667 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
668 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
669 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
670 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
671 .psize = 1023,
672 .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
673 "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
674 "\x30\xd6\xc9\x85",
680 * SHA224 test vectors from from FIPS PUB 180-2
682 #define SHA224_TEST_VECTORS 5
684 static struct hash_testvec sha224_tv_template[] = {
686 .plaintext = "",
687 .psize = 0,
688 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
689 "\x47\x61\x02\xbb\x28\x82\x34\xc4"
690 "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
691 "\xc5\xb3\xe4\x2f",
692 }, {
693 .plaintext = "abc",
694 .psize = 3,
695 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
696 "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
697 "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
698 "\xE3\x6C\x9D\xA7",
699 }, {
700 .plaintext =
701 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
702 .psize = 56,
703 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
704 "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
705 "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
706 "\x52\x52\x25\x25",
707 .np = 2,
708 .tap = { 28, 28 }
709 }, {
710 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
711 .psize = 64,
712 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
713 "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
714 "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
715 "\xef\x3b\xcb\x0e",
716 }, {
717 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
718 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
719 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
720 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
721 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
722 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
723 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
724 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
725 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
726 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
727 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
728 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
729 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
730 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
731 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
732 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
733 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
734 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
735 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
736 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
737 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
738 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
739 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
740 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
741 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
742 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
743 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
744 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
745 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
746 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
747 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
748 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
749 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
750 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
751 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
752 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
753 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
754 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
755 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
756 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
757 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
758 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
759 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
760 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
761 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
762 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
763 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
764 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
765 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
766 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
767 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
768 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
769 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
770 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
771 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
772 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
773 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
774 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
775 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
776 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
777 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
778 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
779 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
780 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
781 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
782 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
783 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
784 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
785 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
786 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
787 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
788 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
789 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
790 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
791 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
792 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
793 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
794 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
795 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
796 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
797 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
798 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
799 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
800 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
801 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
802 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
803 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
804 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
805 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
806 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
807 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
808 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
809 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
810 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
811 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
812 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
813 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
814 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
815 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
816 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
817 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
818 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
819 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
820 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
821 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
822 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
823 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
824 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
825 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
826 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
827 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
828 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
829 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
830 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
831 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
832 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
833 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
834 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
835 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
836 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
837 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
838 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
839 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
840 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
841 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
842 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
843 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
844 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
845 .psize = 1023,
846 .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
847 "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
848 "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
849 "\xe6\xf9\x4f\xcc",
854 * SHA256 test vectors from from NIST
856 #define SHA256_TEST_VECTORS 5
858 static struct hash_testvec sha256_tv_template[] = {
860 .plaintext = "",
861 .psize = 0,
862 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
863 "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
864 "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
865 "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
866 }, {
867 .plaintext = "abc",
868 .psize = 3,
869 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
870 "\x41\x41\x40\xde\x5d\xae\x22\x23"
871 "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
872 "\xb4\x10\xff\x61\xf2\x00\x15\xad",
873 }, {
874 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
875 .psize = 56,
876 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
877 "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
878 "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
879 "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
880 .np = 2,
881 .tap = { 28, 28 }
882 }, {
883 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
884 .psize = 64,
885 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
886 "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
887 "\xd6\xff\x94\xa3\x72\x91\x85\x66"
888 "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
889 }, {
890 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
891 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
892 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
893 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
894 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
895 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
896 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
897 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
898 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
899 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
900 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
901 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
902 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
903 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
904 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
905 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
906 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
907 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
908 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
909 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
910 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
911 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
912 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
913 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
914 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
915 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
916 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
917 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
918 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
919 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
920 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
921 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
922 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
923 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
924 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
925 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
926 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
927 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
928 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
929 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
930 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
931 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
932 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
933 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
934 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
935 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
936 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
937 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
938 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
939 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
940 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
941 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
942 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
943 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
944 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
945 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
946 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
947 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
948 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
949 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
950 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
951 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
952 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
953 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
954 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
955 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
956 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
957 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
958 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
959 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
960 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
961 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
962 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
963 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
964 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
965 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
966 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
967 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
968 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
969 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
970 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
971 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
972 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
973 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
974 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
975 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
976 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
977 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
978 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
979 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
980 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
981 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
982 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
983 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
984 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
985 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
986 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
987 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
988 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
989 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
990 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
991 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
992 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
993 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
994 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
995 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
996 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
997 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
998 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
999 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1000 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1001 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1002 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1003 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1004 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1005 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1006 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1007 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1008 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1009 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1010 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1011 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1012 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1013 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1014 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1015 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1016 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1017 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1018 .psize = 1023,
1019 .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
1020 "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
1021 "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
1022 "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
1027 * SHA384 test vectors from from NIST and kerneli
1029 #define SHA384_TEST_VECTORS 6
1031 static struct hash_testvec sha384_tv_template[] = {
1033 .plaintext = "",
1034 .psize = 0,
1035 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
1036 "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
1037 "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
1038 "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
1039 "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
1040 "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
1041 }, {
1042 .plaintext= "abc",
1043 .psize = 3,
1044 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
1045 "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
1046 "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
1047 "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
1048 "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
1049 "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
1050 }, {
1051 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1052 .psize = 56,
1053 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
1054 "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
1055 "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
1056 "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
1057 "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
1058 "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
1059 }, {
1060 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
1061 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
1062 .psize = 112,
1063 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
1064 "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
1065 "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
1066 "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
1067 "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
1068 "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
1069 }, {
1070 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
1071 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
1072 .psize = 104,
1073 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
1074 "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
1075 "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
1076 "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
1077 "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
1078 "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
1079 .np = 4,
1080 .tap = { 26, 26, 26, 26 }
1081 }, {
1082 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1083 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1084 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1085 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1086 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1087 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1088 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1089 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1090 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1091 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1092 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1093 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1094 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1095 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1096 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1097 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1098 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1099 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1100 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1101 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1102 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1103 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1104 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1105 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1106 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1107 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1108 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1109 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1110 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1111 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1112 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1113 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1114 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1115 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1116 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1117 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1118 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1119 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1120 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1121 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1122 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1123 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1124 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1125 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1126 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1127 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1128 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1129 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1130 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1131 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1132 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1133 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1134 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1135 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1136 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1137 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1138 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1139 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1140 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1141 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1142 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1143 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1144 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1145 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1146 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1147 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1148 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1149 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1150 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1151 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1152 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1153 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1154 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1155 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1156 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1157 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1158 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1159 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1160 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1161 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1162 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1163 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1164 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1165 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1166 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1167 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1168 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1169 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1170 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1171 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1172 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1173 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1174 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1175 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1176 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1177 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1178 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1179 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1180 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1181 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1182 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1183 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1184 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1185 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1186 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1187 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1188 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1189 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1190 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1191 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1192 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1193 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1194 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1195 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1196 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1197 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1198 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1199 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1200 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1201 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1202 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1203 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1204 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1205 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1206 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1207 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1208 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1209 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1210 .psize = 1023,
1211 .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
1212 "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
1213 "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
1214 "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
1215 "\x75\x29\x62\x83\xae\x3f\x17\xab"
1216 "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
1221 * SHA512 test vectors from from NIST and kerneli
1223 #define SHA512_TEST_VECTORS 6
1225 static struct hash_testvec sha512_tv_template[] = {
1227 .plaintext = "",
1228 .psize = 0,
1229 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
1230 "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
1231 "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
1232 "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
1233 "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
1234 "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
1235 "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
1236 "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
1237 }, {
1238 .plaintext = "abc",
1239 .psize = 3,
1240 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
1241 "\xcc\x41\x73\x49\xae\x20\x41\x31"
1242 "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
1243 "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
1244 "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
1245 "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
1246 "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
1247 "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
1248 }, {
1249 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1250 .psize = 56,
1251 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
1252 "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
1253 "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
1254 "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
1255 "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
1256 "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
1257 "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
1258 "\x54\xec\x63\x12\x38\xca\x34\x45",
1259 }, {
1260 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
1261 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
1262 .psize = 112,
1263 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
1264 "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
1265 "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
1266 "\x72\x99\xae\xad\xb6\x88\x90\x18"
1267 "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
1268 "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
1269 "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
1270 "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
1271 }, {
1272 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
1273 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
1274 .psize = 104,
1275 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
1276 "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
1277 "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
1278 "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
1279 "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
1280 "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
1281 "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
1282 "\xed\xb4\x19\x87\x23\x28\x50\xc9",
1283 .np = 4,
1284 .tap = { 26, 26, 26, 26 }
1285 }, {
1286 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1287 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1288 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1289 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1290 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1291 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1292 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1293 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1294 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1295 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1296 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1297 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1298 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1299 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1300 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1301 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1302 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1303 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1304 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1305 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1306 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1307 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1308 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1309 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1310 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1311 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1312 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1313 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1314 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1315 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1316 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1317 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1318 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1319 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1320 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1321 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1322 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1323 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1324 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1325 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1326 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1327 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1328 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1329 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1330 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1331 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1332 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1333 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1334 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1335 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1336 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1337 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1338 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1339 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1340 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1341 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1342 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1343 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1344 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1345 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1346 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1347 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1348 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1349 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1350 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1351 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1352 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1353 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1354 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1355 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1356 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1357 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1358 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1359 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1360 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1361 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1362 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1363 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1364 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1365 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1366 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1367 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1368 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1369 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1370 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1371 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1372 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1373 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1374 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1375 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1376 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1377 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1378 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1379 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1380 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1381 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1382 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1383 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1384 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1385 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1386 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1387 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1388 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1389 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1390 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1391 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1392 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1393 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1394 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1395 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1396 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1397 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1398 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1399 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1400 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1401 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1402 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1403 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1404 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1405 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1406 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1407 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1408 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1409 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1410 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1411 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1412 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1413 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1414 .psize = 1023,
1415 .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
1416 "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
1417 "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
1418 "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
1419 "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
1420 "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
1421 "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
1422 "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
1428 * WHIRLPOOL test vectors from Whirlpool package
1429 * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
1430 * submission
1432 #define WP512_TEST_VECTORS 8
1434 static struct hash_testvec wp512_tv_template[] = {
1436 .plaintext = "",
1437 .psize = 0,
1438 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
1439 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
1440 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
1441 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
1442 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
1443 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
1444 "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
1445 "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
1448 }, {
1449 .plaintext = "a",
1450 .psize = 1,
1451 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
1452 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
1453 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
1454 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
1455 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
1456 "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
1457 "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
1458 "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
1459 }, {
1460 .plaintext = "abc",
1461 .psize = 3,
1462 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
1463 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
1464 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
1465 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
1466 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
1467 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
1468 "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
1469 "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
1470 }, {
1471 .plaintext = "message digest",
1472 .psize = 14,
1473 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
1474 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
1475 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
1476 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
1477 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
1478 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
1479 "\x92\xED\x92\x00\x52\x83\x8F\x33"
1480 "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
1481 }, {
1482 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1483 .psize = 26,
1484 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
1485 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
1486 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
1487 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
1488 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
1489 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
1490 "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
1491 "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
1492 }, {
1493 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1494 "abcdefghijklmnopqrstuvwxyz0123456789",
1495 .psize = 62,
1496 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
1497 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
1498 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
1499 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
1500 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
1501 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
1502 "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
1503 "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
1504 }, {
1505 .plaintext = "1234567890123456789012345678901234567890"
1506 "1234567890123456789012345678901234567890",
1507 .psize = 80,
1508 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
1509 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
1510 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
1511 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
1512 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
1513 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
1514 "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
1515 "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
1516 }, {
1517 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1518 .psize = 32,
1519 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
1520 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
1521 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
1522 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
1523 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
1524 "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
1525 "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
1526 "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
1530 #define WP384_TEST_VECTORS 8
1532 static struct hash_testvec wp384_tv_template[] = {
1534 .plaintext = "",
1535 .psize = 0,
1536 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
1537 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
1538 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
1539 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
1540 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
1541 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
1544 }, {
1545 .plaintext = "a",
1546 .psize = 1,
1547 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
1548 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
1549 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
1550 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
1551 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
1552 "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
1553 }, {
1554 .plaintext = "abc",
1555 .psize = 3,
1556 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
1557 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
1558 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
1559 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
1560 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
1561 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
1562 }, {
1563 .plaintext = "message digest",
1564 .psize = 14,
1565 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
1566 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
1567 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
1568 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
1569 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
1570 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
1571 }, {
1572 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1573 .psize = 26,
1574 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
1575 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
1576 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
1577 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
1578 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
1579 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
1580 }, {
1581 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1582 "abcdefghijklmnopqrstuvwxyz0123456789",
1583 .psize = 62,
1584 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
1585 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
1586 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
1587 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
1588 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
1589 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
1590 }, {
1591 .plaintext = "1234567890123456789012345678901234567890"
1592 "1234567890123456789012345678901234567890",
1593 .psize = 80,
1594 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
1595 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
1596 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
1597 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
1598 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
1599 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
1600 }, {
1601 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1602 .psize = 32,
1603 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
1604 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
1605 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
1606 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
1607 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
1608 "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
1612 #define WP256_TEST_VECTORS 8
1614 static struct hash_testvec wp256_tv_template[] = {
1616 .plaintext = "",
1617 .psize = 0,
1618 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
1619 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
1620 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
1621 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
1624 }, {
1625 .plaintext = "a",
1626 .psize = 1,
1627 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
1628 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
1629 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
1630 "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
1631 }, {
1632 .plaintext = "abc",
1633 .psize = 3,
1634 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
1635 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
1636 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
1637 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
1638 }, {
1639 .plaintext = "message digest",
1640 .psize = 14,
1641 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
1642 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
1643 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
1644 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
1645 }, {
1646 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1647 .psize = 26,
1648 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
1649 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
1650 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
1651 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
1652 }, {
1653 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1654 "abcdefghijklmnopqrstuvwxyz0123456789",
1655 .psize = 62,
1656 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
1657 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
1658 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
1659 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
1660 }, {
1661 .plaintext = "1234567890123456789012345678901234567890"
1662 "1234567890123456789012345678901234567890",
1663 .psize = 80,
1664 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
1665 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
1666 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
1667 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
1668 }, {
1669 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1670 .psize = 32,
1671 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
1672 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
1673 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
1674 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
1679 * TIGER test vectors from Tiger website
1681 #define TGR192_TEST_VECTORS 6
1683 static struct hash_testvec tgr192_tv_template[] = {
1685 .plaintext = "",
1686 .psize = 0,
1687 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
1688 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
1689 "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
1690 }, {
1691 .plaintext = "abc",
1692 .psize = 3,
1693 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
1694 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
1695 "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
1696 }, {
1697 .plaintext = "Tiger",
1698 .psize = 5,
1699 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
1700 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
1701 "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
1702 }, {
1703 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1704 .psize = 64,
1705 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
1706 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
1707 "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
1708 }, {
1709 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
1710 .psize = 64,
1711 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
1712 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
1713 "\x57\x89\x65\x65\x97\x5f\x91\x97",
1714 }, {
1715 .plaintext = "Tiger - A Fast New Hash Function, "
1716 "by Ross Anderson and Eli Biham, "
1717 "proceedings of Fast Software Encryption 3, "
1718 "Cambridge, 1996.",
1719 .psize = 125,
1720 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1721 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
1722 "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
1726 #define TGR160_TEST_VECTORS 6
1728 static struct hash_testvec tgr160_tv_template[] = {
1730 .plaintext = "",
1731 .psize = 0,
1732 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
1733 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
1734 "\xf3\x73\xde\x2d",
1735 }, {
1736 .plaintext = "abc",
1737 .psize = 3,
1738 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
1739 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
1740 "\x93\x5f\x7b\x95",
1741 }, {
1742 .plaintext = "Tiger",
1743 .psize = 5,
1744 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
1745 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
1746 "\x37\x79\x0c\x11",
1747 }, {
1748 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1749 .psize = 64,
1750 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
1751 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
1752 "\xb5\x86\x44\x50",
1753 }, {
1754 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
1755 .psize = 64,
1756 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
1757 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
1758 "\x57\x89\x65\x65",
1759 }, {
1760 .plaintext = "Tiger - A Fast New Hash Function, "
1761 "by Ross Anderson and Eli Biham, "
1762 "proceedings of Fast Software Encryption 3, "
1763 "Cambridge, 1996.",
1764 .psize = 125,
1765 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1766 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
1767 "\xdd\x68\x15\x1d",
1771 #define TGR128_TEST_VECTORS 6
1773 static struct hash_testvec tgr128_tv_template[] = {
1775 .plaintext = "",
1776 .psize = 0,
1777 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
1778 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
1779 }, {
1780 .plaintext = "abc",
1781 .psize = 3,
1782 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
1783 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
1784 }, {
1785 .plaintext = "Tiger",
1786 .psize = 5,
1787 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
1788 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
1789 }, {
1790 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1791 .psize = 64,
1792 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
1793 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
1794 }, {
1795 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
1796 .psize = 64,
1797 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
1798 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
1799 }, {
1800 .plaintext = "Tiger - A Fast New Hash Function, "
1801 "by Ross Anderson and Eli Biham, "
1802 "proceedings of Fast Software Encryption 3, "
1803 "Cambridge, 1996.",
1804 .psize = 125,
1805 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1806 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
1810 #define GHASH_TEST_VECTORS 1
1812 static struct hash_testvec ghash_tv_template[] =
1816 .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61",
1817 .ksize = 16,
1818 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
1819 .psize = 16,
1820 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
1821 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
1826 * HMAC-MD5 test vectors from RFC2202
1827 * (These need to be fixed to not use strlen).
1829 #define HMAC_MD5_TEST_VECTORS 7
1831 static struct hash_testvec hmac_md5_tv_template[] =
1834 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1835 .ksize = 16,
1836 .plaintext = "Hi There",
1837 .psize = 8,
1838 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
1839 "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
1840 }, {
1841 .key = "Jefe",
1842 .ksize = 4,
1843 .plaintext = "what do ya want for nothing?",
1844 .psize = 28,
1845 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
1846 "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
1847 .np = 2,
1848 .tap = {14, 14}
1849 }, {
1850 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\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 = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
1858 "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
1859 }, {
1860 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
1861 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1862 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
1863 .ksize = 25,
1864 .plaintext = "\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\xcd"
1867 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1868 .psize = 50,
1869 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
1870 "\x3a\x75\x16\x47\x46\xff\xaa\x79",
1871 }, {
1872 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
1873 .ksize = 16,
1874 .plaintext = "Test With Truncation",
1875 .psize = 20,
1876 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
1877 "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
1878 }, {
1879 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1880 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1881 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1882 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1883 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1884 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1885 "\xaa\xaa",
1886 .ksize = 80,
1887 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1888 .psize = 54,
1889 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
1890 "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
1891 }, {
1892 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1893 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1894 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1895 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1896 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1897 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1898 "\xaa\xaa",
1899 .ksize = 80,
1900 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
1901 "Block-Size Data",
1902 .psize = 73,
1903 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
1904 "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
1909 * HMAC-RIPEMD128 test vectors from RFC2286
1911 #define HMAC_RMD128_TEST_VECTORS 7
1913 static struct hash_testvec hmac_rmd128_tv_template[] = {
1915 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1916 .ksize = 16,
1917 .plaintext = "Hi There",
1918 .psize = 8,
1919 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
1920 "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
1921 }, {
1922 .key = "Jefe",
1923 .ksize = 4,
1924 .plaintext = "what do ya want for nothing?",
1925 .psize = 28,
1926 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
1927 "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
1928 .np = 2,
1929 .tap = { 14, 14 },
1930 }, {
1931 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1932 .ksize = 16,
1933 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1934 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1935 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1936 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1937 .psize = 50,
1938 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
1939 "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
1940 }, {
1941 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
1942 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1943 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
1944 .ksize = 25,
1945 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1946 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1947 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1948 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1949 .psize = 50,
1950 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
1951 "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
1952 }, {
1953 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
1954 .ksize = 16,
1955 .plaintext = "Test With Truncation",
1956 .psize = 20,
1957 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
1958 "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
1959 }, {
1960 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1961 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1962 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1963 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1964 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1965 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1966 "\xaa\xaa",
1967 .ksize = 80,
1968 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1969 .psize = 54,
1970 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
1971 "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
1972 }, {
1973 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1974 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1975 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1976 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1977 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1978 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1979 "\xaa\xaa",
1980 .ksize = 80,
1981 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
1982 "Block-Size Data",
1983 .psize = 73,
1984 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
1985 "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
1990 * HMAC-RIPEMD160 test vectors from RFC2286
1992 #define HMAC_RMD160_TEST_VECTORS 7
1994 static struct hash_testvec hmac_rmd160_tv_template[] = {
1996 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1997 .ksize = 20,
1998 .plaintext = "Hi There",
1999 .psize = 8,
2000 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
2001 "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
2002 }, {
2003 .key = "Jefe",
2004 .ksize = 4,
2005 .plaintext = "what do ya want for nothing?",
2006 .psize = 28,
2007 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
2008 "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
2009 .np = 2,
2010 .tap = { 14, 14 },
2011 }, {
2012 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2013 .ksize = 20,
2014 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2015 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2016 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2017 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2018 .psize = 50,
2019 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
2020 "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
2021 }, {
2022 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2023 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2024 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2025 .ksize = 25,
2026 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2027 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2028 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2029 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2030 .psize = 50,
2031 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
2032 "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
2033 }, {
2034 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2035 .ksize = 20,
2036 .plaintext = "Test With Truncation",
2037 .psize = 20,
2038 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
2039 "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
2040 }, {
2041 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2042 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2043 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2044 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2045 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2046 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2047 "\xaa\xaa",
2048 .ksize = 80,
2049 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2050 .psize = 54,
2051 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
2052 "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
2053 }, {
2054 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2055 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2056 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2057 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2058 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2059 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2060 "\xaa\xaa",
2061 .ksize = 80,
2062 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2063 "Block-Size Data",
2064 .psize = 73,
2065 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
2066 "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
2071 * HMAC-SHA1 test vectors from RFC2202
2073 #define HMAC_SHA1_TEST_VECTORS 7
2075 static struct hash_testvec hmac_sha1_tv_template[] = {
2077 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2078 .ksize = 20,
2079 .plaintext = "Hi There",
2080 .psize = 8,
2081 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
2082 "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
2083 "\x46\xbe",
2084 }, {
2085 .key = "Jefe",
2086 .ksize = 4,
2087 .plaintext = "what do ya want for nothing?",
2088 .psize = 28,
2089 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
2090 "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
2091 .np = 2,
2092 .tap = { 14, 14 }
2093 }, {
2094 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2095 .ksize = 20,
2096 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2097 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2098 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2099 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2100 .psize = 50,
2101 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
2102 "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
2103 }, {
2104 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2105 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2106 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2107 .ksize = 25,
2108 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2109 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2110 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2111 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2112 .psize = 50,
2113 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
2114 "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
2115 }, {
2116 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2117 .ksize = 20,
2118 .plaintext = "Test With Truncation",
2119 .psize = 20,
2120 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
2121 "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
2122 }, {
2123 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2124 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2125 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2126 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2127 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2128 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2129 "\xaa\xaa",
2130 .ksize = 80,
2131 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2132 .psize = 54,
2133 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
2134 "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
2135 }, {
2136 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2137 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2138 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2139 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2140 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2141 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2142 "\xaa\xaa",
2143 .ksize = 80,
2144 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2145 "Block-Size Data",
2146 .psize = 73,
2147 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
2148 "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
2154 * SHA224 HMAC test vectors from RFC4231
2156 #define HMAC_SHA224_TEST_VECTORS 4
2158 static struct hash_testvec hmac_sha224_tv_template[] = {
2160 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2161 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2162 "\x0b\x0b\x0b\x0b",
2163 .ksize = 20,
2164 /* ("Hi There") */
2165 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
2166 .psize = 8,
2167 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
2168 "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
2169 "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
2170 "\x53\x68\x4b\x22",
2171 }, {
2172 .key = "Jefe",
2173 .ksize = 4,
2174 /* ("what do ya want for nothing?") */
2175 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
2176 "\x79\x61\x20\x77\x61\x6e\x74\x20"
2177 "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
2178 "\x69\x6e\x67\x3f",
2179 .psize = 28,
2180 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
2181 "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
2182 "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
2183 "\x8f\xd0\x5e\x44",
2184 .np = 4,
2185 .tap = { 7, 7, 7, 7 }
2186 }, {
2187 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2188 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2189 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2190 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2191 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2192 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2193 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2194 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2195 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2196 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2197 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2198 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2199 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2200 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2201 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2202 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2203 "\xaa\xaa\xaa",
2204 .ksize = 131,
2205 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
2206 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
2207 "\x6e\x67\x20\x4c\x61\x72\x67\x65"
2208 "\x72\x20\x54\x68\x61\x6e\x20\x42"
2209 "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
2210 "\x65\x20\x4b\x65\x79\x20\x2d\x20"
2211 "\x48\x61\x73\x68\x20\x4b\x65\x79"
2212 "\x20\x46\x69\x72\x73\x74",
2213 .psize = 54,
2214 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
2215 "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
2216 "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
2217 "\x3f\xa6\x87\x0e",
2218 }, {
2219 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2220 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2221 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2222 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2223 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2224 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2225 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2226 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2227 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2228 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2229 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2230 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2231 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2232 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2233 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2234 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2235 "\xaa\xaa\xaa",
2236 .ksize = 131,
2237 /* ("This is a test using a larger than block-size key and a")
2238 (" larger than block-size data. The key needs to be")
2239 (" hashed before being used by the HMAC algorithm.") */
2240 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
2241 "\x61\x20\x74\x65\x73\x74\x20\x75"
2242 "\x73\x69\x6e\x67\x20\x61\x20\x6c"
2243 "\x61\x72\x67\x65\x72\x20\x74\x68"
2244 "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
2245 "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
2246 "\x79\x20\x61\x6e\x64\x20\x61\x20"
2247 "\x6c\x61\x72\x67\x65\x72\x20\x74"
2248 "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
2249 "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
2250 "\x61\x74\x61\x2e\x20\x54\x68\x65"
2251 "\x20\x6b\x65\x79\x20\x6e\x65\x65"
2252 "\x64\x73\x20\x74\x6f\x20\x62\x65"
2253 "\x20\x68\x61\x73\x68\x65\x64\x20"
2254 "\x62\x65\x66\x6f\x72\x65\x20\x62"
2255 "\x65\x69\x6e\x67\x20\x75\x73\x65"
2256 "\x64\x20\x62\x79\x20\x74\x68\x65"
2257 "\x20\x48\x4d\x41\x43\x20\x61\x6c"
2258 "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
2259 .psize = 152,
2260 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
2261 "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
2262 "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
2263 "\xf6\xf5\x65\xd1",
2268 * HMAC-SHA256 test vectors from
2269 * draft-ietf-ipsec-ciph-sha-256-01.txt
2271 #define HMAC_SHA256_TEST_VECTORS 10
2273 static struct hash_testvec hmac_sha256_tv_template[] = {
2275 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2276 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2277 "\x11\x12\x13\x14\x15\x16\x17\x18"
2278 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
2279 .ksize = 32,
2280 .plaintext = "abc",
2281 .psize = 3,
2282 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
2283 "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
2284 "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
2285 "\x92\x75\x90\x21\xcf\xab\x81\x81",
2286 }, {
2287 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2288 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2289 "\x11\x12\x13\x14\x15\x16\x17\x18"
2290 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
2291 .ksize = 32,
2292 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2293 .psize = 56,
2294 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
2295 "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
2296 "\xe6\x98\xe3\x61\x19\x42\x11\x49"
2297 "\xea\x8c\x71\x24\x56\x69\x7d\x30",
2298 }, {
2299 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2300 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2301 "\x11\x12\x13\x14\x15\x16\x17\x18"
2302 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
2303 .ksize = 32,
2304 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
2305 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2306 .psize = 112,
2307 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
2308 "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
2309 "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
2310 "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
2311 }, {
2312 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2313 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2314 "\x0b\x0b\x0b\x0b\x0b\x0b",
2315 .ksize = 32,
2316 .plaintext = "Hi There",
2317 .psize = 8,
2318 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
2319 "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
2320 "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
2321 "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
2322 }, {
2323 .key = "Jefe",
2324 .ksize = 4,
2325 .plaintext = "what do ya want for nothing?",
2326 .psize = 28,
2327 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
2328 "\x6a\x04\x24\x26\x08\x95\x75\xc7"
2329 "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
2330 "\x9d\xec\x58\xb9\x64\xec\x38\x43",
2331 .np = 2,
2332 .tap = { 14, 14 }
2333 }, {
2334 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2335 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2336 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2337 .ksize = 32,
2338 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2339 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2340 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2341 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2342 .psize = 50,
2343 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
2344 "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
2345 "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
2346 "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
2347 }, {
2348 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2349 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2350 "\x11\x12\x13\x14\x15\x16\x17\x18"
2351 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
2352 "\x21\x22\x23\x24\x25",
2353 .ksize = 37,
2354 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2355 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2356 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2357 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2358 .psize = 50,
2359 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
2360 "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
2361 "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
2362 "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
2363 }, {
2364 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
2365 "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
2366 "\x0c\x0c\x0c\x0c\x0c\x0c",
2367 .ksize = 32,
2368 .plaintext = "Test With Truncation",
2369 .psize = 20,
2370 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
2371 "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
2372 "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
2373 "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
2374 }, {
2375 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2376 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2377 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2378 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2379 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2380 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2381 "\xaa\xaa",
2382 .ksize = 80,
2383 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2384 .psize = 54,
2385 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
2386 "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
2387 "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
2388 "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
2389 }, {
2390 .key = "\xaa\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\xaa\xaa\xaa\xaa\xaa\xaa"
2393 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2394 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2395 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2396 "\xaa\xaa",
2397 .ksize = 80,
2398 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
2399 "One Block-Size Data",
2400 .psize = 73,
2401 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
2402 "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
2403 "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
2404 "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
2408 #define CMAC_AES_TEST_VECTORS 6
2410 static struct hash_testvec aes_cmac128_tv_template[] = {
2411 { /* From NIST Special Publication 800-38B, AES-128 */
2412 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2413 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2414 .plaintext = zeroed_string,
2415 .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
2416 "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
2417 .psize = 0,
2418 .ksize = 16,
2419 }, {
2420 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2421 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2422 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2423 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
2424 .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
2425 "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
2426 .psize = 16,
2427 .ksize = 16,
2428 }, {
2429 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2430 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2431 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2432 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2433 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2434 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
2435 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
2436 .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
2437 "\x30\xca\x32\x61\x14\x97\xc8\x27",
2438 .psize = 40,
2439 .ksize = 16,
2440 }, {
2441 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
2442 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
2443 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2444 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2445 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2446 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
2447 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
2448 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
2449 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
2450 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
2451 .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
2452 "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
2453 .psize = 64,
2454 .ksize = 16,
2455 }, { /* From NIST Special Publication 800-38B, AES-256 */
2456 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
2457 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
2458 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
2459 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
2460 .plaintext = zeroed_string,
2461 .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
2462 "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
2463 .psize = 0,
2464 .ksize = 32,
2465 }, {
2466 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
2467 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
2468 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
2469 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
2470 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2471 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2472 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2473 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
2474 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
2475 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
2476 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
2477 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
2478 .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
2479 "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
2480 .psize = 64,
2481 .ksize = 32,
2485 #define CMAC_DES3_EDE_TEST_VECTORS 4
2487 static struct hash_testvec des3_ede_cmac64_tv_template[] = {
2489 * From NIST Special Publication 800-38B, Three Key TDEA
2490 * Corrected test vectors from:
2491 * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
2494 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2495 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2496 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2497 .plaintext = zeroed_string,
2498 .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
2499 .psize = 0,
2500 .ksize = 24,
2501 }, {
2502 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2503 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2504 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2505 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
2506 .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
2507 .psize = 8,
2508 .ksize = 24,
2509 }, {
2510 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2511 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2512 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2513 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2514 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2515 "\xae\x2d\x8a\x57",
2516 .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
2517 .psize = 20,
2518 .ksize = 24,
2519 }, {
2520 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
2521 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
2522 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
2523 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
2524 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
2525 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
2526 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
2527 .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
2528 .psize = 32,
2529 .ksize = 24,
2533 #define XCBC_AES_TEST_VECTORS 6
2535 static struct hash_testvec aes_xcbc128_tv_template[] = {
2537 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2538 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2539 .plaintext = zeroed_string,
2540 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
2541 "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
2542 .psize = 0,
2543 .ksize = 16,
2544 }, {
2545 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2546 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2547 .plaintext = "\x00\x01\x02",
2548 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
2549 "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
2550 .psize = 3,
2551 .ksize = 16,
2552 } , {
2553 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2554 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2555 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2556 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2557 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
2558 "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
2559 .psize = 16,
2560 .ksize = 16,
2561 }, {
2562 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2563 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2564 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2565 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2566 "\x10\x11\x12\x13",
2567 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
2568 "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
2569 .tap = { 10, 10 },
2570 .psize = 20,
2571 .np = 2,
2572 .ksize = 16,
2573 }, {
2574 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2575 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2576 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2577 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2578 "\x10\x11\x12\x13\x14\x15\x16\x17"
2579 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
2580 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
2581 "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
2582 .psize = 32,
2583 .ksize = 16,
2584 }, {
2585 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2586 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2587 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
2588 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2589 "\x10\x11\x12\x13\x14\x15\x16\x17"
2590 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
2591 "\x20\x21",
2592 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
2593 "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
2594 .tap = { 17, 17 },
2595 .psize = 34,
2596 .np = 2,
2597 .ksize = 16,
2601 #define VMAC_AES_TEST_VECTORS 11
2602 static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
2603 '\x02', '\x03', '\x02', '\x02',
2604 '\x02', '\x04', '\x01', '\x07',
2605 '\x04', '\x01', '\x04', '\x03',};
2606 static char vmac_string2[128] = {'a', 'b', 'c',};
2607 static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
2608 'a', 'b', 'c', 'a', 'b', 'c',
2609 'a', 'b', 'c', 'a', 'b', 'c',
2610 'a', 'b', 'c', 'a', 'b', 'c',
2611 'a', 'b', 'c', 'a', 'b', 'c',
2612 'a', 'b', 'c', 'a', 'b', 'c',
2613 'a', 'b', 'c', 'a', 'b', 'c',
2614 'a', 'b', 'c', 'a', 'b', 'c',
2617 static char vmac_string4[17] = {'b', 'c', 'e', 'f',
2618 'i', 'j', 'l', 'm',
2619 'o', 'p', 'r', 's',
2620 't', 'u', 'w', 'x', 'z'};
2622 static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
2623 'o', 'l', 'k', ']', '%',
2624 '9', '2', '7', '!', 'A'};
2626 static char vmac_string6[129] = {'p', 't', '*', '7', 'l',
2627 'i', '!', '#', 'w', '0',
2628 'z', '/', '4', 'A', 'n'};
2630 static struct hash_testvec aes_vmac128_tv_template[] = {
2632 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2633 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2634 .plaintext = NULL,
2635 .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
2636 .psize = 0,
2637 .ksize = 16,
2638 }, {
2639 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2640 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2641 .plaintext = vmac_string1,
2642 .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
2643 .psize = 128,
2644 .ksize = 16,
2645 }, {
2646 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2647 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2648 .plaintext = vmac_string2,
2649 .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
2650 .psize = 128,
2651 .ksize = 16,
2652 }, {
2653 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2654 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
2655 .plaintext = vmac_string3,
2656 .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
2657 .psize = 128,
2658 .ksize = 16,
2659 }, {
2660 .key = "abcdefghijklmnop",
2661 .plaintext = NULL,
2662 .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
2663 .psize = 0,
2664 .ksize = 16,
2665 }, {
2666 .key = "abcdefghijklmnop",
2667 .plaintext = vmac_string1,
2668 .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
2669 .psize = 128,
2670 .ksize = 16,
2671 }, {
2672 .key = "abcdefghijklmnop",
2673 .plaintext = vmac_string2,
2674 .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
2675 .psize = 128,
2676 .ksize = 16,
2677 }, {
2678 .key = "abcdefghijklmnop",
2679 .plaintext = vmac_string3,
2680 .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
2681 .psize = 128,
2682 .ksize = 16,
2683 }, {
2684 .key = "a09b5cd!f#07K\x00\x00\x00",
2685 .plaintext = vmac_string4,
2686 .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
2687 .psize = sizeof(vmac_string4),
2688 .ksize = 16,
2689 }, {
2690 .key = "a09b5cd!f#07K\x00\x00\x00",
2691 .plaintext = vmac_string5,
2692 .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
2693 .psize = sizeof(vmac_string5),
2694 .ksize = 16,
2695 }, {
2696 .key = "a09b5cd!f#07K\x00\x00\x00",
2697 .plaintext = vmac_string6,
2698 .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
2699 .psize = sizeof(vmac_string6),
2700 .ksize = 16,
2705 * SHA384 HMAC test vectors from RFC4231
2708 #define HMAC_SHA384_TEST_VECTORS 4
2710 static struct hash_testvec hmac_sha384_tv_template[] = {
2712 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2713 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2714 "\x0b\x0b\x0b\x0b",
2715 .ksize = 20,
2716 .plaintext = "Hi There",
2717 .psize = 8,
2718 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
2719 "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
2720 "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
2721 "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
2722 "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
2723 "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
2724 }, {
2725 .key = "Jefe",
2726 .ksize = 4,
2727 .plaintext = "what do ya want for nothing?",
2728 .psize = 28,
2729 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
2730 "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
2731 "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
2732 "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
2733 "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
2734 "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
2735 .np = 4,
2736 .tap = { 7, 7, 7, 7 }
2737 }, {
2738 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2739 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2740 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2741 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2742 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2743 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2744 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2745 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2746 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2747 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2748 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2749 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2750 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2751 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2752 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2753 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2754 "\xaa\xaa\xaa",
2755 .ksize = 131,
2756 .plaintext = "Test Using Larger Than Block-Siz"
2757 "e Key - Hash Key First",
2758 .psize = 54,
2759 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
2760 "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
2761 "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
2762 "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
2763 "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
2764 "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
2765 }, {
2766 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2767 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2768 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2769 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2770 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2771 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2772 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2773 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2774 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2775 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2776 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2777 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2778 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2779 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2780 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2781 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2782 "\xaa\xaa\xaa",
2783 .ksize = 131,
2784 .plaintext = "This is a test u"
2785 "sing a larger th"
2786 "an block-size ke"
2787 "y and a larger t"
2788 "han block-size d"
2789 "ata. The key nee"
2790 "ds to be hashed "
2791 "before being use"
2792 "d by the HMAC al"
2793 "gorithm.",
2794 .psize = 152,
2795 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
2796 "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
2797 "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
2798 "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
2799 "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
2800 "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
2805 * SHA512 HMAC test vectors from RFC4231
2808 #define HMAC_SHA512_TEST_VECTORS 4
2810 static struct hash_testvec hmac_sha512_tv_template[] = {
2812 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2813 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2814 "\x0b\x0b\x0b\x0b",
2815 .ksize = 20,
2816 .plaintext = "Hi There",
2817 .psize = 8,
2818 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
2819 "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
2820 "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
2821 "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
2822 "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
2823 "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
2824 "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
2825 "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
2826 }, {
2827 .key = "Jefe",
2828 .ksize = 4,
2829 .plaintext = "what do ya want for nothing?",
2830 .psize = 28,
2831 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
2832 "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
2833 "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
2834 "\x10\x27\x0c\xd7\xea\x25\x05\x54"
2835 "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
2836 "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
2837 "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
2838 "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
2839 .np = 4,
2840 .tap = { 7, 7, 7, 7 }
2841 }, {
2842 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2843 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2844 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2845 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2846 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2847 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2848 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2849 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2850 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2851 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2852 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2853 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2854 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2855 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2856 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2857 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2858 "\xaa\xaa\xaa",
2859 .ksize = 131,
2860 .plaintext = "Test Using Large"
2861 "r Than Block-Siz"
2862 "e Key - Hash Key"
2863 " First",
2864 .psize = 54,
2865 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
2866 "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
2867 "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
2868 "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
2869 "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
2870 "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
2871 "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
2872 "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
2873 }, {
2874 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2875 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2876 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2877 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2878 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2879 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2880 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2881 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2882 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2883 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2884 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2885 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2886 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2887 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2888 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2889 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2890 "\xaa\xaa\xaa",
2891 .ksize = 131,
2892 .plaintext =
2893 "This is a test u"
2894 "sing a larger th"
2895 "an block-size ke"
2896 "y and a larger t"
2897 "han block-size d"
2898 "ata. The key nee"
2899 "ds to be hashed "
2900 "before being use"
2901 "d by the HMAC al"
2902 "gorithm.",
2903 .psize = 152,
2904 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
2905 "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
2906 "\xde\xbd\x71\xf8\x86\x72\x89\x86"
2907 "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
2908 "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
2909 "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
2910 "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
2911 "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
2916 * DES test vectors.
2918 #define DES_ENC_TEST_VECTORS 11
2919 #define DES_DEC_TEST_VECTORS 5
2920 #define DES_CBC_ENC_TEST_VECTORS 6
2921 #define DES_CBC_DEC_TEST_VECTORS 5
2922 #define DES_CTR_ENC_TEST_VECTORS 2
2923 #define DES_CTR_DEC_TEST_VECTORS 2
2924 #define DES3_EDE_ENC_TEST_VECTORS 4
2925 #define DES3_EDE_DEC_TEST_VECTORS 4
2926 #define DES3_EDE_CBC_ENC_TEST_VECTORS 2
2927 #define DES3_EDE_CBC_DEC_TEST_VECTORS 2
2928 #define DES3_EDE_CTR_ENC_TEST_VECTORS 2
2929 #define DES3_EDE_CTR_DEC_TEST_VECTORS 2
2931 static struct cipher_testvec des_enc_tv_template[] = {
2932 { /* From Applied Cryptography */
2933 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
2934 .klen = 8,
2935 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
2936 .ilen = 8,
2937 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
2938 .rlen = 8,
2939 }, { /* Same key, different plaintext block */
2940 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
2941 .klen = 8,
2942 .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
2943 .ilen = 8,
2944 .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
2945 .rlen = 8,
2946 }, { /* Sbox test from NBS */
2947 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
2948 .klen = 8,
2949 .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
2950 .ilen = 8,
2951 .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
2952 .rlen = 8,
2953 }, { /* Three blocks */
2954 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
2955 .klen = 8,
2956 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2957 "\x22\x33\x44\x55\x66\x77\x88\x99"
2958 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
2959 .ilen = 24,
2960 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2961 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
2962 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
2963 .rlen = 24,
2964 }, { /* Weak key */
2965 .fail = 1,
2966 .wk = 1,
2967 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
2968 .klen = 8,
2969 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
2970 .ilen = 8,
2971 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
2972 .rlen = 8,
2973 }, { /* Two blocks -- for testing encryption across pages */
2974 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
2975 .klen = 8,
2976 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2977 "\x22\x33\x44\x55\x66\x77\x88\x99",
2978 .ilen = 16,
2979 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2980 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
2981 .rlen = 16,
2982 .np = 2,
2983 .tap = { 8, 8 }
2984 }, { /* Four blocks -- for testing encryption with chunking */
2985 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
2986 .klen = 8,
2987 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2988 "\x22\x33\x44\x55\x66\x77\x88\x99"
2989 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
2990 "\x22\x33\x44\x55\x66\x77\x88\x99",
2991 .ilen = 32,
2992 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2993 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
2994 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
2995 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
2996 .rlen = 32,
2997 .np = 3,
2998 .tap = { 14, 10, 8 }
2999 }, {
3000 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3001 .klen = 8,
3002 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3003 "\x22\x33\x44\x55\x66\x77\x88\x99"
3004 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
3005 .ilen = 24,
3006 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3007 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
3008 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
3009 .rlen = 24,
3010 .np = 4,
3011 .tap = { 2, 1, 3, 18 }
3012 }, {
3013 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3014 .klen = 8,
3015 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3016 "\x22\x33\x44\x55\x66\x77\x88\x99",
3017 .ilen = 16,
3018 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3019 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
3020 .rlen = 16,
3021 .np = 5,
3022 .tap = { 2, 2, 2, 2, 8 }
3023 }, {
3024 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3025 .klen = 8,
3026 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
3027 .ilen = 8,
3028 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
3029 .rlen = 8,
3030 .np = 8,
3031 .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
3032 }, { /* Generated with Crypto++ */
3033 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3034 .klen = 8,
3035 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3036 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3037 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3038 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3039 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3040 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3041 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3042 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3043 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3044 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3045 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3046 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3047 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3048 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3049 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3050 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3051 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3052 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3053 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3054 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3055 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3056 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3057 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3058 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3059 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3060 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3061 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3062 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3063 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3064 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3065 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3066 .ilen = 248,
3067 .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
3068 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
3069 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
3070 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
3071 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
3072 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
3073 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
3074 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
3075 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
3076 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
3077 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
3078 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
3079 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
3080 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
3081 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
3082 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
3083 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
3084 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
3085 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
3086 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
3087 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
3088 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
3089 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
3090 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
3091 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
3092 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
3093 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
3094 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
3095 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
3096 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
3097 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
3098 .rlen = 248,
3099 .also_non_np = 1,
3100 .np = 2,
3101 .tap = { 248 - 8, 8 },
3105 static struct cipher_testvec des_dec_tv_template[] = {
3106 { /* From Applied Cryptography */
3107 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3108 .klen = 8,
3109 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
3110 .ilen = 8,
3111 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
3112 .rlen = 8,
3113 }, { /* Sbox test from NBS */
3114 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
3115 .klen = 8,
3116 .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
3117 .ilen = 8,
3118 .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
3119 .rlen = 8,
3120 }, { /* Two blocks, for chunking test */
3121 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3122 .klen = 8,
3123 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3124 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
3125 .ilen = 16,
3126 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3127 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
3128 .rlen = 16,
3129 .np = 2,
3130 .tap = { 8, 8 }
3131 }, {
3132 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3133 .klen = 8,
3134 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
3135 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
3136 .ilen = 16,
3137 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
3138 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
3139 .rlen = 16,
3140 .np = 3,
3141 .tap = { 3, 12, 1 }
3142 }, { /* Generated with Crypto++ */
3143 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3144 .klen = 8,
3145 .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
3146 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
3147 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
3148 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
3149 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
3150 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
3151 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
3152 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
3153 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
3154 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
3155 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
3156 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
3157 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
3158 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
3159 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
3160 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
3161 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
3162 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
3163 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
3164 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
3165 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
3166 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
3167 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
3168 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
3169 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
3170 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
3171 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
3172 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
3173 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
3174 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
3175 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
3176 .ilen = 248,
3177 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3178 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3179 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3180 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3181 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3182 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3183 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3184 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3185 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3186 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3187 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3188 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3189 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3190 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3191 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3192 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3193 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3194 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3195 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3196 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3197 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3198 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3199 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3200 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3201 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3202 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3203 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3204 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3205 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3206 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3207 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3208 .rlen = 248,
3209 .also_non_np = 1,
3210 .np = 2,
3211 .tap = { 248 - 8, 8 },
3215 static struct cipher_testvec des_cbc_enc_tv_template[] = {
3216 { /* From OpenSSL */
3217 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3218 .klen = 8,
3219 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3220 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
3221 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
3222 "\x68\x65\x20\x74\x69\x6d\x65\x20",
3223 .ilen = 24,
3224 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
3225 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
3226 "\x46\x8e\x91\x15\x78\x88\xba\x68",
3227 .rlen = 24,
3228 }, { /* FIPS Pub 81 */
3229 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3230 .klen = 8,
3231 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
3232 .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
3233 .ilen = 8,
3234 .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3235 .rlen = 8,
3236 }, {
3237 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3238 .klen = 8,
3239 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3240 .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
3241 .ilen = 8,
3242 .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3243 .rlen = 8,
3244 }, {
3245 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3246 .klen = 8,
3247 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3248 .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
3249 .ilen = 8,
3250 .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
3251 .rlen = 8,
3252 }, { /* Copy of openssl vector for chunk testing */
3253 /* From OpenSSL */
3254 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3255 .klen = 8,
3256 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3257 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
3258 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
3259 "\x68\x65\x20\x74\x69\x6d\x65\x20",
3260 .ilen = 24,
3261 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
3262 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
3263 "\x46\x8e\x91\x15\x78\x88\xba\x68",
3264 .rlen = 24,
3265 .np = 2,
3266 .tap = { 13, 11 }
3267 }, { /* Generated with Crypto++ */
3268 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3269 .klen = 8,
3270 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3271 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3272 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3273 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3274 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3275 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3276 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3277 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3278 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3279 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3280 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3281 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3282 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3283 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3284 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3285 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3286 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3287 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3288 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3289 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3290 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3291 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3292 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3293 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3294 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3295 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3296 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3297 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3298 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3299 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3300 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3301 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3302 .ilen = 248,
3303 .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
3304 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
3305 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
3306 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
3307 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
3308 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
3309 "\x81\x72\x74\xDE\x30\x19\x69\x49"
3310 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
3311 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
3312 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
3313 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
3314 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
3315 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
3316 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
3317 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
3318 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
3319 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
3320 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
3321 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
3322 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
3323 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
3324 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
3325 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
3326 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
3327 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
3328 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
3329 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
3330 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
3331 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
3332 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
3333 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
3334 .rlen = 248,
3335 .also_non_np = 1,
3336 .np = 2,
3337 .tap = { 248 - 8, 8 },
3341 static struct cipher_testvec des_cbc_dec_tv_template[] = {
3342 { /* FIPS Pub 81 */
3343 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3344 .klen = 8,
3345 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
3346 .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3347 .ilen = 8,
3348 .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
3349 .rlen = 8,
3350 }, {
3351 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3352 .klen = 8,
3353 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
3354 .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3355 .ilen = 8,
3356 .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
3357 .rlen = 8,
3358 }, {
3359 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3360 .klen = 8,
3361 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3362 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
3363 .ilen = 8,
3364 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
3365 .rlen = 8,
3366 }, { /* Copy of above, for chunk testing */
3367 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
3368 .klen = 8,
3369 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
3370 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
3371 .ilen = 8,
3372 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
3373 .rlen = 8,
3374 .np = 2,
3375 .tap = { 4, 4 }
3376 }, { /* Generated with Crypto++ */
3377 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3378 .klen = 8,
3379 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3380 .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
3381 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
3382 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
3383 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
3384 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
3385 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
3386 "\x81\x72\x74\xDE\x30\x19\x69\x49"
3387 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
3388 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
3389 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
3390 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
3391 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
3392 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
3393 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
3394 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
3395 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
3396 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
3397 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
3398 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
3399 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
3400 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
3401 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
3402 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
3403 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
3404 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
3405 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
3406 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
3407 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
3408 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
3409 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
3410 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
3411 .ilen = 248,
3412 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3413 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3414 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3415 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3416 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3417 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3418 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3419 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3420 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3421 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3422 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3423 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3424 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3425 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3426 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3427 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3428 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3429 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3430 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3431 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3432 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3433 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3434 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3435 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3436 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3437 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3438 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3439 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3440 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3441 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3442 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3443 .rlen = 248,
3444 .also_non_np = 1,
3445 .np = 2,
3446 .tap = { 248 - 8, 8 },
3450 static struct cipher_testvec des_ctr_enc_tv_template[] = {
3451 { /* Generated with Crypto++ */
3452 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3453 .klen = 8,
3454 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
3455 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3456 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3457 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3458 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3459 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3460 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3461 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3462 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3463 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3464 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3465 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3466 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3467 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3468 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3469 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3470 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3471 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3472 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3473 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3474 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3475 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3476 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3477 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3478 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3479 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3480 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3481 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3482 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3483 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3484 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3485 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3486 .ilen = 248,
3487 .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
3488 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
3489 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
3490 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
3491 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
3492 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
3493 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
3494 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
3495 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
3496 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
3497 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
3498 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
3499 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
3500 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
3501 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
3502 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
3503 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
3504 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
3505 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
3506 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
3507 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
3508 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
3509 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
3510 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
3511 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
3512 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
3513 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
3514 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
3515 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
3516 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
3517 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
3518 .rlen = 248,
3519 .also_non_np = 1,
3520 .np = 2,
3521 .tap = { 248 - 8, 8 },
3522 }, { /* Generated with Crypto++ */
3523 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3524 .klen = 8,
3525 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3526 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3527 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3528 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3529 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3530 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3531 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3532 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3533 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3534 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3535 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3536 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3537 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3538 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3539 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3540 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3541 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3542 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3543 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3544 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3545 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3546 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3547 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3548 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3549 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3550 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3551 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3552 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3553 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3554 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3555 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3556 "\xC6\x2F\xBB\x24\x8D\x19\x82",
3557 .ilen = 247,
3558 .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
3559 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
3560 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
3561 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
3562 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
3563 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
3564 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
3565 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
3566 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
3567 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
3568 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
3569 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
3570 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
3571 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
3572 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
3573 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
3574 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
3575 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
3576 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
3577 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
3578 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
3579 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
3580 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
3581 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
3582 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
3583 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
3584 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
3585 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
3586 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
3587 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
3588 "\x91\x45\x05\x3E\x58\xBF\x32",
3589 .rlen = 247,
3590 .also_non_np = 1,
3591 .np = 2,
3592 .tap = { 247 - 8, 8 },
3596 static struct cipher_testvec des_ctr_dec_tv_template[] = {
3597 { /* Generated with Crypto++ */
3598 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3599 .klen = 8,
3600 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
3601 .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
3602 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
3603 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
3604 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
3605 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
3606 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
3607 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
3608 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
3609 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
3610 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
3611 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
3612 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
3613 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
3614 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
3615 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
3616 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
3617 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
3618 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
3619 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
3620 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
3621 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
3622 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
3623 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
3624 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
3625 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
3626 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
3627 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
3628 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
3629 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
3630 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
3631 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
3632 .ilen = 248,
3633 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3634 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3635 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3636 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3637 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3638 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3639 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3640 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3641 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3642 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3643 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3644 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3645 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3646 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3647 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3648 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3649 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3650 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3651 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3652 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3653 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3654 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3655 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3656 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3657 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3658 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3659 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3660 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3661 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3662 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3663 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
3664 .rlen = 248,
3665 .also_non_np = 1,
3666 .np = 2,
3667 .tap = { 248 - 8, 8 },
3668 }, { /* Generated with Crypto++ */
3669 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
3670 .klen = 8,
3671 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
3672 .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
3673 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
3674 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
3675 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
3676 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
3677 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
3678 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
3679 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
3680 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
3681 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
3682 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
3683 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
3684 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
3685 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
3686 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
3687 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
3688 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
3689 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
3690 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
3691 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
3692 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
3693 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
3694 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
3695 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
3696 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
3697 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
3698 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
3699 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
3700 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
3701 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
3702 "\x91\x45\x05\x3E\x58\xBF\x32",
3703 .ilen = 247,
3704 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
3705 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
3706 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
3707 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
3708 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
3709 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
3710 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
3711 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
3712 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
3713 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
3714 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
3715 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
3716 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
3717 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
3718 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
3719 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
3720 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
3721 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
3722 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
3723 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
3724 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
3725 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
3726 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
3727 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
3728 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
3729 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
3730 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
3731 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
3732 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
3733 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
3734 "\xC6\x2F\xBB\x24\x8D\x19\x82",
3735 .rlen = 247,
3736 .also_non_np = 1,
3737 .np = 2,
3738 .tap = { 247 - 8, 8 },
3742 static struct cipher_testvec des3_ede_enc_tv_template[] = {
3743 { /* These are from openssl */
3744 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
3745 "\x55\x55\x55\x55\x55\x55\x55\x55"
3746 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3747 .klen = 24,
3748 .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
3749 .ilen = 8,
3750 .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
3751 .rlen = 8,
3752 }, {
3753 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
3754 "\x86\x02\x87\x66\x59\x08\x21\x98"
3755 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
3756 .klen = 24,
3757 .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
3758 .ilen = 8,
3759 .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
3760 .rlen = 8,
3761 }, {
3762 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
3763 "\x91\x07\xd0\x15\x89\x19\x01\x01"
3764 "\x19\x07\x92\x10\x98\x1a\x01\x01",
3765 .klen = 24,
3766 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
3767 .ilen = 8,
3768 .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
3769 .rlen = 8,
3770 }, { /* Generated with Crypto++ */
3771 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
3772 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
3773 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
3774 .klen = 24,
3775 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3776 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3777 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3778 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3779 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3780 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3781 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3782 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3783 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3784 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3785 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3786 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3787 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3788 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3789 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3790 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3791 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3792 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3793 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3794 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3795 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3796 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3797 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3798 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3799 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3800 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3801 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3802 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3803 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3804 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3805 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3806 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3807 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3808 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3809 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3810 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3811 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3812 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3813 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3814 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3815 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3816 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3817 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3818 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3819 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3820 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3821 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3822 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3823 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3824 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3825 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3826 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3827 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3828 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3829 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3830 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3831 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3832 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3833 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3834 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3835 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3836 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
3837 .ilen = 496,
3838 .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
3839 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
3840 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
3841 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
3842 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
3843 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
3844 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
3845 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
3846 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
3847 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
3848 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
3849 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
3850 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
3851 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
3852 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
3853 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
3854 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
3855 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
3856 "\x45\x86\x50\x01\x70\x35\x99\x92"
3857 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
3858 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
3859 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
3860 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
3861 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
3862 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
3863 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
3864 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
3865 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
3866 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
3867 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
3868 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
3869 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
3870 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
3871 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
3872 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
3873 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
3874 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
3875 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
3876 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
3877 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
3878 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
3879 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
3880 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
3881 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
3882 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
3883 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
3884 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
3885 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
3886 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
3887 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
3888 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
3889 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
3890 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
3891 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
3892 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
3893 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
3894 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
3895 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
3896 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
3897 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
3898 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
3899 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
3900 .rlen = 496,
3901 .also_non_np = 1,
3902 .np = 2,
3903 .tap = { 496 - 16, 16 },
3907 static struct cipher_testvec des3_ede_dec_tv_template[] = {
3908 { /* These are from openssl */
3909 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
3910 "\x55\x55\x55\x55\x55\x55\x55\x55"
3911 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3912 .klen = 24,
3913 .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
3914 .ilen = 8,
3915 .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
3916 .rlen = 8,
3917 }, {
3918 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
3919 "\x86\x02\x87\x66\x59\x08\x21\x98"
3920 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
3921 .klen = 24,
3922 .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
3923 .ilen = 8,
3924 .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
3925 .rlen = 8,
3926 }, {
3927 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
3928 "\x91\x07\xd0\x15\x89\x19\x01\x01"
3929 "\x19\x07\x92\x10\x98\x1a\x01\x01",
3930 .klen = 24,
3931 .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
3932 .ilen = 8,
3933 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
3934 .rlen = 8,
3935 }, { /* Generated with Crypto++ */
3936 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
3937 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
3938 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
3939 .klen = 24,
3940 .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
3941 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
3942 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
3943 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
3944 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
3945 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
3946 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
3947 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
3948 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
3949 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
3950 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
3951 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
3952 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
3953 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
3954 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
3955 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
3956 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
3957 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
3958 "\x45\x86\x50\x01\x70\x35\x99\x92"
3959 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
3960 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
3961 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
3962 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
3963 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
3964 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
3965 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
3966 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
3967 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
3968 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
3969 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
3970 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
3971 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
3972 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
3973 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
3974 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
3975 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
3976 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
3977 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
3978 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
3979 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
3980 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
3981 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
3982 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
3983 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
3984 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
3985 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
3986 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
3987 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
3988 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
3989 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
3990 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
3991 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
3992 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
3993 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
3994 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
3995 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
3996 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
3997 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
3998 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
3999 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
4000 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
4001 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
4002 .ilen = 496,
4003 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4004 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4005 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4006 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4007 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4008 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4009 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4010 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4011 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4012 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4013 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4014 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4015 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4016 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4017 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4018 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4019 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4020 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4021 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4022 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4023 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4024 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4025 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4026 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4027 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4028 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4029 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4030 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4031 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4032 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4033 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4034 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4035 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4036 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4037 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4038 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4039 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4040 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4041 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4042 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4043 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4044 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4045 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4046 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4047 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4048 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4049 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4050 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4051 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4052 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4053 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4054 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4055 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4056 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4057 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4058 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4059 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4060 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4061 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4062 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4063 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4064 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4065 .rlen = 496,
4066 .also_non_np = 1,
4067 .np = 2,
4068 .tap = { 496 - 16, 16 },
4072 static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
4073 { /* Generated from openssl */
4074 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
4075 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
4076 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
4077 .klen = 24,
4078 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
4079 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
4080 "\x53\x20\x63\x65\x65\x72\x73\x74"
4081 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
4082 "\x20\x79\x65\x53\x72\x63\x74\x65"
4083 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
4084 "\x79\x6e\x53\x20\x63\x65\x65\x72"
4085 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
4086 "\x6e\x61\x20\x79\x65\x53\x72\x63"
4087 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
4088 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
4089 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
4090 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
4091 "\x72\x63\x74\x65\x20\x73\x6f\x54"
4092 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
4093 "\x63\x65\x65\x72\x73\x74\x54\x20"
4094 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
4095 .ilen = 128,
4096 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
4097 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
4098 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
4099 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
4100 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
4101 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
4102 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
4103 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
4104 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
4105 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
4106 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
4107 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
4108 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
4109 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
4110 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
4111 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
4112 .rlen = 128,
4113 }, { /* Generated with Crypto++ */
4114 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4115 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4116 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4117 .klen = 24,
4118 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4119 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4120 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4121 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4122 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4123 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4124 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4125 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4126 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4127 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4128 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4129 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4130 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4131 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4132 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4133 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4134 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4135 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4136 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4137 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4138 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4139 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4140 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4141 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4142 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4143 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4144 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4145 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4146 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4147 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4148 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4149 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4150 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4151 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4152 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4153 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4154 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4155 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4156 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4157 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4158 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4159 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4160 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4161 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4162 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4163 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4164 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4165 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4166 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4167 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4168 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4169 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4170 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4171 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4172 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4173 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4174 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4175 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4176 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4177 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4178 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4179 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4180 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4181 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4182 .ilen = 496,
4183 .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
4184 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
4185 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
4186 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
4187 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
4188 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
4189 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
4190 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
4191 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
4192 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
4193 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
4194 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
4195 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
4196 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
4197 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
4198 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
4199 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
4200 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
4201 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
4202 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
4203 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
4204 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
4205 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
4206 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
4207 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
4208 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
4209 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
4210 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
4211 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
4212 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
4213 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
4214 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
4215 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
4216 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
4217 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
4218 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
4219 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
4220 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
4221 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
4222 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
4223 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
4224 "\x73\x50\x08\x56\x20\x9B\x94\x23"
4225 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
4226 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
4227 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
4228 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
4229 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
4230 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
4231 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
4232 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
4233 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
4234 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
4235 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
4236 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
4237 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
4238 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
4239 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
4240 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
4241 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
4242 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
4243 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
4244 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
4245 .rlen = 496,
4246 .also_non_np = 1,
4247 .np = 2,
4248 .tap = { 496 - 16, 16 },
4252 static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
4253 { /* Generated from openssl */
4254 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
4255 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
4256 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
4257 .klen = 24,
4258 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
4259 .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
4260 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
4261 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
4262 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
4263 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
4264 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
4265 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
4266 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
4267 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
4268 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
4269 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
4270 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
4271 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
4272 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
4273 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
4274 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
4275 .ilen = 128,
4276 .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
4277 "\x53\x20\x63\x65\x65\x72\x73\x74"
4278 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
4279 "\x20\x79\x65\x53\x72\x63\x74\x65"
4280 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
4281 "\x79\x6e\x53\x20\x63\x65\x65\x72"
4282 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
4283 "\x6e\x61\x20\x79\x65\x53\x72\x63"
4284 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
4285 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
4286 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
4287 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
4288 "\x72\x63\x74\x65\x20\x73\x6f\x54"
4289 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
4290 "\x63\x65\x65\x72\x73\x74\x54\x20"
4291 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
4292 .rlen = 128,
4293 }, { /* Generated with Crypto++ */
4294 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4295 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4296 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4297 .klen = 24,
4298 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4299 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4300 .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
4301 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
4302 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
4303 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
4304 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
4305 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
4306 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
4307 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
4308 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
4309 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
4310 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
4311 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
4312 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
4313 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
4314 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
4315 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
4316 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
4317 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
4318 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
4319 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
4320 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
4321 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
4322 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
4323 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
4324 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
4325 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
4326 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
4327 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
4328 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
4329 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
4330 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
4331 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
4332 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
4333 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
4334 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
4335 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
4336 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
4337 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
4338 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
4339 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
4340 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
4341 "\x73\x50\x08\x56\x20\x9B\x94\x23"
4342 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
4343 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
4344 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
4345 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
4346 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
4347 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
4348 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
4349 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
4350 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
4351 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
4352 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
4353 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
4354 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
4355 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
4356 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
4357 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
4358 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
4359 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
4360 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
4361 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
4362 .ilen = 496,
4363 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4364 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4365 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4366 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4367 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4368 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4369 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4370 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4371 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4372 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4373 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4374 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4375 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4376 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4377 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4378 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4379 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4380 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4381 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4382 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4383 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4384 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4385 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4386 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4387 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4388 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4389 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4390 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4391 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4392 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4393 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4394 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4395 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4396 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4397 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4398 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4399 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4400 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4401 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4402 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4403 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4404 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4405 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4406 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4407 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4408 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4409 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4410 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4411 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4412 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4413 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4414 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4415 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4416 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4417 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4418 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4419 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4420 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4421 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4422 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4423 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4424 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4425 .rlen = 496,
4426 .also_non_np = 1,
4427 .np = 2,
4428 .tap = { 496 - 16, 16 },
4432 static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
4433 { /* Generated with Crypto++ */
4434 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4435 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4436 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4437 .klen = 24,
4438 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
4439 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
4440 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4441 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4442 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4443 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4444 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4445 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4446 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4447 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4448 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4449 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4450 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4451 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4452 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4453 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4454 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4455 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4456 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4457 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4458 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4459 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4460 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4461 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4462 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4463 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4464 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4465 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4466 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4467 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4468 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4469 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4470 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4471 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4472 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4473 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4474 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4475 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4476 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4477 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4478 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4479 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4480 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4481 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4482 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4483 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4484 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4485 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4486 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4487 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4488 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4489 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4490 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4491 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4492 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4493 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4494 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4495 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4496 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4497 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4498 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4499 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4500 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4501 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4502 .ilen = 496,
4503 .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
4504 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
4505 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
4506 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
4507 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
4508 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
4509 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
4510 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
4511 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
4512 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
4513 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
4514 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
4515 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
4516 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
4517 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
4518 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
4519 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
4520 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
4521 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
4522 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
4523 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
4524 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
4525 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
4526 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
4527 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
4528 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
4529 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
4530 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
4531 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
4532 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
4533 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
4534 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
4535 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
4536 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
4537 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
4538 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
4539 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
4540 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
4541 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
4542 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
4543 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
4544 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
4545 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
4546 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
4547 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
4548 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
4549 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
4550 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
4551 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
4552 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
4553 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
4554 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
4555 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
4556 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
4557 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
4558 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
4559 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
4560 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
4561 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
4562 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
4563 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
4564 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
4565 .rlen = 496,
4566 .also_non_np = 1,
4567 .np = 2,
4568 .tap = { 496 - 16, 16 },
4569 }, { /* Generated with Crypto++ */
4570 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4571 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4572 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4573 .klen = 24,
4574 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4575 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4576 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4577 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4578 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4579 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4580 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4581 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4582 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4583 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4584 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4585 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4586 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4587 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4588 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4589 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4590 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4591 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4592 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4593 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4594 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4595 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4596 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4597 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4598 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4599 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4600 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4601 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4602 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4603 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4604 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4605 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4606 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4607 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4608 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4609 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4610 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4611 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4612 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4613 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4614 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4615 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4616 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4617 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4618 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4619 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4620 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4621 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4622 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4623 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4624 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4625 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4626 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4627 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4628 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4629 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4630 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4631 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4632 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4633 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4634 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4635 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4636 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4637 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
4638 "\x2E\xB1\x18",
4639 .ilen = 499,
4640 .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
4641 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
4642 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
4643 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
4644 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
4645 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
4646 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
4647 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
4648 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
4649 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
4650 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
4651 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
4652 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
4653 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
4654 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
4655 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
4656 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
4657 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
4658 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
4659 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
4660 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
4661 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
4662 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
4663 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
4664 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
4665 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
4666 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
4667 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
4668 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
4669 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
4670 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
4671 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
4672 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
4673 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
4674 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
4675 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
4676 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
4677 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
4678 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
4679 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
4680 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
4681 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
4682 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
4683 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
4684 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
4685 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
4686 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
4687 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
4688 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
4689 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
4690 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
4691 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
4692 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
4693 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
4694 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
4695 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
4696 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
4697 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
4698 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
4699 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
4700 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
4701 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
4702 "\xF2\x79\xD9",
4703 .rlen = 499,
4704 .also_non_np = 1,
4705 .np = 2,
4706 .tap = { 499 - 16, 16 },
4710 static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
4711 { /* Generated with Crypto++ */
4712 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4713 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4714 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4715 .klen = 24,
4716 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
4717 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
4718 .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
4719 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
4720 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
4721 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
4722 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
4723 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
4724 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
4725 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
4726 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
4727 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
4728 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
4729 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
4730 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
4731 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
4732 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
4733 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
4734 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
4735 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
4736 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
4737 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
4738 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
4739 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
4740 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
4741 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
4742 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
4743 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
4744 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
4745 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
4746 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
4747 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
4748 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
4749 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
4750 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
4751 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
4752 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
4753 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
4754 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
4755 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
4756 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
4757 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
4758 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
4759 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
4760 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
4761 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
4762 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
4763 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
4764 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
4765 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
4766 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
4767 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
4768 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
4769 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
4770 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
4771 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
4772 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
4773 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
4774 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
4775 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
4776 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
4777 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
4778 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
4779 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
4780 .ilen = 496,
4781 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4782 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4783 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4784 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4785 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4786 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4787 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4788 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4789 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4790 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4791 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4792 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4793 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4794 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4795 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4796 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4797 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4798 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4799 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4800 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4801 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4802 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4803 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4804 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4805 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4806 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4807 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4808 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4809 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4810 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4811 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4812 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4813 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4814 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4815 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4816 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4817 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4818 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4819 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4820 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4821 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4822 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4823 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4824 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4825 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4826 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4827 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4828 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4829 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4830 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4831 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4832 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4833 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4834 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4835 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4836 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4837 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4838 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4839 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4840 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4841 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4842 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
4843 .rlen = 496,
4844 .also_non_np = 1,
4845 .np = 2,
4846 .tap = { 496 - 16, 16 },
4847 }, { /* Generated with Crypto++ */
4848 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
4849 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
4850 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
4851 .klen = 24,
4852 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
4853 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
4854 .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
4855 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
4856 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
4857 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
4858 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
4859 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
4860 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
4861 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
4862 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
4863 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
4864 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
4865 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
4866 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
4867 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
4868 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
4869 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
4870 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
4871 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
4872 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
4873 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
4874 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
4875 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
4876 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
4877 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
4878 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
4879 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
4880 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
4881 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
4882 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
4883 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
4884 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
4885 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
4886 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
4887 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
4888 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
4889 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
4890 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
4891 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
4892 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
4893 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
4894 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
4895 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
4896 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
4897 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
4898 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
4899 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
4900 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
4901 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
4902 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
4903 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
4904 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
4905 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
4906 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
4907 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
4908 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
4909 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
4910 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
4911 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
4912 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
4913 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
4914 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
4915 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
4916 "\xF2\x79\xD9",
4917 .ilen = 499,
4918 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4919 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4920 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4921 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4922 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4923 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4924 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4925 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4926 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4927 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4928 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4929 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4930 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4931 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4932 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4933 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4934 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4935 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4936 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4937 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4938 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4939 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4940 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4941 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4942 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4943 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4944 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4945 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4946 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4947 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4948 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4949 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4950 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4951 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4952 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4953 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4954 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4955 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4956 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4957 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4958 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4959 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4960 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4961 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4962 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4963 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4964 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4965 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4966 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4967 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4968 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4969 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4970 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4971 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4972 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4973 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4974 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4975 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4976 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4977 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4978 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4979 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
4980 "\x2E\xB1\x18",
4981 .rlen = 499,
4982 .also_non_np = 1,
4983 .np = 2,
4984 .tap = { 499 - 16, 16 },
4989 * Blowfish test vectors.
4991 #define BF_ENC_TEST_VECTORS 7
4992 #define BF_DEC_TEST_VECTORS 7
4993 #define BF_CBC_ENC_TEST_VECTORS 2
4994 #define BF_CBC_DEC_TEST_VECTORS 2
4995 #define BF_CTR_ENC_TEST_VECTORS 2
4996 #define BF_CTR_DEC_TEST_VECTORS 2
4998 static struct cipher_testvec bf_enc_tv_template[] = {
4999 { /* DES test vectors from OpenSSL */
5000 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
5001 .klen = 8,
5002 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
5003 .ilen = 8,
5004 .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
5005 .rlen = 8,
5006 }, {
5007 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
5008 .klen = 8,
5009 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5010 .ilen = 8,
5011 .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
5012 .rlen = 8,
5013 }, {
5014 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5015 .klen = 8,
5016 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5017 .ilen = 8,
5018 .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
5019 .rlen = 8,
5020 }, { /* Vary the keylength... */
5021 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5022 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
5023 .klen = 16,
5024 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5025 .ilen = 8,
5026 .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
5027 .rlen = 8,
5028 }, {
5029 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5030 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5031 "\x00\x11\x22\x33\x44",
5032 .klen = 21,
5033 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5034 .ilen = 8,
5035 .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
5036 .rlen = 8,
5037 }, { /* Generated with bf488 */
5038 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5039 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5040 "\x00\x11\x22\x33\x44\x55\x66\x77"
5041 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
5042 "\x58\x40\x23\x64\x1a\xba\x61\x76"
5043 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
5044 "\xff\xff\xff\xff\xff\xff\xff\xff",
5045 .klen = 56,
5046 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5047 .ilen = 8,
5048 .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
5049 .rlen = 8,
5050 }, { /* Generated with Crypto++ */
5051 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5052 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5053 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5054 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5055 .klen = 32,
5056 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5057 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5058 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5059 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5060 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5061 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5062 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5063 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5064 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5065 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5066 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5067 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5068 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5069 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5070 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5071 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5072 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5073 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5074 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5075 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5076 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5077 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5078 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5079 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5080 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5081 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5082 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5083 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5084 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5085 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5086 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5087 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5088 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5089 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5090 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5091 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5092 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5093 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5094 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5095 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5096 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5097 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5098 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5099 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5100 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5101 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5102 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5103 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5104 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5105 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5106 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5107 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5108 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5109 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5110 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5111 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5112 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5113 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5114 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5115 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5116 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5117 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5118 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5119 .ilen = 504,
5120 .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
5121 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
5122 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
5123 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
5124 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
5125 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
5126 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
5127 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
5128 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
5129 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
5130 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
5131 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
5132 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
5133 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
5134 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
5135 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
5136 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
5137 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
5138 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
5139 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
5140 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
5141 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
5142 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
5143 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
5144 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
5145 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
5146 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
5147 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
5148 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
5149 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
5150 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
5151 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
5152 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
5153 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
5154 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
5155 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
5156 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
5157 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
5158 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
5159 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
5160 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
5161 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
5162 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
5163 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
5164 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
5165 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
5166 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
5167 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
5168 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
5169 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
5170 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
5171 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
5172 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
5173 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
5174 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
5175 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
5176 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
5177 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
5178 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
5179 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
5180 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
5181 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
5182 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
5183 .rlen = 504,
5184 .also_non_np = 1,
5185 .np = 2,
5186 .tap = { 504 - 8, 8 },
5190 static struct cipher_testvec bf_dec_tv_template[] = {
5191 { /* DES test vectors from OpenSSL */
5192 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
5193 .klen = 8,
5194 .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
5195 .ilen = 8,
5196 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
5197 .rlen = 8,
5198 }, {
5199 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
5200 .klen = 8,
5201 .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
5202 .ilen = 8,
5203 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5204 .rlen = 8,
5205 }, {
5206 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5207 .klen = 8,
5208 .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
5209 .ilen = 8,
5210 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5211 .rlen = 8,
5212 }, { /* Vary the keylength... */
5213 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5214 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
5215 .klen = 16,
5216 .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
5217 .ilen = 8,
5218 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5219 .rlen = 8,
5220 }, {
5221 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5222 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5223 "\x00\x11\x22\x33\x44",
5224 .klen = 21,
5225 .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
5226 .ilen = 8,
5227 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5228 .rlen = 8,
5229 }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
5230 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
5231 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
5232 "\x00\x11\x22\x33\x44\x55\x66\x77"
5233 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
5234 "\x58\x40\x23\x64\x1a\xba\x61\x76"
5235 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
5236 "\xff\xff\xff\xff\xff\xff\xff\xff",
5237 .klen = 56,
5238 .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
5239 .ilen = 8,
5240 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5241 .rlen = 8,
5242 }, { /* Generated with Crypto++ */
5243 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5244 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5245 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5246 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5247 .klen = 32,
5248 .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
5249 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
5250 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
5251 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
5252 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
5253 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
5254 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
5255 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
5256 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
5257 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
5258 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
5259 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
5260 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
5261 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
5262 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
5263 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
5264 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
5265 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
5266 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
5267 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
5268 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
5269 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
5270 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
5271 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
5272 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
5273 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
5274 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
5275 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
5276 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
5277 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
5278 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
5279 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
5280 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
5281 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
5282 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
5283 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
5284 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
5285 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
5286 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
5287 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
5288 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
5289 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
5290 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
5291 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
5292 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
5293 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
5294 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
5295 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
5296 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
5297 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
5298 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
5299 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
5300 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
5301 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
5302 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
5303 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
5304 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
5305 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
5306 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
5307 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
5308 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
5309 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
5310 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
5311 .ilen = 504,
5312 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5313 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5314 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5315 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5316 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5317 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5318 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5319 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5320 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5321 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5322 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5323 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5324 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5325 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5326 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5327 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5328 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5329 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5330 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5331 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5332 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5333 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5334 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5335 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5336 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5337 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5338 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5339 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5340 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5341 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5342 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5343 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5344 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5345 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5346 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5347 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5348 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5349 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5350 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5351 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5352 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5353 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5354 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5355 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5356 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5357 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5358 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5359 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5360 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5361 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5362 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5363 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5364 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5365 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5366 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5367 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5368 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5369 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5370 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5371 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5372 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5373 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5374 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5375 .rlen = 504,
5376 .also_non_np = 1,
5377 .np = 2,
5378 .tap = { 504 - 8, 8 },
5382 static struct cipher_testvec bf_cbc_enc_tv_template[] = {
5383 { /* From OpenSSL */
5384 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5385 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5386 .klen = 16,
5387 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5388 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
5389 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5390 "\x68\x65\x20\x74\x69\x6d\x65\x20"
5391 "\x66\x6f\x72\x20\x00\x00\x00\x00",
5392 .ilen = 32,
5393 .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
5394 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
5395 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
5396 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
5397 .rlen = 32,
5398 }, { /* Generated with Crypto++ */
5399 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5400 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5401 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5402 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5403 .klen = 32,
5404 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5405 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5406 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5407 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5408 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5409 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5410 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5411 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5412 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5413 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5414 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5415 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5416 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5417 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5418 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5419 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5420 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5421 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5422 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5423 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5424 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5425 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5426 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5427 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5428 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5429 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5430 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5431 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5432 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5433 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5434 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5435 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5436 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5437 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5438 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5439 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5440 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5441 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5442 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5443 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5444 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5445 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5446 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5447 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5448 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5449 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5450 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5451 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5452 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5453 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5454 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5455 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5456 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5457 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5458 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5459 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5460 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5461 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5462 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5463 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5464 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5465 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5466 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5467 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5468 .ilen = 504,
5469 .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
5470 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
5471 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
5472 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
5473 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
5474 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
5475 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
5476 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
5477 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
5478 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
5479 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
5480 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
5481 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
5482 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
5483 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
5484 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
5485 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
5486 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
5487 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
5488 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
5489 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
5490 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
5491 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
5492 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
5493 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
5494 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
5495 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
5496 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
5497 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
5498 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
5499 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
5500 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
5501 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
5502 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
5503 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
5504 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
5505 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
5506 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
5507 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
5508 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
5509 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
5510 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
5511 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
5512 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
5513 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
5514 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
5515 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
5516 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
5517 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
5518 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
5519 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
5520 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
5521 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
5522 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
5523 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
5524 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
5525 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
5526 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
5527 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
5528 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
5529 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
5530 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
5531 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
5532 .rlen = 504,
5533 .also_non_np = 1,
5534 .np = 2,
5535 .tap = { 504 - 8, 8 },
5539 static struct cipher_testvec bf_cbc_dec_tv_template[] = {
5540 { /* From OpenSSL */
5541 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5542 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
5543 .klen = 16,
5544 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5545 .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
5546 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
5547 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
5548 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
5549 .ilen = 32,
5550 .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
5551 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5552 "\x68\x65\x20\x74\x69\x6d\x65\x20"
5553 "\x66\x6f\x72\x20\x00\x00\x00\x00",
5554 .rlen = 32,
5555 }, { /* Generated with Crypto++ */
5556 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5557 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5558 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5559 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5560 .klen = 32,
5561 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5562 .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
5563 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
5564 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
5565 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
5566 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
5567 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
5568 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
5569 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
5570 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
5571 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
5572 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
5573 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
5574 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
5575 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
5576 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
5577 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
5578 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
5579 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
5580 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
5581 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
5582 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
5583 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
5584 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
5585 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
5586 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
5587 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
5588 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
5589 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
5590 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
5591 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
5592 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
5593 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
5594 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
5595 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
5596 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
5597 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
5598 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
5599 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
5600 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
5601 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
5602 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
5603 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
5604 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
5605 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
5606 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
5607 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
5608 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
5609 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
5610 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
5611 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
5612 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
5613 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
5614 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
5615 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
5616 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
5617 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
5618 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
5619 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
5620 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
5621 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
5622 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
5623 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
5624 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
5625 .ilen = 504,
5626 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5627 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5628 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5629 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5630 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5631 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5632 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5633 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5634 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5635 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5636 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5637 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5638 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5639 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5640 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5641 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5642 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5643 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5644 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5645 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5646 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5647 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5648 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5649 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5650 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5651 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5652 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5653 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5654 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5655 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5656 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5657 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5658 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5659 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5660 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5661 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5662 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5663 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5664 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5665 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5666 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5667 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5668 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5669 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5670 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5671 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5672 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5673 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5674 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5675 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5676 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5677 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5678 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5679 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5680 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5681 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5682 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5683 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5684 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5685 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5686 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5687 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5688 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5689 .rlen = 504,
5690 .also_non_np = 1,
5691 .np = 2,
5692 .tap = { 504 - 8, 8 },
5696 static struct cipher_testvec bf_ctr_enc_tv_template[] = {
5697 { /* Generated with Crypto++ */
5698 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5699 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5700 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5701 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5702 .klen = 32,
5703 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5704 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5705 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5706 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5707 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5708 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5709 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5710 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5711 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5712 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5713 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5714 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5715 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5716 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5717 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5718 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5719 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5720 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5721 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5722 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5723 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5724 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5725 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5726 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5727 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5728 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5729 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5730 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5731 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5732 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5733 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5734 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5735 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5736 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5737 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5738 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5739 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5740 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5741 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5742 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5743 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5744 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5745 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5746 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5747 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5748 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5749 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5750 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5751 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5752 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5753 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5754 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5755 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5756 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5757 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5758 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5759 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5760 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5761 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5762 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5763 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5764 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5765 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5766 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5767 .ilen = 504,
5768 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
5769 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
5770 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
5771 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
5772 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
5773 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
5774 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
5775 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
5776 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
5777 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
5778 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
5779 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
5780 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
5781 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
5782 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
5783 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
5784 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
5785 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
5786 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
5787 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
5788 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
5789 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
5790 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
5791 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
5792 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
5793 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
5794 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
5795 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
5796 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
5797 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
5798 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
5799 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
5800 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
5801 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
5802 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
5803 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
5804 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
5805 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
5806 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
5807 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
5808 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
5809 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
5810 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
5811 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
5812 "\x82\x63\x11\xB3\x54\x49\x00\x08"
5813 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
5814 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
5815 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
5816 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
5817 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
5818 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
5819 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
5820 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
5821 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
5822 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
5823 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
5824 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
5825 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
5826 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
5827 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
5828 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
5829 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
5830 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
5831 .rlen = 504,
5832 }, { /* Generated with Crypto++ */
5833 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5834 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5835 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5836 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5837 .klen = 32,
5838 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5839 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5840 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5841 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5842 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5843 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5844 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5845 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5846 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5847 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5848 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5849 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5850 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5851 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5852 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5853 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5854 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5855 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5856 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5857 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5858 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5859 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5860 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5861 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5862 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5863 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5864 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5865 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5866 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5867 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5868 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5869 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5870 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5871 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5872 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5873 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5874 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5875 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5876 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5877 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5878 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5879 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5880 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5881 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5882 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5883 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5884 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5885 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5886 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5887 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5888 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5889 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5890 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5891 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5892 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5893 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5894 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5895 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5896 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5897 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5898 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5899 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5900 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5901 "\x2B\xC2\x59\xF0\x64\xFB\x92",
5902 .ilen = 503,
5903 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
5904 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
5905 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
5906 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
5907 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
5908 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
5909 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
5910 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
5911 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
5912 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
5913 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
5914 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
5915 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
5916 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
5917 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
5918 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
5919 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
5920 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
5921 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
5922 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
5923 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
5924 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
5925 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
5926 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
5927 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
5928 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
5929 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
5930 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
5931 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
5932 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
5933 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
5934 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
5935 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
5936 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
5937 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
5938 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
5939 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
5940 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
5941 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
5942 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
5943 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
5944 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
5945 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
5946 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
5947 "\x82\x63\x11\xB3\x54\x49\x00\x08"
5948 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
5949 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
5950 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
5951 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
5952 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
5953 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
5954 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
5955 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
5956 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
5957 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
5958 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
5959 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
5960 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
5961 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
5962 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
5963 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
5964 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
5965 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
5966 .rlen = 503,
5967 .also_non_np = 1,
5968 .np = 2,
5969 .tap = { 503 - 8, 8 },
5970 }, { /* Generated with Crypto++ */
5971 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5972 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5973 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5974 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5975 .klen = 32,
5976 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5977 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5978 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5979 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5980 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5981 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5982 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5983 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5984 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5985 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5986 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5987 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5988 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5989 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5990 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5991 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5992 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5993 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5994 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5995 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5996 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5997 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5998 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5999 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6000 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6001 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6002 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6003 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6004 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6005 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6006 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6007 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6008 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6009 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6010 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6011 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6012 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6013 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6014 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6015 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6016 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6017 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6018 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6019 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6020 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6021 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6022 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6023 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6024 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6025 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6026 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6027 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6028 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6029 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6030 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6031 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6032 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6033 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6034 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6035 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6036 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6037 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6038 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6039 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6040 .ilen = 504,
6041 .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
6042 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
6043 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
6044 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
6045 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
6046 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
6047 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
6048 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
6049 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
6050 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
6051 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
6052 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
6053 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
6054 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
6055 "\x0B\x82\x59\x14\x26\x67\x08\x09"
6056 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
6057 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
6058 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
6059 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
6060 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
6061 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
6062 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
6063 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
6064 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
6065 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
6066 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
6067 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
6068 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
6069 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
6070 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
6071 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
6072 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
6073 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
6074 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
6075 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
6076 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
6077 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
6078 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
6079 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
6080 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
6081 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
6082 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
6083 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
6084 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
6085 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
6086 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
6087 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
6088 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
6089 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
6090 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
6091 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
6092 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
6093 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
6094 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
6095 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
6096 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
6097 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
6098 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
6099 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
6100 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
6101 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
6102 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
6103 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
6104 .rlen = 504,
6108 static struct cipher_testvec bf_ctr_dec_tv_template[] = {
6109 { /* Generated with Crypto++ */
6110 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6111 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6112 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6113 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6114 .klen = 32,
6115 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6116 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
6117 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
6118 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
6119 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
6120 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
6121 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
6122 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
6123 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
6124 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
6125 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
6126 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
6127 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
6128 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
6129 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
6130 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
6131 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
6132 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
6133 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
6134 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
6135 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
6136 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
6137 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
6138 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
6139 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
6140 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
6141 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
6142 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
6143 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
6144 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
6145 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
6146 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
6147 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
6148 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
6149 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
6150 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
6151 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
6152 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
6153 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
6154 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
6155 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
6156 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
6157 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
6158 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
6159 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
6160 "\x82\x63\x11\xB3\x54\x49\x00\x08"
6161 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
6162 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
6163 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
6164 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
6165 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
6166 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
6167 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
6168 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
6169 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
6170 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
6171 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
6172 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
6173 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
6174 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
6175 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
6176 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
6177 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
6178 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
6179 .ilen = 504,
6180 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6181 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6182 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6183 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6184 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6185 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6186 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6187 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6188 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6189 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6190 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6191 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6192 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6193 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6194 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6195 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6196 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6197 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6198 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6199 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6200 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6201 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6202 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6203 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6204 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6205 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6206 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6207 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6208 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6209 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6210 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6211 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6212 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6213 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6214 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6215 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6216 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6217 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6218 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6219 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6220 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6221 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6222 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6223 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6224 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6225 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6226 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6227 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6228 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6229 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6230 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6231 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6232 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6233 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6234 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6235 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6236 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6237 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6238 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6239 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6240 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6241 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6242 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6243 .rlen = 504,
6244 }, { /* Generated with Crypto++ */
6245 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6246 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6247 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6248 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6249 .klen = 32,
6250 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6251 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
6252 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
6253 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
6254 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
6255 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
6256 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
6257 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
6258 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
6259 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
6260 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
6261 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
6262 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
6263 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
6264 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
6265 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
6266 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
6267 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
6268 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
6269 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
6270 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
6271 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
6272 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
6273 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
6274 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
6275 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
6276 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
6277 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
6278 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
6279 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
6280 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
6281 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
6282 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
6283 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
6284 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
6285 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
6286 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
6287 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
6288 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
6289 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
6290 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
6291 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
6292 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
6293 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
6294 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
6295 "\x82\x63\x11\xB3\x54\x49\x00\x08"
6296 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
6297 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
6298 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
6299 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
6300 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
6301 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
6302 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
6303 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
6304 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
6305 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
6306 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
6307 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
6308 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
6309 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
6310 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
6311 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
6312 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
6313 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
6314 .ilen = 503,
6315 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6316 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6317 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6318 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6319 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6320 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6321 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6322 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6323 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6324 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6325 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6326 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6327 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6328 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6329 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6330 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6331 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6332 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6333 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6334 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6335 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6336 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6337 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6338 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6339 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6340 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6341 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6342 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6343 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6344 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6345 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6346 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6347 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6348 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6349 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6350 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6351 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6352 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6353 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6354 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6355 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6356 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6357 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6358 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6359 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6360 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6361 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6362 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6363 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6364 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6365 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6366 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6367 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6368 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6369 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6370 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6371 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6372 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6373 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6374 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6375 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6376 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6377 "\x2B\xC2\x59\xF0\x64\xFB\x92",
6378 .rlen = 503,
6379 .also_non_np = 1,
6380 .np = 2,
6381 .tap = { 503 - 8, 8 },
6382 }, { /* Generated with Crypto++ */
6383 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6384 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6385 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6386 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6387 .klen = 32,
6388 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6389 .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
6390 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
6391 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
6392 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
6393 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
6394 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
6395 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
6396 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
6397 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
6398 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
6399 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
6400 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
6401 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
6402 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
6403 "\x0B\x82\x59\x14\x26\x67\x08\x09"
6404 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
6405 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
6406 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
6407 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
6408 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
6409 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
6410 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
6411 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
6412 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
6413 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
6414 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
6415 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
6416 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
6417 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
6418 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
6419 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
6420 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
6421 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
6422 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
6423 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
6424 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
6425 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
6426 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
6427 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
6428 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
6429 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
6430 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
6431 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
6432 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
6433 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
6434 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
6435 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
6436 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
6437 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
6438 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
6439 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
6440 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
6441 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
6442 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
6443 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
6444 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
6445 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
6446 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
6447 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
6448 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
6449 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
6450 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
6451 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
6452 .ilen = 504,
6453 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6454 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6455 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6456 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6457 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6458 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6459 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6460 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6461 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6462 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6463 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6464 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6465 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6466 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6467 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6468 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6469 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6470 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6471 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6472 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6473 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6474 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6475 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6476 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6477 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6478 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6479 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6480 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6481 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6482 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6483 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6484 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6485 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6486 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6487 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6488 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6489 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6490 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6491 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6492 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6493 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6494 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6495 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6496 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6497 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6498 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6499 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6500 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6501 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6502 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6503 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6504 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6505 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6506 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6507 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6508 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6509 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6510 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6511 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6512 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6513 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6514 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6515 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6516 .rlen = 504,
6521 * Twofish test vectors.
6523 #define TF_ENC_TEST_VECTORS 4
6524 #define TF_DEC_TEST_VECTORS 4
6525 #define TF_CBC_ENC_TEST_VECTORS 5
6526 #define TF_CBC_DEC_TEST_VECTORS 5
6527 #define TF_CTR_ENC_TEST_VECTORS 2
6528 #define TF_CTR_DEC_TEST_VECTORS 2
6529 #define TF_LRW_ENC_TEST_VECTORS 8
6530 #define TF_LRW_DEC_TEST_VECTORS 8
6531 #define TF_XTS_ENC_TEST_VECTORS 5
6532 #define TF_XTS_DEC_TEST_VECTORS 5
6534 static struct cipher_testvec tf_enc_tv_template[] = {
6536 .key = zeroed_string,
6537 .klen = 16,
6538 .input = zeroed_string,
6539 .ilen = 16,
6540 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6541 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6542 .rlen = 16,
6543 }, {
6544 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6545 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6546 "\x00\x11\x22\x33\x44\x55\x66\x77",
6547 .klen = 24,
6548 .input = zeroed_string,
6549 .ilen = 16,
6550 .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
6551 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
6552 .rlen = 16,
6553 }, {
6554 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6555 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6556 "\x00\x11\x22\x33\x44\x55\x66\x77"
6557 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
6558 .klen = 32,
6559 .input = zeroed_string,
6560 .ilen = 16,
6561 .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
6562 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
6563 .rlen = 16,
6564 }, { /* Generated with Crypto++ */
6565 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
6566 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
6567 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
6568 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
6569 .klen = 32,
6570 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6571 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6572 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6573 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6574 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6575 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6576 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6577 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6578 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6579 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6580 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6581 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6582 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6583 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6584 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6585 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6586 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6587 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6588 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6589 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6590 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6591 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6592 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6593 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6594 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6595 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6596 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6597 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6598 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6599 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6600 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6601 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6602 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6603 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6604 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6605 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6606 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6607 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6608 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6609 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6610 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6611 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6612 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6613 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6614 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6615 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6616 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6617 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6618 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6619 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6620 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6621 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6622 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6623 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6624 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6625 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6626 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6627 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6628 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6629 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6630 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6631 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6632 .ilen = 496,
6633 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
6634 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
6635 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
6636 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
6637 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
6638 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
6639 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
6640 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
6641 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
6642 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
6643 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
6644 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
6645 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
6646 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
6647 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
6648 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
6649 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
6650 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
6651 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
6652 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
6653 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
6654 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
6655 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
6656 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
6657 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
6658 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
6659 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
6660 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
6661 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
6662 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
6663 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
6664 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
6665 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
6666 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
6667 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
6668 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
6669 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
6670 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
6671 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
6672 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
6673 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
6674 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
6675 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
6676 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
6677 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
6678 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
6679 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
6680 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
6681 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
6682 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
6683 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
6684 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
6685 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
6686 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
6687 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
6688 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
6689 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
6690 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
6691 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
6692 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
6693 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
6694 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
6695 .rlen = 496,
6696 .also_non_np = 1,
6697 .np = 2,
6698 .tap = { 496 - 16, 16 },
6702 static struct cipher_testvec tf_dec_tv_template[] = {
6704 .key = zeroed_string,
6705 .klen = 16,
6706 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6707 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6708 .ilen = 16,
6709 .result = zeroed_string,
6710 .rlen = 16,
6711 }, {
6712 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6713 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6714 "\x00\x11\x22\x33\x44\x55\x66\x77",
6715 .klen = 24,
6716 .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
6717 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
6718 .ilen = 16,
6719 .result = zeroed_string,
6720 .rlen = 16,
6721 }, {
6722 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6723 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
6724 "\x00\x11\x22\x33\x44\x55\x66\x77"
6725 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
6726 .klen = 32,
6727 .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
6728 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
6729 .ilen = 16,
6730 .result = zeroed_string,
6731 .rlen = 16,
6732 }, { /* Generated with Crypto++ */
6733 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
6734 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
6735 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
6736 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
6737 .klen = 32,
6738 .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
6739 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
6740 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
6741 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
6742 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
6743 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
6744 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
6745 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
6746 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
6747 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
6748 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
6749 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
6750 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
6751 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
6752 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
6753 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
6754 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
6755 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
6756 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
6757 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
6758 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
6759 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
6760 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
6761 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
6762 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
6763 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
6764 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
6765 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
6766 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
6767 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
6768 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
6769 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
6770 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
6771 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
6772 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
6773 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
6774 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
6775 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
6776 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
6777 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
6778 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
6779 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
6780 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
6781 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
6782 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
6783 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
6784 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
6785 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
6786 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
6787 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
6788 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
6789 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
6790 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
6791 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
6792 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
6793 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
6794 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
6795 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
6796 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
6797 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
6798 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
6799 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
6800 .ilen = 496,
6801 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6802 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6803 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6804 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6805 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6806 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6807 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6808 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6809 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6810 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6811 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6812 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6813 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6814 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6815 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6816 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6817 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6818 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6819 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6820 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6821 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6822 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6823 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6824 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6825 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6826 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6827 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6828 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6829 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6830 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6831 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6832 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6833 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6834 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6835 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6836 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6837 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6838 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6839 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6840 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6841 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6842 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6843 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6844 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6845 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6846 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6847 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6848 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6849 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6850 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6851 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6852 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6853 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6854 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6855 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6856 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6857 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6858 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6859 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6860 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6861 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6862 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6863 .rlen = 496,
6864 .also_non_np = 1,
6865 .np = 2,
6866 .tap = { 496 - 16, 16 },
6870 static struct cipher_testvec tf_cbc_enc_tv_template[] = {
6871 { /* Generated with Nettle */
6872 .key = zeroed_string,
6873 .klen = 16,
6874 .iv = zeroed_string,
6875 .input = zeroed_string,
6876 .ilen = 16,
6877 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6878 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6879 .rlen = 16,
6880 }, {
6881 .key = zeroed_string,
6882 .klen = 16,
6883 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6884 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6885 .input = zeroed_string,
6886 .ilen = 16,
6887 .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6888 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
6889 .rlen = 16,
6890 }, {
6891 .key = zeroed_string,
6892 .klen = 16,
6893 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6894 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
6895 .input = zeroed_string,
6896 .ilen = 16,
6897 .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6898 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6899 .rlen = 16,
6900 }, {
6901 .key = zeroed_string,
6902 .klen = 16,
6903 .iv = zeroed_string,
6904 .input = zeroed_string,
6905 .ilen = 48,
6906 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6907 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
6908 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6909 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
6910 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6911 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6912 .rlen = 48,
6913 }, { /* Generated with Crypto++ */
6914 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6915 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6916 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6917 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6918 .klen = 32,
6919 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
6920 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
6921 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6922 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6923 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6924 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6925 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6926 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6927 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6928 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6929 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6930 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6931 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6932 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6933 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6934 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6935 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6936 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6937 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6938 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6939 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6940 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6941 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6942 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6943 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6944 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6945 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6946 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6947 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6948 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6949 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6950 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6951 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6952 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6953 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6954 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6955 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6956 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6957 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6958 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6959 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6960 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6961 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6962 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6963 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6964 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6965 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6966 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6967 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6968 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6969 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6970 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6971 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6972 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6973 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6974 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6975 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6976 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6977 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6978 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6979 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6980 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6981 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6982 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6983 .ilen = 496,
6984 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
6985 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
6986 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
6987 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
6988 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
6989 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
6990 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
6991 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
6992 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
6993 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
6994 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
6995 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
6996 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
6997 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
6998 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
6999 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7000 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7001 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7002 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7003 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7004 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7005 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7006 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7007 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7008 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7009 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7010 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7011 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7012 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7013 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7014 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7015 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7016 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7017 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7018 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7019 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7020 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7021 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7022 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7023 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7024 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7025 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7026 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7027 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7028 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7029 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7030 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7031 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7032 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7033 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7034 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7035 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7036 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7037 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7038 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7039 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7040 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7041 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7042 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7043 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7044 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7045 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
7046 .rlen = 496,
7047 .also_non_np = 1,
7048 .np = 2,
7049 .tap = { 496 - 16, 16 },
7053 static struct cipher_testvec tf_cbc_dec_tv_template[] = {
7054 { /* Reverse of the first four above */
7055 .key = zeroed_string,
7056 .klen = 16,
7057 .iv = zeroed_string,
7058 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7059 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7060 .ilen = 16,
7061 .result = zeroed_string,
7062 .rlen = 16,
7063 }, {
7064 .key = zeroed_string,
7065 .klen = 16,
7066 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7067 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7068 .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7069 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7070 .ilen = 16,
7071 .result = zeroed_string,
7072 .rlen = 16,
7073 }, {
7074 .key = zeroed_string,
7075 .klen = 16,
7076 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7077 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7078 .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7079 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7080 .ilen = 16,
7081 .result = zeroed_string,
7082 .rlen = 16,
7083 }, {
7084 .key = zeroed_string,
7085 .klen = 16,
7086 .iv = zeroed_string,
7087 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7088 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
7089 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7090 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
7091 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7092 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7093 .ilen = 48,
7094 .result = zeroed_string,
7095 .rlen = 48,
7096 }, { /* Generated with Crypto++ */
7097 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7098 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7099 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7100 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7101 .klen = 32,
7102 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7103 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7104 .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
7105 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
7106 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
7107 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
7108 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
7109 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
7110 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
7111 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
7112 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
7113 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
7114 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
7115 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
7116 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
7117 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
7118 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
7119 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7120 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7121 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7122 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7123 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7124 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7125 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7126 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7127 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7128 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7129 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7130 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7131 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7132 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7133 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7134 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7135 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7136 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7137 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7138 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7139 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7140 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7141 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7142 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7143 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7144 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7145 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7146 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7147 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7148 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7149 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7150 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7151 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7152 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7153 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7154 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7155 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7156 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7157 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7158 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7159 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7160 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7161 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7162 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7163 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7164 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7165 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
7166 .ilen = 496,
7167 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7168 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7169 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7170 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7171 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7172 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7173 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7174 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7175 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7176 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7177 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7178 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7179 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7180 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7181 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7182 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7183 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7184 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7185 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7186 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7187 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7188 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7189 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7190 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7191 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7192 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7193 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7194 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7195 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7196 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7197 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7198 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7199 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7200 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7201 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7202 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7203 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7204 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7205 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7206 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7207 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7208 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7209 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7210 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7211 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7212 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7213 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7214 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7215 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7216 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7217 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7218 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7219 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7220 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7221 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7222 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7223 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7224 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7225 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7226 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7227 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7228 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7229 .rlen = 496,
7230 .also_non_np = 1,
7231 .np = 2,
7232 .tap = { 496 - 16, 16 },
7236 static struct cipher_testvec tf_ctr_enc_tv_template[] = {
7237 { /* Generated with Crypto++ */
7238 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7239 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7240 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7241 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7242 .klen = 32,
7243 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7244 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7245 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7246 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7247 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7248 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7249 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7250 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7251 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7252 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7253 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7254 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7255 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7256 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7257 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7258 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7259 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7260 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7261 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7262 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7263 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7264 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7265 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7266 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7267 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7268 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7269 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7270 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7271 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7272 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7273 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7274 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7275 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7276 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7277 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7278 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7279 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7280 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7281 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7282 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7283 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7284 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7285 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7286 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7287 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7288 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7289 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7290 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7291 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7292 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7293 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7294 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7295 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7296 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7297 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7298 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7299 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7300 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7301 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7302 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7303 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7304 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7305 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7306 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7307 .ilen = 496,
7308 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7309 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7310 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7311 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7312 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7313 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7314 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7315 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7316 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7317 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7318 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7319 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7320 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7321 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7322 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7323 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7324 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7325 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7326 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7327 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7328 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7329 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7330 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7331 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7332 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7333 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7334 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7335 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7336 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7337 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7338 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7339 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7340 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7341 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7342 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7343 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7344 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7345 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7346 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7347 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7348 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7349 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7350 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7351 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7352 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7353 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7354 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7355 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7356 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7357 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7358 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7359 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7360 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7361 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7362 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7363 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7364 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7365 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7366 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7367 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7368 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7369 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
7370 .rlen = 496,
7371 }, { /* Generated with Crypto++ */
7372 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7373 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7374 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7375 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7376 .klen = 32,
7377 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7378 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7379 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7380 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7381 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7382 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7383 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7384 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7385 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7386 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7387 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7388 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7389 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7390 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7391 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7392 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7393 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7394 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7395 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7396 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7397 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7398 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7399 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7400 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7401 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7402 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7403 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7404 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7405 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7406 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7407 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7408 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7409 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7410 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7411 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7412 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7413 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7414 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7415 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7416 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7417 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7418 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7419 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7420 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7421 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7422 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7423 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7424 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7425 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7426 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7427 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7428 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7429 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7430 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7431 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7432 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7433 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7434 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7435 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7436 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7437 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7438 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7439 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7440 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7441 .ilen = 496,
7442 .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
7443 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
7444 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
7445 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
7446 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
7447 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
7448 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
7449 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
7450 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
7451 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
7452 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
7453 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
7454 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
7455 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
7456 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
7457 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
7458 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
7459 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
7460 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
7461 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
7462 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
7463 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
7464 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
7465 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
7466 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
7467 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
7468 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
7469 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
7470 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
7471 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
7472 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
7473 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
7474 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
7475 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
7476 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
7477 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
7478 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
7479 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
7480 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
7481 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
7482 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
7483 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
7484 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
7485 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
7486 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
7487 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
7488 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
7489 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
7490 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
7491 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
7492 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
7493 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
7494 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
7495 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
7496 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
7497 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
7498 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
7499 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
7500 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
7501 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
7502 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
7503 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
7504 .rlen = 496,
7505 }, { /* Generated with Crypto++ */
7506 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7507 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7508 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7509 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7510 .klen = 32,
7511 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7512 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7513 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7514 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7515 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7516 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7517 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7518 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7519 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7520 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7521 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7522 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7523 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7524 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7525 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7526 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7527 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7528 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7529 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7530 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7531 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7532 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7533 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7534 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7535 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7536 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7537 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7538 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7539 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7540 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7541 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7542 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7543 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7544 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7545 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7546 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7547 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7548 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7549 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7550 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7551 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7552 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7553 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7554 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7555 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7556 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7557 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7558 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7559 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7560 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7561 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7562 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7563 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7564 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7565 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7566 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7567 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7568 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7569 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7570 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7571 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7572 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7573 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7574 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7575 "\x2B\xC2\x59",
7576 .ilen = 499,
7577 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7578 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7579 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7580 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7581 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7582 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7583 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7584 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7585 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7586 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7587 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7588 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7589 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7590 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7591 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7592 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7593 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7594 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7595 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7596 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7597 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7598 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7599 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7600 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7601 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7602 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7603 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7604 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7605 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7606 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7607 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7608 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7609 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7610 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7611 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7612 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7613 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7614 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7615 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7616 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7617 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7618 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7619 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7620 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7621 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7622 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7623 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7624 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7625 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7626 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7627 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7628 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7629 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7630 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7631 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7632 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7633 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7634 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7635 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7636 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7637 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7638 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
7639 "\x6C\x82\x9D",
7640 .rlen = 499,
7641 .also_non_np = 1,
7642 .np = 2,
7643 .tap = { 499 - 16, 16 },
7647 static struct cipher_testvec tf_ctr_dec_tv_template[] = {
7648 { /* Generated with Crypto++ */
7649 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7650 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7651 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7652 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7653 .klen = 32,
7654 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7655 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7656 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7657 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7658 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7659 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7660 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7661 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7662 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7663 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7664 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7665 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7666 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7667 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7668 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7669 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7670 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7671 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7672 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7673 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7674 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7675 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7676 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7677 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7678 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7679 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7680 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7681 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7682 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7683 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7684 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7685 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7686 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7687 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7688 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7689 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7690 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7691 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7692 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7693 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7694 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7695 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7696 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7697 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7698 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7699 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7700 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7701 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7702 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7703 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7704 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7705 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7706 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7707 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7708 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7709 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7710 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7711 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7712 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7713 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7714 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7715 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7716 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7717 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
7718 .ilen = 496,
7719 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7720 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7721 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7722 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7723 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7724 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7725 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7726 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7727 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7728 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7729 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7730 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7731 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7732 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7733 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7734 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7735 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7736 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7737 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7738 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7739 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7740 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7741 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7742 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7743 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7744 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7745 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7746 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7747 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7748 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7749 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7750 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7751 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7752 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7753 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7754 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7755 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7756 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7757 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7758 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7759 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7760 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7761 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7762 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7763 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7764 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7765 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7766 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7767 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7768 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7769 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7770 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7771 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7772 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7773 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7774 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7775 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7776 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7777 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7778 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7779 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7780 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7781 .rlen = 496,
7782 }, { /* Generated with Crypto++ */
7783 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7784 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7785 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7786 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7787 .klen = 32,
7788 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7789 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7790 .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
7791 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
7792 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
7793 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
7794 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
7795 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
7796 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
7797 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
7798 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
7799 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
7800 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
7801 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
7802 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
7803 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
7804 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
7805 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
7806 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
7807 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
7808 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
7809 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
7810 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
7811 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
7812 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
7813 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
7814 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
7815 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
7816 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
7817 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
7818 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
7819 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
7820 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
7821 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
7822 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
7823 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
7824 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
7825 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
7826 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
7827 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
7828 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
7829 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
7830 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
7831 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
7832 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
7833 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
7834 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
7835 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
7836 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
7837 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
7838 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
7839 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
7840 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
7841 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
7842 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
7843 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
7844 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
7845 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
7846 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
7847 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
7848 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
7849 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
7850 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
7851 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
7852 .ilen = 496,
7853 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7854 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7855 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7856 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7857 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7858 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7859 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7860 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7861 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7862 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7863 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7864 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7865 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7866 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7867 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7868 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7869 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7870 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7871 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7872 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7873 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7874 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7875 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7876 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7877 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7878 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7879 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7880 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7881 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7882 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7883 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7884 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7885 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7886 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7887 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7888 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7889 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7890 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7891 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7892 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7893 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7894 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7895 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7896 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7897 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7898 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7899 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7900 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7901 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7902 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7903 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7904 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7905 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7906 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7907 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7908 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7909 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7910 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7911 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7912 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7913 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7914 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7915 .rlen = 496,
7916 }, { /* Generated with Crypto++ */
7917 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7918 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7919 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7920 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7921 .klen = 32,
7922 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7923 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7924 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7925 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7926 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7927 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7928 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7929 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7930 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7931 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7932 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7933 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7934 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7935 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7936 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7937 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7938 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7939 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7940 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7941 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7942 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7943 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7944 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7945 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7946 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7947 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7948 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7949 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7950 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7951 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7952 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7953 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7954 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7955 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7956 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7957 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7958 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7959 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7960 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7961 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7962 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7963 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7964 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7965 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7966 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7967 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7968 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7969 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7970 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7971 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7972 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7973 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7974 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7975 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7976 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7977 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7978 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7979 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7980 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7981 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7982 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7983 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7984 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7985 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
7986 "\x6C\x82\x9D",
7987 .ilen = 499,
7988 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7989 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7990 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7991 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7992 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7993 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7994 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7995 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7996 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7997 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7998 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7999 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8000 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8001 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8002 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8003 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8004 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8005 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8006 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8007 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8008 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8009 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8010 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8011 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8012 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8013 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8014 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8015 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8016 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8017 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8018 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8019 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8020 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8021 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8022 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8023 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8024 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8025 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8026 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8027 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8028 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8029 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8030 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8031 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8032 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8033 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8034 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8035 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8036 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8037 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8038 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8039 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8040 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8041 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8042 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8043 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8044 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8045 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8046 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8047 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8048 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8049 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8050 "\x2B\xC2\x59",
8051 .rlen = 499,
8052 .also_non_np = 1,
8053 .np = 2,
8054 .tap = { 499 - 16, 16 },
8058 static struct cipher_testvec tf_lrw_enc_tv_template[] = {
8059 /* Generated from AES-LRW test vectors */
8061 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8062 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8063 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8064 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8065 .klen = 32,
8066 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8067 "\x00\x00\x00\x00\x00\x00\x00\x01",
8068 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8069 "\x38\x39\x41\x42\x43\x44\x45\x46",
8070 .ilen = 16,
8071 .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
8072 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
8073 .rlen = 16,
8074 }, {
8075 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8076 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8077 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8078 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8079 .klen = 32,
8080 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8081 "\x00\x00\x00\x00\x00\x00\x00\x02",
8082 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8083 "\x38\x39\x41\x42\x43\x44\x45\x46",
8084 .ilen = 16,
8085 .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
8086 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
8087 .rlen = 16,
8088 }, {
8089 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8090 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8091 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8092 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8093 .klen = 32,
8094 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8095 "\x00\x00\x00\x02\x00\x00\x00\x00",
8096 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8097 "\x38\x39\x41\x42\x43\x44\x45\x46",
8098 .ilen = 16,
8099 .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
8100 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
8101 .rlen = 16,
8102 }, {
8103 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8104 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8105 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8106 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8107 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8108 .klen = 40,
8109 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8110 "\x00\x00\x00\x00\x00\x00\x00\x01",
8111 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8112 "\x38\x39\x41\x42\x43\x44\x45\x46",
8113 .ilen = 16,
8114 .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
8115 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
8116 .rlen = 16,
8117 }, {
8118 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8119 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8120 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8121 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8122 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8123 .klen = 40,
8124 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8125 "\x00\x00\x00\x02\x00\x00\x00\x00",
8126 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8127 "\x38\x39\x41\x42\x43\x44\x45\x46",
8128 .ilen = 16,
8129 .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
8130 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
8131 .rlen = 16,
8132 }, {
8133 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8134 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8135 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8136 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8137 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8138 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8139 .klen = 48,
8140 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8141 "\x00\x00\x00\x00\x00\x00\x00\x01",
8142 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8143 "\x38\x39\x41\x42\x43\x44\x45\x46",
8144 .ilen = 16,
8145 .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
8146 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
8147 .rlen = 16,
8148 }, {
8149 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8150 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8151 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8152 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8153 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8154 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8155 .klen = 48,
8156 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8157 "\x00\x00\x00\x02\x00\x00\x00\x00",
8158 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
8159 "\x38\x39\x41\x42\x43\x44\x45\x46",
8160 .ilen = 16,
8161 .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
8162 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
8163 .rlen = 16,
8164 }, {
8165 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8166 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8167 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8168 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8169 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8170 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8171 .klen = 48,
8172 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8173 "\x00\x00\x00\x00\x00\x00\x00\x01",
8174 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
8175 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8176 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8177 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8178 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8179 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8180 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8181 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8182 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8183 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8184 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8185 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8186 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8187 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8188 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8189 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8190 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8191 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8192 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8193 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8194 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8195 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8196 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8197 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8198 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8199 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8200 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8201 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8202 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8203 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8204 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8205 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8206 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8207 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8208 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8209 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8210 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8211 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8212 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8213 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8214 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8215 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8216 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8217 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8218 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8219 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8220 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8221 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8222 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8223 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8224 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8225 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8226 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8227 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8228 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8229 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8230 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8231 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8232 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8233 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8234 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8235 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8236 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8237 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
8238 .ilen = 512,
8239 .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
8240 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8241 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8242 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8243 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8244 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8245 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8246 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8247 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8248 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8249 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8250 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8251 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8252 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8253 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8254 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8255 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8256 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8257 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8258 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8259 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8260 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8261 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8262 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8263 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8264 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8265 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8266 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8267 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8268 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8269 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8270 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8271 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8272 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8273 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8274 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8275 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8276 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8277 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8278 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8279 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8280 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8281 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8282 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8283 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8284 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8285 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8286 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8287 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8288 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8289 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8290 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8291 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8292 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8293 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8294 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8295 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8296 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8297 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8298 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8299 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8300 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8301 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8302 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
8303 .rlen = 512,
8304 .also_non_np = 1,
8305 .np = 2,
8306 .tap = { 512 - 16, 16 },
8310 static struct cipher_testvec tf_lrw_dec_tv_template[] = {
8311 /* Generated from AES-LRW test vectors */
8312 /* same as enc vectors with input and result reversed */
8314 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8315 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8316 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8317 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8318 .klen = 32,
8319 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8320 "\x00\x00\x00\x00\x00\x00\x00\x01",
8321 .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
8322 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
8323 .ilen = 16,
8324 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8325 "\x38\x39\x41\x42\x43\x44\x45\x46",
8326 .rlen = 16,
8327 }, {
8328 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8329 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8330 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8331 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8332 .klen = 32,
8333 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8334 "\x00\x00\x00\x00\x00\x00\x00\x02",
8335 .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
8336 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
8337 .ilen = 16,
8338 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8339 "\x38\x39\x41\x42\x43\x44\x45\x46",
8340 .rlen = 16,
8341 }, {
8342 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8343 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8344 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8345 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8346 .klen = 32,
8347 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8348 "\x00\x00\x00\x02\x00\x00\x00\x00",
8349 .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
8350 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
8351 .ilen = 16,
8352 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8353 "\x38\x39\x41\x42\x43\x44\x45\x46",
8354 .rlen = 16,
8355 }, {
8356 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8357 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8358 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8359 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8360 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8361 .klen = 40,
8362 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8363 "\x00\x00\x00\x00\x00\x00\x00\x01",
8364 .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
8365 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
8366 .ilen = 16,
8367 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8368 "\x38\x39\x41\x42\x43\x44\x45\x46",
8369 .rlen = 16,
8370 }, {
8371 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8372 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8373 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8374 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8375 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8376 .klen = 40,
8377 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8378 "\x00\x00\x00\x02\x00\x00\x00\x00",
8379 .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
8380 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
8381 .ilen = 16,
8382 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8383 "\x38\x39\x41\x42\x43\x44\x45\x46",
8384 .rlen = 16,
8385 }, {
8386 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8387 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8388 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8389 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8390 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8391 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8392 .klen = 48,
8393 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8394 "\x00\x00\x00\x00\x00\x00\x00\x01",
8395 .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
8396 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
8397 .ilen = 16,
8398 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8399 "\x38\x39\x41\x42\x43\x44\x45\x46",
8400 .rlen = 16,
8401 }, {
8402 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8403 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8404 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8405 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8406 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8407 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8408 .klen = 48,
8409 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8410 "\x00\x00\x00\x02\x00\x00\x00\x00",
8411 .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
8412 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
8413 .ilen = 16,
8414 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
8415 "\x38\x39\x41\x42\x43\x44\x45\x46",
8416 .rlen = 16,
8417 }, {
8418 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8419 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8420 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8421 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8422 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8423 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8424 .klen = 48,
8425 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8426 "\x00\x00\x00\x00\x00\x00\x00\x01",
8427 .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
8428 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8429 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8430 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8431 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8432 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8433 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8434 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8435 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8436 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8437 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8438 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8439 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8440 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8441 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8442 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8443 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8444 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8445 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8446 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8447 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8448 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8449 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8450 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8451 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8452 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8453 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8454 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8455 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8456 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8457 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8458 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8459 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8460 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8461 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8462 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8463 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8464 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8465 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8466 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8467 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8468 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8469 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8470 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8471 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8472 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8473 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8474 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8475 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8476 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8477 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8478 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8479 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8480 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8481 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8482 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8483 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8484 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8485 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8486 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8487 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8488 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8489 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8490 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
8491 .ilen = 512,
8492 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
8493 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8494 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8495 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8496 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8497 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8498 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8499 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8500 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8501 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8502 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8503 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8504 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8505 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8506 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8507 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8508 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8509 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8510 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8511 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8512 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8513 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8514 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8515 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8516 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8517 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8518 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8519 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8520 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8521 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8522 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8523 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8524 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8525 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8526 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8527 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8528 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8529 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8530 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8531 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8532 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8533 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8534 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8535 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8536 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8537 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8538 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8539 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8540 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8541 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8542 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8543 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8544 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8545 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8546 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8547 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8548 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8549 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8550 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8551 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8552 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8553 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8554 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8555 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
8556 .rlen = 512,
8557 .also_non_np = 1,
8558 .np = 2,
8559 .tap = { 512 - 16, 16 },
8563 static struct cipher_testvec tf_xts_enc_tv_template[] = {
8564 /* Generated from AES-XTS test vectors */
8566 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
8567 "\x00\x00\x00\x00\x00\x00\x00\x00"
8568 "\x00\x00\x00\x00\x00\x00\x00\x00"
8569 "\x00\x00\x00\x00\x00\x00\x00\x00",
8570 .klen = 32,
8571 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8572 "\x00\x00\x00\x00\x00\x00\x00\x00",
8573 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
8574 "\x00\x00\x00\x00\x00\x00\x00\x00"
8575 "\x00\x00\x00\x00\x00\x00\x00\x00"
8576 "\x00\x00\x00\x00\x00\x00\x00\x00",
8577 .ilen = 32,
8578 .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8579 "\x30\x74\xe4\x44\x52\x77\x97\x43"
8580 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8581 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8582 .rlen = 32,
8583 }, {
8584 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
8585 "\x11\x11\x11\x11\x11\x11\x11\x11"
8586 "\x22\x22\x22\x22\x22\x22\x22\x22"
8587 "\x22\x22\x22\x22\x22\x22\x22\x22",
8588 .klen = 32,
8589 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8590 "\x00\x00\x00\x00\x00\x00\x00\x00",
8591 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
8592 "\x44\x44\x44\x44\x44\x44\x44\x44"
8593 "\x44\x44\x44\x44\x44\x44\x44\x44"
8594 "\x44\x44\x44\x44\x44\x44\x44\x44",
8595 .ilen = 32,
8596 .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8597 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8598 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8599 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8600 .rlen = 32,
8601 }, {
8602 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8603 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8604 "\x22\x22\x22\x22\x22\x22\x22\x22"
8605 "\x22\x22\x22\x22\x22\x22\x22\x22",
8606 .klen = 32,
8607 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8608 "\x00\x00\x00\x00\x00\x00\x00\x00",
8609 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
8610 "\x44\x44\x44\x44\x44\x44\x44\x44"
8611 "\x44\x44\x44\x44\x44\x44\x44\x44"
8612 "\x44\x44\x44\x44\x44\x44\x44\x44",
8613 .ilen = 32,
8614 .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
8615 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8616 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8617 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
8618 .rlen = 32,
8619 }, {
8620 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
8621 "\x23\x53\x60\x28\x74\x71\x35\x26"
8622 "\x31\x41\x59\x26\x53\x58\x97\x93"
8623 "\x23\x84\x62\x64\x33\x83\x27\x95",
8624 .klen = 32,
8625 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8626 "\x00\x00\x00\x00\x00\x00\x00\x00",
8627 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
8628 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8629 "\x10\x11\x12\x13\x14\x15\x16\x17"
8630 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8631 "\x20\x21\x22\x23\x24\x25\x26\x27"
8632 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8633 "\x30\x31\x32\x33\x34\x35\x36\x37"
8634 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8635 "\x40\x41\x42\x43\x44\x45\x46\x47"
8636 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8637 "\x50\x51\x52\x53\x54\x55\x56\x57"
8638 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8639 "\x60\x61\x62\x63\x64\x65\x66\x67"
8640 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8641 "\x70\x71\x72\x73\x74\x75\x76\x77"
8642 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8643 "\x80\x81\x82\x83\x84\x85\x86\x87"
8644 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8645 "\x90\x91\x92\x93\x94\x95\x96\x97"
8646 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8647 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8648 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8649 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8650 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8651 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8652 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8653 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8654 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8655 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8656 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8657 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8658 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8659 "\x00\x01\x02\x03\x04\x05\x06\x07"
8660 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8661 "\x10\x11\x12\x13\x14\x15\x16\x17"
8662 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8663 "\x20\x21\x22\x23\x24\x25\x26\x27"
8664 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8665 "\x30\x31\x32\x33\x34\x35\x36\x37"
8666 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8667 "\x40\x41\x42\x43\x44\x45\x46\x47"
8668 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8669 "\x50\x51\x52\x53\x54\x55\x56\x57"
8670 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8671 "\x60\x61\x62\x63\x64\x65\x66\x67"
8672 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8673 "\x70\x71\x72\x73\x74\x75\x76\x77"
8674 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8675 "\x80\x81\x82\x83\x84\x85\x86\x87"
8676 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8677 "\x90\x91\x92\x93\x94\x95\x96\x97"
8678 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8679 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8680 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8681 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8682 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8683 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8684 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8685 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8686 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8687 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8688 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8689 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8690 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8691 .ilen = 512,
8692 .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
8693 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8694 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8695 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8696 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8697 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8698 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8699 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8700 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8701 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8702 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8703 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8704 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8705 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8706 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8707 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8708 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8709 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8710 "\x39\x80\x39\x09\x97\x65\xf2\x83"
8711 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8712 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8713 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8714 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8715 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8716 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8717 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8718 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8719 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8720 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8721 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
8722 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
8723 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
8724 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
8725 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
8726 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
8727 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
8728 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
8729 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
8730 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
8731 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
8732 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
8733 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
8734 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
8735 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
8736 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
8737 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
8738 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
8739 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
8740 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
8741 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
8742 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
8743 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
8744 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
8745 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
8746 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
8747 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
8748 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
8749 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
8750 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
8751 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
8752 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
8753 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
8754 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
8755 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
8756 .rlen = 512,
8757 }, {
8758 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
8759 "\x23\x53\x60\x28\x74\x71\x35\x26"
8760 "\x62\x49\x77\x57\x24\x70\x93\x69"
8761 "\x99\x59\x57\x49\x66\x96\x76\x27"
8762 "\x31\x41\x59\x26\x53\x58\x97\x93"
8763 "\x23\x84\x62\x64\x33\x83\x27\x95"
8764 "\x02\x88\x41\x97\x16\x93\x99\x37"
8765 "\x51\x05\x82\x09\x74\x94\x45\x92",
8766 .klen = 64,
8767 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
8768 "\x00\x00\x00\x00\x00\x00\x00\x00",
8769 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
8770 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8771 "\x10\x11\x12\x13\x14\x15\x16\x17"
8772 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8773 "\x20\x21\x22\x23\x24\x25\x26\x27"
8774 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8775 "\x30\x31\x32\x33\x34\x35\x36\x37"
8776 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8777 "\x40\x41\x42\x43\x44\x45\x46\x47"
8778 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8779 "\x50\x51\x52\x53\x54\x55\x56\x57"
8780 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8781 "\x60\x61\x62\x63\x64\x65\x66\x67"
8782 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8783 "\x70\x71\x72\x73\x74\x75\x76\x77"
8784 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8785 "\x80\x81\x82\x83\x84\x85\x86\x87"
8786 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8787 "\x90\x91\x92\x93\x94\x95\x96\x97"
8788 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8789 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8790 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8791 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8792 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8793 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8794 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8795 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8796 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8797 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8798 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8799 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8800 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8801 "\x00\x01\x02\x03\x04\x05\x06\x07"
8802 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8803 "\x10\x11\x12\x13\x14\x15\x16\x17"
8804 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8805 "\x20\x21\x22\x23\x24\x25\x26\x27"
8806 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8807 "\x30\x31\x32\x33\x34\x35\x36\x37"
8808 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8809 "\x40\x41\x42\x43\x44\x45\x46\x47"
8810 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8811 "\x50\x51\x52\x53\x54\x55\x56\x57"
8812 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8813 "\x60\x61\x62\x63\x64\x65\x66\x67"
8814 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8815 "\x70\x71\x72\x73\x74\x75\x76\x77"
8816 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8817 "\x80\x81\x82\x83\x84\x85\x86\x87"
8818 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8819 "\x90\x91\x92\x93\x94\x95\x96\x97"
8820 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8821 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8822 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8823 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8824 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8825 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8826 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8827 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8828 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8829 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8830 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8831 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8832 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8833 .ilen = 512,
8834 .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
8835 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
8836 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
8837 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
8838 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
8839 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
8840 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
8841 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
8842 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
8843 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
8844 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
8845 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
8846 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
8847 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
8848 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
8849 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
8850 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
8851 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
8852 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
8853 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
8854 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
8855 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
8856 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
8857 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
8858 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
8859 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
8860 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
8861 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
8862 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
8863 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
8864 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
8865 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
8866 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
8867 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
8868 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
8869 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
8870 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
8871 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
8872 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
8873 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
8874 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
8875 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
8876 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
8877 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
8878 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
8879 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
8880 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
8881 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
8882 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
8883 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
8884 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
8885 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
8886 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
8887 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
8888 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
8889 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
8890 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8891 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8892 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8893 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8894 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8895 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8896 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8897 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
8898 .rlen = 512,
8899 .also_non_np = 1,
8900 .np = 2,
8901 .tap = { 512 - 16, 16 },
8905 static struct cipher_testvec tf_xts_dec_tv_template[] = {
8906 /* Generated from AES-XTS test vectors */
8907 /* same as enc vectors with input and result reversed */
8909 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
8910 "\x00\x00\x00\x00\x00\x00\x00\x00"
8911 "\x00\x00\x00\x00\x00\x00\x00\x00"
8912 "\x00\x00\x00\x00\x00\x00\x00\x00",
8913 .klen = 32,
8914 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8915 "\x00\x00\x00\x00\x00\x00\x00\x00",
8916 .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8917 "\x30\x74\xe4\x44\x52\x77\x97\x43"
8918 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8919 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8920 .ilen = 32,
8921 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
8922 "\x00\x00\x00\x00\x00\x00\x00\x00"
8923 "\x00\x00\x00\x00\x00\x00\x00\x00"
8924 "\x00\x00\x00\x00\x00\x00\x00\x00",
8925 .rlen = 32,
8926 }, {
8927 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
8928 "\x11\x11\x11\x11\x11\x11\x11\x11"
8929 "\x22\x22\x22\x22\x22\x22\x22\x22"
8930 "\x22\x22\x22\x22\x22\x22\x22\x22",
8931 .klen = 32,
8932 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8933 "\x00\x00\x00\x00\x00\x00\x00\x00",
8934 .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8935 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8936 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8937 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8938 .ilen = 32,
8939 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
8940 "\x44\x44\x44\x44\x44\x44\x44\x44"
8941 "\x44\x44\x44\x44\x44\x44\x44\x44"
8942 "\x44\x44\x44\x44\x44\x44\x44\x44",
8943 .rlen = 32,
8944 }, {
8945 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8946 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8947 "\x22\x22\x22\x22\x22\x22\x22\x22"
8948 "\x22\x22\x22\x22\x22\x22\x22\x22",
8949 .klen = 32,
8950 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8951 "\x00\x00\x00\x00\x00\x00\x00\x00",
8952 .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
8953 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8954 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8955 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
8956 .ilen = 32,
8957 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
8958 "\x44\x44\x44\x44\x44\x44\x44\x44"
8959 "\x44\x44\x44\x44\x44\x44\x44\x44"
8960 "\x44\x44\x44\x44\x44\x44\x44\x44",
8961 .rlen = 32,
8962 }, {
8963 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
8964 "\x23\x53\x60\x28\x74\x71\x35\x26"
8965 "\x31\x41\x59\x26\x53\x58\x97\x93"
8966 "\x23\x84\x62\x64\x33\x83\x27\x95",
8967 .klen = 32,
8968 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8969 "\x00\x00\x00\x00\x00\x00\x00\x00",
8970 .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
8971 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8972 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8973 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8974 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8975 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8976 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8977 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8978 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8979 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8980 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8981 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8982 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8983 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8984 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8985 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8986 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8987 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8988 "\x39\x80\x39\x09\x97\x65\xf2\x83"
8989 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8990 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8991 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8992 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8993 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8994 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8995 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8996 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8997 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8998 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8999 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
9000 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
9001 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
9002 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
9003 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
9004 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
9005 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
9006 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
9007 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
9008 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
9009 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
9010 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
9011 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
9012 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
9013 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
9014 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
9015 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
9016 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
9017 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
9018 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
9019 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
9020 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
9021 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
9022 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
9023 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
9024 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
9025 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
9026 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
9027 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
9028 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
9029 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
9030 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
9031 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
9032 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
9033 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
9034 .ilen = 512,
9035 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9036 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9037 "\x10\x11\x12\x13\x14\x15\x16\x17"
9038 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9039 "\x20\x21\x22\x23\x24\x25\x26\x27"
9040 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9041 "\x30\x31\x32\x33\x34\x35\x36\x37"
9042 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9043 "\x40\x41\x42\x43\x44\x45\x46\x47"
9044 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9045 "\x50\x51\x52\x53\x54\x55\x56\x57"
9046 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9047 "\x60\x61\x62\x63\x64\x65\x66\x67"
9048 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9049 "\x70\x71\x72\x73\x74\x75\x76\x77"
9050 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9051 "\x80\x81\x82\x83\x84\x85\x86\x87"
9052 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9053 "\x90\x91\x92\x93\x94\x95\x96\x97"
9054 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9055 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9056 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9057 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9058 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9059 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9060 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9061 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9062 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9063 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9064 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9065 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9066 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9067 "\x00\x01\x02\x03\x04\x05\x06\x07"
9068 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9069 "\x10\x11\x12\x13\x14\x15\x16\x17"
9070 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9071 "\x20\x21\x22\x23\x24\x25\x26\x27"
9072 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9073 "\x30\x31\x32\x33\x34\x35\x36\x37"
9074 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9075 "\x40\x41\x42\x43\x44\x45\x46\x47"
9076 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9077 "\x50\x51\x52\x53\x54\x55\x56\x57"
9078 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9079 "\x60\x61\x62\x63\x64\x65\x66\x67"
9080 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9081 "\x70\x71\x72\x73\x74\x75\x76\x77"
9082 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9083 "\x80\x81\x82\x83\x84\x85\x86\x87"
9084 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9085 "\x90\x91\x92\x93\x94\x95\x96\x97"
9086 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9087 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9088 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9089 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9090 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9091 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9092 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9093 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9094 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9095 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9096 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9097 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9098 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
9099 .rlen = 512,
9100 }, {
9101 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
9102 "\x23\x53\x60\x28\x74\x71\x35\x26"
9103 "\x62\x49\x77\x57\x24\x70\x93\x69"
9104 "\x99\x59\x57\x49\x66\x96\x76\x27"
9105 "\x31\x41\x59\x26\x53\x58\x97\x93"
9106 "\x23\x84\x62\x64\x33\x83\x27\x95"
9107 "\x02\x88\x41\x97\x16\x93\x99\x37"
9108 "\x51\x05\x82\x09\x74\x94\x45\x92",
9109 .klen = 64,
9110 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
9111 "\x00\x00\x00\x00\x00\x00\x00\x00",
9112 .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
9113 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
9114 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
9115 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
9116 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
9117 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
9118 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
9119 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
9120 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
9121 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
9122 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
9123 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
9124 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
9125 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
9126 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
9127 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
9128 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
9129 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
9130 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
9131 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
9132 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
9133 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
9134 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
9135 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
9136 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
9137 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
9138 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
9139 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
9140 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
9141 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
9142 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
9143 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
9144 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
9145 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
9146 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
9147 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
9148 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
9149 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
9150 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
9151 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
9152 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
9153 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
9154 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
9155 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
9156 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
9157 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
9158 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
9159 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
9160 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
9161 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
9162 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
9163 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
9164 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
9165 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
9166 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
9167 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
9168 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
9169 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
9170 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
9171 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
9172 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
9173 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
9174 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
9175 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
9176 .ilen = 512,
9177 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9178 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9179 "\x10\x11\x12\x13\x14\x15\x16\x17"
9180 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9181 "\x20\x21\x22\x23\x24\x25\x26\x27"
9182 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9183 "\x30\x31\x32\x33\x34\x35\x36\x37"
9184 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9185 "\x40\x41\x42\x43\x44\x45\x46\x47"
9186 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9187 "\x50\x51\x52\x53\x54\x55\x56\x57"
9188 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9189 "\x60\x61\x62\x63\x64\x65\x66\x67"
9190 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9191 "\x70\x71\x72\x73\x74\x75\x76\x77"
9192 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9193 "\x80\x81\x82\x83\x84\x85\x86\x87"
9194 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9195 "\x90\x91\x92\x93\x94\x95\x96\x97"
9196 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9197 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9198 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9199 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9200 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9201 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9202 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9203 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9204 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9205 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9206 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9207 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9208 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9209 "\x00\x01\x02\x03\x04\x05\x06\x07"
9210 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9211 "\x10\x11\x12\x13\x14\x15\x16\x17"
9212 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9213 "\x20\x21\x22\x23\x24\x25\x26\x27"
9214 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9215 "\x30\x31\x32\x33\x34\x35\x36\x37"
9216 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9217 "\x40\x41\x42\x43\x44\x45\x46\x47"
9218 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9219 "\x50\x51\x52\x53\x54\x55\x56\x57"
9220 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9221 "\x60\x61\x62\x63\x64\x65\x66\x67"
9222 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9223 "\x70\x71\x72\x73\x74\x75\x76\x77"
9224 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9225 "\x80\x81\x82\x83\x84\x85\x86\x87"
9226 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9227 "\x90\x91\x92\x93\x94\x95\x96\x97"
9228 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9229 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9230 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9231 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9232 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9233 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9234 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9235 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9236 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9237 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9238 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9239 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9240 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
9241 .rlen = 512,
9242 .also_non_np = 1,
9243 .np = 2,
9244 .tap = { 512 - 16, 16 },
9249 * Serpent test vectors. These are backwards because Serpent writes
9250 * octet sequences in right-to-left mode.
9252 #define SERPENT_ENC_TEST_VECTORS 5
9253 #define SERPENT_DEC_TEST_VECTORS 5
9255 #define TNEPRES_ENC_TEST_VECTORS 4
9256 #define TNEPRES_DEC_TEST_VECTORS 4
9258 #define SERPENT_CBC_ENC_TEST_VECTORS 1
9259 #define SERPENT_CBC_DEC_TEST_VECTORS 1
9261 #define SERPENT_CTR_ENC_TEST_VECTORS 2
9262 #define SERPENT_CTR_DEC_TEST_VECTORS 2
9264 #define SERPENT_LRW_ENC_TEST_VECTORS 8
9265 #define SERPENT_LRW_DEC_TEST_VECTORS 8
9267 #define SERPENT_XTS_ENC_TEST_VECTORS 5
9268 #define SERPENT_XTS_DEC_TEST_VECTORS 5
9270 static struct cipher_testvec serpent_enc_tv_template[] = {
9272 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
9273 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9274 .ilen = 16,
9275 .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
9276 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
9277 .rlen = 16,
9278 }, {
9279 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9280 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9281 .klen = 16,
9282 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
9283 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9284 .ilen = 16,
9285 .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
9286 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
9287 .rlen = 16,
9288 }, {
9289 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9290 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9291 "\x10\x11\x12\x13\x14\x15\x16\x17"
9292 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9293 .klen = 32,
9294 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
9295 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9296 .ilen = 16,
9297 .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
9298 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
9299 .rlen = 16,
9300 }, {
9301 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
9302 .klen = 16,
9303 .input = zeroed_string,
9304 .ilen = 16,
9305 .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
9306 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
9307 .rlen = 16,
9308 }, { /* Generated with Crypto++ */
9309 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9310 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9311 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9312 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9313 .klen = 32,
9314 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9315 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9316 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9317 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9318 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9319 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9320 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9321 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9322 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9323 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9324 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9325 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9326 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9327 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9328 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9329 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9330 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9331 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9332 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9333 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9334 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9335 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9336 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9337 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9338 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9339 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9340 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9341 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9342 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9343 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9344 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9345 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9346 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9347 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9348 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9349 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9350 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9351 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9352 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9353 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9354 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9355 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9356 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9357 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9358 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9359 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9360 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9361 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9362 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9363 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9364 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9365 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9366 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9367 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9368 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9369 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9370 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9371 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9372 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9373 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9374 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9375 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9376 .ilen = 496,
9377 .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
9378 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
9379 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
9380 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
9381 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
9382 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
9383 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
9384 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
9385 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
9386 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
9387 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
9388 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
9389 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
9390 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
9391 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
9392 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
9393 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
9394 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
9395 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
9396 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
9397 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
9398 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
9399 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
9400 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
9401 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
9402 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
9403 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
9404 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
9405 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
9406 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
9407 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
9408 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
9409 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
9410 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
9411 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
9412 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
9413 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
9414 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
9415 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
9416 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
9417 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
9418 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
9419 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
9420 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
9421 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
9422 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
9423 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
9424 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
9425 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
9426 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
9427 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
9428 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
9429 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
9430 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
9431 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
9432 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
9433 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
9434 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
9435 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
9436 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
9437 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
9438 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
9439 .rlen = 496,
9440 .also_non_np = 1,
9441 .np = 2,
9442 .tap = { 496 - 16, 16 },
9446 static struct cipher_testvec tnepres_enc_tv_template[] = {
9447 { /* KeySize=128, PT=0, I=1 */
9448 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
9449 "\x00\x00\x00\x00\x00\x00\x00\x00",
9450 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9451 "\x00\x00\x00\x00\x00\x00\x00\x00",
9452 .klen = 16,
9453 .ilen = 16,
9454 .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
9455 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
9456 .rlen = 16,
9457 }, { /* KeySize=192, PT=0, I=1 */
9458 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9459 "\x00\x00\x00\x00\x00\x00\x00\x00"
9460 "\x00\x00\x00\x00\x00\x00\x00\x00",
9461 .klen = 24,
9462 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
9463 "\x00\x00\x00\x00\x00\x00\x00\x00",
9464 .ilen = 16,
9465 .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
9466 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
9467 .rlen = 16,
9468 }, { /* KeySize=256, PT=0, I=1 */
9469 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9470 "\x00\x00\x00\x00\x00\x00\x00\x00"
9471 "\x00\x00\x00\x00\x00\x00\x00\x00"
9472 "\x00\x00\x00\x00\x00\x00\x00\x00",
9473 .klen = 32,
9474 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
9475 "\x00\x00\x00\x00\x00\x00\x00\x00",
9476 .ilen = 16,
9477 .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
9478 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
9479 .rlen = 16,
9480 }, { /* KeySize=256, I=257 */
9481 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
9482 "\x17\x16\x15\x14\x13\x12\x11\x10"
9483 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
9484 "\x07\x06\x05\x04\x03\x02\x01\x00",
9485 .klen = 32,
9486 .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
9487 "\x07\x06\x05\x04\x03\x02\x01\x00",
9488 .ilen = 16,
9489 .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
9490 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
9491 .rlen = 16,
9496 static struct cipher_testvec serpent_dec_tv_template[] = {
9498 .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
9499 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
9500 .ilen = 16,
9501 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9502 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9503 .rlen = 16,
9504 }, {
9505 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9506 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9507 .klen = 16,
9508 .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
9509 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
9510 .ilen = 16,
9511 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9512 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9513 .rlen = 16,
9514 }, {
9515 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9516 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9517 "\x10\x11\x12\x13\x14\x15\x16\x17"
9518 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9519 .klen = 32,
9520 .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
9521 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
9522 .ilen = 16,
9523 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9524 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9525 .rlen = 16,
9526 }, {
9527 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
9528 .klen = 16,
9529 .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
9530 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
9531 .ilen = 16,
9532 .result = zeroed_string,
9533 .rlen = 16,
9534 }, { /* Generated with Crypto++ */
9535 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9536 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9537 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9538 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9539 .klen = 32,
9540 .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
9541 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
9542 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
9543 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
9544 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
9545 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
9546 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
9547 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
9548 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
9549 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
9550 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
9551 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
9552 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
9553 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
9554 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
9555 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
9556 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
9557 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
9558 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
9559 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
9560 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
9561 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
9562 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
9563 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
9564 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
9565 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
9566 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
9567 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
9568 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
9569 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
9570 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
9571 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
9572 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
9573 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
9574 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
9575 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
9576 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
9577 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
9578 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
9579 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
9580 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
9581 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
9582 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
9583 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
9584 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
9585 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
9586 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
9587 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
9588 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
9589 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
9590 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
9591 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
9592 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
9593 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
9594 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
9595 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
9596 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
9597 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
9598 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
9599 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
9600 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
9601 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
9602 .ilen = 496,
9603 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9604 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9605 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9606 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9607 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9608 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9609 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9610 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9611 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9612 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9613 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9614 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9615 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9616 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9617 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9618 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9619 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9620 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9621 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9622 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9623 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9624 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9625 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9626 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9627 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9628 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9629 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9630 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9631 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9632 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9633 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9634 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9635 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9636 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9637 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9638 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9639 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9640 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9641 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9642 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9643 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9644 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9645 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9646 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9647 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9648 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9649 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9650 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9651 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9652 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9653 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9654 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9655 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9656 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9657 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9658 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9659 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9660 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9661 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9662 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9663 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9664 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9665 .rlen = 496,
9666 .also_non_np = 1,
9667 .np = 2,
9668 .tap = { 496 - 16, 16 },
9672 static struct cipher_testvec tnepres_dec_tv_template[] = {
9674 .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
9675 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
9676 .ilen = 16,
9677 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9678 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9679 .rlen = 16,
9680 }, {
9681 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9682 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9683 .klen = 16,
9684 .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
9685 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
9686 .ilen = 16,
9687 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9688 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9689 .rlen = 16,
9690 }, {
9691 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9692 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9693 "\x10\x11\x12\x13\x14\x15\x16\x17"
9694 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9695 .klen = 32,
9696 .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
9697 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
9698 .ilen = 16,
9699 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
9700 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9701 .rlen = 16,
9702 }, { /* KeySize=128, I=121 */
9703 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
9704 .klen = 16,
9705 .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
9706 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
9707 .ilen = 16,
9708 .result = zeroed_string,
9709 .rlen = 16,
9713 static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
9714 { /* Generated with Crypto++ */
9715 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9716 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9717 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9718 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9719 .klen = 32,
9720 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9721 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9722 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9723 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9724 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9725 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9726 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9727 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9728 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9729 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9730 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9731 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9732 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9733 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9734 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9735 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9736 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9737 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9738 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9739 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9740 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9741 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9742 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9743 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9744 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9745 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9746 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9747 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9748 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9749 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9750 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9751 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9752 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9753 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9754 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9755 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9756 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9757 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9758 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9759 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9760 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9761 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9762 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9763 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9764 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9765 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9766 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9767 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9768 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9769 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9770 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9771 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9772 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9773 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9774 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9775 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9776 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9777 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9778 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9779 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9780 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9781 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9782 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9783 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9784 .ilen = 496,
9785 .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
9786 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9787 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9788 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9789 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9790 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9791 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9792 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9793 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9794 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9795 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9796 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9797 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9798 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9799 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9800 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9801 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9802 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9803 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9804 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9805 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9806 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9807 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9808 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9809 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9810 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9811 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9812 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9813 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9814 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9815 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9816 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9817 "\x81\x92\x66\x67\x15\x1E\x39\x98"
9818 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9819 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9820 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9821 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9822 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9823 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9824 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9825 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9826 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9827 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9828 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9829 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9830 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9831 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9832 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9833 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9834 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9835 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9836 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9837 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9838 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9839 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9840 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9841 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9842 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9843 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9844 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9845 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9846 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9847 .rlen = 496,
9848 .also_non_np = 1,
9849 .np = 2,
9850 .tap = { 496 - 16, 16 },
9854 static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
9855 { /* Generated with Crypto++ */
9856 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9857 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9858 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9859 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9860 .klen = 32,
9861 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9862 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9863 .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
9864 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9865 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9866 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9867 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9868 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9869 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9870 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9871 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9872 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9873 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9874 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9875 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9876 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9877 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9878 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9879 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9880 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9881 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9882 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9883 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9884 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9885 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9886 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9887 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9888 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9889 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9890 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9891 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9892 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9893 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9894 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9895 "\x81\x92\x66\x67\x15\x1E\x39\x98"
9896 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9897 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9898 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9899 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9900 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9901 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9902 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9903 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9904 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9905 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9906 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9907 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9908 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9909 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9910 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9911 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9912 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9913 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9914 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9915 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9916 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9917 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9918 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9919 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9920 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9921 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9922 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9923 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9924 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9925 .ilen = 496,
9926 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9927 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9928 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9929 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9930 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9931 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9932 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9933 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9934 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9935 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9936 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9937 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9938 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9939 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9940 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9941 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9942 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9943 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9944 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9945 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9946 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9947 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9948 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9949 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9950 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9951 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9952 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9953 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9954 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9955 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9956 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9957 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9958 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9959 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9960 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9961 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9962 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9963 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9964 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9965 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9966 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9967 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9968 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9969 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9970 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9971 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9972 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9973 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9974 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9975 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9976 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9977 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9978 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9979 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9980 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9981 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9982 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9983 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9984 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9985 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9986 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9987 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9988 .rlen = 496,
9989 .also_non_np = 1,
9990 .np = 2,
9991 .tap = { 496 - 16, 16 },
9995 static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
9996 { /* Generated with Crypto++ */
9997 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9998 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9999 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10000 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10001 .klen = 32,
10002 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10003 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10004 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10005 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10006 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10007 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10008 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10009 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10010 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10011 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10012 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10013 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10014 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10015 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10016 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10017 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10018 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10019 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10020 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10021 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10022 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10023 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10024 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10025 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10026 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10027 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10028 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10029 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10030 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10031 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10032 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10033 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10034 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10035 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10036 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10037 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10038 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10039 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10040 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10041 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10042 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10043 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10044 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10045 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10046 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10047 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10048 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10049 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10050 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10051 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10052 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10053 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10054 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10055 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10056 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10057 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10058 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10059 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10060 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10061 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10062 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10063 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10064 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10065 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10066 .ilen = 496,
10067 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10068 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10069 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10070 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10071 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10072 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10073 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10074 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10075 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10076 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10077 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10078 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10079 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10080 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10081 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10082 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10083 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10084 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10085 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10086 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10087 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10088 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10089 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10090 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10091 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10092 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10093 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10094 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10095 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10096 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10097 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10098 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10099 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10100 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10101 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10102 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10103 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10104 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10105 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10106 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10107 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10108 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10109 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10110 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10111 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10112 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10113 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10114 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10115 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10116 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10117 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10118 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10119 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10120 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10121 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10122 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10123 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10124 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10125 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10126 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10127 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10128 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
10129 .rlen = 496,
10130 }, { /* Generated with Crypto++ */
10131 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10132 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10133 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10134 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10135 .klen = 32,
10136 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10137 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10138 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10139 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10140 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10141 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10142 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10143 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10144 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10145 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10146 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10147 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10148 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10149 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10150 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10151 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10152 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10153 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10154 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10155 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10156 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10157 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10158 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10159 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10160 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10161 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10162 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10163 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10164 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10165 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10166 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10167 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10168 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10169 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10170 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10171 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10172 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10173 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10174 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10175 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10176 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10177 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10178 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10179 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10180 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10181 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10182 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10183 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10184 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10185 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10186 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10187 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10188 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10189 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10190 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10191 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10192 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10193 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10194 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10195 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10196 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10197 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10198 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10199 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
10200 "\x2B\xC2\x59",
10201 .ilen = 499,
10202 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10203 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10204 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10205 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10206 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10207 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10208 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10209 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10210 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10211 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10212 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10213 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10214 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10215 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10216 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10217 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10218 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10219 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10220 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10221 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10222 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10223 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10224 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10225 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10226 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10227 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10228 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10229 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10230 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10231 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10232 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10233 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10234 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10235 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10236 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10237 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10238 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10239 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10240 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10241 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10242 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10243 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10244 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10245 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10246 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10247 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10248 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10249 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10250 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10251 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10252 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10253 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10254 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10255 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10256 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10257 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10258 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10259 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10260 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10261 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10262 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10263 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
10264 "\x38\xE2\xE5",
10265 .rlen = 499,
10266 .also_non_np = 1,
10267 .np = 2,
10268 .tap = { 499 - 16, 16 },
10269 }, { /* Generated with Crypto++ */
10270 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10271 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10272 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10273 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10274 .klen = 32,
10275 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
10276 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
10277 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10278 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10279 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10280 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10281 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10282 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10283 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10284 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10285 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10286 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10287 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10288 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10289 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10290 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10291 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10292 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10293 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10294 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10295 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10296 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10297 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10298 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10299 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10300 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10301 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10302 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10303 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10304 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10305 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10306 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10307 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10308 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10309 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10310 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10311 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10312 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10313 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10314 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10315 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10316 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10317 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10318 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10319 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10320 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10321 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10322 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10323 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10324 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10325 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10326 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10327 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10328 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10329 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10330 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10331 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10332 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10333 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10334 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10335 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10336 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10337 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10338 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10339 .ilen = 496,
10340 .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
10341 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
10342 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
10343 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
10344 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
10345 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
10346 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
10347 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
10348 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
10349 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
10350 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
10351 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
10352 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
10353 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
10354 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
10355 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
10356 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
10357 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
10358 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
10359 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
10360 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
10361 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
10362 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
10363 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
10364 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
10365 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
10366 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
10367 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
10368 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
10369 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
10370 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
10371 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
10372 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
10373 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
10374 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
10375 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
10376 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
10377 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
10378 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
10379 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
10380 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
10381 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
10382 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
10383 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
10384 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
10385 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
10386 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
10387 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
10388 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
10389 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
10390 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
10391 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
10392 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
10393 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
10394 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
10395 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
10396 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
10397 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
10398 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
10399 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
10400 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
10401 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
10402 .rlen = 496,
10406 static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
10407 { /* Generated with Crypto++ */
10408 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10409 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10410 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10411 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10412 .klen = 32,
10413 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10414 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10415 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10416 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10417 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10418 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10419 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10420 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10421 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10422 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10423 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10424 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10425 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10426 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10427 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10428 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10429 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10430 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10431 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10432 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10433 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10434 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10435 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10436 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10437 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10438 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10439 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10440 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10441 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10442 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10443 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10444 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10445 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10446 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10447 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10448 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10449 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10450 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10451 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10452 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10453 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10454 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10455 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10456 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10457 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10458 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10459 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10460 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10461 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10462 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10463 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10464 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10465 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10466 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10467 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10468 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10469 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10470 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10471 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10472 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10473 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10474 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10475 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10476 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
10477 .ilen = 496,
10478 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10479 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10480 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10481 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10482 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10483 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10484 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10485 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10486 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10487 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10488 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10489 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10490 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10491 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10492 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10493 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10494 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10495 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10496 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10497 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10498 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10499 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10500 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10501 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10502 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10503 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10504 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10505 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10506 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10507 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10508 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10509 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10510 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10511 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10512 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10513 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10514 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10515 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10516 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10517 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10518 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10519 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10520 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10521 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10522 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10523 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10524 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10525 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10526 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10527 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10528 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10529 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10530 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10531 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10532 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10533 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10534 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10535 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10536 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10537 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10538 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10539 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10540 .rlen = 496,
10541 }, { /* Generated with Crypto++ */
10542 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10543 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10544 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10545 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10546 .klen = 32,
10547 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10548 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10549 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
10550 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10551 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10552 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10553 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10554 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10555 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10556 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10557 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10558 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10559 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10560 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10561 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10562 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10563 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10564 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10565 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10566 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10567 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10568 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10569 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10570 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10571 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10572 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10573 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10574 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10575 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10576 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10577 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10578 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10579 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10580 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10581 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10582 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10583 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10584 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10585 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10586 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10587 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10588 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10589 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10590 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10591 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10592 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10593 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10594 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10595 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10596 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10597 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10598 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10599 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10600 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10601 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10602 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10603 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10604 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10605 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10606 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10607 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10608 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10609 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10610 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
10611 "\x38\xE2\xE5",
10612 .ilen = 499,
10613 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10614 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10615 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10616 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10617 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10618 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10619 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10620 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10621 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10622 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10623 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10624 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10625 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10626 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10627 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10628 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10629 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10630 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10631 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10632 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10633 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10634 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10635 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10636 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10637 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10638 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10639 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10640 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10641 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10642 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10643 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10644 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10645 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10646 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10647 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10648 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10649 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10650 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10651 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10652 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10653 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10654 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10655 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10656 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10657 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10658 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10659 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10660 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10661 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10662 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10663 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10664 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10665 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10666 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10667 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10668 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10669 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10670 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10671 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10672 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10673 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10674 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
10675 "\x2B\xC2\x59",
10676 .rlen = 499,
10677 .also_non_np = 1,
10678 .np = 2,
10679 .tap = { 499 - 16, 16 },
10680 }, { /* Generated with Crypto++ */
10681 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10682 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10683 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10684 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10685 .klen = 32,
10686 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
10687 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
10688 .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
10689 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
10690 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
10691 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
10692 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
10693 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
10694 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
10695 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
10696 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
10697 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
10698 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
10699 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
10700 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
10701 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
10702 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
10703 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
10704 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
10705 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
10706 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
10707 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
10708 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
10709 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
10710 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
10711 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
10712 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
10713 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
10714 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
10715 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
10716 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
10717 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
10718 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
10719 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
10720 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
10721 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
10722 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
10723 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
10724 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
10725 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
10726 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
10727 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
10728 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
10729 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
10730 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
10731 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
10732 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
10733 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
10734 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
10735 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
10736 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
10737 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
10738 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
10739 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
10740 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
10741 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
10742 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
10743 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
10744 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
10745 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
10746 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
10747 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
10748 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
10749 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
10750 .ilen = 496,
10751 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10752 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10753 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10754 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10755 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10756 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10757 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10758 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10759 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10760 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10761 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10762 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10763 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10764 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10765 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10766 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10767 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10768 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10769 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10770 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10771 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10772 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10773 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10774 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10775 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10776 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10777 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10778 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10779 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10780 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10781 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10782 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10783 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10784 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10785 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10786 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10787 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10788 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10789 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10790 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10791 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10792 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10793 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10794 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10795 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10796 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10797 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10798 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10799 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10800 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10801 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10802 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10803 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10804 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10805 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10806 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10807 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10808 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10809 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10810 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10811 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10812 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10813 .rlen = 496,
10817 static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
10818 /* Generated from AES-LRW test vectors */
10820 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
10821 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
10822 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
10823 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
10824 .klen = 32,
10825 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10826 "\x00\x00\x00\x00\x00\x00\x00\x01",
10827 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10828 "\x38\x39\x41\x42\x43\x44\x45\x46",
10829 .ilen = 16,
10830 .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
10831 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
10832 .rlen = 16,
10833 }, {
10834 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
10835 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
10836 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
10837 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
10838 .klen = 32,
10839 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10840 "\x00\x00\x00\x00\x00\x00\x00\x02",
10841 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10842 "\x38\x39\x41\x42\x43\x44\x45\x46",
10843 .ilen = 16,
10844 .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
10845 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
10846 .rlen = 16,
10847 }, {
10848 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
10849 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
10850 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
10851 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
10852 .klen = 32,
10853 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10854 "\x00\x00\x00\x02\x00\x00\x00\x00",
10855 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10856 "\x38\x39\x41\x42\x43\x44\x45\x46",
10857 .ilen = 16,
10858 .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
10859 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
10860 .rlen = 16,
10861 }, {
10862 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
10863 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
10864 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
10865 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
10866 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
10867 .klen = 40,
10868 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10869 "\x00\x00\x00\x00\x00\x00\x00\x01",
10870 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10871 "\x38\x39\x41\x42\x43\x44\x45\x46",
10872 .ilen = 16,
10873 .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
10874 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
10875 .rlen = 16,
10876 }, {
10877 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
10878 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
10879 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
10880 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
10881 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
10882 .klen = 40,
10883 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10884 "\x00\x00\x00\x02\x00\x00\x00\x00",
10885 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10886 "\x38\x39\x41\x42\x43\x44\x45\x46",
10887 .ilen = 16,
10888 .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
10889 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
10890 .rlen = 16,
10891 }, {
10892 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10893 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10894 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10895 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10896 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10897 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10898 .klen = 48,
10899 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10900 "\x00\x00\x00\x00\x00\x00\x00\x01",
10901 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10902 "\x38\x39\x41\x42\x43\x44\x45\x46",
10903 .ilen = 16,
10904 .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
10905 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
10906 .rlen = 16,
10907 }, {
10908 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10909 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10910 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10911 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10912 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10913 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10914 .klen = 48,
10915 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10916 "\x00\x00\x00\x02\x00\x00\x00\x00",
10917 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
10918 "\x38\x39\x41\x42\x43\x44\x45\x46",
10919 .ilen = 16,
10920 .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
10921 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
10922 .rlen = 16,
10923 }, {
10924 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10925 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10926 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10927 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10928 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10929 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10930 .klen = 48,
10931 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10932 "\x00\x00\x00\x00\x00\x00\x00\x01",
10933 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10934 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10935 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10936 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10937 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10938 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10939 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10940 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10941 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10942 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10943 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10944 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10945 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10946 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10947 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10948 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10949 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10950 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10951 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10952 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10953 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10954 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10955 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10956 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10957 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10958 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10959 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10960 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10961 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10962 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10963 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10964 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10965 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10966 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10967 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10968 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10969 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10970 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10971 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10972 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10973 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10974 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10975 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10976 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10977 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10978 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10979 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10980 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10981 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10982 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10983 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10984 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10985 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10986 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10987 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10988 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10989 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10990 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10991 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10992 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10993 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10994 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10995 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10996 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10997 .ilen = 512,
10998 .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
10999 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
11000 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
11001 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
11002 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
11003 "\xce\xab\xda\x33\x30\x20\x12\xfa"
11004 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
11005 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
11006 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
11007 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
11008 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
11009 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
11010 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
11011 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
11012 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
11013 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
11014 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
11015 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
11016 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
11017 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
11018 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
11019 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
11020 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
11021 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
11022 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
11023 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
11024 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
11025 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
11026 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
11027 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
11028 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
11029 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
11030 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
11031 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
11032 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
11033 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
11034 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
11035 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
11036 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
11037 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
11038 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
11039 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
11040 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
11041 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
11042 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
11043 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
11044 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
11045 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
11046 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
11047 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
11048 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
11049 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
11050 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
11051 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
11052 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
11053 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
11054 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
11055 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
11056 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
11057 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
11058 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
11059 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
11060 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
11061 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
11062 .rlen = 512,
11063 .also_non_np = 1,
11064 .np = 2,
11065 .tap = { 512 - 16, 16 },
11069 static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
11070 /* Generated from AES-LRW test vectors */
11071 /* same as enc vectors with input and result reversed */
11073 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
11074 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
11075 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
11076 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
11077 .klen = 32,
11078 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11079 "\x00\x00\x00\x00\x00\x00\x00\x01",
11080 .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
11081 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
11082 .ilen = 16,
11083 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11084 "\x38\x39\x41\x42\x43\x44\x45\x46",
11085 .rlen = 16,
11086 }, {
11087 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
11088 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
11089 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
11090 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
11091 .klen = 32,
11092 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11093 "\x00\x00\x00\x00\x00\x00\x00\x02",
11094 .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
11095 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
11096 .ilen = 16,
11097 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11098 "\x38\x39\x41\x42\x43\x44\x45\x46",
11099 .rlen = 16,
11100 }, {
11101 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
11102 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
11103 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
11104 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
11105 .klen = 32,
11106 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11107 "\x00\x00\x00\x02\x00\x00\x00\x00",
11108 .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
11109 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
11110 .ilen = 16,
11111 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11112 "\x38\x39\x41\x42\x43\x44\x45\x46",
11113 .rlen = 16,
11114 }, {
11115 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
11116 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
11117 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
11118 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
11119 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
11120 .klen = 40,
11121 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11122 "\x00\x00\x00\x00\x00\x00\x00\x01",
11123 .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
11124 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
11125 .ilen = 16,
11126 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11127 "\x38\x39\x41\x42\x43\x44\x45\x46",
11128 .rlen = 16,
11129 }, {
11130 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
11131 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
11132 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
11133 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
11134 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
11135 .klen = 40,
11136 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11137 "\x00\x00\x00\x02\x00\x00\x00\x00",
11138 .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
11139 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
11140 .ilen = 16,
11141 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11142 "\x38\x39\x41\x42\x43\x44\x45\x46",
11143 .rlen = 16,
11144 }, {
11145 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11146 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11147 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11148 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11149 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11150 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11151 .klen = 48,
11152 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11153 "\x00\x00\x00\x00\x00\x00\x00\x01",
11154 .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
11155 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
11156 .ilen = 16,
11157 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11158 "\x38\x39\x41\x42\x43\x44\x45\x46",
11159 .rlen = 16,
11160 }, {
11161 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
11162 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
11163 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
11164 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
11165 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
11166 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
11167 .klen = 48,
11168 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11169 "\x00\x00\x00\x02\x00\x00\x00\x00",
11170 .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
11171 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
11172 .ilen = 16,
11173 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
11174 "\x38\x39\x41\x42\x43\x44\x45\x46",
11175 .rlen = 16,
11176 }, {
11177 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11178 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11179 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11180 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11181 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11182 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11183 .klen = 48,
11184 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11185 "\x00\x00\x00\x00\x00\x00\x00\x01",
11186 .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
11187 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
11188 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
11189 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
11190 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
11191 "\xce\xab\xda\x33\x30\x20\x12\xfa"
11192 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
11193 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
11194 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
11195 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
11196 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
11197 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
11198 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
11199 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
11200 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
11201 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
11202 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
11203 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
11204 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
11205 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
11206 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
11207 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
11208 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
11209 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
11210 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
11211 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
11212 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
11213 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
11214 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
11215 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
11216 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
11217 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
11218 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
11219 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
11220 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
11221 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
11222 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
11223 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
11224 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
11225 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
11226 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
11227 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
11228 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
11229 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
11230 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
11231 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
11232 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
11233 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
11234 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
11235 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
11236 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
11237 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
11238 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
11239 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
11240 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
11241 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
11242 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
11243 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
11244 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
11245 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
11246 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
11247 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
11248 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
11249 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
11250 .ilen = 512,
11251 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
11252 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
11253 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
11254 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
11255 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
11256 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
11257 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
11258 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
11259 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
11260 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
11261 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
11262 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
11263 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
11264 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
11265 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
11266 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
11267 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
11268 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
11269 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
11270 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
11271 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
11272 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
11273 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
11274 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
11275 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
11276 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
11277 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
11278 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
11279 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
11280 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
11281 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
11282 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
11283 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
11284 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
11285 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
11286 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
11287 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
11288 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
11289 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
11290 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
11291 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
11292 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
11293 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
11294 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
11295 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
11296 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
11297 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
11298 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
11299 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
11300 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
11301 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
11302 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
11303 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
11304 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
11305 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
11306 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
11307 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
11308 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
11309 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
11310 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
11311 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
11312 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
11313 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
11314 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
11315 .rlen = 512,
11316 .also_non_np = 1,
11317 .np = 2,
11318 .tap = { 512 - 16, 16 },
11322 static struct cipher_testvec serpent_xts_enc_tv_template[] = {
11323 /* Generated from AES-XTS test vectors */
11325 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
11326 "\x00\x00\x00\x00\x00\x00\x00\x00"
11327 "\x00\x00\x00\x00\x00\x00\x00\x00"
11328 "\x00\x00\x00\x00\x00\x00\x00\x00",
11329 .klen = 32,
11330 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11331 "\x00\x00\x00\x00\x00\x00\x00\x00",
11332 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11333 "\x00\x00\x00\x00\x00\x00\x00\x00"
11334 "\x00\x00\x00\x00\x00\x00\x00\x00"
11335 "\x00\x00\x00\x00\x00\x00\x00\x00",
11336 .ilen = 32,
11337 .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
11338 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
11339 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
11340 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
11341 .rlen = 32,
11342 }, {
11343 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
11344 "\x11\x11\x11\x11\x11\x11\x11\x11"
11345 "\x22\x22\x22\x22\x22\x22\x22\x22"
11346 "\x22\x22\x22\x22\x22\x22\x22\x22",
11347 .klen = 32,
11348 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11349 "\x00\x00\x00\x00\x00\x00\x00\x00",
11350 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
11351 "\x44\x44\x44\x44\x44\x44\x44\x44"
11352 "\x44\x44\x44\x44\x44\x44\x44\x44"
11353 "\x44\x44\x44\x44\x44\x44\x44\x44",
11354 .ilen = 32,
11355 .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
11356 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
11357 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
11358 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
11359 .rlen = 32,
11360 }, {
11361 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
11362 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
11363 "\x22\x22\x22\x22\x22\x22\x22\x22"
11364 "\x22\x22\x22\x22\x22\x22\x22\x22",
11365 .klen = 32,
11366 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11367 "\x00\x00\x00\x00\x00\x00\x00\x00",
11368 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
11369 "\x44\x44\x44\x44\x44\x44\x44\x44"
11370 "\x44\x44\x44\x44\x44\x44\x44\x44"
11371 "\x44\x44\x44\x44\x44\x44\x44\x44",
11372 .ilen = 32,
11373 .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
11374 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
11375 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
11376 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
11377 .rlen = 32,
11378 }, {
11379 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11380 "\x23\x53\x60\x28\x74\x71\x35\x26"
11381 "\x31\x41\x59\x26\x53\x58\x97\x93"
11382 "\x23\x84\x62\x64\x33\x83\x27\x95",
11383 .klen = 32,
11384 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11385 "\x00\x00\x00\x00\x00\x00\x00\x00",
11386 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
11387 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11388 "\x10\x11\x12\x13\x14\x15\x16\x17"
11389 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11390 "\x20\x21\x22\x23\x24\x25\x26\x27"
11391 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11392 "\x30\x31\x32\x33\x34\x35\x36\x37"
11393 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11394 "\x40\x41\x42\x43\x44\x45\x46\x47"
11395 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11396 "\x50\x51\x52\x53\x54\x55\x56\x57"
11397 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11398 "\x60\x61\x62\x63\x64\x65\x66\x67"
11399 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11400 "\x70\x71\x72\x73\x74\x75\x76\x77"
11401 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11402 "\x80\x81\x82\x83\x84\x85\x86\x87"
11403 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11404 "\x90\x91\x92\x93\x94\x95\x96\x97"
11405 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11406 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11407 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11408 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11409 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11410 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11411 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11412 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11413 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11414 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11415 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11416 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11417 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11418 "\x00\x01\x02\x03\x04\x05\x06\x07"
11419 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11420 "\x10\x11\x12\x13\x14\x15\x16\x17"
11421 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11422 "\x20\x21\x22\x23\x24\x25\x26\x27"
11423 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11424 "\x30\x31\x32\x33\x34\x35\x36\x37"
11425 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11426 "\x40\x41\x42\x43\x44\x45\x46\x47"
11427 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11428 "\x50\x51\x52\x53\x54\x55\x56\x57"
11429 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11430 "\x60\x61\x62\x63\x64\x65\x66\x67"
11431 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11432 "\x70\x71\x72\x73\x74\x75\x76\x77"
11433 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11434 "\x80\x81\x82\x83\x84\x85\x86\x87"
11435 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11436 "\x90\x91\x92\x93\x94\x95\x96\x97"
11437 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11438 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11439 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11440 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11441 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11442 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11443 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11444 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11445 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11446 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11447 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11448 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11449 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11450 .ilen = 512,
11451 .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
11452 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
11453 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
11454 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
11455 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
11456 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
11457 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
11458 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
11459 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
11460 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
11461 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
11462 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
11463 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
11464 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
11465 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
11466 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
11467 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
11468 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
11469 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
11470 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
11471 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
11472 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
11473 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
11474 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
11475 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
11476 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
11477 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
11478 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
11479 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
11480 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
11481 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
11482 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
11483 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
11484 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
11485 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
11486 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
11487 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
11488 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
11489 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
11490 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
11491 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
11492 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
11493 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
11494 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
11495 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
11496 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
11497 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
11498 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
11499 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
11500 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
11501 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
11502 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
11503 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
11504 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
11505 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
11506 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
11507 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
11508 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
11509 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
11510 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
11511 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
11512 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
11513 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
11514 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
11515 .rlen = 512,
11516 }, {
11517 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11518 "\x23\x53\x60\x28\x74\x71\x35\x26"
11519 "\x62\x49\x77\x57\x24\x70\x93\x69"
11520 "\x99\x59\x57\x49\x66\x96\x76\x27"
11521 "\x31\x41\x59\x26\x53\x58\x97\x93"
11522 "\x23\x84\x62\x64\x33\x83\x27\x95"
11523 "\x02\x88\x41\x97\x16\x93\x99\x37"
11524 "\x51\x05\x82\x09\x74\x94\x45\x92",
11525 .klen = 64,
11526 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
11527 "\x00\x00\x00\x00\x00\x00\x00\x00",
11528 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
11529 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11530 "\x10\x11\x12\x13\x14\x15\x16\x17"
11531 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11532 "\x20\x21\x22\x23\x24\x25\x26\x27"
11533 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11534 "\x30\x31\x32\x33\x34\x35\x36\x37"
11535 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11536 "\x40\x41\x42\x43\x44\x45\x46\x47"
11537 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11538 "\x50\x51\x52\x53\x54\x55\x56\x57"
11539 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11540 "\x60\x61\x62\x63\x64\x65\x66\x67"
11541 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11542 "\x70\x71\x72\x73\x74\x75\x76\x77"
11543 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11544 "\x80\x81\x82\x83\x84\x85\x86\x87"
11545 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11546 "\x90\x91\x92\x93\x94\x95\x96\x97"
11547 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11548 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11549 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11550 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11551 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11552 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11553 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11554 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11555 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11556 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11557 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11558 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11559 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11560 "\x00\x01\x02\x03\x04\x05\x06\x07"
11561 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11562 "\x10\x11\x12\x13\x14\x15\x16\x17"
11563 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11564 "\x20\x21\x22\x23\x24\x25\x26\x27"
11565 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11566 "\x30\x31\x32\x33\x34\x35\x36\x37"
11567 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11568 "\x40\x41\x42\x43\x44\x45\x46\x47"
11569 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11570 "\x50\x51\x52\x53\x54\x55\x56\x57"
11571 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11572 "\x60\x61\x62\x63\x64\x65\x66\x67"
11573 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11574 "\x70\x71\x72\x73\x74\x75\x76\x77"
11575 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11576 "\x80\x81\x82\x83\x84\x85\x86\x87"
11577 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11578 "\x90\x91\x92\x93\x94\x95\x96\x97"
11579 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11580 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11581 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11582 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11583 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11584 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11585 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11586 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11587 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11588 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11589 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11590 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11591 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11592 .ilen = 512,
11593 .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
11594 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
11595 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
11596 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
11597 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
11598 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
11599 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
11600 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
11601 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
11602 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
11603 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
11604 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
11605 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
11606 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
11607 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
11608 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
11609 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
11610 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
11611 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
11612 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
11613 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
11614 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
11615 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
11616 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
11617 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
11618 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
11619 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
11620 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
11621 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
11622 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
11623 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
11624 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
11625 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
11626 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
11627 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
11628 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
11629 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
11630 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
11631 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
11632 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
11633 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
11634 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
11635 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
11636 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
11637 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
11638 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
11639 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
11640 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
11641 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
11642 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
11643 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
11644 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
11645 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
11646 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
11647 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
11648 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
11649 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
11650 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
11651 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
11652 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
11653 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
11654 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
11655 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
11656 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
11657 .rlen = 512,
11658 .also_non_np = 1,
11659 .np = 2,
11660 .tap = { 512 - 16, 16 },
11664 static struct cipher_testvec serpent_xts_dec_tv_template[] = {
11665 /* Generated from AES-XTS test vectors */
11666 /* same as enc vectors with input and result reversed */
11668 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
11669 "\x00\x00\x00\x00\x00\x00\x00\x00"
11670 "\x00\x00\x00\x00\x00\x00\x00\x00"
11671 "\x00\x00\x00\x00\x00\x00\x00\x00",
11672 .klen = 32,
11673 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11674 "\x00\x00\x00\x00\x00\x00\x00\x00",
11675 .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
11676 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
11677 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
11678 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
11679 .ilen = 32,
11680 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
11681 "\x00\x00\x00\x00\x00\x00\x00\x00"
11682 "\x00\x00\x00\x00\x00\x00\x00\x00"
11683 "\x00\x00\x00\x00\x00\x00\x00\x00",
11684 .rlen = 32,
11685 }, {
11686 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
11687 "\x11\x11\x11\x11\x11\x11\x11\x11"
11688 "\x22\x22\x22\x22\x22\x22\x22\x22"
11689 "\x22\x22\x22\x22\x22\x22\x22\x22",
11690 .klen = 32,
11691 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11692 "\x00\x00\x00\x00\x00\x00\x00\x00",
11693 .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
11694 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
11695 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
11696 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
11697 .ilen = 32,
11698 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
11699 "\x44\x44\x44\x44\x44\x44\x44\x44"
11700 "\x44\x44\x44\x44\x44\x44\x44\x44"
11701 "\x44\x44\x44\x44\x44\x44\x44\x44",
11702 .rlen = 32,
11703 }, {
11704 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
11705 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
11706 "\x22\x22\x22\x22\x22\x22\x22\x22"
11707 "\x22\x22\x22\x22\x22\x22\x22\x22",
11708 .klen = 32,
11709 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11710 "\x00\x00\x00\x00\x00\x00\x00\x00",
11711 .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
11712 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
11713 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
11714 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
11715 .ilen = 32,
11716 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
11717 "\x44\x44\x44\x44\x44\x44\x44\x44"
11718 "\x44\x44\x44\x44\x44\x44\x44\x44"
11719 "\x44\x44\x44\x44\x44\x44\x44\x44",
11720 .rlen = 32,
11721 }, {
11722 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11723 "\x23\x53\x60\x28\x74\x71\x35\x26"
11724 "\x31\x41\x59\x26\x53\x58\x97\x93"
11725 "\x23\x84\x62\x64\x33\x83\x27\x95",
11726 .klen = 32,
11727 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11728 "\x00\x00\x00\x00\x00\x00\x00\x00",
11729 .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
11730 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
11731 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
11732 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
11733 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
11734 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
11735 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
11736 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
11737 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
11738 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
11739 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
11740 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
11741 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
11742 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
11743 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
11744 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
11745 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
11746 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
11747 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
11748 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
11749 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
11750 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
11751 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
11752 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
11753 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
11754 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
11755 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
11756 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
11757 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
11758 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
11759 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
11760 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
11761 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
11762 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
11763 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
11764 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
11765 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
11766 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
11767 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
11768 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
11769 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
11770 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
11771 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
11772 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
11773 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
11774 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
11775 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
11776 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
11777 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
11778 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
11779 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
11780 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
11781 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
11782 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
11783 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
11784 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
11785 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
11786 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
11787 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
11788 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
11789 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
11790 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
11791 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
11792 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
11793 .ilen = 512,
11794 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11795 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11796 "\x10\x11\x12\x13\x14\x15\x16\x17"
11797 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11798 "\x20\x21\x22\x23\x24\x25\x26\x27"
11799 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11800 "\x30\x31\x32\x33\x34\x35\x36\x37"
11801 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11802 "\x40\x41\x42\x43\x44\x45\x46\x47"
11803 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11804 "\x50\x51\x52\x53\x54\x55\x56\x57"
11805 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11806 "\x60\x61\x62\x63\x64\x65\x66\x67"
11807 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11808 "\x70\x71\x72\x73\x74\x75\x76\x77"
11809 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11810 "\x80\x81\x82\x83\x84\x85\x86\x87"
11811 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11812 "\x90\x91\x92\x93\x94\x95\x96\x97"
11813 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11814 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11815 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11816 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11817 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11818 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11819 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11820 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11821 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11822 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11823 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11824 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11825 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11826 "\x00\x01\x02\x03\x04\x05\x06\x07"
11827 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11828 "\x10\x11\x12\x13\x14\x15\x16\x17"
11829 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11830 "\x20\x21\x22\x23\x24\x25\x26\x27"
11831 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11832 "\x30\x31\x32\x33\x34\x35\x36\x37"
11833 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11834 "\x40\x41\x42\x43\x44\x45\x46\x47"
11835 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11836 "\x50\x51\x52\x53\x54\x55\x56\x57"
11837 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11838 "\x60\x61\x62\x63\x64\x65\x66\x67"
11839 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11840 "\x70\x71\x72\x73\x74\x75\x76\x77"
11841 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11842 "\x80\x81\x82\x83\x84\x85\x86\x87"
11843 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11844 "\x90\x91\x92\x93\x94\x95\x96\x97"
11845 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11846 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11847 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11848 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11849 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11850 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11851 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11852 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11853 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11854 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11855 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11856 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11857 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11858 .rlen = 512,
11859 }, {
11860 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11861 "\x23\x53\x60\x28\x74\x71\x35\x26"
11862 "\x62\x49\x77\x57\x24\x70\x93\x69"
11863 "\x99\x59\x57\x49\x66\x96\x76\x27"
11864 "\x31\x41\x59\x26\x53\x58\x97\x93"
11865 "\x23\x84\x62\x64\x33\x83\x27\x95"
11866 "\x02\x88\x41\x97\x16\x93\x99\x37"
11867 "\x51\x05\x82\x09\x74\x94\x45\x92",
11868 .klen = 64,
11869 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
11870 "\x00\x00\x00\x00\x00\x00\x00\x00",
11871 .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
11872 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
11873 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
11874 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
11875 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
11876 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
11877 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
11878 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
11879 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
11880 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
11881 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
11882 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
11883 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
11884 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
11885 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
11886 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
11887 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
11888 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
11889 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
11890 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
11891 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
11892 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
11893 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
11894 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
11895 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
11896 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
11897 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
11898 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
11899 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
11900 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
11901 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
11902 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
11903 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
11904 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
11905 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
11906 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
11907 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
11908 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
11909 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
11910 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
11911 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
11912 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
11913 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
11914 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
11915 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
11916 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
11917 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
11918 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
11919 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
11920 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
11921 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
11922 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
11923 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
11924 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
11925 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
11926 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
11927 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
11928 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
11929 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
11930 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
11931 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
11932 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
11933 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
11934 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
11935 .ilen = 512,
11936 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11937 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11938 "\x10\x11\x12\x13\x14\x15\x16\x17"
11939 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11940 "\x20\x21\x22\x23\x24\x25\x26\x27"
11941 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11942 "\x30\x31\x32\x33\x34\x35\x36\x37"
11943 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11944 "\x40\x41\x42\x43\x44\x45\x46\x47"
11945 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11946 "\x50\x51\x52\x53\x54\x55\x56\x57"
11947 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11948 "\x60\x61\x62\x63\x64\x65\x66\x67"
11949 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11950 "\x70\x71\x72\x73\x74\x75\x76\x77"
11951 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11952 "\x80\x81\x82\x83\x84\x85\x86\x87"
11953 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11954 "\x90\x91\x92\x93\x94\x95\x96\x97"
11955 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11956 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11957 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11958 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11959 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11960 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11961 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11962 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11963 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11964 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11965 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11966 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11967 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11968 "\x00\x01\x02\x03\x04\x05\x06\x07"
11969 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11970 "\x10\x11\x12\x13\x14\x15\x16\x17"
11971 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11972 "\x20\x21\x22\x23\x24\x25\x26\x27"
11973 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11974 "\x30\x31\x32\x33\x34\x35\x36\x37"
11975 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11976 "\x40\x41\x42\x43\x44\x45\x46\x47"
11977 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11978 "\x50\x51\x52\x53\x54\x55\x56\x57"
11979 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11980 "\x60\x61\x62\x63\x64\x65\x66\x67"
11981 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11982 "\x70\x71\x72\x73\x74\x75\x76\x77"
11983 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11984 "\x80\x81\x82\x83\x84\x85\x86\x87"
11985 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11986 "\x90\x91\x92\x93\x94\x95\x96\x97"
11987 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11988 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11989 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11990 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11991 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11992 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11993 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11994 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11995 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11996 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11997 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11998 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11999 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
12000 .rlen = 512,
12001 .also_non_np = 1,
12002 .np = 2,
12003 .tap = { 512 - 16, 16 },
12007 /* Cast6 test vectors from RFC 2612 */
12008 #define CAST6_ENC_TEST_VECTORS 4
12009 #define CAST6_DEC_TEST_VECTORS 4
12010 #define CAST6_CBC_ENC_TEST_VECTORS 1
12011 #define CAST6_CBC_DEC_TEST_VECTORS 1
12012 #define CAST6_CTR_ENC_TEST_VECTORS 2
12013 #define CAST6_CTR_DEC_TEST_VECTORS 2
12014 #define CAST6_LRW_ENC_TEST_VECTORS 1
12015 #define CAST6_LRW_DEC_TEST_VECTORS 1
12016 #define CAST6_XTS_ENC_TEST_VECTORS 1
12017 #define CAST6_XTS_DEC_TEST_VECTORS 1
12019 static struct cipher_testvec cast6_enc_tv_template[] = {
12021 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12022 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
12023 .klen = 16,
12024 .input = zeroed_string,
12025 .ilen = 16,
12026 .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
12027 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
12028 .rlen = 16,
12029 }, {
12030 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12031 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12032 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
12033 .klen = 24,
12034 .input = zeroed_string,
12035 .ilen = 16,
12036 .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
12037 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
12038 .rlen = 16,
12039 }, {
12040 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12041 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12042 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
12043 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
12044 .klen = 32,
12045 .input = zeroed_string,
12046 .ilen = 16,
12047 .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
12048 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
12049 .rlen = 16,
12050 }, { /* Generated from TF test vectors */
12051 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12052 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12053 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12054 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12055 .klen = 32,
12056 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12057 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12058 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12059 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12060 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12061 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12062 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12063 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12064 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12065 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12066 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12067 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12068 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12069 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12070 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12071 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12072 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12073 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12074 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12075 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12076 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12077 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12078 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12079 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12080 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12081 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12082 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12083 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12084 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12085 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12086 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12087 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12088 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12089 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12090 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12091 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12092 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12093 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12094 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12095 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12096 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12097 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12098 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12099 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12100 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12101 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12102 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12103 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12104 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12105 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12106 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12107 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12108 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12109 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12110 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12111 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12112 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12113 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12114 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12115 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12116 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12117 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12118 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12119 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12120 .ilen = 496,
12121 .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
12122 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
12123 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
12124 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
12125 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
12126 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
12127 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
12128 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
12129 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
12130 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
12131 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
12132 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
12133 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
12134 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
12135 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
12136 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
12137 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
12138 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
12139 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
12140 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
12141 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
12142 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
12143 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
12144 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
12145 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
12146 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
12147 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
12148 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
12149 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
12150 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
12151 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
12152 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
12153 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
12154 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
12155 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
12156 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
12157 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
12158 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
12159 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
12160 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
12161 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
12162 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
12163 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
12164 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
12165 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
12166 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
12167 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
12168 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
12169 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
12170 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
12171 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
12172 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
12173 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
12174 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
12175 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
12176 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
12177 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
12178 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
12179 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
12180 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
12181 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
12182 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
12183 .rlen = 496,
12184 .also_non_np = 1,
12185 .np = 2,
12186 .tap = { 496 - 16, 16 },
12190 static struct cipher_testvec cast6_dec_tv_template[] = {
12192 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12193 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
12194 .klen = 16,
12195 .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
12196 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
12197 .ilen = 16,
12198 .result = zeroed_string,
12199 .rlen = 16,
12200 }, {
12201 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12202 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12203 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
12204 .klen = 24,
12205 .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
12206 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
12207 .ilen = 16,
12208 .result = zeroed_string,
12209 .rlen = 16,
12210 }, {
12211 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12212 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12213 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
12214 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
12215 .klen = 32,
12216 .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
12217 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
12218 .ilen = 16,
12219 .result = zeroed_string,
12220 .rlen = 16,
12221 }, { /* Generated from TF test vectors */
12222 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12223 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12224 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12225 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12226 .klen = 32,
12227 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12228 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12229 .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
12230 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
12231 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
12232 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
12233 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
12234 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
12235 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
12236 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
12237 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
12238 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
12239 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
12240 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
12241 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
12242 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
12243 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
12244 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
12245 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
12246 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
12247 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
12248 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
12249 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
12250 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
12251 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
12252 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
12253 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
12254 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
12255 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
12256 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
12257 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
12258 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
12259 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
12260 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
12261 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
12262 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
12263 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
12264 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
12265 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
12266 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
12267 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
12268 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
12269 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
12270 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
12271 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
12272 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
12273 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
12274 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
12275 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
12276 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
12277 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
12278 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
12279 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
12280 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
12281 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
12282 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
12283 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
12284 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
12285 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
12286 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
12287 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
12288 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
12289 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
12290 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
12291 .ilen = 496,
12292 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12293 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12294 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12295 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12296 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12297 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12298 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12299 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12300 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12301 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12302 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12303 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12304 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12305 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12306 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12307 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12308 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12309 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12310 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12311 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12312 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12313 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12314 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12315 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12316 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12317 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12318 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12319 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12320 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12321 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12322 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12323 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12324 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12325 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12326 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12327 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12328 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12329 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12330 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12331 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12332 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12333 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12334 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12335 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12336 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12337 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12338 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12339 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12340 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12341 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12342 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12343 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12344 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12345 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12346 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12347 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12348 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12349 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12350 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12351 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12352 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12353 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12354 .rlen = 496,
12355 .also_non_np = 1,
12356 .np = 2,
12357 .tap = { 496 - 16, 16 },
12361 static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
12362 { /* Generated from TF test vectors */
12363 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12364 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12365 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12366 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12367 .klen = 32,
12368 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12369 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12370 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12371 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12372 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12373 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12374 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12375 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12376 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12377 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12378 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12379 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12380 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12381 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12382 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12383 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12384 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12385 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12386 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12387 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12388 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12389 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12390 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12391 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12392 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12393 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12394 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12395 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12396 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12397 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12398 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12399 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12400 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12401 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12402 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12403 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12404 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12405 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12406 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12407 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12408 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12409 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12410 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12411 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12412 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12413 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12414 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12415 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12416 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12417 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12418 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12419 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12420 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12421 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12422 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12423 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12424 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12425 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12426 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12427 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12428 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12429 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12430 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12431 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12432 .ilen = 496,
12433 .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
12434 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
12435 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
12436 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
12437 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
12438 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
12439 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
12440 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
12441 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
12442 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
12443 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
12444 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
12445 "\x23\x16\x47\x72\x81\x13\x3A\x72"
12446 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
12447 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
12448 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
12449 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
12450 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
12451 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
12452 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
12453 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
12454 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
12455 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
12456 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
12457 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
12458 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
12459 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
12460 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
12461 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
12462 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
12463 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
12464 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
12465 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
12466 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
12467 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
12468 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
12469 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
12470 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
12471 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
12472 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
12473 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
12474 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
12475 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
12476 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
12477 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
12478 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
12479 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
12480 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
12481 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
12482 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
12483 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
12484 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
12485 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
12486 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
12487 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
12488 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
12489 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
12490 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
12491 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
12492 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
12493 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
12494 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
12495 .rlen = 496,
12496 .also_non_np = 1,
12497 .np = 2,
12498 .tap = { 496 - 16, 16 },
12502 static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
12503 { /* Generated from TF test vectors */
12504 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12505 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12506 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12507 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12508 .klen = 32,
12509 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12510 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12511 .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
12512 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
12513 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
12514 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
12515 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
12516 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
12517 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
12518 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
12519 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
12520 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
12521 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
12522 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
12523 "\x23\x16\x47\x72\x81\x13\x3A\x72"
12524 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
12525 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
12526 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
12527 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
12528 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
12529 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
12530 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
12531 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
12532 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
12533 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
12534 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
12535 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
12536 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
12537 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
12538 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
12539 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
12540 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
12541 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
12542 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
12543 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
12544 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
12545 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
12546 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
12547 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
12548 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
12549 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
12550 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
12551 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
12552 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
12553 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
12554 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
12555 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
12556 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
12557 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
12558 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
12559 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
12560 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
12561 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
12562 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
12563 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
12564 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
12565 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
12566 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
12567 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
12568 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
12569 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
12570 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
12571 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
12572 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
12573 .ilen = 496,
12574 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12575 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12576 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12577 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12578 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12579 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12580 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12581 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12582 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12583 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12584 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12585 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12586 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12587 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12588 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12589 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12590 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12591 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12592 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12593 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12594 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12595 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12596 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12597 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12598 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12599 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12600 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12601 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12602 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12603 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12604 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12605 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12606 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12607 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12608 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12609 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12610 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12611 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12612 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12613 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12614 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12615 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12616 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12617 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12618 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12619 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12620 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12621 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12622 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12623 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12624 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12625 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12626 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12627 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12628 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12629 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12630 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12631 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12632 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12633 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12634 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12635 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12636 .rlen = 496,
12637 .also_non_np = 1,
12638 .np = 2,
12639 .tap = { 496 - 16, 16 },
12643 static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
12644 { /* Generated from TF test vectors */
12645 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12646 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12647 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12648 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12649 .klen = 32,
12650 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12651 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12652 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12653 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12654 "\x3A",
12655 .ilen = 17,
12656 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12657 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12658 "\x57",
12659 .rlen = 17,
12660 }, { /* Generated from TF test vectors */
12661 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12662 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12663 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12664 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12665 .klen = 32,
12666 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12667 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12668 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12669 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12670 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12671 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12672 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12673 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12674 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12675 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12676 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12677 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12678 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12679 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12680 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12681 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12682 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12683 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12684 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12685 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12686 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12687 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12688 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12689 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12690 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12691 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12692 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12693 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12694 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12695 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12696 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12697 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12698 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12699 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12700 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12701 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12702 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12703 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12704 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12705 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12706 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12707 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12708 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12709 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12710 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12711 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12712 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12713 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12714 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12715 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12716 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12717 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12718 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12719 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12720 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12721 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12722 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12723 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12724 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12725 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12726 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12727 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12728 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12729 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12730 .ilen = 496,
12731 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12732 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12733 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
12734 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
12735 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
12736 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
12737 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
12738 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
12739 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
12740 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
12741 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
12742 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
12743 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
12744 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
12745 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
12746 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
12747 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
12748 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
12749 "\x49\x61\x22\x52\x64\x8C\x46\x41"
12750 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
12751 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
12752 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
12753 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
12754 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
12755 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
12756 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
12757 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
12758 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
12759 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
12760 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
12761 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
12762 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
12763 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
12764 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
12765 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
12766 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
12767 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
12768 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
12769 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
12770 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
12771 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
12772 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
12773 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
12774 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
12775 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
12776 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
12777 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
12778 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
12779 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
12780 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
12781 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
12782 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
12783 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
12784 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
12785 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
12786 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
12787 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
12788 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
12789 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
12790 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
12791 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
12792 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
12793 .rlen = 496,
12794 .also_non_np = 1,
12795 .np = 2,
12796 .tap = { 496 - 16, 16 },
12800 static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
12801 { /* Generated from TF test vectors */
12802 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12803 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12804 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12805 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12806 .klen = 32,
12807 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12808 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12809 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12810 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12811 "\x57",
12812 .ilen = 17,
12813 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12814 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12815 "\x3A",
12816 .rlen = 17,
12817 }, { /* Generated from TF test vectors */
12818 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12819 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12820 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12821 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12822 .klen = 32,
12823 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12824 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12825 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
12826 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12827 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
12828 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
12829 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
12830 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
12831 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
12832 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
12833 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
12834 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
12835 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
12836 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
12837 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
12838 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
12839 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
12840 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
12841 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
12842 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
12843 "\x49\x61\x22\x52\x64\x8C\x46\x41"
12844 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
12845 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
12846 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
12847 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
12848 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
12849 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
12850 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
12851 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
12852 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
12853 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
12854 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
12855 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
12856 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
12857 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
12858 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
12859 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
12860 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
12861 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
12862 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
12863 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
12864 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
12865 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
12866 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
12867 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
12868 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
12869 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
12870 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
12871 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
12872 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
12873 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
12874 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
12875 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
12876 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
12877 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
12878 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
12879 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
12880 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
12881 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
12882 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
12883 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
12884 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
12885 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
12886 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
12887 .ilen = 496,
12888 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12889 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12890 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12891 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12892 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12893 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12894 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12895 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12896 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12897 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12898 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12899 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12900 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12901 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12902 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12903 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12904 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12905 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12906 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12907 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12908 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12909 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12910 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12911 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12912 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12913 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12914 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12915 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12916 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12917 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12918 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12919 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12920 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12921 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12922 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12923 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12924 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12925 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12926 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12927 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12928 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12929 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12930 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12931 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12932 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12933 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12934 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12935 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12936 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12937 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12938 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12939 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12940 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12941 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12942 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12943 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12944 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12945 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12946 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12947 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12948 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12949 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12950 .rlen = 496,
12951 .also_non_np = 1,
12952 .np = 2,
12953 .tap = { 496 - 16, 16 },
12957 static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
12958 { /* Generated from TF test vectors */
12959 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12960 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12961 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12962 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12963 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12964 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12965 .klen = 48,
12966 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12967 "\x00\x00\x00\x00\x00\x00\x00\x01",
12968 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12969 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12970 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12971 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12972 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12973 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12974 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12975 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12976 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12977 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12978 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12979 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12980 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12981 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12982 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12983 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12984 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12985 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12986 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12987 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12988 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12989 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12990 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12991 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12992 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12993 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12994 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12995 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12996 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12997 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12998 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12999 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13000 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13001 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13002 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13003 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13004 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13005 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13006 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13007 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13008 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13009 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13010 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13011 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13012 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13013 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13014 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13015 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13016 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13017 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13018 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13019 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13020 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13021 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13022 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13023 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13024 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13025 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13026 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13027 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13028 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13029 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13030 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13031 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13032 .ilen = 512,
13033 .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
13034 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
13035 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
13036 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
13037 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
13038 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
13039 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
13040 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
13041 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
13042 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
13043 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
13044 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
13045 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
13046 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
13047 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
13048 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
13049 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
13050 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
13051 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
13052 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
13053 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
13054 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
13055 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
13056 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
13057 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
13058 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
13059 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
13060 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
13061 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
13062 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
13063 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
13064 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
13065 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
13066 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
13067 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
13068 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
13069 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
13070 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
13071 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
13072 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
13073 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
13074 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
13075 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
13076 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
13077 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
13078 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
13079 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
13080 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
13081 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
13082 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
13083 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
13084 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
13085 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
13086 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
13087 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
13088 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
13089 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
13090 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
13091 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
13092 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
13093 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
13094 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
13095 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
13096 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
13097 .rlen = 512,
13098 .also_non_np = 1,
13099 .np = 2,
13100 .tap = { 512 - 16, 16 },
13104 static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
13105 { /* Generated from TF test vectors */
13106 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13107 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13108 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13109 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13110 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13111 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13112 .klen = 48,
13113 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13114 "\x00\x00\x00\x00\x00\x00\x00\x01",
13115 .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
13116 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
13117 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
13118 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
13119 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
13120 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
13121 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
13122 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
13123 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
13124 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
13125 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
13126 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
13127 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
13128 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
13129 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
13130 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
13131 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
13132 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
13133 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
13134 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
13135 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
13136 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
13137 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
13138 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
13139 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
13140 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
13141 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
13142 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
13143 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
13144 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
13145 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
13146 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
13147 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
13148 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
13149 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
13150 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
13151 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
13152 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
13153 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
13154 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
13155 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
13156 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
13157 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
13158 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
13159 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
13160 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
13161 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
13162 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
13163 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
13164 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
13165 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
13166 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
13167 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
13168 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
13169 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
13170 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
13171 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
13172 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
13173 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
13174 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
13175 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
13176 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
13177 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
13178 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
13179 .ilen = 512,
13180 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
13181 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13182 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13183 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13184 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13185 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13186 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13187 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13188 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13189 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13190 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13191 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13192 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13193 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13194 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13195 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13196 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13197 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13198 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13199 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13200 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13201 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13202 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13203 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13204 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13205 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13206 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13207 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13208 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13209 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13210 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13211 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13212 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13213 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13214 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13215 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13216 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13217 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13218 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13219 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13220 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13221 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13222 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13223 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13224 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13225 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13226 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13227 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13228 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13229 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13230 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13231 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13232 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13233 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13234 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13235 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13236 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13237 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13238 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13239 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13240 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13241 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13242 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13243 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13244 .rlen = 512,
13245 .also_non_np = 1,
13246 .np = 2,
13247 .tap = { 512 - 16, 16 },
13251 static struct cipher_testvec cast6_xts_enc_tv_template[] = {
13252 { /* Generated from TF test vectors */
13253 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13254 "\x23\x53\x60\x28\x74\x71\x35\x26"
13255 "\x62\x49\x77\x57\x24\x70\x93\x69"
13256 "\x99\x59\x57\x49\x66\x96\x76\x27"
13257 "\x31\x41\x59\x26\x53\x58\x97\x93"
13258 "\x23\x84\x62\x64\x33\x83\x27\x95"
13259 "\x02\x88\x41\x97\x16\x93\x99\x37"
13260 "\x51\x05\x82\x09\x74\x94\x45\x92",
13261 .klen = 64,
13262 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13263 "\x00\x00\x00\x00\x00\x00\x00\x00",
13264 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13265 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13266 "\x10\x11\x12\x13\x14\x15\x16\x17"
13267 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13268 "\x20\x21\x22\x23\x24\x25\x26\x27"
13269 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13270 "\x30\x31\x32\x33\x34\x35\x36\x37"
13271 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13272 "\x40\x41\x42\x43\x44\x45\x46\x47"
13273 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13274 "\x50\x51\x52\x53\x54\x55\x56\x57"
13275 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13276 "\x60\x61\x62\x63\x64\x65\x66\x67"
13277 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13278 "\x70\x71\x72\x73\x74\x75\x76\x77"
13279 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13280 "\x80\x81\x82\x83\x84\x85\x86\x87"
13281 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13282 "\x90\x91\x92\x93\x94\x95\x96\x97"
13283 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13284 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13285 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13286 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13287 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13288 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13289 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13290 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13291 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13292 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13293 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13294 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13295 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13296 "\x00\x01\x02\x03\x04\x05\x06\x07"
13297 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13298 "\x10\x11\x12\x13\x14\x15\x16\x17"
13299 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13300 "\x20\x21\x22\x23\x24\x25\x26\x27"
13301 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13302 "\x30\x31\x32\x33\x34\x35\x36\x37"
13303 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13304 "\x40\x41\x42\x43\x44\x45\x46\x47"
13305 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13306 "\x50\x51\x52\x53\x54\x55\x56\x57"
13307 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13308 "\x60\x61\x62\x63\x64\x65\x66\x67"
13309 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13310 "\x70\x71\x72\x73\x74\x75\x76\x77"
13311 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13312 "\x80\x81\x82\x83\x84\x85\x86\x87"
13313 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13314 "\x90\x91\x92\x93\x94\x95\x96\x97"
13315 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13316 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13317 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13318 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13319 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13320 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13321 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13322 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13323 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13324 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13325 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13326 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13327 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13328 .ilen = 512,
13329 .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
13330 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
13331 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
13332 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
13333 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
13334 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
13335 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
13336 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
13337 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
13338 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
13339 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
13340 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
13341 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
13342 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
13343 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
13344 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
13345 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
13346 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
13347 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
13348 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
13349 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
13350 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
13351 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
13352 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
13353 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
13354 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
13355 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
13356 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
13357 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
13358 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
13359 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
13360 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
13361 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
13362 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
13363 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
13364 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
13365 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
13366 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
13367 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
13368 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
13369 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
13370 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
13371 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
13372 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
13373 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
13374 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
13375 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
13376 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
13377 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
13378 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
13379 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
13380 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
13381 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
13382 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
13383 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
13384 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
13385 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
13386 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
13387 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
13388 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
13389 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
13390 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
13391 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
13392 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
13393 .rlen = 512,
13394 .also_non_np = 1,
13395 .np = 2,
13396 .tap = { 512 - 16, 16 },
13400 static struct cipher_testvec cast6_xts_dec_tv_template[] = {
13401 { /* Generated from TF test vectors */
13402 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13403 "\x23\x53\x60\x28\x74\x71\x35\x26"
13404 "\x62\x49\x77\x57\x24\x70\x93\x69"
13405 "\x99\x59\x57\x49\x66\x96\x76\x27"
13406 "\x31\x41\x59\x26\x53\x58\x97\x93"
13407 "\x23\x84\x62\x64\x33\x83\x27\x95"
13408 "\x02\x88\x41\x97\x16\x93\x99\x37"
13409 "\x51\x05\x82\x09\x74\x94\x45\x92",
13410 .klen = 64,
13411 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13412 "\x00\x00\x00\x00\x00\x00\x00\x00",
13413 .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
13414 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
13415 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
13416 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
13417 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
13418 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
13419 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
13420 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
13421 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
13422 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
13423 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
13424 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
13425 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
13426 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
13427 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
13428 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
13429 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
13430 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
13431 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
13432 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
13433 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
13434 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
13435 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
13436 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
13437 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
13438 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
13439 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
13440 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
13441 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
13442 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
13443 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
13444 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
13445 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
13446 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
13447 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
13448 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
13449 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
13450 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
13451 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
13452 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
13453 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
13454 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
13455 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
13456 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
13457 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
13458 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
13459 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
13460 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
13461 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
13462 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
13463 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
13464 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
13465 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
13466 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
13467 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
13468 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
13469 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
13470 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
13471 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
13472 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
13473 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
13474 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
13475 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
13476 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
13477 .ilen = 512,
13478 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13479 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13480 "\x10\x11\x12\x13\x14\x15\x16\x17"
13481 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13482 "\x20\x21\x22\x23\x24\x25\x26\x27"
13483 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13484 "\x30\x31\x32\x33\x34\x35\x36\x37"
13485 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13486 "\x40\x41\x42\x43\x44\x45\x46\x47"
13487 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13488 "\x50\x51\x52\x53\x54\x55\x56\x57"
13489 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13490 "\x60\x61\x62\x63\x64\x65\x66\x67"
13491 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13492 "\x70\x71\x72\x73\x74\x75\x76\x77"
13493 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13494 "\x80\x81\x82\x83\x84\x85\x86\x87"
13495 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13496 "\x90\x91\x92\x93\x94\x95\x96\x97"
13497 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13498 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13499 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13500 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13501 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13502 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13503 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13504 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13505 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13506 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13507 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13508 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13509 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13510 "\x00\x01\x02\x03\x04\x05\x06\x07"
13511 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13512 "\x10\x11\x12\x13\x14\x15\x16\x17"
13513 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13514 "\x20\x21\x22\x23\x24\x25\x26\x27"
13515 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13516 "\x30\x31\x32\x33\x34\x35\x36\x37"
13517 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13518 "\x40\x41\x42\x43\x44\x45\x46\x47"
13519 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13520 "\x50\x51\x52\x53\x54\x55\x56\x57"
13521 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13522 "\x60\x61\x62\x63\x64\x65\x66\x67"
13523 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13524 "\x70\x71\x72\x73\x74\x75\x76\x77"
13525 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13526 "\x80\x81\x82\x83\x84\x85\x86\x87"
13527 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13528 "\x90\x91\x92\x93\x94\x95\x96\x97"
13529 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13530 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13531 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13532 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13533 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13534 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13535 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13536 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13537 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13538 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13539 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13540 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13541 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13542 .rlen = 512,
13543 .also_non_np = 1,
13544 .np = 2,
13545 .tap = { 512 - 16, 16 },
13551 * AES test vectors.
13553 #define AES_ENC_TEST_VECTORS 4
13554 #define AES_DEC_TEST_VECTORS 4
13555 #define AES_CBC_ENC_TEST_VECTORS 5
13556 #define AES_CBC_DEC_TEST_VECTORS 5
13557 #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2
13558 #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2
13559 #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2
13560 #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2
13561 #define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7
13562 #define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7
13563 #define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7
13564 #define AES_LRW_ENC_TEST_VECTORS 8
13565 #define AES_LRW_DEC_TEST_VECTORS 8
13566 #define AES_XTS_ENC_TEST_VECTORS 5
13567 #define AES_XTS_DEC_TEST_VECTORS 5
13568 #define AES_CTR_ENC_TEST_VECTORS 5
13569 #define AES_CTR_DEC_TEST_VECTORS 5
13570 #define AES_OFB_ENC_TEST_VECTORS 1
13571 #define AES_OFB_DEC_TEST_VECTORS 1
13572 #define AES_CTR_3686_ENC_TEST_VECTORS 7
13573 #define AES_CTR_3686_DEC_TEST_VECTORS 6
13574 #define AES_GCM_ENC_TEST_VECTORS 9
13575 #define AES_GCM_DEC_TEST_VECTORS 8
13576 #define AES_GCM_4106_ENC_TEST_VECTORS 7
13577 #define AES_GCM_4106_DEC_TEST_VECTORS 7
13578 #define AES_GCM_4543_ENC_TEST_VECTORS 1
13579 #define AES_GCM_4543_DEC_TEST_VECTORS 2
13580 #define AES_CCM_ENC_TEST_VECTORS 8
13581 #define AES_CCM_DEC_TEST_VECTORS 7
13582 #define AES_CCM_4309_ENC_TEST_VECTORS 7
13583 #define AES_CCM_4309_DEC_TEST_VECTORS 10
13585 static struct cipher_testvec aes_enc_tv_template[] = {
13586 { /* From FIPS-197 */
13587 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13588 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13589 .klen = 16,
13590 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
13591 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13592 .ilen = 16,
13593 .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
13594 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
13595 .rlen = 16,
13596 }, {
13597 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13598 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13599 "\x10\x11\x12\x13\x14\x15\x16\x17",
13600 .klen = 24,
13601 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
13602 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13603 .ilen = 16,
13604 .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
13605 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
13606 .rlen = 16,
13607 }, {
13608 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13609 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13610 "\x10\x11\x12\x13\x14\x15\x16\x17"
13611 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13612 .klen = 32,
13613 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
13614 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13615 .ilen = 16,
13616 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
13617 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
13618 .rlen = 16,
13619 }, { /* Generated with Crypto++ */
13620 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
13621 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
13622 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
13623 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
13624 .klen = 32,
13625 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13626 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13627 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13628 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13629 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13630 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13631 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13632 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13633 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13634 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13635 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13636 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13637 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13638 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13639 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13640 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13641 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13642 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13643 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13644 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13645 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13646 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13647 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13648 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13649 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13650 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13651 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13652 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13653 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13654 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13655 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13656 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13657 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13658 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13659 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13660 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13661 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13662 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13663 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13664 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13665 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13666 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13667 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13668 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13669 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13670 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13671 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13672 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13673 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13674 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13675 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13676 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13677 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13678 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13679 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13680 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13681 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13682 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13683 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13684 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13685 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13686 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13687 .ilen = 496,
13688 .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
13689 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
13690 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
13691 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
13692 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
13693 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
13694 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
13695 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
13696 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
13697 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
13698 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
13699 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
13700 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
13701 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
13702 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
13703 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
13704 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
13705 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
13706 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
13707 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
13708 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
13709 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
13710 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
13711 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
13712 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
13713 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
13714 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
13715 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
13716 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
13717 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
13718 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
13719 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
13720 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
13721 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
13722 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
13723 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
13724 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
13725 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
13726 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
13727 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
13728 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
13729 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
13730 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
13731 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
13732 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
13733 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
13734 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
13735 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
13736 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
13737 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
13738 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
13739 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
13740 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
13741 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
13742 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
13743 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
13744 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
13745 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
13746 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
13747 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
13748 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
13749 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
13750 .rlen = 496,
13751 .also_non_np = 1,
13752 .np = 2,
13753 .tap = { 496 - 16, 16 },
13757 static struct cipher_testvec aes_dec_tv_template[] = {
13758 { /* From FIPS-197 */
13759 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13760 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13761 .klen = 16,
13762 .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
13763 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
13764 .ilen = 16,
13765 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
13766 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13767 .rlen = 16,
13768 }, {
13769 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13770 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13771 "\x10\x11\x12\x13\x14\x15\x16\x17",
13772 .klen = 24,
13773 .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
13774 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
13775 .ilen = 16,
13776 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
13777 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13778 .rlen = 16,
13779 }, {
13780 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
13781 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13782 "\x10\x11\x12\x13\x14\x15\x16\x17"
13783 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13784 .klen = 32,
13785 .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
13786 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
13787 .ilen = 16,
13788 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
13789 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
13790 .rlen = 16,
13791 }, { /* Generated with Crypto++ */
13792 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
13793 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
13794 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
13795 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
13796 .klen = 32,
13797 .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
13798 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
13799 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
13800 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
13801 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
13802 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
13803 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
13804 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
13805 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
13806 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
13807 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
13808 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
13809 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
13810 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
13811 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
13812 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
13813 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
13814 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
13815 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
13816 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
13817 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
13818 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
13819 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
13820 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
13821 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
13822 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
13823 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
13824 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
13825 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
13826 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
13827 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
13828 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
13829 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
13830 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
13831 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
13832 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
13833 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
13834 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
13835 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
13836 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
13837 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
13838 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
13839 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
13840 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
13841 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
13842 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
13843 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
13844 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
13845 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
13846 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
13847 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
13848 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
13849 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
13850 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
13851 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
13852 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
13853 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
13854 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
13855 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
13856 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
13857 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
13858 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
13859 .ilen = 496,
13860 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13861 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13862 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13863 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13864 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13865 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13866 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13867 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13868 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13869 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13870 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13871 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13872 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13873 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13874 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13875 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13876 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13877 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13878 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13879 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13880 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13881 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13882 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13883 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13884 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13885 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13886 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13887 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13888 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13889 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13890 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13891 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13892 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13893 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13894 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13895 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13896 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13897 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13898 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13899 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13900 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13901 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13902 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13903 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13904 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13905 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13906 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13907 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13908 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13909 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13910 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13911 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13912 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13913 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13914 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13915 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13916 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13917 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13918 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13919 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13920 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13921 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13922 .rlen = 496,
13923 .also_non_np = 1,
13924 .np = 2,
13925 .tap = { 496 - 16, 16 },
13929 static struct cipher_testvec aes_cbc_enc_tv_template[] = {
13930 { /* From RFC 3602 */
13931 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13932 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13933 .klen = 16,
13934 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13935 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13936 .input = "Single block msg",
13937 .ilen = 16,
13938 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13939 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
13940 .rlen = 16,
13941 }, {
13942 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13943 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13944 .klen = 16,
13945 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13946 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13947 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13948 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13949 "\x10\x11\x12\x13\x14\x15\x16\x17"
13950 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13951 .ilen = 32,
13952 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13953 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13954 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13955 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
13956 .rlen = 32,
13957 }, { /* From NIST SP800-38A */
13958 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13959 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13960 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13961 .klen = 24,
13962 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13963 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13964 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13965 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13966 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13967 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13968 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13969 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13970 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13971 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13972 .ilen = 64,
13973 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13974 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13975 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13976 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13977 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13978 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13979 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13980 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
13981 .rlen = 64,
13982 }, {
13983 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13984 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13985 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13986 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13987 .klen = 32,
13988 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13989 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13990 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13991 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13992 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13993 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13994 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13995 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13996 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13997 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13998 .ilen = 64,
13999 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
14000 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14001 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14002 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14003 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14004 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14005 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14006 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
14007 .rlen = 64,
14008 }, { /* Generated with Crypto++ */
14009 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14010 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14011 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14012 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14013 .klen = 32,
14014 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14015 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14016 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14017 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14018 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14019 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14020 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14021 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14022 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14023 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14024 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14025 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14026 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14027 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14028 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14029 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14030 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14031 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14032 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14033 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14034 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14035 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14036 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14037 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14038 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14039 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14040 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14041 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14042 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14043 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14044 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14045 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14046 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14047 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14048 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14049 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14050 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14051 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14052 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14053 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14054 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14055 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14056 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14057 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14058 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14059 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14060 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14061 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14062 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14063 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14064 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14065 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14066 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14067 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14068 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14069 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14070 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14071 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14072 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14073 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14074 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14075 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14076 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14077 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
14078 .ilen = 496,
14079 .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
14080 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
14081 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
14082 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
14083 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
14084 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
14085 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
14086 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
14087 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
14088 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
14089 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
14090 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
14091 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
14092 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
14093 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
14094 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
14095 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
14096 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
14097 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
14098 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
14099 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
14100 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
14101 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
14102 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
14103 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
14104 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
14105 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
14106 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
14107 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
14108 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
14109 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
14110 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
14111 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
14112 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
14113 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
14114 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
14115 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
14116 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
14117 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
14118 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
14119 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
14120 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
14121 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
14122 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
14123 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
14124 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
14125 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
14126 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
14127 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
14128 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
14129 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
14130 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
14131 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
14132 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
14133 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
14134 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
14135 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
14136 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
14137 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
14138 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
14139 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
14140 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
14141 .rlen = 496,
14142 .also_non_np = 1,
14143 .np = 2,
14144 .tap = { 496 - 16, 16 },
14148 static struct cipher_testvec aes_cbc_dec_tv_template[] = {
14149 { /* From RFC 3602 */
14150 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
14151 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
14152 .klen = 16,
14153 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
14154 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
14155 .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
14156 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
14157 .ilen = 16,
14158 .result = "Single block msg",
14159 .rlen = 16,
14160 }, {
14161 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
14162 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14163 .klen = 16,
14164 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14165 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14166 .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14167 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14168 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14169 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
14170 .ilen = 32,
14171 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
14172 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14173 "\x10\x11\x12\x13\x14\x15\x16\x17"
14174 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14175 .rlen = 32,
14176 }, { /* From NIST SP800-38A */
14177 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14178 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14179 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14180 .klen = 24,
14181 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14182 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14183 .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
14184 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14185 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
14186 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
14187 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
14188 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
14189 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
14190 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
14191 .ilen = 64,
14192 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14193 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14194 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14195 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14196 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14197 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14198 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14199 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14200 .rlen = 64,
14201 }, {
14202 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14203 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14204 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14205 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14206 .klen = 32,
14207 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14208 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14209 .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
14210 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14211 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14212 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14213 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14214 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14215 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14216 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
14217 .ilen = 64,
14218 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14219 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14220 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14221 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14222 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14223 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14224 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14225 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14226 .rlen = 64,
14227 }, { /* Generated with Crypto++ */
14228 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14229 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14230 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14231 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14232 .klen = 32,
14233 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14234 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14235 .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
14236 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
14237 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
14238 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
14239 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
14240 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
14241 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
14242 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
14243 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
14244 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
14245 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
14246 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
14247 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
14248 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
14249 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
14250 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
14251 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
14252 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
14253 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
14254 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
14255 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
14256 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
14257 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
14258 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
14259 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
14260 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
14261 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
14262 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
14263 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
14264 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
14265 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
14266 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
14267 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
14268 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
14269 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
14270 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
14271 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
14272 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
14273 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
14274 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
14275 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
14276 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
14277 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
14278 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
14279 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
14280 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
14281 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
14282 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
14283 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
14284 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
14285 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
14286 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
14287 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
14288 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
14289 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
14290 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
14291 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
14292 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
14293 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
14294 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
14295 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
14296 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
14297 .ilen = 496,
14298 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14299 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14300 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14301 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14302 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14303 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14304 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14305 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14306 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14307 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14308 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14309 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14310 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14311 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14312 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14313 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14314 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14315 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14316 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14317 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14318 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14319 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14320 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14321 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14322 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14323 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14324 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14325 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14326 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14327 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14328 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14329 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14330 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14331 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14332 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14333 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14334 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14335 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14336 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14337 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14338 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14339 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14340 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14341 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14342 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14343 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14344 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14345 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14346 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14347 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14348 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14349 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14350 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14351 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14352 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14353 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14354 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14355 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14356 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14357 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14358 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14359 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
14360 .rlen = 496,
14361 .also_non_np = 1,
14362 .np = 2,
14363 .tap = { 496 - 16, 16 },
14367 static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
14368 { /* Input data from RFC 2410 Case 1 */
14369 #ifdef __LITTLE_ENDIAN
14370 .key = "\x08\x00" /* rta length */
14371 "\x01\x00" /* rta type */
14372 #else
14373 .key = "\x00\x08" /* rta length */
14374 "\x00\x01" /* rta type */
14375 #endif
14376 "\x00\x00\x00\x00" /* enc key length */
14377 "\x00\x00\x00\x00\x00\x00\x00\x00"
14378 "\x00\x00\x00\x00\x00\x00\x00\x00",
14379 .klen = 8 + 16 + 0,
14380 .iv = "",
14381 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14382 .ilen = 8,
14383 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14384 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
14385 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
14386 .rlen = 8 + 16,
14387 }, { /* Input data from RFC 2410 Case 2 */
14388 #ifdef __LITTLE_ENDIAN
14389 .key = "\x08\x00" /* rta length */
14390 "\x01\x00" /* rta type */
14391 #else
14392 .key = "\x00\x08" /* rta length */
14393 "\x00\x01" /* rta type */
14394 #endif
14395 "\x00\x00\x00\x00" /* enc key length */
14396 "\x00\x00\x00\x00\x00\x00\x00\x00"
14397 "\x00\x00\x00\x00\x00\x00\x00\x00",
14398 .klen = 8 + 16 + 0,
14399 .iv = "",
14400 .input = "Network Security People Have A Strange Sense Of Humor",
14401 .ilen = 53,
14402 .result = "Network Security People Have A Strange Sense Of Humor"
14403 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
14404 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
14405 .rlen = 53 + 16,
14409 static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
14411 #ifdef __LITTLE_ENDIAN
14412 .key = "\x08\x00" /* rta length */
14413 "\x01\x00" /* rta type */
14414 #else
14415 .key = "\x00\x08" /* rta length */
14416 "\x00\x01" /* rta type */
14417 #endif
14418 "\x00\x00\x00\x00" /* enc key length */
14419 "\x00\x00\x00\x00\x00\x00\x00\x00"
14420 "\x00\x00\x00\x00\x00\x00\x00\x00",
14421 .klen = 8 + 16 + 0,
14422 .iv = "",
14423 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14424 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
14425 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
14426 .ilen = 8 + 16,
14427 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14428 .rlen = 8,
14429 }, {
14430 #ifdef __LITTLE_ENDIAN
14431 .key = "\x08\x00" /* rta length */
14432 "\x01\x00" /* rta type */
14433 #else
14434 .key = "\x00\x08" /* rta length */
14435 "\x00\x01" /* rta type */
14436 #endif
14437 "\x00\x00\x00\x00" /* enc key length */
14438 "\x00\x00\x00\x00\x00\x00\x00\x00"
14439 "\x00\x00\x00\x00\x00\x00\x00\x00",
14440 .klen = 8 + 16 + 0,
14441 .iv = "",
14442 .input = "Network Security People Have A Strange Sense Of Humor"
14443 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
14444 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
14445 .ilen = 53 + 16,
14446 .result = "Network Security People Have A Strange Sense Of Humor",
14447 .rlen = 53,
14451 static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
14452 { /* RFC 3602 Case 1 */
14453 #ifdef __LITTLE_ENDIAN
14454 .key = "\x08\x00" /* rta length */
14455 "\x01\x00" /* rta type */
14456 #else
14457 .key = "\x00\x08" /* rta length */
14458 "\x00\x01" /* rta type */
14459 #endif
14460 "\x00\x00\x00\x10" /* enc key length */
14461 "\x00\x00\x00\x00\x00\x00\x00\x00"
14462 "\x00\x00\x00\x00\x00\x00\x00\x00"
14463 "\x00\x00\x00\x00"
14464 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
14465 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
14466 .klen = 8 + 20 + 16,
14467 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
14468 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
14469 .input = "Single block msg",
14470 .ilen = 16,
14471 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
14472 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
14473 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
14474 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
14475 "\x03\x71\xa2\x06",
14476 .rlen = 16 + 20,
14477 }, { /* RFC 3602 Case 2 */
14478 #ifdef __LITTLE_ENDIAN
14479 .key = "\x08\x00" /* rta length */
14480 "\x01\x00" /* rta type */
14481 #else
14482 .key = "\x00\x08" /* rta length */
14483 "\x00\x01" /* rta type */
14484 #endif
14485 "\x00\x00\x00\x10" /* enc key length */
14486 "\x20\x21\x22\x23\x24\x25\x26\x27"
14487 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14488 "\x30\x31\x32\x33"
14489 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
14490 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14491 .klen = 8 + 20 + 16,
14492 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14493 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14494 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14495 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14496 "\x10\x11\x12\x13\x14\x15\x16\x17"
14497 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14498 .ilen = 32,
14499 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14500 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14501 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14502 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
14503 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
14504 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
14505 "\x65\x39\xf8\xde",
14506 .rlen = 32 + 20,
14507 }, { /* RFC 3602 Case 3 */
14508 #ifdef __LITTLE_ENDIAN
14509 .key = "\x08\x00" /* rta length */
14510 "\x01\x00" /* rta type */
14511 #else
14512 .key = "\x00\x08" /* rta length */
14513 "\x00\x01" /* rta type */
14514 #endif
14515 "\x00\x00\x00\x10" /* enc key length */
14516 "\x11\x22\x33\x44\x55\x66\x77\x88"
14517 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14518 "\x22\x33\x44\x55"
14519 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
14520 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
14521 .klen = 8 + 20 + 16,
14522 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
14523 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
14524 .input = "This is a 48-byte message (exactly 3 AES blocks)",
14525 .ilen = 48,
14526 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
14527 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
14528 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
14529 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
14530 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
14531 "\x85\x79\x69\x5d\x83\xba\x26\x84"
14532 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
14533 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
14534 "\x8d\x62\xf2\x1e",
14535 .rlen = 48 + 20,
14536 }, { /* RFC 3602 Case 4 */
14537 #ifdef __LITTLE_ENDIAN
14538 .key = "\x08\x00" /* rta length */
14539 "\x01\x00" /* rta type */
14540 #else
14541 .key = "\x00\x08" /* rta length */
14542 "\x00\x01" /* rta type */
14543 #endif
14544 "\x00\x00\x00\x10" /* enc key length */
14545 "\x11\x22\x33\x44\x55\x66\x77\x88"
14546 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14547 "\x22\x33\x44\x55"
14548 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
14549 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
14550 .klen = 8 + 20 + 16,
14551 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
14552 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
14553 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14554 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14555 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14556 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14557 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14558 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14559 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14560 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
14561 .ilen = 64,
14562 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
14563 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
14564 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
14565 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
14566 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
14567 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
14568 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
14569 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
14570 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
14571 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
14572 "\x1d\xbe\xc6\xe9",
14573 .rlen = 64 + 20,
14574 }, { /* RFC 3602 Case 5 */
14575 #ifdef __LITTLE_ENDIAN
14576 .key = "\x08\x00" /* rta length */
14577 "\x01\x00" /* rta type */
14578 #else
14579 .key = "\x00\x08" /* rta length */
14580 "\x00\x01" /* rta type */
14581 #endif
14582 "\x00\x00\x00\x10" /* enc key length */
14583 "\x11\x22\x33\x44\x55\x66\x77\x88"
14584 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14585 "\x22\x33\x44\x55"
14586 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
14587 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
14588 .klen = 8 + 20 + 16,
14589 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
14590 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
14591 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
14592 .alen = 8,
14593 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
14594 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
14595 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14596 "\x10\x11\x12\x13\x14\x15\x16\x17"
14597 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14598 "\x20\x21\x22\x23\x24\x25\x26\x27"
14599 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14600 "\x30\x31\x32\x33\x34\x35\x36\x37"
14601 "\x01\x02\x03\x04\x05\x06\x07\x08"
14602 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
14603 .ilen = 80,
14604 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
14605 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
14606 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
14607 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
14608 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
14609 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
14610 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
14611 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
14612 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
14613 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
14614 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
14615 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
14616 "\x85\xe1\x59\xf7",
14617 .rlen = 80 + 20,
14618 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
14619 #ifdef __LITTLE_ENDIAN
14620 .key = "\x08\x00" /* rta length */
14621 "\x01\x00" /* rta type */
14622 #else
14623 .key = "\x00\x08" /* rta length */
14624 "\x00\x01" /* rta type */
14625 #endif
14626 "\x00\x00\x00\x18" /* enc key length */
14627 "\x11\x22\x33\x44\x55\x66\x77\x88"
14628 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14629 "\x22\x33\x44\x55"
14630 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14631 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14632 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14633 .klen = 8 + 20 + 24,
14634 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14635 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14636 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14637 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14638 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14639 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14640 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14641 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14642 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14643 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14644 .ilen = 64,
14645 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
14646 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14647 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
14648 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
14649 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
14650 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
14651 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
14652 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
14653 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
14654 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
14655 "\x47\x4c\xfc\x36",
14656 .rlen = 64 + 20,
14657 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
14658 #ifdef __LITTLE_ENDIAN
14659 .key = "\x08\x00" /* rta length */
14660 "\x01\x00" /* rta type */
14661 #else
14662 .key = "\x00\x08" /* rta length */
14663 "\x00\x01" /* rta type */
14664 #endif
14665 "\x00\x00\x00\x20" /* enc key length */
14666 "\x11\x22\x33\x44\x55\x66\x77\x88"
14667 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14668 "\x22\x33\x44\x55"
14669 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14670 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14671 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14672 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14673 .klen = 8 + 20 + 32,
14674 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14675 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14676 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14677 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14678 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14679 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14680 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14681 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14682 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14683 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14684 .ilen = 64,
14685 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
14686 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14687 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14688 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14689 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14690 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14691 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14692 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
14693 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
14694 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
14695 "\x51\xee\xd6\x4e",
14696 .rlen = 64 + 20,
14700 static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
14701 { /* Input data from RFC 2410 Case 1 */
14702 #ifdef __LITTLE_ENDIAN
14703 .key = "\x08\x00" /* rta length */
14704 "\x01\x00" /* rta type */
14705 #else
14706 .key = "\x00\x08" /* rta length */
14707 "\x00\x01" /* rta type */
14708 #endif
14709 "\x00\x00\x00\x00" /* enc key length */
14710 "\x00\x00\x00\x00\x00\x00\x00\x00"
14711 "\x00\x00\x00\x00\x00\x00\x00\x00"
14712 "\x00\x00\x00\x00",
14713 .klen = 8 + 20 + 0,
14714 .iv = "",
14715 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14716 .ilen = 8,
14717 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14718 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
14719 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
14720 "\x8c\x5e\xe4\x08",
14721 .rlen = 8 + 20,
14722 }, { /* Input data from RFC 2410 Case 2 */
14723 #ifdef __LITTLE_ENDIAN
14724 .key = "\x08\x00" /* rta length */
14725 "\x01\x00" /* rta type */
14726 #else
14727 .key = "\x00\x08" /* rta length */
14728 "\x00\x01" /* rta type */
14729 #endif
14730 "\x00\x00\x00\x00" /* enc key length */
14731 "\x00\x00\x00\x00\x00\x00\x00\x00"
14732 "\x00\x00\x00\x00\x00\x00\x00\x00"
14733 "\x00\x00\x00\x00",
14734 .klen = 8 + 20 + 0,
14735 .iv = "",
14736 .input = "Network Security People Have A Strange Sense Of Humor",
14737 .ilen = 53,
14738 .result = "Network Security People Have A Strange Sense Of Humor"
14739 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
14740 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
14741 "\x91\x56\xe4\xd6",
14742 .rlen = 53 + 20,
14746 static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
14748 #ifdef __LITTLE_ENDIAN
14749 .key = "\x08\x00" /* rta length */
14750 "\x01\x00" /* rta type */
14751 #else
14752 .key = "\x00\x08" /* rta length */
14753 "\x00\x01" /* rta type */
14754 #endif
14755 "\x00\x00\x00\x00" /* enc key length */
14756 "\x00\x00\x00\x00\x00\x00\x00\x00"
14757 "\x00\x00\x00\x00\x00\x00\x00\x00"
14758 "\x00\x00\x00\x00",
14759 .klen = 8 + 20 + 0,
14760 .iv = "",
14761 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
14762 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
14763 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
14764 "\x8c\x5e\xe4\x08",
14765 .ilen = 8 + 20,
14766 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
14767 .rlen = 8,
14768 }, {
14769 #ifdef __LITTLE_ENDIAN
14770 .key = "\x08\x00" /* rta length */
14771 "\x01\x00" /* rta type */
14772 #else
14773 .key = "\x00\x08" /* rta length */
14774 "\x00\x01" /* rta type */
14775 #endif
14776 "\x00\x00\x00\x00" /* enc key length */
14777 "\x00\x00\x00\x00\x00\x00\x00\x00"
14778 "\x00\x00\x00\x00\x00\x00\x00\x00"
14779 "\x00\x00\x00\x00",
14780 .klen = 8 + 20 + 0,
14781 .iv = "",
14782 .input = "Network Security People Have A Strange Sense Of Humor"
14783 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
14784 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
14785 "\x91\x56\xe4\xd6",
14786 .ilen = 53 + 20,
14787 .result = "Network Security People Have A Strange Sense Of Humor",
14788 .rlen = 53,
14792 static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
14793 { /* RFC 3602 Case 1 */
14794 #ifdef __LITTLE_ENDIAN
14795 .key = "\x08\x00" /* rta length */
14796 "\x01\x00" /* rta type */
14797 #else
14798 .key = "\x00\x08" /* rta length */
14799 "\x00\x01" /* rta type */
14800 #endif
14801 "\x00\x00\x00\x10" /* enc key length */
14802 "\x00\x00\x00\x00\x00\x00\x00\x00"
14803 "\x00\x00\x00\x00\x00\x00\x00\x00"
14804 "\x00\x00\x00\x00\x00\x00\x00\x00"
14805 "\x00\x00\x00\x00\x00\x00\x00\x00"
14806 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
14807 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
14808 .klen = 8 + 32 + 16,
14809 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
14810 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
14811 .input = "Single block msg",
14812 .ilen = 16,
14813 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
14814 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
14815 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
14816 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
14817 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
14818 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
14819 .rlen = 16 + 32,
14820 }, { /* RFC 3602 Case 2 */
14821 #ifdef __LITTLE_ENDIAN
14822 .key = "\x08\x00" /* rta length */
14823 "\x01\x00" /* rta type */
14824 #else
14825 .key = "\x00\x08" /* rta length */
14826 "\x00\x01" /* rta type */
14827 #endif
14828 "\x00\x00\x00\x10" /* enc key length */
14829 "\x20\x21\x22\x23\x24\x25\x26\x27"
14830 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14831 "\x30\x31\x32\x33\x34\x35\x36\x37"
14832 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14833 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
14834 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14835 .klen = 8 + 32 + 16,
14836 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14837 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14838 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14839 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14840 "\x10\x11\x12\x13\x14\x15\x16\x17"
14841 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14842 .ilen = 32,
14843 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14844 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14845 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14846 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
14847 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
14848 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
14849 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
14850 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
14851 .rlen = 32 + 32,
14852 }, { /* RFC 3602 Case 3 */
14853 #ifdef __LITTLE_ENDIAN
14854 .key = "\x08\x00" /* rta length */
14855 "\x01\x00" /* rta type */
14856 #else
14857 .key = "\x00\x08" /* rta length */
14858 "\x00\x01" /* rta type */
14859 #endif
14860 "\x00\x00\x00\x10" /* enc key length */
14861 "\x11\x22\x33\x44\x55\x66\x77\x88"
14862 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14863 "\x22\x33\x44\x55\x66\x77\x88\x99"
14864 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14865 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
14866 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
14867 .klen = 8 + 32 + 16,
14868 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
14869 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
14870 .input = "This is a 48-byte message (exactly 3 AES blocks)",
14871 .ilen = 48,
14872 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
14873 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
14874 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
14875 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
14876 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
14877 "\x85\x79\x69\x5d\x83\xba\x26\x84"
14878 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
14879 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
14880 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
14881 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
14882 .rlen = 48 + 32,
14883 }, { /* RFC 3602 Case 4 */
14884 #ifdef __LITTLE_ENDIAN
14885 .key = "\x08\x00" /* rta length */
14886 "\x01\x00" /* rta type */
14887 #else
14888 .key = "\x00\x08" /* rta length */
14889 "\x00\x01" /* rta type */
14890 #endif
14891 "\x00\x00\x00\x10" /* enc key length */
14892 "\x11\x22\x33\x44\x55\x66\x77\x88"
14893 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14894 "\x22\x33\x44\x55\x66\x77\x88\x99"
14895 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14896 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
14897 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
14898 .klen = 8 + 32 + 16,
14899 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
14900 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
14901 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14902 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14903 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14904 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14905 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14906 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14907 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14908 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
14909 .ilen = 64,
14910 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
14911 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
14912 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
14913 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
14914 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
14915 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
14916 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
14917 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
14918 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
14919 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
14920 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
14921 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
14922 .rlen = 64 + 32,
14923 }, { /* RFC 3602 Case 5 */
14924 #ifdef __LITTLE_ENDIAN
14925 .key = "\x08\x00" /* rta length */
14926 "\x01\x00" /* rta type */
14927 #else
14928 .key = "\x00\x08" /* rta length */
14929 "\x00\x01" /* rta type */
14930 #endif
14931 "\x00\x00\x00\x10" /* enc key length */
14932 "\x11\x22\x33\x44\x55\x66\x77\x88"
14933 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14934 "\x22\x33\x44\x55\x66\x77\x88\x99"
14935 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14936 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
14937 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
14938 .klen = 8 + 32 + 16,
14939 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
14940 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
14941 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
14942 .alen = 8,
14943 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
14944 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
14945 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14946 "\x10\x11\x12\x13\x14\x15\x16\x17"
14947 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14948 "\x20\x21\x22\x23\x24\x25\x26\x27"
14949 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14950 "\x30\x31\x32\x33\x34\x35\x36\x37"
14951 "\x01\x02\x03\x04\x05\x06\x07\x08"
14952 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
14953 .ilen = 80,
14954 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
14955 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
14956 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
14957 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
14958 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
14959 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
14960 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
14961 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
14962 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
14963 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
14964 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
14965 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
14966 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
14967 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
14968 .rlen = 80 + 32,
14969 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
14970 #ifdef __LITTLE_ENDIAN
14971 .key = "\x08\x00" /* rta length */
14972 "\x01\x00" /* rta type */
14973 #else
14974 .key = "\x00\x08" /* rta length */
14975 "\x00\x01" /* rta type */
14976 #endif
14977 "\x00\x00\x00\x18" /* enc key length */
14978 "\x11\x22\x33\x44\x55\x66\x77\x88"
14979 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14980 "\x22\x33\x44\x55\x66\x77\x88\x99"
14981 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14982 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14983 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14984 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14985 .klen = 8 + 32 + 24,
14986 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14987 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14988 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14989 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14990 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14991 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14992 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14993 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14994 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14995 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14996 .ilen = 64,
14997 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
14998 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14999 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15000 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15001 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15002 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15003 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15004 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
15005 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
15006 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
15007 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
15008 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
15009 .rlen = 64 + 32,
15010 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
15011 #ifdef __LITTLE_ENDIAN
15012 .key = "\x08\x00" /* rta length */
15013 "\x01\x00" /* rta type */
15014 #else
15015 .key = "\x00\x08" /* rta length */
15016 "\x00\x01" /* rta type */
15017 #endif
15018 "\x00\x00\x00\x20" /* enc key length */
15019 "\x11\x22\x33\x44\x55\x66\x77\x88"
15020 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15021 "\x22\x33\x44\x55\x66\x77\x88\x99"
15022 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15023 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15024 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15025 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15026 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15027 .klen = 8 + 32 + 32,
15028 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15029 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15030 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15031 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15032 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15033 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15034 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15035 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15036 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15037 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15038 .ilen = 64,
15039 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15040 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15041 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15042 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15043 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15044 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15045 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15046 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
15047 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
15048 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
15049 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
15050 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
15051 .rlen = 64 + 32,
15055 static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
15056 { /* RFC 3602 Case 1 */
15057 #ifdef __LITTLE_ENDIAN
15058 .key = "\x08\x00" /* rta length */
15059 "\x01\x00" /* rta type */
15060 #else
15061 .key = "\x00\x08" /* rta length */
15062 "\x00\x01" /* rta type */
15063 #endif
15064 "\x00\x00\x00\x10" /* enc key length */
15065 "\x00\x00\x00\x00\x00\x00\x00\x00"
15066 "\x00\x00\x00\x00\x00\x00\x00\x00"
15067 "\x00\x00\x00\x00\x00\x00\x00\x00"
15068 "\x00\x00\x00\x00\x00\x00\x00\x00"
15069 "\x00\x00\x00\x00\x00\x00\x00\x00"
15070 "\x00\x00\x00\x00\x00\x00\x00\x00"
15071 "\x00\x00\x00\x00\x00\x00\x00\x00"
15072 "\x00\x00\x00\x00\x00\x00\x00\x00"
15073 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15074 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15075 .klen = 8 + 64 + 16,
15076 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15077 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15078 .input = "Single block msg",
15079 .ilen = 16,
15080 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15081 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
15082 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
15083 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
15084 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
15085 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
15086 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
15087 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
15088 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
15089 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
15090 .rlen = 16 + 64,
15091 }, { /* RFC 3602 Case 2 */
15092 #ifdef __LITTLE_ENDIAN
15093 .key = "\x08\x00" /* rta length */
15094 "\x01\x00" /* rta type */
15095 #else
15096 .key = "\x00\x08" /* rta length */
15097 "\x00\x01" /* rta type */
15098 #endif
15099 "\x00\x00\x00\x10" /* enc key length */
15100 "\x20\x21\x22\x23\x24\x25\x26\x27"
15101 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15102 "\x30\x31\x32\x33\x34\x35\x36\x37"
15103 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15104 "\x40\x41\x42\x43\x44\x45\x46\x47"
15105 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15106 "\x50\x51\x52\x53\x54\x55\x56\x57"
15107 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15108 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15109 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15110 .klen = 8 + 64 + 16,
15111 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15112 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15113 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
15114 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15115 "\x10\x11\x12\x13\x14\x15\x16\x17"
15116 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15117 .ilen = 32,
15118 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15119 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15120 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15121 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
15122 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
15123 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
15124 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
15125 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
15126 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
15127 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
15128 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
15129 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
15130 .rlen = 32 + 64,
15131 }, { /* RFC 3602 Case 3 */
15132 #ifdef __LITTLE_ENDIAN
15133 .key = "\x08\x00" /* rta length */
15134 "\x01\x00" /* rta type */
15135 #else
15136 .key = "\x00\x08" /* rta length */
15137 "\x00\x01" /* rta type */
15138 #endif
15139 "\x00\x00\x00\x10" /* enc key length */
15140 "\x11\x22\x33\x44\x55\x66\x77\x88"
15141 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15142 "\x22\x33\x44\x55\x66\x77\x88\x99"
15143 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15144 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15145 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15146 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15147 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15148 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
15149 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
15150 .klen = 8 + 64 + 16,
15151 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
15152 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
15153 .input = "This is a 48-byte message (exactly 3 AES blocks)",
15154 .ilen = 48,
15155 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
15156 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
15157 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
15158 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
15159 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
15160 "\x85\x79\x69\x5d\x83\xba\x26\x84"
15161 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
15162 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
15163 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
15164 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
15165 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
15166 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
15167 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
15168 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
15169 .rlen = 48 + 64,
15170 }, { /* RFC 3602 Case 4 */
15171 #ifdef __LITTLE_ENDIAN
15172 .key = "\x08\x00" /* rta length */
15173 "\x01\x00" /* rta type */
15174 #else
15175 .key = "\x00\x08" /* rta length */
15176 "\x00\x01" /* rta type */
15177 #endif
15178 "\x00\x00\x00\x10" /* enc key length */
15179 "\x11\x22\x33\x44\x55\x66\x77\x88"
15180 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15181 "\x22\x33\x44\x55\x66\x77\x88\x99"
15182 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15183 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15184 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15185 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15186 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15187 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
15188 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
15189 .klen = 8 + 64 + 16,
15190 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
15191 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
15192 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15193 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15194 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15195 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15196 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15197 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15198 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15199 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
15200 .ilen = 64,
15201 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
15202 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
15203 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
15204 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
15205 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
15206 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
15207 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
15208 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
15209 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
15210 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
15211 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
15212 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
15213 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
15214 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
15215 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
15216 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
15217 .rlen = 64 + 64,
15218 }, { /* RFC 3602 Case 5 */
15219 #ifdef __LITTLE_ENDIAN
15220 .key = "\x08\x00" /* rta length */
15221 "\x01\x00" /* rta type */
15222 #else
15223 .key = "\x00\x08" /* rta length */
15224 "\x00\x01" /* rta type */
15225 #endif
15226 "\x00\x00\x00\x10" /* enc key length */
15227 "\x11\x22\x33\x44\x55\x66\x77\x88"
15228 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15229 "\x22\x33\x44\x55\x66\x77\x88\x99"
15230 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15231 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15232 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15233 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15234 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15235 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
15236 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
15237 .klen = 8 + 64 + 16,
15238 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
15239 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
15240 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15241 .alen = 8,
15242 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
15243 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
15244 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15245 "\x10\x11\x12\x13\x14\x15\x16\x17"
15246 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15247 "\x20\x21\x22\x23\x24\x25\x26\x27"
15248 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15249 "\x30\x31\x32\x33\x34\x35\x36\x37"
15250 "\x01\x02\x03\x04\x05\x06\x07\x08"
15251 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
15252 .ilen = 80,
15253 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
15254 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
15255 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
15256 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
15257 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
15258 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
15259 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
15260 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
15261 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
15262 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
15263 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
15264 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
15265 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
15266 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
15267 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
15268 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
15269 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
15270 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
15271 .rlen = 80 + 64,
15272 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
15273 #ifdef __LITTLE_ENDIAN
15274 .key = "\x08\x00" /* rta length */
15275 "\x01\x00" /* rta type */
15276 #else
15277 .key = "\x00\x08" /* rta length */
15278 "\x00\x01" /* rta type */
15279 #endif
15280 "\x00\x00\x00\x18" /* enc key length */
15281 "\x11\x22\x33\x44\x55\x66\x77\x88"
15282 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15283 "\x22\x33\x44\x55\x66\x77\x88\x99"
15284 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15285 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15286 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15287 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15288 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15289 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15290 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15291 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15292 .klen = 8 + 64 + 24,
15293 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15294 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15295 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15296 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15297 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15298 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15299 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15300 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15301 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15302 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15303 .ilen = 64,
15304 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15305 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15306 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15307 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15308 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15309 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15310 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15311 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
15312 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
15313 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
15314 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
15315 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
15316 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
15317 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
15318 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
15319 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
15320 .rlen = 64 + 64,
15321 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
15322 #ifdef __LITTLE_ENDIAN
15323 .key = "\x08\x00" /* rta length */
15324 "\x01\x00" /* rta type */
15325 #else
15326 .key = "\x00\x08" /* rta length */
15327 "\x00\x01" /* rta type */
15328 #endif
15329 "\x00\x00\x00\x20" /* enc key length */
15330 "\x11\x22\x33\x44\x55\x66\x77\x88"
15331 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15332 "\x22\x33\x44\x55\x66\x77\x88\x99"
15333 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15334 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15335 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15336 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15337 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15338 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15339 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15340 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15341 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15342 .klen = 8 + 64 + 32,
15343 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15344 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15345 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15346 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15347 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15348 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15349 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15350 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15351 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15352 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15353 .ilen = 64,
15354 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15355 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15356 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15357 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15358 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15359 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15360 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15361 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
15362 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
15363 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
15364 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
15365 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
15366 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
15367 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
15368 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
15369 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
15370 .rlen = 64 + 64,
15374 #define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1
15376 static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
15377 { /*Generated with cryptopp*/
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\x08" /* 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"
15389 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15390 .klen = 8 + 20 + 8,
15391 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15392 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15393 .alen = 8,
15394 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15395 "\x53\x20\x63\x65\x65\x72\x73\x74"
15396 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15397 "\x20\x79\x65\x53\x72\x63\x74\x65"
15398 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15399 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15400 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15401 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15402 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15403 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15404 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15405 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15406 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15407 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15408 "\x63\x65\x65\x72\x73\x74\x54\x20"
15409 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15410 .ilen = 128,
15411 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15412 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15413 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15414 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15415 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15416 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15417 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15418 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15419 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15420 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15421 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15422 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15423 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15424 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15425 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15426 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15427 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
15428 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
15429 "\x5c\x44\xa9\x37",
15430 .rlen = 128 + 20,
15434 #define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1
15436 static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
15437 { /*Generated with cryptopp*/
15438 #ifdef __LITTLE_ENDIAN
15439 .key = "\x08\x00" /* rta length */
15440 "\x01\x00" /* rta type */
15441 #else
15442 .key = "\x00\x08" /* rta length */
15443 "\x00\x01" /* rta type */
15444 #endif
15445 "\x00\x00\x00\x08" /* enc key length */
15446 "\x11\x22\x33\x44\x55\x66\x77\x88"
15447 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15448 "\x22\x33\x44\x55\x66\x77\x88\x99"
15449 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15450 .klen = 8 + 24 + 8,
15451 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15452 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15453 .alen = 8,
15454 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15455 "\x53\x20\x63\x65\x65\x72\x73\x74"
15456 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15457 "\x20\x79\x65\x53\x72\x63\x74\x65"
15458 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15459 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15460 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15461 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15462 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15463 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15464 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15465 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15466 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15467 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15468 "\x63\x65\x65\x72\x73\x74\x54\x20"
15469 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15470 .ilen = 128,
15471 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15472 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15473 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15474 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15475 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15476 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15477 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15478 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15479 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15480 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15481 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15482 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15483 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15484 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15485 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15486 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15487 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
15488 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
15489 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
15490 .rlen = 128 + 24,
15494 #define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1
15496 static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
15497 { /*Generated with cryptopp*/
15498 #ifdef __LITTLE_ENDIAN
15499 .key = "\x08\x00" /* rta length */
15500 "\x01\x00" /* rta type */
15501 #else
15502 .key = "\x00\x08" /* rta length */
15503 "\x00\x01" /* rta type */
15504 #endif
15505 "\x00\x00\x00\x08" /* enc key length */
15506 "\x11\x22\x33\x44\x55\x66\x77\x88"
15507 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15508 "\x22\x33\x44\x55\x66\x77\x88\x99"
15509 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15510 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15511 .klen = 8 + 32 + 8,
15512 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15513 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15514 .alen = 8,
15515 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15516 "\x53\x20\x63\x65\x65\x72\x73\x74"
15517 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15518 "\x20\x79\x65\x53\x72\x63\x74\x65"
15519 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15520 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15521 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15522 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15523 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15524 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15525 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15526 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15527 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15528 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15529 "\x63\x65\x65\x72\x73\x74\x54\x20"
15530 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15531 .ilen = 128,
15532 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15533 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15534 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15535 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15536 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15537 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15538 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15539 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15540 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15541 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15542 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15543 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15544 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15545 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15546 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15547 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15548 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
15549 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
15550 "\xde\x63\xde\x76\x52\xde\x9f\xba"
15551 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
15552 .rlen = 128 + 32,
15556 #define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1
15558 static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
15559 { /*Generated with cryptopp*/
15560 #ifdef __LITTLE_ENDIAN
15561 .key = "\x08\x00" /* rta length */
15562 "\x01\x00" /* rta type */
15563 #else
15564 .key = "\x00\x08" /* rta length */
15565 "\x00\x01" /* rta type */
15566 #endif
15567 "\x00\x00\x00\x08" /* enc key length */
15568 "\x11\x22\x33\x44\x55\x66\x77\x88"
15569 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15570 "\x22\x33\x44\x55\x66\x77\x88\x99"
15571 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15572 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15573 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15574 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15575 .klen = 8 + 48 + 8,
15576 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15577 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15578 .alen = 8,
15579 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15580 "\x53\x20\x63\x65\x65\x72\x73\x74"
15581 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15582 "\x20\x79\x65\x53\x72\x63\x74\x65"
15583 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15584 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15585 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15586 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15587 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15588 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15589 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15590 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15591 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15592 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15593 "\x63\x65\x65\x72\x73\x74\x54\x20"
15594 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15595 .ilen = 128,
15596 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15597 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15598 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15599 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15600 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15601 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15602 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15603 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15604 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15605 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15606 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15607 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15608 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15609 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15610 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15611 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15612 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
15613 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
15614 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
15615 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
15616 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
15617 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
15618 .rlen = 128 + 48,
15622 #define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1
15624 static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
15625 { /*Generated with cryptopp*/
15626 #ifdef __LITTLE_ENDIAN
15627 .key = "\x08\x00" /* rta length */
15628 "\x01\x00" /* rta type */
15629 #else
15630 .key = "\x00\x08" /* rta length */
15631 "\x00\x01" /* rta type */
15632 #endif
15633 "\x00\x00\x00\x08" /* enc key length */
15634 "\x11\x22\x33\x44\x55\x66\x77\x88"
15635 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15636 "\x22\x33\x44\x55\x66\x77\x88\x99"
15637 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15638 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15639 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15640 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15641 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15642 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
15643 .klen = 8 + 64 + 8,
15644 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15645 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15646 .alen = 8,
15647 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15648 "\x53\x20\x63\x65\x65\x72\x73\x74"
15649 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15650 "\x20\x79\x65\x53\x72\x63\x74\x65"
15651 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15652 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15653 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15654 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15655 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15656 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15657 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15658 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15659 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15660 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15661 "\x63\x65\x65\x72\x73\x74\x54\x20"
15662 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15663 .ilen = 128,
15664 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
15665 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
15666 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
15667 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
15668 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
15669 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
15670 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
15671 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
15672 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
15673 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
15674 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
15675 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
15676 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
15677 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
15678 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
15679 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
15680 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
15681 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
15682 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
15683 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
15684 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
15685 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
15686 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
15687 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
15688 .rlen = 128 + 64,
15692 #define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1
15694 static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
15695 { /*Generated with cryptopp*/
15696 #ifdef __LITTLE_ENDIAN
15697 .key = "\x08\x00" /* rta length */
15698 "\x01\x00" /* rta type */
15699 #else
15700 .key = "\x00\x08" /* rta length */
15701 "\x00\x01" /* rta type */
15702 #endif
15703 "\x00\x00\x00\x18" /* enc key length */
15704 "\x11\x22\x33\x44\x55\x66\x77\x88"
15705 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15706 "\x22\x33\x44\x55"
15707 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15708 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15709 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15710 .klen = 8 + 20 + 24,
15711 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15712 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15713 .alen = 8,
15714 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15715 "\x53\x20\x63\x65\x65\x72\x73\x74"
15716 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15717 "\x20\x79\x65\x53\x72\x63\x74\x65"
15718 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15719 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15720 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15721 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15722 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15723 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15724 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15725 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15726 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15727 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15728 "\x63\x65\x65\x72\x73\x74\x54\x20"
15729 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15730 .ilen = 128,
15731 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15732 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15733 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15734 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15735 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15736 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15737 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15738 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15739 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15740 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15741 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15742 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15743 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15744 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15745 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15746 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15747 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
15748 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
15749 "\xd1\x60\x91\xb3",
15750 .rlen = 128 + 20,
15754 #define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1
15756 static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
15757 { /*Generated with cryptopp*/
15758 #ifdef __LITTLE_ENDIAN
15759 .key = "\x08\x00" /* rta length */
15760 "\x01\x00" /* rta type */
15761 #else
15762 .key = "\x00\x08" /* rta length */
15763 "\x00\x01" /* rta type */
15764 #endif
15765 "\x00\x00\x00\x18" /* enc key length */
15766 "\x11\x22\x33\x44\x55\x66\x77\x88"
15767 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15768 "\x22\x33\x44\x55\x66\x77\x88\x99"
15769 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15770 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15771 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15772 .klen = 8 + 24 + 24,
15773 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15774 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15775 .alen = 8,
15776 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15777 "\x53\x20\x63\x65\x65\x72\x73\x74"
15778 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15779 "\x20\x79\x65\x53\x72\x63\x74\x65"
15780 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15781 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15782 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15783 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15784 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15785 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15786 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15787 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15788 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15789 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15790 "\x63\x65\x65\x72\x73\x74\x54\x20"
15791 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15792 .ilen = 128,
15793 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15794 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15795 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15796 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15797 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15798 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15799 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15800 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15801 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15802 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15803 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15804 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15805 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15806 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15807 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15808 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15809 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
15810 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
15811 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
15812 .rlen = 128 + 24,
15816 #define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1
15818 static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
15819 { /*Generated with cryptopp*/
15820 #ifdef __LITTLE_ENDIAN
15821 .key = "\x08\x00" /* rta length */
15822 "\x01\x00" /* rta type */
15823 #else
15824 .key = "\x00\x08" /* rta length */
15825 "\x00\x01" /* rta type */
15826 #endif
15827 "\x00\x00\x00\x18" /* enc key length */
15828 "\x11\x22\x33\x44\x55\x66\x77\x88"
15829 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15830 "\x22\x33\x44\x55\x66\x77\x88\x99"
15831 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15832 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15833 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15834 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15835 .klen = 8 + 32 + 24,
15836 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15837 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15838 .alen = 8,
15839 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15840 "\x53\x20\x63\x65\x65\x72\x73\x74"
15841 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15842 "\x20\x79\x65\x53\x72\x63\x74\x65"
15843 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15844 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15845 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15846 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15847 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15848 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15849 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15850 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15851 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15852 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15853 "\x63\x65\x65\x72\x73\x74\x54\x20"
15854 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15855 .ilen = 128,
15856 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15857 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15858 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15859 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15860 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15861 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15862 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15863 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15864 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15865 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15866 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15867 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15868 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15869 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15870 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15871 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15872 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
15873 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
15874 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
15875 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
15876 .rlen = 128 + 32,
15880 #define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1
15882 static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
15883 { /*Generated with cryptopp*/
15884 #ifdef __LITTLE_ENDIAN
15885 .key = "\x08\x00" /* rta length */
15886 "\x01\x00" /* rta type */
15887 #else
15888 .key = "\x00\x08" /* rta length */
15889 "\x00\x01" /* rta type */
15890 #endif
15891 "\x00\x00\x00\x18" /* enc key length */
15892 "\x11\x22\x33\x44\x55\x66\x77\x88"
15893 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15894 "\x22\x33\x44\x55\x66\x77\x88\x99"
15895 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15896 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15897 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15898 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15899 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15900 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15901 .klen = 8 + 48 + 24,
15902 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15903 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15904 .alen = 8,
15905 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15906 "\x53\x20\x63\x65\x65\x72\x73\x74"
15907 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15908 "\x20\x79\x65\x53\x72\x63\x74\x65"
15909 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15910 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15911 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15912 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15913 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15914 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15915 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15916 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15917 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15918 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15919 "\x63\x65\x65\x72\x73\x74\x54\x20"
15920 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15921 .ilen = 128,
15922 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15923 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15924 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15925 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15926 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15927 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15928 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15929 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
15930 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
15931 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
15932 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
15933 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
15934 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
15935 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
15936 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
15937 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
15938 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
15939 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
15940 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
15941 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
15942 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
15943 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
15944 .rlen = 128 + 48,
15948 #define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1
15950 static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
15951 { /*Generated with cryptopp*/
15952 #ifdef __LITTLE_ENDIAN
15953 .key = "\x08\x00" /* rta length */
15954 "\x01\x00" /* rta type */
15955 #else
15956 .key = "\x00\x08" /* rta length */
15957 "\x00\x01" /* rta type */
15958 #endif
15959 "\x00\x00\x00\x18" /* enc key length */
15960 "\x11\x22\x33\x44\x55\x66\x77\x88"
15961 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
15962 "\x22\x33\x44\x55\x66\x77\x88\x99"
15963 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
15964 "\x33\x44\x55\x66\x77\x88\x99\xaa"
15965 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
15966 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
15967 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
15968 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
15969 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
15970 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
15971 .klen = 8 + 64 + 24,
15972 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
15973 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
15974 .alen = 8,
15975 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
15976 "\x53\x20\x63\x65\x65\x72\x73\x74"
15977 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
15978 "\x20\x79\x65\x53\x72\x63\x74\x65"
15979 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
15980 "\x79\x6e\x53\x20\x63\x65\x65\x72"
15981 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
15982 "\x6e\x61\x20\x79\x65\x53\x72\x63"
15983 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
15984 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
15985 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
15986 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
15987 "\x72\x63\x74\x65\x20\x73\x6f\x54"
15988 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
15989 "\x63\x65\x65\x72\x73\x74\x54\x20"
15990 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
15991 .ilen = 128,
15992 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
15993 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
15994 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
15995 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
15996 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
15997 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
15998 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
15999 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
16000 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
16001 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
16002 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
16003 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
16004 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
16005 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
16006 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
16007 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
16008 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
16009 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
16010 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
16011 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
16012 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
16013 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
16014 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
16015 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
16016 .rlen = 128 + 64,
16020 static struct cipher_testvec aes_lrw_enc_tv_template[] = {
16021 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
16022 { /* LRW-32-AES 1 */
16023 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
16024 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
16025 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
16026 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
16027 .klen = 32,
16028 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16029 "\x00\x00\x00\x00\x00\x00\x00\x01",
16030 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16031 "\x38\x39\x41\x42\x43\x44\x45\x46",
16032 .ilen = 16,
16033 .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
16034 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
16035 .rlen = 16,
16036 }, { /* LRW-32-AES 2 */
16037 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
16038 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
16039 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
16040 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
16041 .klen = 32,
16042 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16043 "\x00\x00\x00\x00\x00\x00\x00\x02",
16044 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16045 "\x38\x39\x41\x42\x43\x44\x45\x46",
16046 .ilen = 16,
16047 .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
16048 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
16049 .rlen = 16,
16050 }, { /* LRW-32-AES 3 */
16051 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
16052 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
16053 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
16054 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
16055 .klen = 32,
16056 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16057 "\x00\x00\x00\x02\x00\x00\x00\x00",
16058 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16059 "\x38\x39\x41\x42\x43\x44\x45\x46",
16060 .ilen = 16,
16061 .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
16062 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
16063 .rlen = 16,
16064 }, { /* LRW-32-AES 4 */
16065 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
16066 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
16067 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
16068 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
16069 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
16070 .klen = 40,
16071 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16072 "\x00\x00\x00\x00\x00\x00\x00\x01",
16073 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16074 "\x38\x39\x41\x42\x43\x44\x45\x46",
16075 .ilen = 16,
16076 .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
16077 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
16078 .rlen = 16,
16079 }, { /* LRW-32-AES 5 */
16080 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
16081 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
16082 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
16083 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
16084 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
16085 .klen = 40,
16086 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16087 "\x00\x00\x00\x02\x00\x00\x00\x00",
16088 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16089 "\x38\x39\x41\x42\x43\x44\x45\x46",
16090 .ilen = 16,
16091 .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
16092 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
16093 .rlen = 16,
16094 }, { /* LRW-32-AES 6 */
16095 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16096 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16097 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16098 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16099 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16100 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16101 .klen = 48,
16102 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16103 "\x00\x00\x00\x00\x00\x00\x00\x01",
16104 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16105 "\x38\x39\x41\x42\x43\x44\x45\x46",
16106 .ilen = 16,
16107 .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
16108 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
16109 .rlen = 16,
16110 }, { /* LRW-32-AES 7 */
16111 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
16112 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
16113 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
16114 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
16115 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
16116 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
16117 .klen = 48,
16118 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16119 "\x00\x00\x00\x02\x00\x00\x00\x00",
16120 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
16121 "\x38\x39\x41\x42\x43\x44\x45\x46",
16122 .ilen = 16,
16123 .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
16124 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
16125 .rlen = 16,
16126 }, {
16127 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
16128 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16129 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16130 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16131 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16132 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16133 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16134 .klen = 48,
16135 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16136 "\x00\x00\x00\x00\x00\x00\x00\x01",
16137 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
16138 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
16139 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
16140 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
16141 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
16142 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
16143 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
16144 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
16145 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
16146 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
16147 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
16148 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
16149 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
16150 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
16151 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
16152 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
16153 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
16154 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
16155 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
16156 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
16157 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
16158 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
16159 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
16160 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
16161 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
16162 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
16163 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
16164 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
16165 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
16166 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
16167 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
16168 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
16169 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
16170 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
16171 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
16172 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
16173 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
16174 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
16175 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
16176 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
16177 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
16178 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
16179 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
16180 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
16181 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
16182 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
16183 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
16184 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
16185 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
16186 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
16187 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
16188 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
16189 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
16190 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
16191 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
16192 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
16193 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
16194 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
16195 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
16196 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
16197 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
16198 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
16199 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
16200 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
16201 .ilen = 512,
16202 .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
16203 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
16204 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
16205 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
16206 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
16207 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
16208 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
16209 "\xe8\x58\x46\x97\x39\x51\x07\xde"
16210 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
16211 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
16212 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
16213 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
16214 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
16215 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
16216 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
16217 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
16218 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
16219 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
16220 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
16221 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
16222 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
16223 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
16224 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
16225 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
16226 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
16227 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
16228 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
16229 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
16230 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
16231 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
16232 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
16233 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
16234 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
16235 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
16236 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
16237 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
16238 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
16239 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
16240 "\xb8\x79\x78\x97\x94\xff\x72\x13"
16241 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
16242 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
16243 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
16244 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
16245 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
16246 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
16247 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
16248 "\x1e\x86\x53\x11\x53\x94\x00\xee"
16249 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
16250 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
16251 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
16252 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
16253 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
16254 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
16255 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
16256 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
16257 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
16258 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
16259 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
16260 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
16261 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
16262 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
16263 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
16264 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
16265 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
16266 .rlen = 512,
16267 .also_non_np = 1,
16268 .np = 2,
16269 .tap = { 512 - 16, 16 },
16273 static struct cipher_testvec aes_lrw_dec_tv_template[] = {
16274 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
16275 /* same as enc vectors with input and result reversed */
16276 { /* LRW-32-AES 1 */
16277 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
16278 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
16279 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
16280 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
16281 .klen = 32,
16282 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16283 "\x00\x00\x00\x00\x00\x00\x00\x01",
16284 .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
16285 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
16286 .ilen = 16,
16287 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16288 "\x38\x39\x41\x42\x43\x44\x45\x46",
16289 .rlen = 16,
16290 }, { /* LRW-32-AES 2 */
16291 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
16292 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
16293 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
16294 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
16295 .klen = 32,
16296 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16297 "\x00\x00\x00\x00\x00\x00\x00\x02",
16298 .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
16299 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
16300 .ilen = 16,
16301 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16302 "\x38\x39\x41\x42\x43\x44\x45\x46",
16303 .rlen = 16,
16304 }, { /* LRW-32-AES 3 */
16305 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
16306 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
16307 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
16308 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
16309 .klen = 32,
16310 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16311 "\x00\x00\x00\x02\x00\x00\x00\x00",
16312 .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
16313 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
16314 .ilen = 16,
16315 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16316 "\x38\x39\x41\x42\x43\x44\x45\x46",
16317 .rlen = 16,
16318 }, { /* LRW-32-AES 4 */
16319 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
16320 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
16321 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
16322 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
16323 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
16324 .klen = 40,
16325 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16326 "\x00\x00\x00\x00\x00\x00\x00\x01",
16327 .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
16328 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
16329 .ilen = 16,
16330 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16331 "\x38\x39\x41\x42\x43\x44\x45\x46",
16332 .rlen = 16,
16333 }, { /* LRW-32-AES 5 */
16334 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
16335 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
16336 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
16337 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
16338 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
16339 .klen = 40,
16340 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16341 "\x00\x00\x00\x02\x00\x00\x00\x00",
16342 .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
16343 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
16344 .ilen = 16,
16345 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16346 "\x38\x39\x41\x42\x43\x44\x45\x46",
16347 .rlen = 16,
16348 }, { /* LRW-32-AES 6 */
16349 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16350 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16351 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16352 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16353 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16354 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16355 .klen = 48,
16356 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16357 "\x00\x00\x00\x00\x00\x00\x00\x01",
16358 .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
16359 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
16360 .ilen = 16,
16361 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16362 "\x38\x39\x41\x42\x43\x44\x45\x46",
16363 .rlen = 16,
16364 }, { /* LRW-32-AES 7 */
16365 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
16366 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
16367 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
16368 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
16369 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
16370 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
16371 .klen = 48,
16372 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16373 "\x00\x00\x00\x02\x00\x00\x00\x00",
16374 .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
16375 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
16376 .ilen = 16,
16377 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
16378 "\x38\x39\x41\x42\x43\x44\x45\x46",
16379 .rlen = 16,
16380 }, {
16381 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
16382 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
16383 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
16384 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
16385 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
16386 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
16387 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
16388 .klen = 48,
16389 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16390 "\x00\x00\x00\x00\x00\x00\x00\x01",
16391 .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
16392 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
16393 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
16394 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
16395 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
16396 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
16397 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
16398 "\xe8\x58\x46\x97\x39\x51\x07\xde"
16399 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
16400 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
16401 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
16402 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
16403 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
16404 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
16405 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
16406 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
16407 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
16408 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
16409 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
16410 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
16411 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
16412 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
16413 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
16414 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
16415 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
16416 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
16417 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
16418 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
16419 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
16420 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
16421 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
16422 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
16423 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
16424 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
16425 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
16426 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
16427 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
16428 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
16429 "\xb8\x79\x78\x97\x94\xff\x72\x13"
16430 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
16431 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
16432 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
16433 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
16434 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
16435 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
16436 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
16437 "\x1e\x86\x53\x11\x53\x94\x00\xee"
16438 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
16439 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
16440 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
16441 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
16442 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
16443 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
16444 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
16445 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
16446 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
16447 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
16448 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
16449 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
16450 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
16451 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
16452 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
16453 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
16454 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
16455 .ilen = 512,
16456 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
16457 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
16458 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
16459 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
16460 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
16461 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
16462 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
16463 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
16464 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
16465 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
16466 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
16467 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
16468 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
16469 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
16470 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
16471 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
16472 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
16473 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
16474 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
16475 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
16476 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
16477 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
16478 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
16479 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
16480 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
16481 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
16482 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
16483 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
16484 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
16485 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
16486 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
16487 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
16488 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
16489 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
16490 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
16491 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
16492 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
16493 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
16494 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
16495 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
16496 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
16497 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
16498 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
16499 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
16500 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
16501 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
16502 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
16503 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
16504 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
16505 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
16506 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
16507 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
16508 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
16509 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
16510 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
16511 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
16512 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
16513 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
16514 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
16515 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
16516 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
16517 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
16518 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
16519 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
16520 .rlen = 512,
16521 .also_non_np = 1,
16522 .np = 2,
16523 .tap = { 512 - 16, 16 },
16527 static struct cipher_testvec aes_xts_enc_tv_template[] = {
16528 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
16529 { /* XTS-AES 1 */
16530 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
16531 "\x00\x00\x00\x00\x00\x00\x00\x00"
16532 "\x00\x00\x00\x00\x00\x00\x00\x00"
16533 "\x00\x00\x00\x00\x00\x00\x00\x00",
16534 .klen = 32,
16535 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16536 "\x00\x00\x00\x00\x00\x00\x00\x00",
16537 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
16538 "\x00\x00\x00\x00\x00\x00\x00\x00"
16539 "\x00\x00\x00\x00\x00\x00\x00\x00"
16540 "\x00\x00\x00\x00\x00\x00\x00\x00",
16541 .ilen = 32,
16542 .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
16543 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
16544 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
16545 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
16546 .rlen = 32,
16547 }, { /* XTS-AES 2 */
16548 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
16549 "\x11\x11\x11\x11\x11\x11\x11\x11"
16550 "\x22\x22\x22\x22\x22\x22\x22\x22"
16551 "\x22\x22\x22\x22\x22\x22\x22\x22",
16552 .klen = 32,
16553 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16554 "\x00\x00\x00\x00\x00\x00\x00\x00",
16555 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
16556 "\x44\x44\x44\x44\x44\x44\x44\x44"
16557 "\x44\x44\x44\x44\x44\x44\x44\x44"
16558 "\x44\x44\x44\x44\x44\x44\x44\x44",
16559 .ilen = 32,
16560 .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
16561 "\x39\x33\x40\x38\xac\xef\x83\x8b"
16562 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
16563 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
16564 .rlen = 32,
16565 }, { /* XTS-AES 3 */
16566 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
16567 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
16568 "\x22\x22\x22\x22\x22\x22\x22\x22"
16569 "\x22\x22\x22\x22\x22\x22\x22\x22",
16570 .klen = 32,
16571 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16572 "\x00\x00\x00\x00\x00\x00\x00\x00",
16573 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
16574 "\x44\x44\x44\x44\x44\x44\x44\x44"
16575 "\x44\x44\x44\x44\x44\x44\x44\x44"
16576 "\x44\x44\x44\x44\x44\x44\x44\x44",
16577 .ilen = 32,
16578 .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
16579 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
16580 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
16581 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
16582 .rlen = 32,
16583 }, { /* XTS-AES 4 */
16584 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
16585 "\x23\x53\x60\x28\x74\x71\x35\x26"
16586 "\x31\x41\x59\x26\x53\x58\x97\x93"
16587 "\x23\x84\x62\x64\x33\x83\x27\x95",
16588 .klen = 32,
16589 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16590 "\x00\x00\x00\x00\x00\x00\x00\x00",
16591 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16592 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16593 "\x10\x11\x12\x13\x14\x15\x16\x17"
16594 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16595 "\x20\x21\x22\x23\x24\x25\x26\x27"
16596 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16597 "\x30\x31\x32\x33\x34\x35\x36\x37"
16598 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16599 "\x40\x41\x42\x43\x44\x45\x46\x47"
16600 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16601 "\x50\x51\x52\x53\x54\x55\x56\x57"
16602 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16603 "\x60\x61\x62\x63\x64\x65\x66\x67"
16604 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16605 "\x70\x71\x72\x73\x74\x75\x76\x77"
16606 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16607 "\x80\x81\x82\x83\x84\x85\x86\x87"
16608 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16609 "\x90\x91\x92\x93\x94\x95\x96\x97"
16610 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16611 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16612 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16613 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16614 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16615 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16616 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16617 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16618 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16619 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16620 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16621 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16622 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
16623 "\x00\x01\x02\x03\x04\x05\x06\x07"
16624 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16625 "\x10\x11\x12\x13\x14\x15\x16\x17"
16626 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16627 "\x20\x21\x22\x23\x24\x25\x26\x27"
16628 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16629 "\x30\x31\x32\x33\x34\x35\x36\x37"
16630 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16631 "\x40\x41\x42\x43\x44\x45\x46\x47"
16632 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16633 "\x50\x51\x52\x53\x54\x55\x56\x57"
16634 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16635 "\x60\x61\x62\x63\x64\x65\x66\x67"
16636 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16637 "\x70\x71\x72\x73\x74\x75\x76\x77"
16638 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16639 "\x80\x81\x82\x83\x84\x85\x86\x87"
16640 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16641 "\x90\x91\x92\x93\x94\x95\x96\x97"
16642 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16643 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16644 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16645 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16646 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16647 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16648 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16649 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16650 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16651 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16652 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16653 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16654 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
16655 .ilen = 512,
16656 .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
16657 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
16658 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
16659 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
16660 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
16661 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
16662 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
16663 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
16664 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
16665 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
16666 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
16667 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
16668 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
16669 "\x22\x97\x61\x46\xae\x20\xce\x84"
16670 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
16671 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
16672 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
16673 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
16674 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
16675 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
16676 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
16677 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
16678 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
16679 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
16680 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
16681 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
16682 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
16683 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
16684 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
16685 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
16686 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
16687 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
16688 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
16689 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
16690 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
16691 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
16692 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
16693 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
16694 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
16695 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
16696 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
16697 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
16698 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
16699 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
16700 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
16701 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
16702 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
16703 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
16704 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
16705 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
16706 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
16707 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
16708 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
16709 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
16710 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
16711 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
16712 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
16713 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
16714 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
16715 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
16716 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
16717 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
16718 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
16719 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
16720 .rlen = 512,
16721 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
16722 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
16723 "\x23\x53\x60\x28\x74\x71\x35\x26"
16724 "\x62\x49\x77\x57\x24\x70\x93\x69"
16725 "\x99\x59\x57\x49\x66\x96\x76\x27"
16726 "\x31\x41\x59\x26\x53\x58\x97\x93"
16727 "\x23\x84\x62\x64\x33\x83\x27\x95"
16728 "\x02\x88\x41\x97\x16\x93\x99\x37"
16729 "\x51\x05\x82\x09\x74\x94\x45\x92",
16730 .klen = 64,
16731 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
16732 "\x00\x00\x00\x00\x00\x00\x00\x00",
16733 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16734 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16735 "\x10\x11\x12\x13\x14\x15\x16\x17"
16736 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16737 "\x20\x21\x22\x23\x24\x25\x26\x27"
16738 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16739 "\x30\x31\x32\x33\x34\x35\x36\x37"
16740 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16741 "\x40\x41\x42\x43\x44\x45\x46\x47"
16742 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16743 "\x50\x51\x52\x53\x54\x55\x56\x57"
16744 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16745 "\x60\x61\x62\x63\x64\x65\x66\x67"
16746 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16747 "\x70\x71\x72\x73\x74\x75\x76\x77"
16748 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16749 "\x80\x81\x82\x83\x84\x85\x86\x87"
16750 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16751 "\x90\x91\x92\x93\x94\x95\x96\x97"
16752 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16753 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16754 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16755 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16756 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16757 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16758 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16759 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16760 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16761 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16762 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16763 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16764 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
16765 "\x00\x01\x02\x03\x04\x05\x06\x07"
16766 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16767 "\x10\x11\x12\x13\x14\x15\x16\x17"
16768 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16769 "\x20\x21\x22\x23\x24\x25\x26\x27"
16770 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16771 "\x30\x31\x32\x33\x34\x35\x36\x37"
16772 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16773 "\x40\x41\x42\x43\x44\x45\x46\x47"
16774 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16775 "\x50\x51\x52\x53\x54\x55\x56\x57"
16776 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16777 "\x60\x61\x62\x63\x64\x65\x66\x67"
16778 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16779 "\x70\x71\x72\x73\x74\x75\x76\x77"
16780 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16781 "\x80\x81\x82\x83\x84\x85\x86\x87"
16782 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16783 "\x90\x91\x92\x93\x94\x95\x96\x97"
16784 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16785 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16786 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16787 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16788 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16789 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16790 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16791 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16792 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16793 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16794 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16795 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16796 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
16797 .ilen = 512,
16798 .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
16799 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
16800 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
16801 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
16802 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
16803 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
16804 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
16805 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
16806 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
16807 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
16808 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
16809 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
16810 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
16811 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
16812 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
16813 "\x00\x02\x08\x87\x89\x14\x29\xca"
16814 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
16815 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
16816 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
16817 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
16818 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
16819 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
16820 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
16821 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
16822 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
16823 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
16824 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
16825 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
16826 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
16827 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
16828 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
16829 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
16830 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
16831 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
16832 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
16833 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
16834 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
16835 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
16836 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
16837 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
16838 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
16839 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
16840 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
16841 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
16842 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
16843 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
16844 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
16845 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
16846 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
16847 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
16848 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
16849 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
16850 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
16851 "\x94\x30\x54\xff\x84\x01\x14\x93"
16852 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
16853 "\x53\x76\x44\x1a\x77\xed\x43\x85"
16854 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
16855 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
16856 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
16857 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
16858 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
16859 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
16860 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
16861 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
16862 .rlen = 512,
16863 .also_non_np = 1,
16864 .np = 2,
16865 .tap = { 512 - 16, 16 },
16869 static struct cipher_testvec aes_xts_dec_tv_template[] = {
16870 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
16871 { /* XTS-AES 1 */
16872 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
16873 "\x00\x00\x00\x00\x00\x00\x00\x00"
16874 "\x00\x00\x00\x00\x00\x00\x00\x00"
16875 "\x00\x00\x00\x00\x00\x00\x00\x00",
16876 .klen = 32,
16877 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16878 "\x00\x00\x00\x00\x00\x00\x00\x00",
16879 .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
16880 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
16881 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
16882 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
16883 .ilen = 32,
16884 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
16885 "\x00\x00\x00\x00\x00\x00\x00\x00"
16886 "\x00\x00\x00\x00\x00\x00\x00\x00"
16887 "\x00\x00\x00\x00\x00\x00\x00\x00",
16888 .rlen = 32,
16889 }, { /* XTS-AES 2 */
16890 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
16891 "\x11\x11\x11\x11\x11\x11\x11\x11"
16892 "\x22\x22\x22\x22\x22\x22\x22\x22"
16893 "\x22\x22\x22\x22\x22\x22\x22\x22",
16894 .klen = 32,
16895 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16896 "\x00\x00\x00\x00\x00\x00\x00\x00",
16897 .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
16898 "\x39\x33\x40\x38\xac\xef\x83\x8b"
16899 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
16900 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
16901 .ilen = 32,
16902 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
16903 "\x44\x44\x44\x44\x44\x44\x44\x44"
16904 "\x44\x44\x44\x44\x44\x44\x44\x44"
16905 "\x44\x44\x44\x44\x44\x44\x44\x44",
16906 .rlen = 32,
16907 }, { /* XTS-AES 3 */
16908 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
16909 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
16910 "\x22\x22\x22\x22\x22\x22\x22\x22"
16911 "\x22\x22\x22\x22\x22\x22\x22\x22",
16912 .klen = 32,
16913 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
16914 "\x00\x00\x00\x00\x00\x00\x00\x00",
16915 .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
16916 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
16917 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
16918 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
16919 .ilen = 32,
16920 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
16921 "\x44\x44\x44\x44\x44\x44\x44\x44"
16922 "\x44\x44\x44\x44\x44\x44\x44\x44"
16923 "\x44\x44\x44\x44\x44\x44\x44\x44",
16924 .rlen = 32,
16925 }, { /* XTS-AES 4 */
16926 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
16927 "\x23\x53\x60\x28\x74\x71\x35\x26"
16928 "\x31\x41\x59\x26\x53\x58\x97\x93"
16929 "\x23\x84\x62\x64\x33\x83\x27\x95",
16930 .klen = 32,
16931 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
16932 "\x00\x00\x00\x00\x00\x00\x00\x00",
16933 .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
16934 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
16935 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
16936 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
16937 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
16938 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
16939 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
16940 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
16941 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
16942 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
16943 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
16944 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
16945 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
16946 "\x22\x97\x61\x46\xae\x20\xce\x84"
16947 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
16948 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
16949 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
16950 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
16951 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
16952 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
16953 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
16954 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
16955 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
16956 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
16957 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
16958 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
16959 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
16960 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
16961 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
16962 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
16963 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
16964 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
16965 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
16966 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
16967 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
16968 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
16969 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
16970 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
16971 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
16972 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
16973 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
16974 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
16975 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
16976 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
16977 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
16978 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
16979 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
16980 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
16981 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
16982 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
16983 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
16984 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
16985 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
16986 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
16987 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
16988 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
16989 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
16990 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
16991 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
16992 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
16993 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
16994 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
16995 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
16996 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
16997 .ilen = 512,
16998 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
16999 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17000 "\x10\x11\x12\x13\x14\x15\x16\x17"
17001 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17002 "\x20\x21\x22\x23\x24\x25\x26\x27"
17003 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17004 "\x30\x31\x32\x33\x34\x35\x36\x37"
17005 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17006 "\x40\x41\x42\x43\x44\x45\x46\x47"
17007 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17008 "\x50\x51\x52\x53\x54\x55\x56\x57"
17009 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17010 "\x60\x61\x62\x63\x64\x65\x66\x67"
17011 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17012 "\x70\x71\x72\x73\x74\x75\x76\x77"
17013 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17014 "\x80\x81\x82\x83\x84\x85\x86\x87"
17015 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17016 "\x90\x91\x92\x93\x94\x95\x96\x97"
17017 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17018 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17019 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17020 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17021 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17022 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17023 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17024 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17025 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17026 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17027 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17028 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17029 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
17030 "\x00\x01\x02\x03\x04\x05\x06\x07"
17031 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17032 "\x10\x11\x12\x13\x14\x15\x16\x17"
17033 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17034 "\x20\x21\x22\x23\x24\x25\x26\x27"
17035 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17036 "\x30\x31\x32\x33\x34\x35\x36\x37"
17037 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17038 "\x40\x41\x42\x43\x44\x45\x46\x47"
17039 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17040 "\x50\x51\x52\x53\x54\x55\x56\x57"
17041 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17042 "\x60\x61\x62\x63\x64\x65\x66\x67"
17043 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17044 "\x70\x71\x72\x73\x74\x75\x76\x77"
17045 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17046 "\x80\x81\x82\x83\x84\x85\x86\x87"
17047 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17048 "\x90\x91\x92\x93\x94\x95\x96\x97"
17049 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17050 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17051 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17052 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17053 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17054 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17055 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17056 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17057 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17058 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17059 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17060 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17061 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17062 .rlen = 512,
17063 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
17064 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
17065 "\x23\x53\x60\x28\x74\x71\x35\x26"
17066 "\x62\x49\x77\x57\x24\x70\x93\x69"
17067 "\x99\x59\x57\x49\x66\x96\x76\x27"
17068 "\x31\x41\x59\x26\x53\x58\x97\x93"
17069 "\x23\x84\x62\x64\x33\x83\x27\x95"
17070 "\x02\x88\x41\x97\x16\x93\x99\x37"
17071 "\x51\x05\x82\x09\x74\x94\x45\x92",
17072 .klen = 64,
17073 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
17074 "\x00\x00\x00\x00\x00\x00\x00\x00",
17075 .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
17076 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
17077 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
17078 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
17079 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
17080 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
17081 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
17082 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
17083 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
17084 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
17085 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
17086 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
17087 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
17088 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
17089 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
17090 "\x00\x02\x08\x87\x89\x14\x29\xca"
17091 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
17092 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
17093 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
17094 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
17095 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
17096 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
17097 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
17098 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
17099 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
17100 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
17101 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
17102 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
17103 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
17104 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
17105 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
17106 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
17107 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
17108 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
17109 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
17110 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
17111 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
17112 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
17113 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
17114 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
17115 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
17116 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
17117 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
17118 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
17119 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
17120 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
17121 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
17122 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
17123 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
17124 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
17125 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
17126 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
17127 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
17128 "\x94\x30\x54\xff\x84\x01\x14\x93"
17129 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
17130 "\x53\x76\x44\x1a\x77\xed\x43\x85"
17131 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
17132 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
17133 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
17134 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
17135 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
17136 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
17137 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
17138 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
17139 .ilen = 512,
17140 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
17141 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17142 "\x10\x11\x12\x13\x14\x15\x16\x17"
17143 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17144 "\x20\x21\x22\x23\x24\x25\x26\x27"
17145 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17146 "\x30\x31\x32\x33\x34\x35\x36\x37"
17147 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17148 "\x40\x41\x42\x43\x44\x45\x46\x47"
17149 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17150 "\x50\x51\x52\x53\x54\x55\x56\x57"
17151 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17152 "\x60\x61\x62\x63\x64\x65\x66\x67"
17153 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17154 "\x70\x71\x72\x73\x74\x75\x76\x77"
17155 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17156 "\x80\x81\x82\x83\x84\x85\x86\x87"
17157 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17158 "\x90\x91\x92\x93\x94\x95\x96\x97"
17159 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17160 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17161 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17162 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17163 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17164 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17165 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17166 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17167 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17168 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17169 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17170 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17171 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
17172 "\x00\x01\x02\x03\x04\x05\x06\x07"
17173 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17174 "\x10\x11\x12\x13\x14\x15\x16\x17"
17175 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17176 "\x20\x21\x22\x23\x24\x25\x26\x27"
17177 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17178 "\x30\x31\x32\x33\x34\x35\x36\x37"
17179 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
17180 "\x40\x41\x42\x43\x44\x45\x46\x47"
17181 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
17182 "\x50\x51\x52\x53\x54\x55\x56\x57"
17183 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
17184 "\x60\x61\x62\x63\x64\x65\x66\x67"
17185 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
17186 "\x70\x71\x72\x73\x74\x75\x76\x77"
17187 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
17188 "\x80\x81\x82\x83\x84\x85\x86\x87"
17189 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
17190 "\x90\x91\x92\x93\x94\x95\x96\x97"
17191 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
17192 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
17193 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
17194 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
17195 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
17196 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17197 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
17198 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
17199 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
17200 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
17201 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
17202 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17203 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17204 .rlen = 512,
17205 .also_non_np = 1,
17206 .np = 2,
17207 .tap = { 512 - 16, 16 },
17212 static struct cipher_testvec aes_ctr_enc_tv_template[] = {
17213 { /* From NIST Special Publication 800-38A, Appendix F.5 */
17214 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
17215 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
17216 .klen = 16,
17217 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17218 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17219 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17220 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17221 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17222 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17223 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17224 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17225 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17226 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17227 .ilen = 64,
17228 .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
17229 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
17230 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
17231 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
17232 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
17233 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
17234 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
17235 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
17236 .rlen = 64,
17237 }, {
17238 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
17239 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
17240 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
17241 .klen = 24,
17242 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17243 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17244 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17245 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17246 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17247 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17248 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17249 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17250 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17251 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17252 .ilen = 64,
17253 .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
17254 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
17255 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
17256 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
17257 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
17258 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
17259 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
17260 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
17261 .rlen = 64,
17262 }, {
17263 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17264 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17265 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17266 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17267 .klen = 32,
17268 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17269 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17270 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17271 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17272 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17273 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17274 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17275 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17276 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17277 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17278 .ilen = 64,
17279 .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
17280 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
17281 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
17282 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
17283 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
17284 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
17285 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
17286 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
17287 .rlen = 64,
17288 }, { /* Generated with Crypto++ */
17289 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17290 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17291 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17292 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17293 .klen = 32,
17294 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
17295 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
17296 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17297 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17298 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17299 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17300 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17301 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17302 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17303 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17304 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17305 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17306 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17307 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17308 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17309 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17310 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17311 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17312 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17313 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17314 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17315 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17316 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17317 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17318 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17319 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17320 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17321 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17322 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17323 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17324 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17325 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17326 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17327 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17328 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17329 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17330 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17331 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17332 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17333 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17334 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17335 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17336 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17337 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17338 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17339 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17340 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17341 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17342 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17343 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17344 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17345 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17346 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17347 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17348 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17349 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17350 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17351 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17352 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17353 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17354 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17355 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17356 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17357 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
17358 .ilen = 496,
17359 .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
17360 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
17361 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
17362 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
17363 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
17364 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
17365 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
17366 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
17367 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
17368 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
17369 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
17370 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
17371 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
17372 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
17373 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
17374 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
17375 "\x34\x4B\x31\x69\x84\x66\x96\x44"
17376 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
17377 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
17378 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
17379 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
17380 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
17381 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
17382 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
17383 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
17384 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
17385 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
17386 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
17387 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
17388 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
17389 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
17390 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
17391 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
17392 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
17393 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
17394 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
17395 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
17396 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
17397 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
17398 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
17399 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
17400 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
17401 "\x85\x99\x22\xE8\x91\x38\x70\x83"
17402 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
17403 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
17404 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
17405 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
17406 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
17407 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
17408 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
17409 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
17410 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
17411 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
17412 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
17413 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
17414 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
17415 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
17416 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
17417 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
17418 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
17419 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
17420 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
17421 .rlen = 496,
17422 .also_non_np = 1,
17423 .np = 2,
17424 .tap = { 496 - 16, 16 },
17425 }, { /* Generated with Crypto++ */
17426 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17427 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17428 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17429 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17430 .klen = 32,
17431 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
17432 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
17433 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17434 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17435 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17436 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17437 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17438 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17439 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17440 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17441 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17442 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17443 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17444 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17445 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17446 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17447 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17448 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17449 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17450 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17451 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17452 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17453 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17454 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17455 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17456 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17457 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17458 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17459 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17460 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17461 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17462 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17463 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17464 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17465 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17466 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17467 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17468 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17469 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17470 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17471 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17472 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17473 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17474 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17475 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17476 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17477 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17478 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17479 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17480 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17481 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17482 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17483 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17484 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17485 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17486 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17487 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17488 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17489 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17490 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17491 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17492 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17493 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17494 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
17495 "\x7B\xE4\x4D",
17496 .ilen = 499,
17497 .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
17498 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
17499 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
17500 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
17501 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
17502 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
17503 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
17504 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
17505 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
17506 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
17507 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
17508 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
17509 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
17510 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
17511 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
17512 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
17513 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
17514 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
17515 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
17516 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
17517 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
17518 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
17519 "\x45\x18\x18\x74\x19\xAD\x71\x01"
17520 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
17521 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
17522 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
17523 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
17524 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
17525 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
17526 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
17527 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
17528 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
17529 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
17530 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
17531 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
17532 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
17533 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
17534 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
17535 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
17536 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
17537 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
17538 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
17539 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
17540 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
17541 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
17542 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
17543 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
17544 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
17545 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
17546 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
17547 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
17548 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
17549 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
17550 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
17551 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
17552 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
17553 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
17554 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
17555 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
17556 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
17557 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
17558 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
17559 "\xFB\xF2\x3F",
17560 .rlen = 499,
17561 .also_non_np = 1,
17562 .np = 2,
17563 .tap = { 499 - 16, 16 },
17567 static struct cipher_testvec aes_ctr_dec_tv_template[] = {
17568 { /* From NIST Special Publication 800-38A, Appendix F.5 */
17569 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
17570 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
17571 .klen = 16,
17572 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17573 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17574 .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
17575 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
17576 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
17577 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
17578 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
17579 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
17580 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
17581 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
17582 .ilen = 64,
17583 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17584 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17585 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17586 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17587 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17588 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17589 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17590 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17591 .rlen = 64,
17592 }, {
17593 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
17594 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
17595 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
17596 .klen = 24,
17597 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17598 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17599 .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
17600 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
17601 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
17602 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
17603 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
17604 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
17605 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
17606 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
17607 .ilen = 64,
17608 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17609 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17610 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17611 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17612 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17613 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17614 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17615 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17616 .rlen = 64,
17617 }, {
17618 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17619 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17620 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17621 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17622 .klen = 32,
17623 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
17624 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
17625 .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
17626 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
17627 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
17628 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
17629 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
17630 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
17631 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
17632 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
17633 .ilen = 64,
17634 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17635 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17636 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17637 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17638 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17639 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17640 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17641 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17642 .rlen = 64,
17643 }, { /* Generated with Crypto++ */
17644 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17645 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17646 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17647 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17648 .klen = 32,
17649 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
17650 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
17651 .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
17652 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
17653 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
17654 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
17655 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
17656 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
17657 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
17658 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
17659 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
17660 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
17661 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
17662 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
17663 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
17664 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
17665 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
17666 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
17667 "\x34\x4B\x31\x69\x84\x66\x96\x44"
17668 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
17669 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
17670 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
17671 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
17672 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
17673 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
17674 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
17675 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
17676 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
17677 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
17678 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
17679 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
17680 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
17681 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
17682 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
17683 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
17684 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
17685 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
17686 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
17687 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
17688 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
17689 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
17690 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
17691 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
17692 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
17693 "\x85\x99\x22\xE8\x91\x38\x70\x83"
17694 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
17695 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
17696 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
17697 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
17698 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
17699 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
17700 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
17701 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
17702 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
17703 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
17704 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
17705 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
17706 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
17707 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
17708 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
17709 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
17710 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
17711 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
17712 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
17713 .ilen = 496,
17714 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17715 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17716 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17717 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17718 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17719 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17720 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17721 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17722 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17723 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17724 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17725 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17726 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17727 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17728 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17729 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17730 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17731 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17732 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17733 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17734 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17735 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17736 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17737 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17738 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17739 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17740 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17741 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17742 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17743 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17744 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17745 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17746 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17747 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17748 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17749 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17750 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17751 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17752 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17753 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17754 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17755 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17756 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17757 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17758 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17759 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17760 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17761 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17762 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17763 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17764 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17765 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17766 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17767 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17768 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17769 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17770 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17771 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17772 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17773 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17774 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17775 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
17776 .rlen = 496,
17777 .also_non_np = 1,
17778 .np = 2,
17779 .tap = { 496 - 16, 16 },
17780 }, { /* Generated with Crypto++ */
17781 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
17782 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
17783 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
17784 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
17785 .klen = 32,
17786 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
17787 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
17788 .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
17789 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
17790 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
17791 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
17792 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
17793 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
17794 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
17795 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
17796 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
17797 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
17798 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
17799 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
17800 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
17801 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
17802 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
17803 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
17804 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
17805 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
17806 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
17807 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
17808 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
17809 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
17810 "\x45\x18\x18\x74\x19\xAD\x71\x01"
17811 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
17812 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
17813 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
17814 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
17815 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
17816 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
17817 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
17818 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
17819 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
17820 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
17821 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
17822 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
17823 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
17824 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
17825 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
17826 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
17827 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
17828 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
17829 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
17830 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
17831 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
17832 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
17833 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
17834 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
17835 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
17836 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
17837 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
17838 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
17839 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
17840 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
17841 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
17842 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
17843 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
17844 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
17845 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
17846 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
17847 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
17848 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
17849 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
17850 "\xFB\xF2\x3F",
17851 .ilen = 499,
17852 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
17853 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
17854 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
17855 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
17856 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
17857 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
17858 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
17859 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
17860 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
17861 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
17862 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
17863 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
17864 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
17865 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
17866 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
17867 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
17868 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
17869 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
17870 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
17871 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
17872 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
17873 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
17874 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
17875 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
17876 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
17877 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
17878 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
17879 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
17880 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
17881 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
17882 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
17883 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
17884 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
17885 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
17886 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
17887 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
17888 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
17889 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
17890 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
17891 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
17892 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
17893 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
17894 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
17895 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
17896 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
17897 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
17898 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
17899 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
17900 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
17901 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
17902 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
17903 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
17904 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
17905 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
17906 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
17907 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
17908 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
17909 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
17910 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
17911 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
17912 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
17913 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
17914 "\x7B\xE4\x4D",
17915 .rlen = 499,
17916 .also_non_np = 1,
17917 .np = 2,
17918 .tap = { 499 - 16, 16 },
17922 static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
17923 { /* From RFC 3686 */
17924 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
17925 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
17926 "\x00\x00\x00\x30",
17927 .klen = 20,
17928 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
17929 .input = "Single block msg",
17930 .ilen = 16,
17931 .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
17932 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
17933 .rlen = 16,
17934 }, {
17935 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
17936 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
17937 "\x00\x6c\xb6\xdb",
17938 .klen = 20,
17939 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
17940 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
17941 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17942 "\x10\x11\x12\x13\x14\x15\x16\x17"
17943 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
17944 .ilen = 32,
17945 .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
17946 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
17947 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
17948 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
17949 .rlen = 32,
17950 }, {
17951 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
17952 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
17953 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
17954 "\x00\x00\x00\x48",
17955 .klen = 28,
17956 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
17957 .input = "Single block msg",
17958 .ilen = 16,
17959 .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
17960 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
17961 .rlen = 16,
17962 }, {
17963 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
17964 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
17965 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
17966 "\x00\x96\xb0\x3b",
17967 .klen = 28,
17968 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
17969 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
17970 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17971 "\x10\x11\x12\x13\x14\x15\x16\x17"
17972 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
17973 .ilen = 32,
17974 .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
17975 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
17976 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
17977 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
17978 .rlen = 32,
17979 }, {
17980 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
17981 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
17982 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
17983 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
17984 "\x00\x00\x00\x60",
17985 .klen = 36,
17986 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
17987 .input = "Single block msg",
17988 .ilen = 16,
17989 .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
17990 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
17991 .rlen = 16,
17992 }, {
17993 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
17994 "\x07\x96\x36\x58\x79\xef\xf8\x86"
17995 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
17996 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
17997 "\x00\xfa\xac\x24",
17998 .klen = 36,
17999 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
18000 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18001 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18002 "\x10\x11\x12\x13\x14\x15\x16\x17"
18003 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
18004 .ilen = 32,
18005 .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
18006 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
18007 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
18008 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
18009 .rlen = 32,
18010 }, {
18011 // generated using Crypto++
18012 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
18013 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18014 "\x10\x11\x12\x13\x14\x15\x16\x17"
18015 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18016 "\x00\x00\x00\x00",
18017 .klen = 32 + 4,
18018 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
18019 .input =
18020 "\x00\x01\x02\x03\x04\x05\x06\x07"
18021 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18022 "\x10\x11\x12\x13\x14\x15\x16\x17"
18023 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18024 "\x20\x21\x22\x23\x24\x25\x26\x27"
18025 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18026 "\x30\x31\x32\x33\x34\x35\x36\x37"
18027 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18028 "\x40\x41\x42\x43\x44\x45\x46\x47"
18029 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18030 "\x50\x51\x52\x53\x54\x55\x56\x57"
18031 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18032 "\x60\x61\x62\x63\x64\x65\x66\x67"
18033 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18034 "\x70\x71\x72\x73\x74\x75\x76\x77"
18035 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18036 "\x80\x81\x82\x83\x84\x85\x86\x87"
18037 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18038 "\x90\x91\x92\x93\x94\x95\x96\x97"
18039 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18040 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18041 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18042 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18043 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18044 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18045 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18046 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18047 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18048 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18049 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18050 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18051 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18052 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
18053 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
18054 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
18055 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
18056 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
18057 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
18058 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
18059 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
18060 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
18061 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
18062 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
18063 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
18064 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
18065 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
18066 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
18067 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
18068 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
18069 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
18070 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
18071 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
18072 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
18073 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
18074 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
18075 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
18076 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
18077 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
18078 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
18079 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
18080 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
18081 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
18082 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
18083 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
18084 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
18085 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
18086 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
18087 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
18088 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
18089 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
18090 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
18091 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
18092 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
18093 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
18094 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
18095 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
18096 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
18097 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
18098 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
18099 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
18100 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
18101 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
18102 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
18103 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
18104 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
18105 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
18106 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
18107 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
18108 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
18109 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
18110 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
18111 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
18112 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
18113 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
18114 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
18115 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
18116 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
18117 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
18118 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
18119 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
18120 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
18121 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
18122 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
18123 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
18124 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
18125 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
18126 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
18127 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
18128 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
18129 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
18130 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
18131 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
18132 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
18133 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
18134 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
18135 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
18136 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
18137 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
18138 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
18139 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
18140 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
18141 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
18142 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
18143 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
18144 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
18145 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
18146 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
18147 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
18148 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
18149 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
18150 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
18151 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
18152 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
18153 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
18154 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
18155 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
18156 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
18157 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
18158 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
18159 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
18160 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
18161 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
18162 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
18163 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
18164 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
18165 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
18166 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
18167 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
18168 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
18169 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
18170 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
18171 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
18172 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
18173 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
18174 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
18175 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
18176 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
18177 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
18178 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
18179 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
18180 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
18181 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
18182 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
18183 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
18184 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
18185 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
18186 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
18187 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
18188 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
18189 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
18190 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
18191 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
18192 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
18193 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
18194 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
18195 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
18196 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
18197 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
18198 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
18199 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
18200 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
18201 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
18202 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
18203 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
18204 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
18205 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
18206 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
18207 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
18208 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
18209 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
18210 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
18211 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
18212 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
18213 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
18214 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
18215 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
18216 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
18217 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
18218 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
18219 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
18220 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
18221 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
18222 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
18223 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
18224 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
18225 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
18226 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
18227 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
18228 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
18229 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
18230 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
18231 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
18232 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
18233 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
18234 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
18235 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
18236 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
18237 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
18238 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
18239 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
18240 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
18241 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
18242 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
18243 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
18244 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
18245 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
18246 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
18247 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
18248 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
18249 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
18250 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
18251 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
18252 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
18253 "\x38\x47\x56\x65\x74\x83\x92\xa1"
18254 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
18255 "\x28\x37\x46\x55\x64\x73\x82\x91"
18256 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
18257 "\x18\x27\x36\x45\x54\x63\x72\x81"
18258 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
18259 "\x08\x17\x26\x35\x44\x53\x62\x71"
18260 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
18261 "\xf8\x07\x16\x25\x34\x43\x52\x61"
18262 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
18263 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
18264 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
18265 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
18266 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
18267 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
18268 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
18269 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
18270 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
18271 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
18272 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
18273 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
18274 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
18275 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
18276 "\x00\x11\x22\x33\x44\x55\x66\x77"
18277 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
18278 "\x10\x21\x32\x43\x54\x65\x76\x87"
18279 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
18280 "\x20\x31\x42\x53\x64\x75\x86\x97"
18281 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
18282 "\x30\x41\x52\x63\x74\x85\x96\xa7"
18283 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
18284 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
18285 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
18286 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
18287 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
18288 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
18289 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
18290 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
18291 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
18292 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
18293 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
18294 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
18295 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
18296 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
18297 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
18298 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
18299 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
18300 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
18301 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
18302 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
18303 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
18304 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
18305 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
18306 "\xf0\x01\x12\x23\x34\x45\x56\x67"
18307 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
18308 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
18309 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
18310 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
18311 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
18312 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
18313 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
18314 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
18315 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
18316 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
18317 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
18318 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
18319 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
18320 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
18321 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
18322 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
18323 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
18324 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
18325 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
18326 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
18327 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
18328 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
18329 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
18330 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
18331 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
18332 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
18333 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
18334 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
18335 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
18336 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
18337 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
18338 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
18339 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
18340 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
18341 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
18342 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
18343 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
18344 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
18345 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
18346 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
18347 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
18348 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
18349 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
18350 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
18351 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
18352 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
18353 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
18354 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
18355 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
18356 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
18357 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
18358 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
18359 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
18360 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
18361 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
18362 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
18363 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
18364 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
18365 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
18366 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
18367 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
18368 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
18369 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
18370 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
18371 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
18372 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
18373 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
18374 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
18375 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
18376 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
18377 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
18378 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
18379 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
18380 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
18381 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
18382 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
18383 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
18384 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
18385 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
18386 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
18387 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
18388 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
18389 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
18390 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
18391 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
18392 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
18393 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
18394 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
18395 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
18396 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
18397 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
18398 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
18399 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
18400 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
18401 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
18402 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
18403 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
18404 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
18405 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
18406 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
18407 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
18408 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
18409 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
18410 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
18411 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
18412 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
18413 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
18414 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
18415 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
18416 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
18417 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
18418 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
18419 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
18420 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
18421 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
18422 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
18423 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
18424 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
18425 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
18426 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
18427 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
18428 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
18429 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
18430 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
18431 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
18432 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
18433 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
18434 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
18435 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
18436 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
18437 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
18438 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
18439 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
18440 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
18441 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
18442 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
18443 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
18444 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
18445 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
18446 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
18447 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
18448 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
18449 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
18450 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
18451 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
18452 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
18453 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
18454 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
18455 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
18456 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
18457 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
18458 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
18459 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
18460 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
18461 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
18462 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
18463 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
18464 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
18465 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
18466 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
18467 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
18468 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
18469 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
18470 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
18471 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
18472 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
18473 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
18474 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
18475 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
18476 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
18477 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
18478 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
18479 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
18480 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
18481 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
18482 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
18483 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
18484 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
18485 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
18486 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
18487 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
18488 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
18489 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
18490 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
18491 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
18492 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
18493 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
18494 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
18495 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
18496 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
18497 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
18498 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
18499 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
18500 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
18501 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
18502 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
18503 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
18504 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
18505 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
18506 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
18507 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
18508 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
18509 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
18510 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
18511 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
18512 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
18513 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
18514 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
18515 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
18516 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
18517 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
18518 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
18519 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
18520 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
18521 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
18522 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
18523 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
18524 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
18525 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
18526 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
18527 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
18528 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
18529 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
18530 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
18531 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
18532 "\x00\x21\x42\x63",
18533 .ilen = 4100,
18534 .result =
18535 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
18536 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
18537 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
18538 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
18539 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
18540 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
18541 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
18542 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
18543 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
18544 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
18545 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
18546 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
18547 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
18548 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
18549 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
18550 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
18551 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
18552 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
18553 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
18554 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
18555 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
18556 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
18557 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
18558 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
18559 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
18560 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
18561 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
18562 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
18563 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
18564 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
18565 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
18566 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
18567 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
18568 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
18569 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
18570 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
18571 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
18572 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
18573 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
18574 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
18575 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
18576 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
18577 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
18578 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
18579 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
18580 "\x04\x02\xef\xd3\x44\xde\x76\x31"
18581 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
18582 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
18583 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
18584 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
18585 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
18586 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
18587 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
18588 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
18589 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
18590 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
18591 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
18592 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
18593 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
18594 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
18595 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
18596 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
18597 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
18598 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
18599 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
18600 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
18601 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
18602 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
18603 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
18604 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
18605 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
18606 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
18607 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
18608 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
18609 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
18610 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
18611 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
18612 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
18613 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
18614 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
18615 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
18616 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
18617 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
18618 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
18619 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
18620 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
18621 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
18622 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
18623 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
18624 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
18625 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
18626 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
18627 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
18628 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
18629 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
18630 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
18631 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
18632 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
18633 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
18634 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
18635 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
18636 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
18637 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
18638 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
18639 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
18640 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
18641 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
18642 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
18643 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
18644 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
18645 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
18646 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
18647 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
18648 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
18649 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
18650 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
18651 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
18652 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
18653 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
18654 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
18655 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
18656 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
18657 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
18658 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
18659 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
18660 "\x26\x39\x83\x94\xef\x27\xd8\x53"
18661 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
18662 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
18663 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
18664 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
18665 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
18666 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
18667 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
18668 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
18669 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
18670 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
18671 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
18672 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
18673 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
18674 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
18675 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
18676 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
18677 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
18678 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
18679 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
18680 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
18681 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
18682 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
18683 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
18684 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
18685 "\x35\x12\xe3\x36\x28\x27\x36\x58"
18686 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
18687 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
18688 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
18689 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
18690 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
18691 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
18692 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
18693 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
18694 "\x89\xf3\x78\x35\x44\x62\x78\x72"
18695 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
18696 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
18697 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
18698 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
18699 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
18700 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
18701 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
18702 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
18703 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
18704 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
18705 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
18706 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
18707 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
18708 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
18709 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
18710 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
18711 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
18712 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
18713 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
18714 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
18715 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
18716 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
18717 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
18718 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
18719 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
18720 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
18721 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
18722 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
18723 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
18724 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
18725 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
18726 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
18727 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
18728 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
18729 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
18730 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
18731 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
18732 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
18733 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
18734 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
18735 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
18736 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
18737 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
18738 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
18739 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
18740 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
18741 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
18742 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
18743 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
18744 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
18745 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
18746 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
18747 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
18748 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
18749 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
18750 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
18751 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
18752 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
18753 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
18754 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
18755 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
18756 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
18757 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
18758 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
18759 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
18760 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
18761 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
18762 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
18763 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
18764 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
18765 "\x29\x90\x46\x30\x92\x69\x7d\x13"
18766 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
18767 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
18768 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
18769 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
18770 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
18771 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
18772 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
18773 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
18774 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
18775 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
18776 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
18777 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
18778 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
18779 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
18780 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
18781 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
18782 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
18783 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
18784 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
18785 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
18786 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
18787 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
18788 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
18789 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
18790 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
18791 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
18792 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
18793 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
18794 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
18795 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
18796 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
18797 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
18798 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
18799 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
18800 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
18801 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
18802 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
18803 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
18804 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
18805 "\x73\x02\x3b\x78\x21\x72\x43\x00"
18806 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
18807 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
18808 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
18809 "\x11\x94\x13\x69\x51\x09\x28\xde"
18810 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
18811 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
18812 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
18813 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
18814 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
18815 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
18816 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
18817 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
18818 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
18819 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
18820 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
18821 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
18822 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
18823 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
18824 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
18825 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
18826 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
18827 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
18828 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
18829 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
18830 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
18831 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
18832 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
18833 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
18834 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
18835 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
18836 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
18837 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
18838 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
18839 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
18840 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
18841 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
18842 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
18843 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
18844 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
18845 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
18846 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
18847 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
18848 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
18849 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
18850 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
18851 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
18852 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
18853 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
18854 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
18855 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
18856 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
18857 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
18858 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
18859 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
18860 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
18861 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
18862 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
18863 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
18864 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
18865 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
18866 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
18867 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
18868 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
18869 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
18870 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
18871 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
18872 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
18873 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
18874 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
18875 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
18876 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
18877 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
18878 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
18879 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
18880 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
18881 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
18882 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
18883 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
18884 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
18885 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
18886 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
18887 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
18888 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
18889 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
18890 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
18891 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
18892 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
18893 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
18894 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
18895 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
18896 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
18897 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
18898 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
18899 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
18900 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
18901 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
18902 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
18903 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
18904 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
18905 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
18906 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
18907 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
18908 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
18909 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
18910 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
18911 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
18912 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
18913 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
18914 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
18915 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
18916 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
18917 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
18918 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
18919 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
18920 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
18921 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
18922 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
18923 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
18924 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
18925 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
18926 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
18927 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
18928 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
18929 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
18930 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
18931 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
18932 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
18933 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
18934 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
18935 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
18936 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
18937 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
18938 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
18939 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
18940 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
18941 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
18942 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
18943 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
18944 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
18945 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
18946 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
18947 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
18948 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
18949 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
18950 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
18951 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
18952 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
18953 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
18954 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
18955 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
18956 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
18957 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
18958 "\xae\xed\x39\x88\x42\x11\x3c\xed"
18959 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
18960 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
18961 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
18962 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
18963 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
18964 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
18965 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
18966 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
18967 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
18968 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
18969 "\x34\x17\xde\xba\x47\xf1\x06\x18"
18970 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
18971 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
18972 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
18973 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
18974 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
18975 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
18976 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
18977 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
18978 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
18979 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
18980 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
18981 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
18982 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
18983 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
18984 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
18985 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
18986 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
18987 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
18988 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
18989 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
18990 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
18991 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
18992 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
18993 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
18994 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
18995 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
18996 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
18997 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
18998 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
18999 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
19000 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
19001 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
19002 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
19003 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
19004 "\x74\x56\x58\x40\x02\x37\x52\x2c"
19005 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
19006 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
19007 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
19008 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
19009 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
19010 "\xed\x38\x80\x36\x72\x43\x27\x49"
19011 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
19012 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
19013 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
19014 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
19015 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
19016 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
19017 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
19018 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
19019 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
19020 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
19021 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
19022 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
19023 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
19024 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
19025 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
19026 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
19027 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
19028 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
19029 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
19030 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
19031 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
19032 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
19033 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
19034 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
19035 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
19036 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
19037 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
19038 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
19039 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
19040 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
19041 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
19042 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
19043 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
19044 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
19045 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
19046 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
19047 "\x21\xed\xda\x86",
19048 .rlen = 4100,
19049 .np = 2,
19050 .tap = { 4064, 36 },
19054 static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
19055 { /* From RFC 3686 */
19056 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
19057 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
19058 "\x00\x00\x00\x30",
19059 .klen = 20,
19060 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19061 .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
19062 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
19063 .ilen = 16,
19064 .result = "Single block msg",
19065 .rlen = 16,
19066 }, {
19067 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
19068 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
19069 "\x00\x6c\xb6\xdb",
19070 .klen = 20,
19071 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
19072 .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
19073 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
19074 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
19075 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
19076 .ilen = 32,
19077 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
19078 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19079 "\x10\x11\x12\x13\x14\x15\x16\x17"
19080 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19081 .rlen = 32,
19082 }, {
19083 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
19084 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
19085 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
19086 "\x00\x00\x00\x48",
19087 .klen = 28,
19088 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
19089 .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
19090 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
19091 .ilen = 16,
19092 .result = "Single block msg",
19093 .rlen = 16,
19094 }, {
19095 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
19096 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
19097 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
19098 "\x00\x96\xb0\x3b",
19099 .klen = 28,
19100 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
19101 .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
19102 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
19103 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
19104 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
19105 .ilen = 32,
19106 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
19107 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19108 "\x10\x11\x12\x13\x14\x15\x16\x17"
19109 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19110 .rlen = 32,
19111 }, {
19112 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
19113 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
19114 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
19115 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
19116 "\x00\x00\x00\x60",
19117 .klen = 36,
19118 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
19119 .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
19120 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
19121 .ilen = 16,
19122 .result = "Single block msg",
19123 .rlen = 16,
19124 }, {
19125 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
19126 "\x07\x96\x36\x58\x79\xef\xf8\x86"
19127 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
19128 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
19129 "\x00\xfa\xac\x24",
19130 .klen = 36,
19131 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
19132 .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
19133 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
19134 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
19135 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
19136 .ilen = 32,
19137 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
19138 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19139 "\x10\x11\x12\x13\x14\x15\x16\x17"
19140 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19141 .rlen = 32,
19145 static struct cipher_testvec aes_ofb_enc_tv_template[] = {
19146 /* From NIST Special Publication 800-38A, Appendix F.5 */
19148 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19149 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19150 .klen = 16,
19151 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
19152 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
19153 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19154 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19155 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19156 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19157 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19158 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19159 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19160 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19161 .ilen = 64,
19162 .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
19163 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
19164 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
19165 "\x3c\x52\xda\xc5\x4e\xd8\x25"
19166 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
19167 "\x44\xf7\xa8\x22\x60\xed\xcc"
19168 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
19169 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
19170 .rlen = 64,
19174 static struct cipher_testvec aes_ofb_dec_tv_template[] = {
19175 /* From NIST Special Publication 800-38A, Appendix F.5 */
19177 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19178 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19179 .klen = 16,
19180 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
19181 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
19182 .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
19183 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
19184 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
19185 "\x3c\x52\xda\xc5\x4e\xd8\x25"
19186 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
19187 "\x44\xf7\xa8\x22\x60\xed\xcc"
19188 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
19189 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
19190 .ilen = 64,
19191 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19192 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19193 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19194 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19195 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19196 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19197 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19198 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19199 .rlen = 64,
19203 static struct aead_testvec aes_gcm_enc_tv_template[] = {
19204 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
19205 .key = zeroed_string,
19206 .klen = 16,
19207 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
19208 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
19209 .rlen = 16,
19210 }, {
19211 .key = zeroed_string,
19212 .klen = 16,
19213 .input = zeroed_string,
19214 .ilen = 16,
19215 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
19216 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
19217 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
19218 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
19219 .rlen = 32,
19220 }, {
19221 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19222 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19223 .klen = 16,
19224 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19225 "\xde\xca\xf8\x88",
19226 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19227 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19228 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19229 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19230 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19231 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19232 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19233 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19234 .ilen = 64,
19235 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19236 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19237 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19238 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19239 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19240 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19241 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19242 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
19243 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
19244 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
19245 .rlen = 80,
19246 }, {
19247 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19248 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19249 .klen = 16,
19250 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19251 "\xde\xca\xf8\x88",
19252 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19253 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19254 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19255 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19256 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19257 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19258 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19259 "\xba\x63\x7b\x39",
19260 .ilen = 60,
19261 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19262 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19263 "\xab\xad\xda\xd2",
19264 .alen = 20,
19265 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19266 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19267 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19268 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19269 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19270 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19271 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19272 "\x3d\x58\xe0\x91"
19273 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
19274 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
19275 .rlen = 76,
19276 }, {
19277 .key = zeroed_string,
19278 .klen = 24,
19279 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
19280 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
19281 .rlen = 16,
19282 }, {
19283 .key = zeroed_string,
19284 .klen = 24,
19285 .input = zeroed_string,
19286 .ilen = 16,
19287 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
19288 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
19289 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
19290 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
19291 .rlen = 32,
19292 }, {
19293 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19294 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19295 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19296 .klen = 24,
19297 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19298 "\xde\xca\xf8\x88",
19299 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19300 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19301 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19302 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19303 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19304 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19305 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19306 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19307 .ilen = 64,
19308 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19309 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19310 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19311 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19312 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19313 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19314 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19315 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
19316 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
19317 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
19318 .rlen = 80,
19319 }, {
19320 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19321 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19322 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19323 .klen = 24,
19324 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19325 "\xde\xca\xf8\x88",
19326 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19327 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19328 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19329 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19330 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19331 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19332 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19333 "\xba\x63\x7b\x39",
19334 .ilen = 60,
19335 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19336 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19337 "\xab\xad\xda\xd2",
19338 .alen = 20,
19339 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19340 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19341 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19342 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19343 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19344 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19345 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19346 "\xcc\xda\x27\x10"
19347 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
19348 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
19349 .rlen = 76,
19350 .np = 2,
19351 .tap = { 32, 28 },
19352 .anp = 2,
19353 .atap = { 8, 12 }
19354 }, {
19355 .key = zeroed_string,
19356 .klen = 32,
19357 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
19358 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
19359 .rlen = 16,
19363 static struct aead_testvec aes_gcm_dec_tv_template[] = {
19364 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
19365 .key = zeroed_string,
19366 .klen = 32,
19367 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
19368 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
19369 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
19370 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
19371 .ilen = 32,
19372 .result = zeroed_string,
19373 .rlen = 16,
19374 }, {
19375 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19376 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19377 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19378 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19379 .klen = 32,
19380 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19381 "\xde\xca\xf8\x88",
19382 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
19383 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
19384 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
19385 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
19386 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
19387 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
19388 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
19389 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
19390 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
19391 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
19392 .ilen = 80,
19393 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19394 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19395 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19396 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19397 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19398 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19399 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19400 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19401 .rlen = 64,
19402 }, {
19403 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19404 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19405 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19406 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19407 .klen = 32,
19408 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19409 "\xde\xca\xf8\x88",
19410 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
19411 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
19412 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
19413 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
19414 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
19415 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
19416 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
19417 "\xbc\xc9\xf6\x62"
19418 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
19419 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
19420 .ilen = 76,
19421 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19422 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19423 "\xab\xad\xda\xd2",
19424 .alen = 20,
19425 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19426 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19427 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19428 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19429 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19430 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19431 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19432 "\xba\x63\x7b\x39",
19433 .rlen = 60,
19434 .np = 2,
19435 .tap = { 48, 28 },
19436 .anp = 3,
19437 .atap = { 8, 8, 4 }
19438 }, {
19439 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19440 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19441 .klen = 16,
19442 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19443 "\xde\xca\xf8\x88",
19444 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19445 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19446 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19447 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19448 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19449 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19450 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19451 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
19452 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
19453 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
19454 .ilen = 80,
19455 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19456 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19457 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19458 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19459 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19460 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19461 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19462 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19463 .rlen = 64,
19464 }, {
19465 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19466 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
19467 .klen = 16,
19468 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19469 "\xde\xca\xf8\x88",
19470 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
19471 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
19472 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
19473 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
19474 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
19475 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
19476 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
19477 "\x3d\x58\xe0\x91"
19478 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
19479 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
19480 .ilen = 76,
19481 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19482 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19483 "\xab\xad\xda\xd2",
19484 .alen = 20,
19485 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19486 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19487 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19488 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19489 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19490 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19491 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19492 "\xba\x63\x7b\x39",
19493 .rlen = 60,
19494 }, {
19495 .key = zeroed_string,
19496 .klen = 24,
19497 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
19498 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
19499 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
19500 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
19501 .ilen = 32,
19502 .result = zeroed_string,
19503 .rlen = 16,
19504 }, {
19505 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19506 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19507 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19508 .klen = 24,
19509 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19510 "\xde\xca\xf8\x88",
19511 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19512 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19513 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19514 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19515 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19516 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19517 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19518 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
19519 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
19520 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
19521 .ilen = 80,
19522 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19523 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19524 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19525 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19526 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19527 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19528 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19529 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
19530 .rlen = 64,
19531 }, {
19532 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19533 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19534 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
19535 .klen = 24,
19536 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
19537 "\xde\xca\xf8\x88",
19538 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
19539 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
19540 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
19541 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
19542 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
19543 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
19544 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
19545 "\xcc\xda\x27\x10"
19546 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
19547 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
19548 .ilen = 76,
19549 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19550 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
19551 "\xab\xad\xda\xd2",
19552 .alen = 20,
19553 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
19554 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
19555 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
19556 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
19557 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
19558 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
19559 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
19560 "\xba\x63\x7b\x39",
19561 .rlen = 60,
19565 static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
19566 { /* Generated using Crypto++ */
19567 .key = zeroed_string,
19568 .klen = 20,
19569 .iv = zeroed_string,
19570 .input = zeroed_string,
19571 .ilen = 16,
19572 .assoc = zeroed_string,
19573 .alen = 8,
19574 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
19575 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
19576 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
19577 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
19578 .rlen = 32,
19580 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19581 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19582 "\x00\x00\x00\x00",
19583 .klen = 20,
19584 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19585 "\x00\x00\x00\x00",
19586 .input = zeroed_string,
19587 .ilen = 16,
19588 .assoc = zeroed_string,
19589 .alen = 8,
19590 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
19591 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
19592 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
19593 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
19594 .rlen = 32,
19596 }, {
19597 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19598 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19599 "\x00\x00\x00\x00",
19600 .klen = 20,
19601 .iv = zeroed_string,
19602 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19603 "\x01\x01\x01\x01\x01\x01\x01\x01",
19604 .ilen = 16,
19605 .assoc = zeroed_string,
19606 .alen = 8,
19607 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19608 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19609 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
19610 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
19611 .rlen = 32,
19612 }, {
19613 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19614 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19615 "\x00\x00\x00\x00",
19616 .klen = 20,
19617 .iv = zeroed_string,
19618 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19619 "\x01\x01\x01\x01\x01\x01\x01\x01",
19620 .ilen = 16,
19621 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19622 .alen = 8,
19623 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19624 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19625 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
19626 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
19627 .rlen = 32,
19628 }, {
19629 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19630 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19631 "\x00\x00\x00\x00",
19632 .klen = 20,
19633 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19634 "\x00\x00\x00\x00",
19635 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19636 "\x01\x01\x01\x01\x01\x01\x01\x01",
19637 .ilen = 16,
19638 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19639 .alen = 8,
19640 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19641 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19642 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
19643 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
19644 .rlen = 32,
19645 }, {
19646 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19647 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19648 "\x00\x00\x00\x00",
19649 .klen = 20,
19650 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19651 "\x00\x00\x00\x00",
19652 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19653 "\x01\x01\x01\x01\x01\x01\x01\x01"
19654 "\x01\x01\x01\x01\x01\x01\x01\x01"
19655 "\x01\x01\x01\x01\x01\x01\x01\x01"
19656 "\x01\x01\x01\x01\x01\x01\x01\x01"
19657 "\x01\x01\x01\x01\x01\x01\x01\x01"
19658 "\x01\x01\x01\x01\x01\x01\x01\x01"
19659 "\x01\x01\x01\x01\x01\x01\x01\x01",
19660 .ilen = 64,
19661 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19662 .alen = 8,
19663 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19664 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19665 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
19666 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
19667 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
19668 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
19669 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
19670 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
19671 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
19672 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
19673 .rlen = 80,
19674 }, {
19675 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19676 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19677 "\x00\x00\x00\x00",
19678 .klen = 20,
19679 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
19680 "\x00\x00\x00\x00",
19681 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
19682 "\xff\xff\xff\xff\xff\xff\xff\xff"
19683 "\xff\xff\xff\xff\xff\xff\xff\xff"
19684 "\xff\xff\xff\xff\xff\xff\xff\xff"
19685 "\xff\xff\xff\xff\xff\xff\xff\xff"
19686 "\xff\xff\xff\xff\xff\xff\xff\xff"
19687 "\xff\xff\xff\xff\xff\xff\xff\xff"
19688 "\xff\xff\xff\xff\xff\xff\xff\xff"
19689 "\xff\xff\xff\xff\xff\xff\xff\xff"
19690 "\xff\xff\xff\xff\xff\xff\xff\xff"
19691 "\xff\xff\xff\xff\xff\xff\xff\xff"
19692 "\xff\xff\xff\xff\xff\xff\xff\xff"
19693 "\xff\xff\xff\xff\xff\xff\xff\xff"
19694 "\xff\xff\xff\xff\xff\xff\xff\xff"
19695 "\xff\xff\xff\xff\xff\xff\xff\xff"
19696 "\xff\xff\xff\xff\xff\xff\xff\xff"
19697 "\xff\xff\xff\xff\xff\xff\xff\xff"
19698 "\xff\xff\xff\xff\xff\xff\xff\xff"
19699 "\xff\xff\xff\xff\xff\xff\xff\xff"
19700 "\xff\xff\xff\xff\xff\xff\xff\xff"
19701 "\xff\xff\xff\xff\xff\xff\xff\xff"
19702 "\xff\xff\xff\xff\xff\xff\xff\xff"
19703 "\xff\xff\xff\xff\xff\xff\xff\xff"
19704 "\xff\xff\xff\xff\xff\xff\xff\xff",
19705 .ilen = 192,
19706 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
19707 "\xaa\xaa\xaa\xaa",
19708 .alen = 12,
19709 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
19710 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
19711 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
19712 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
19713 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
19714 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
19715 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
19716 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
19717 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
19718 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
19719 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
19720 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
19721 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
19722 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
19723 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
19724 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
19725 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
19726 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
19727 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
19728 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
19729 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
19730 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
19731 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
19732 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
19733 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
19734 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
19735 .rlen = 208,
19739 static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
19740 { /* Generated using Crypto++ */
19741 .key = zeroed_string,
19742 .klen = 20,
19743 .iv = zeroed_string,
19744 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
19745 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
19746 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
19747 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
19748 .ilen = 32,
19749 .assoc = zeroed_string,
19750 .alen = 8,
19751 .result = zeroed_string,
19752 .rlen = 16,
19755 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19756 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19757 "\x00\x00\x00\x00",
19758 .klen = 20,
19759 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19760 "\x00\x00\x00\x00",
19761 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
19762 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
19763 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
19764 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
19765 .ilen = 32,
19766 .assoc = zeroed_string,
19767 .alen = 8,
19768 .result = zeroed_string,
19769 .rlen = 16,
19770 }, {
19771 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19772 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19773 "\x00\x00\x00\x00",
19774 .klen = 20,
19775 .iv = zeroed_string,
19776 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19777 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19778 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
19779 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
19780 .ilen = 32,
19781 .assoc = zeroed_string,
19782 .alen = 8,
19783 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19784 "\x01\x01\x01\x01\x01\x01\x01\x01",
19785 .rlen = 16,
19786 }, {
19787 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19788 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19789 "\x00\x00\x00\x00",
19790 .klen = 20,
19791 .iv = zeroed_string,
19792 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
19793 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
19794 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
19795 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
19796 .ilen = 32,
19797 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19798 .alen = 8,
19799 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19800 "\x01\x01\x01\x01\x01\x01\x01\x01",
19801 .rlen = 16,
19803 }, {
19804 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19805 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19806 "\x00\x00\x00\x00",
19807 .klen = 20,
19808 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19809 "\x00\x00\x00\x00",
19810 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19811 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19812 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
19813 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
19814 .ilen = 32,
19815 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19816 .alen = 8,
19817 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19818 "\x01\x01\x01\x01\x01\x01\x01\x01",
19819 .rlen = 16,
19820 }, {
19821 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19822 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19823 "\x00\x00\x00\x00",
19824 .klen = 20,
19825 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
19826 "\x00\x00\x00\x00",
19827 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
19828 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
19829 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
19830 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
19831 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
19832 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
19833 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
19834 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
19835 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
19836 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
19837 .ilen = 80,
19838 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
19839 .alen = 8,
19840 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19841 "\x01\x01\x01\x01\x01\x01\x01\x01"
19842 "\x01\x01\x01\x01\x01\x01\x01\x01"
19843 "\x01\x01\x01\x01\x01\x01\x01\x01"
19844 "\x01\x01\x01\x01\x01\x01\x01\x01"
19845 "\x01\x01\x01\x01\x01\x01\x01\x01"
19846 "\x01\x01\x01\x01\x01\x01\x01\x01"
19847 "\x01\x01\x01\x01\x01\x01\x01\x01",
19848 .rlen = 64,
19849 }, {
19850 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19851 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19852 "\x00\x00\x00\x00",
19853 .klen = 20,
19854 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
19855 "\x00\x00\x00\x00",
19856 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
19857 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
19858 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
19859 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
19860 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
19861 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
19862 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
19863 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
19864 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
19865 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
19866 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
19867 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
19868 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
19869 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
19870 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
19871 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
19872 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
19873 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
19874 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
19875 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
19876 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
19877 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
19878 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
19879 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
19880 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
19881 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
19882 .ilen = 208,
19883 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
19884 "\xaa\xaa\xaa\xaa",
19885 .alen = 12,
19886 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
19887 "\xff\xff\xff\xff\xff\xff\xff\xff"
19888 "\xff\xff\xff\xff\xff\xff\xff\xff"
19889 "\xff\xff\xff\xff\xff\xff\xff\xff"
19890 "\xff\xff\xff\xff\xff\xff\xff\xff"
19891 "\xff\xff\xff\xff\xff\xff\xff\xff"
19892 "\xff\xff\xff\xff\xff\xff\xff\xff"
19893 "\xff\xff\xff\xff\xff\xff\xff\xff"
19894 "\xff\xff\xff\xff\xff\xff\xff\xff"
19895 "\xff\xff\xff\xff\xff\xff\xff\xff"
19896 "\xff\xff\xff\xff\xff\xff\xff\xff"
19897 "\xff\xff\xff\xff\xff\xff\xff\xff"
19898 "\xff\xff\xff\xff\xff\xff\xff\xff"
19899 "\xff\xff\xff\xff\xff\xff\xff\xff"
19900 "\xff\xff\xff\xff\xff\xff\xff\xff"
19901 "\xff\xff\xff\xff\xff\xff\xff\xff"
19902 "\xff\xff\xff\xff\xff\xff\xff\xff"
19903 "\xff\xff\xff\xff\xff\xff\xff\xff"
19904 "\xff\xff\xff\xff\xff\xff\xff\xff"
19905 "\xff\xff\xff\xff\xff\xff\xff\xff"
19906 "\xff\xff\xff\xff\xff\xff\xff\xff"
19907 "\xff\xff\xff\xff\xff\xff\xff\xff"
19908 "\xff\xff\xff\xff\xff\xff\xff\xff"
19909 "\xff\xff\xff\xff\xff\xff\xff\xff",
19910 .rlen = 192,
19915 static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
19916 { /* From draft-mcgrew-gcm-test-01 */
19917 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
19918 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
19919 "\x22\x43\x3c\x64",
19920 .klen = 20,
19921 .iv = zeroed_string,
19922 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07",
19923 .alen = 8,
19924 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
19925 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
19926 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
19927 "\x02\x00\x07\x00\x61\x62\x63\x64"
19928 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
19929 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
19930 "\x01\x02\x02\x01",
19931 .ilen = 52,
19932 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
19933 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
19934 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
19935 "\x02\x00\x07\x00\x61\x62\x63\x64"
19936 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
19937 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
19938 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
19939 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
19940 "\xe4\x09\x9a\xaa",
19941 .rlen = 68,
19945 static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
19946 { /* From draft-mcgrew-gcm-test-01 */
19947 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
19948 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
19949 "\x22\x43\x3c\x64",
19950 .klen = 20,
19951 .iv = zeroed_string,
19952 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07",
19953 .alen = 8,
19954 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
19955 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
19956 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
19957 "\x02\x00\x07\x00\x61\x62\x63\x64"
19958 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
19959 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
19960 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
19961 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
19962 "\xe4\x09\x9a\xaa",
19963 .ilen = 68,
19964 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
19965 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
19966 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
19967 "\x02\x00\x07\x00\x61\x62\x63\x64"
19968 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
19969 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
19970 "\x01\x02\x02\x01",
19971 .rlen = 52,
19972 }, { /* nearly same as previous, but should fail */
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\xf2\xa9\xa8\x36"
19987 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
19988 "\x00\x00\x00\x00",
19989 .ilen = 68,
19990 .novrfy = 1,
19991 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
19992 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
19993 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
19994 "\x02\x00\x07\x00\x61\x62\x63\x64"
19995 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
19996 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
19997 "\x01\x02\x02\x01",
19998 .rlen = 52,
20002 static struct aead_testvec aes_ccm_enc_tv_template[] = {
20003 { /* From RFC 3610 */
20004 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20005 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20006 .klen = 16,
20007 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
20008 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20009 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20010 .alen = 8,
20011 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20012 "\x10\x11\x12\x13\x14\x15\x16\x17"
20013 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
20014 .ilen = 23,
20015 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
20016 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
20017 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
20018 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
20019 .rlen = 31,
20020 }, {
20021 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20022 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20023 .klen = 16,
20024 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
20025 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20026 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20027 "\x08\x09\x0a\x0b",
20028 .alen = 12,
20029 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20030 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20031 "\x1c\x1d\x1e\x1f",
20032 .ilen = 20,
20033 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
20034 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
20035 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
20036 "\x7d\x9c\x2d\x93",
20037 .rlen = 28,
20038 }, {
20039 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20040 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20041 .klen = 16,
20042 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
20043 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20044 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20045 .alen = 8,
20046 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20047 "\x10\x11\x12\x13\x14\x15\x16\x17"
20048 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
20049 "\x20",
20050 .ilen = 25,
20051 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
20052 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
20053 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
20054 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
20055 "\x7e\x5f\x4e",
20056 .rlen = 35,
20057 }, {
20058 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20059 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20060 .klen = 16,
20061 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
20062 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20063 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20064 "\x08\x09\x0a\x0b",
20065 .alen = 12,
20066 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20067 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20068 "\x1c\x1d\x1e",
20069 .ilen = 19,
20070 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
20071 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
20072 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
20073 "\x4d\x99\x99\x88\xdd",
20074 .rlen = 29,
20075 }, {
20076 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20077 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20078 .klen = 16,
20079 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
20080 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20081 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
20082 .alen = 8,
20083 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
20084 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
20085 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
20086 .ilen = 24,
20087 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
20088 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
20089 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
20090 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
20091 .rlen = 32,
20092 }, {
20093 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20094 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20095 .klen = 16,
20096 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
20097 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20098 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
20099 "\x20\xea\x60\xc0",
20100 .alen = 12,
20101 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
20102 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
20103 "\x3a\x80\x3b\xa8\x7f",
20104 .ilen = 21,
20105 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
20106 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
20107 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
20108 "\x5a\xe0\x70\x45\x51",
20109 .rlen = 29,
20110 }, {
20111 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20112 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20113 .klen = 16,
20114 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
20115 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20116 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
20117 .alen = 8,
20118 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
20119 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
20120 "\x98\x09\xd6\x7d\xbe\xdd\x18",
20121 .ilen = 23,
20122 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
20123 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
20124 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
20125 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
20126 "\xba",
20127 .rlen = 33,
20128 }, {
20130 * This is the same vector as aes_ccm_rfc4309_enc_tv_template[0]
20131 * below but rewritten to use the ccm algorithm directly.
20133 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
20134 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
20135 .klen = 16,
20136 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
20137 .alen = 0,
20138 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
20139 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
20140 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
20141 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
20142 .ilen = 32,
20143 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
20144 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
20145 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
20146 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
20147 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
20148 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
20149 .rlen = 48,
20153 static struct aead_testvec aes_ccm_dec_tv_template[] = {
20154 { /* From RFC 3610 */
20155 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20156 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20157 .klen = 16,
20158 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
20159 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20160 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20161 .alen = 8,
20162 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
20163 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
20164 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
20165 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
20166 .ilen = 31,
20167 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20168 "\x10\x11\x12\x13\x14\x15\x16\x17"
20169 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
20170 .rlen = 23,
20171 }, {
20172 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20173 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20174 .klen = 16,
20175 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
20176 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20177 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20178 "\x08\x09\x0a\x0b",
20179 .alen = 12,
20180 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
20181 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
20182 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
20183 "\x7d\x9c\x2d\x93",
20184 .ilen = 28,
20185 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20186 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20187 "\x1c\x1d\x1e\x1f",
20188 .rlen = 20,
20189 }, {
20190 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20191 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20192 .klen = 16,
20193 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
20194 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20195 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
20196 .alen = 8,
20197 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
20198 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
20199 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
20200 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
20201 "\x7e\x5f\x4e",
20202 .ilen = 35,
20203 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20204 "\x10\x11\x12\x13\x14\x15\x16\x17"
20205 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
20206 "\x20",
20207 .rlen = 25,
20208 }, {
20209 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
20210 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
20211 .klen = 16,
20212 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
20213 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
20214 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
20215 "\x08\x09\x0a\x0b",
20216 .alen = 12,
20217 .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
20218 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
20219 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
20220 "\x4d\x99\x99\x88\xdd",
20221 .ilen = 29,
20222 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
20223 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
20224 "\x1c\x1d\x1e",
20225 .rlen = 19,
20226 }, {
20227 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20228 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20229 .klen = 16,
20230 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
20231 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20232 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
20233 .alen = 8,
20234 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
20235 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
20236 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
20237 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
20238 .ilen = 32,
20239 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
20240 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
20241 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
20242 .rlen = 24,
20243 }, {
20244 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20245 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20246 .klen = 16,
20247 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
20248 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20249 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
20250 "\x20\xea\x60\xc0",
20251 .alen = 12,
20252 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
20253 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
20254 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
20255 "\x5a\xe0\x70\x45\x51",
20256 .ilen = 29,
20257 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
20258 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
20259 "\x3a\x80\x3b\xa8\x7f",
20260 .rlen = 21,
20261 }, {
20262 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
20263 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
20264 .klen = 16,
20265 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
20266 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
20267 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
20268 .alen = 8,
20269 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
20270 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
20271 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
20272 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
20273 "\xba",
20274 .ilen = 33,
20275 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
20276 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
20277 "\x98\x09\xd6\x7d\xbe\xdd\x18",
20278 .rlen = 23,
20283 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
20284 * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
20285 * Special Publication 800-38C's test vectors also use nonce lengths our
20286 * implementation doesn't support. The following are taken from fips cavs
20287 * fax files on hand at Red Hat.
20289 * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
20290 * part of the nonce which combine w/the iv, but need to be input this way.
20292 static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
20294 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
20295 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
20296 "\x96\xac\x59",
20297 .klen = 19,
20298 .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
20299 .alen = 0,
20300 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
20301 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
20302 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
20303 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
20304 .ilen = 32,
20305 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
20306 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
20307 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
20308 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
20309 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
20310 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
20311 .rlen = 48,
20312 }, {
20313 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
20314 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
20315 "\x4f\xa3\x19",
20316 .klen = 19,
20317 .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
20318 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
20319 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
20320 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
20321 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
20322 .alen = 32,
20323 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
20324 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
20325 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
20326 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
20327 .ilen = 32,
20328 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
20329 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
20330 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
20331 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
20332 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
20333 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
20334 .rlen = 48,
20335 }, {
20336 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
20337 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
20338 "\x53\x14\x73\x66\x8d\x88\xf6\x80"
20339 "\xa0\x20\x35",
20340 .klen = 27,
20341 .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
20342 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
20343 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
20344 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
20345 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
20346 .alen = 32,
20347 .ilen = 0,
20348 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
20349 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
20350 .rlen = 16,
20351 }, {
20352 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
20353 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
20354 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
20355 "\xd6\x3c\x8c",
20356 .klen = 27,
20357 .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
20358 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
20359 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
20360 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
20361 "\xe3\x00\x73\x69\x84\x69\x87\x79",
20362 .alen = 32,
20363 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
20364 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
20365 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
20366 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
20367 .ilen = 32,
20368 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
20369 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
20370 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
20371 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
20372 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
20373 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
20374 .rlen = 48,
20375 }, {
20376 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
20377 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
20378 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
20379 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
20380 "\x1e\x29\x91",
20381 .klen = 35,
20382 .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
20383 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
20384 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
20385 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
20386 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
20387 .alen = 32,
20388 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
20389 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
20390 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
20391 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
20392 .ilen = 32,
20393 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
20394 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
20395 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
20396 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
20397 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
20398 .rlen = 40,
20399 }, {
20400 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
20401 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
20402 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
20403 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
20404 "\xf9\xd9\x4e",
20405 .klen = 35,
20406 .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
20407 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
20408 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
20409 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
20410 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
20411 .alen = 32,
20412 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
20413 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
20414 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
20415 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
20416 .ilen = 32,
20417 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
20418 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
20419 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
20420 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
20421 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
20422 "\x7b\x72\x8a\xf7",
20423 .rlen = 44,
20424 }, {
20425 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
20426 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
20427 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
20428 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
20429 "\x24\xa7\x8b",
20430 .klen = 35,
20431 .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
20432 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
20433 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
20434 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
20435 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
20436 .alen = 32,
20437 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
20438 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
20439 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
20440 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
20441 .ilen = 32,
20442 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
20443 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
20444 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
20445 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
20446 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
20447 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
20448 .rlen = 48,
20452 static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
20454 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
20455 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
20456 "\xc6\xfb\x7d",
20457 .klen = 19,
20458 .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
20459 .alen = 0,
20460 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
20461 .ilen = 8,
20462 .result = "\x00",
20463 .rlen = 0,
20464 .novrfy = 1,
20465 }, {
20466 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
20467 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
20468 "\xaf\x94\x87",
20469 .klen = 19,
20470 .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
20471 .alen = 0,
20472 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
20473 .ilen = 8,
20474 .result = "\x00",
20475 .rlen = 0,
20476 }, {
20477 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
20478 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
20479 "\xc6\xfb\x7d",
20480 .klen = 19,
20481 .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
20482 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
20483 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
20484 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
20485 "\xd8\x94\x99\x91\x81\x54\x62\x57",
20486 .alen = 32,
20487 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
20488 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
20489 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
20490 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
20491 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
20492 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
20493 .ilen = 48,
20494 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
20495 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
20496 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
20497 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
20498 .rlen = 32,
20499 .novrfy = 1,
20500 }, {
20501 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
20502 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
20503 "\x05\xe0\xc9",
20504 .klen = 19,
20505 .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
20506 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
20507 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
20508 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
20509 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
20510 .alen = 32,
20511 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
20512 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
20513 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
20514 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
20515 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
20516 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
20517 .ilen = 48,
20518 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
20519 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
20520 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
20521 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
20522 .rlen = 32,
20523 }, {
20524 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
20525 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
20526 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
20527 "\xee\x49\x83",
20528 .klen = 27,
20529 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
20530 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
20531 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
20532 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
20533 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
20534 .alen = 32,
20535 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
20536 .ilen = 8,
20537 .result = "\x00",
20538 .rlen = 0,
20539 }, {
20540 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
20541 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
20542 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
20543 "\xee\x49\x83",
20544 .klen = 27,
20545 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
20546 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
20547 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
20548 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
20549 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
20550 .alen = 32,
20551 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
20552 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
20553 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
20554 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
20555 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
20556 .ilen = 40,
20557 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
20558 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
20559 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
20560 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
20561 .rlen = 32,
20562 }, {
20563 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
20564 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
20565 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
20566 "\xd1\xfc\x57",
20567 .klen = 27,
20568 .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
20569 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
20570 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
20571 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
20572 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
20573 .alen = 32,
20574 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
20575 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
20576 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
20577 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
20578 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
20579 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
20580 .ilen = 48,
20581 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
20582 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
20583 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
20584 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
20585 .rlen = 32,
20586 .novrfy = 1,
20587 }, {
20588 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
20589 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
20590 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
20591 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
20592 "\xee\x49\x83",
20593 .klen = 35,
20594 .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
20595 .alen = 0,
20596 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
20597 .ilen = 8,
20598 .result = "\x00",
20599 .rlen = 0,
20600 }, {
20601 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
20602 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
20603 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
20604 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
20605 "\x85\x34\x66",
20606 .klen = 35,
20607 .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
20608 .alen = 0,
20609 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
20610 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
20611 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
20612 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
20613 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
20614 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
20615 .ilen = 48,
20616 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
20617 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
20618 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
20619 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
20620 .rlen = 32,
20621 .novrfy = 1,
20622 }, {
20623 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
20624 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
20625 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
20626 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
20627 "\xcf\x76\x3f",
20628 .klen = 35,
20629 .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
20630 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
20631 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
20632 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
20633 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
20634 .alen = 32,
20635 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
20636 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
20637 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
20638 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
20639 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
20640 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
20641 .ilen = 48,
20642 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
20643 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
20644 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
20645 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
20646 .rlen = 32,
20651 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
20652 * test vectors, taken from Appendix B.2.9 and B.2.10:
20653 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
20654 * Only AES-128 is supported at this time.
20656 #define ANSI_CPRNG_AES_TEST_VECTORS 6
20658 static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
20660 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20661 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20662 .klen = 16,
20663 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20664 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
20665 .dtlen = 16,
20666 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
20667 "\x00\x00\x00\x00\x00\x00\x00\x00",
20668 .vlen = 16,
20669 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
20670 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
20671 .rlen = 16,
20672 .loops = 1,
20673 }, {
20674 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20675 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20676 .klen = 16,
20677 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20678 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
20679 .dtlen = 16,
20680 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
20681 "\x00\x00\x00\x00\x00\x00\x00\x00",
20682 .vlen = 16,
20683 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
20684 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
20685 .rlen = 16,
20686 .loops = 1,
20687 }, {
20688 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20689 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20690 .klen = 16,
20691 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20692 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
20693 .dtlen = 16,
20694 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
20695 "\x00\x00\x00\x00\x00\x00\x00\x00",
20696 .vlen = 16,
20697 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
20698 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
20699 .rlen = 16,
20700 .loops = 1,
20701 }, {
20702 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
20703 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
20704 .klen = 16,
20705 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
20706 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
20707 .dtlen = 16,
20708 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
20709 "\x00\x00\x00\x00\x00\x00\x00\x00",
20710 .vlen = 16,
20711 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
20712 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
20713 .rlen = 16,
20714 .loops = 1,
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\xfd",
20721 .dtlen = 16,
20722 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
20723 "\x00\x00\x00\x00\x00\x00\x00\x00",
20724 .vlen = 16,
20725 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
20726 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
20727 .rlen = 16,
20728 .loops = 1,
20729 }, { /* Monte Carlo Test */
20730 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
20731 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
20732 .klen = 16,
20733 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
20734 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
20735 .dtlen = 16,
20736 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
20737 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
20738 .vlen = 16,
20739 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
20740 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
20741 .rlen = 16,
20742 .loops = 10000,
20746 /* Cast5 test vectors from RFC 2144 */
20747 #define CAST5_ENC_TEST_VECTORS 4
20748 #define CAST5_DEC_TEST_VECTORS 4
20749 #define CAST5_CBC_ENC_TEST_VECTORS 1
20750 #define CAST5_CBC_DEC_TEST_VECTORS 1
20751 #define CAST5_CTR_ENC_TEST_VECTORS 2
20752 #define CAST5_CTR_DEC_TEST_VECTORS 2
20754 static struct cipher_testvec cast5_enc_tv_template[] = {
20756 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
20757 "\x23\x45\x67\x89\x34\x56\x78\x9a",
20758 .klen = 16,
20759 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20760 .ilen = 8,
20761 .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
20762 .rlen = 8,
20763 }, {
20764 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
20765 "\x23\x45",
20766 .klen = 10,
20767 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20768 .ilen = 8,
20769 .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
20770 .rlen = 8,
20771 }, {
20772 .key = "\x01\x23\x45\x67\x12",
20773 .klen = 5,
20774 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20775 .ilen = 8,
20776 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
20777 .rlen = 8,
20778 }, { /* Generated from TF test vectors */
20779 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
20780 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
20781 .klen = 16,
20782 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
20783 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
20784 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
20785 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
20786 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
20787 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
20788 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
20789 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
20790 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
20791 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
20792 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
20793 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
20794 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
20795 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
20796 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
20797 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
20798 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
20799 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
20800 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
20801 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
20802 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
20803 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
20804 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
20805 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
20806 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
20807 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
20808 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
20809 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
20810 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
20811 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
20812 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
20813 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
20814 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
20815 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
20816 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
20817 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
20818 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
20819 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
20820 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
20821 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
20822 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
20823 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
20824 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
20825 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
20826 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
20827 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
20828 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
20829 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
20830 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
20831 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
20832 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
20833 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
20834 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
20835 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
20836 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
20837 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
20838 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
20839 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
20840 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
20841 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
20842 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
20843 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
20844 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
20845 .ilen = 496,
20846 .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
20847 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
20848 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
20849 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
20850 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
20851 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
20852 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
20853 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
20854 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
20855 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
20856 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
20857 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
20858 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
20859 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
20860 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
20861 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
20862 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
20863 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
20864 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
20865 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
20866 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
20867 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
20868 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
20869 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
20870 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
20871 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
20872 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
20873 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
20874 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
20875 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
20876 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
20877 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
20878 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
20879 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
20880 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
20881 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
20882 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
20883 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
20884 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
20885 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
20886 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
20887 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
20888 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
20889 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
20890 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
20891 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
20892 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
20893 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
20894 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
20895 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
20896 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
20897 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
20898 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
20899 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
20900 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
20901 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
20902 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
20903 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
20904 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
20905 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
20906 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
20907 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
20908 .rlen = 496,
20909 .also_non_np = 1,
20910 .np = 2,
20911 .tap = { 496 - 16, 16 },
20915 static struct cipher_testvec cast5_dec_tv_template[] = {
20917 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
20918 "\x23\x45\x67\x89\x34\x56\x78\x9a",
20919 .klen = 16,
20920 .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
20921 .ilen = 8,
20922 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20923 .rlen = 8,
20924 }, {
20925 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
20926 "\x23\x45",
20927 .klen = 10,
20928 .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
20929 .ilen = 8,
20930 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20931 .rlen = 8,
20932 }, {
20933 .key = "\x01\x23\x45\x67\x12",
20934 .klen = 5,
20935 .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
20936 .ilen = 8,
20937 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20938 .rlen = 8,
20939 }, { /* Generated from TF test vectors */
20940 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
20941 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
20942 .klen = 16,
20943 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
20944 .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
20945 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
20946 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
20947 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
20948 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
20949 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
20950 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
20951 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
20952 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
20953 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
20954 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
20955 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
20956 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
20957 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
20958 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
20959 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
20960 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
20961 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
20962 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
20963 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
20964 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
20965 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
20966 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
20967 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
20968 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
20969 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
20970 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
20971 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
20972 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
20973 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
20974 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
20975 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
20976 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
20977 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
20978 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
20979 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
20980 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
20981 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
20982 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
20983 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
20984 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
20985 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
20986 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
20987 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
20988 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
20989 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
20990 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
20991 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
20992 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
20993 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
20994 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
20995 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
20996 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
20997 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
20998 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
20999 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
21000 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
21001 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
21002 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
21003 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
21004 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
21005 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
21006 .ilen = 496,
21007 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21008 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21009 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21010 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21011 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21012 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21013 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21014 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21015 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21016 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21017 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21018 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21019 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21020 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21021 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21022 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21023 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21024 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21025 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21026 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21027 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21028 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21029 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21030 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21031 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21032 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21033 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21034 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21035 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21036 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21037 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21038 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21039 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21040 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21041 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21042 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21043 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21044 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21045 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21046 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21047 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21048 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21049 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21050 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21051 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21052 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21053 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21054 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21055 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21056 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21057 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21058 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21059 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21060 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21061 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21062 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21063 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21064 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21065 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21066 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21067 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21068 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21069 .rlen = 496,
21070 .also_non_np = 1,
21071 .np = 2,
21072 .tap = { 496 - 16, 16 },
21076 static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
21077 { /* Generated from TF test vectors */
21078 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21079 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21080 .klen = 16,
21081 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21082 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21083 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21084 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21085 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21086 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21087 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21088 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21089 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21090 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21091 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21092 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21093 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21094 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21095 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21096 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21097 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21098 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21099 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21100 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21101 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21102 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21103 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21104 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21105 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21106 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21107 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21108 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21109 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21110 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21111 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21112 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21113 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21114 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21115 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21116 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21117 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21118 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21119 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21120 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21121 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21122 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21123 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21124 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21125 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21126 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21127 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21128 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21129 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21130 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21131 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21132 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21133 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21134 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21135 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21136 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21137 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21138 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21139 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21140 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21141 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21142 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21143 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21144 .ilen = 496,
21145 .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
21146 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
21147 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
21148 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
21149 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
21150 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
21151 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
21152 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
21153 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
21154 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
21155 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
21156 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
21157 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
21158 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
21159 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
21160 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
21161 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
21162 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
21163 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
21164 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
21165 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
21166 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
21167 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
21168 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
21169 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
21170 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
21171 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
21172 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
21173 "\x90\x12\x37\x49\x27\x98\x69\x18"
21174 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
21175 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
21176 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
21177 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
21178 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
21179 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
21180 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
21181 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
21182 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
21183 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
21184 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
21185 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
21186 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
21187 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
21188 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
21189 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
21190 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
21191 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
21192 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
21193 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
21194 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
21195 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
21196 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
21197 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
21198 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
21199 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
21200 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
21201 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
21202 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
21203 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
21204 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
21205 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
21206 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
21207 .rlen = 496,
21208 .also_non_np = 1,
21209 .np = 2,
21210 .tap = { 496 - 16, 16 },
21214 static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
21215 { /* Generated from TF test vectors */
21216 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21217 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21218 .klen = 16,
21219 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21220 .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
21221 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
21222 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
21223 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
21224 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
21225 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
21226 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
21227 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
21228 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
21229 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
21230 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
21231 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
21232 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
21233 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
21234 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
21235 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
21236 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
21237 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
21238 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
21239 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
21240 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
21241 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
21242 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
21243 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
21244 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
21245 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
21246 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
21247 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
21248 "\x90\x12\x37\x49\x27\x98\x69\x18"
21249 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
21250 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
21251 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
21252 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
21253 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
21254 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
21255 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
21256 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
21257 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
21258 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
21259 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
21260 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
21261 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
21262 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
21263 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
21264 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
21265 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
21266 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
21267 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
21268 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
21269 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
21270 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
21271 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
21272 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
21273 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
21274 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
21275 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
21276 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
21277 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
21278 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
21279 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
21280 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
21281 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
21282 .ilen = 496,
21283 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21284 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21285 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21286 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21287 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21288 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21289 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21290 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21291 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21292 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21293 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21294 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21295 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21296 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21297 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21298 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21299 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21300 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21301 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21302 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21303 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21304 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21305 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21306 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21307 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21308 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21309 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21310 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21311 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21312 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21313 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21314 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21315 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21316 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21317 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21318 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21319 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21320 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21321 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21322 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21323 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21324 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21325 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21326 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21327 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21328 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21329 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21330 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21331 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21332 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21333 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21334 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21335 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21336 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21337 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21338 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21339 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21340 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21341 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21342 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21343 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21344 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21345 .rlen = 496,
21346 .also_non_np = 1,
21347 .np = 2,
21348 .tap = { 496 - 16, 16 },
21352 static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
21353 { /* Generated from TF test vectors */
21354 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21355 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21356 .klen = 16,
21357 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21358 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21359 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21360 "\x3A",
21361 .ilen = 17,
21362 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
21363 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
21364 "\x0C",
21365 .rlen = 17,
21366 }, { /* Generated from TF test vectors */
21367 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21368 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21369 .klen = 16,
21370 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21371 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21372 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21373 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21374 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21375 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21376 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21377 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21378 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21379 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21380 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21381 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21382 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21383 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21384 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21385 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21386 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21387 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21388 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21389 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21390 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21391 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21392 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21393 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21394 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21395 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21396 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21397 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21398 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21399 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21400 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21401 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21402 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21403 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21404 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21405 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21406 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21407 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21408 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21409 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21410 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21411 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21412 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21413 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21414 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21415 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21416 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21417 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21418 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21419 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21420 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21421 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21422 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21423 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21424 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21425 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21426 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21427 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21428 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21429 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21430 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21431 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21432 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21433 .ilen = 496,
21434 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
21435 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
21436 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
21437 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
21438 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
21439 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
21440 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
21441 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
21442 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
21443 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
21444 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
21445 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
21446 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
21447 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
21448 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
21449 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
21450 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
21451 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
21452 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
21453 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
21454 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
21455 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
21456 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
21457 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
21458 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
21459 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
21460 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
21461 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
21462 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
21463 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
21464 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
21465 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
21466 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
21467 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
21468 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
21469 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
21470 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
21471 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
21472 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
21473 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
21474 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
21475 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
21476 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
21477 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
21478 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
21479 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
21480 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
21481 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
21482 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
21483 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
21484 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
21485 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
21486 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
21487 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
21488 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
21489 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
21490 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
21491 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
21492 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
21493 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
21494 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
21495 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
21496 .rlen = 496,
21497 .also_non_np = 1,
21498 .np = 2,
21499 .tap = { 496 - 16, 16 },
21503 static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
21504 { /* Generated from TF test vectors */
21505 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21506 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21507 .klen = 16,
21508 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21509 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
21510 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
21511 "\x0C",
21512 .ilen = 17,
21513 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21514 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21515 "\x3A",
21516 .rlen = 17,
21517 }, { /* Generated from TF test vectors */
21518 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21519 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21520 .klen = 16,
21521 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
21522 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
21523 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
21524 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
21525 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
21526 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
21527 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
21528 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
21529 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
21530 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
21531 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
21532 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
21533 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
21534 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
21535 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
21536 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
21537 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
21538 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
21539 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
21540 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
21541 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
21542 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
21543 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
21544 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
21545 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
21546 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
21547 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
21548 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
21549 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
21550 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
21551 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
21552 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
21553 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
21554 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
21555 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
21556 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
21557 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
21558 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
21559 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
21560 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
21561 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
21562 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
21563 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
21564 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
21565 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
21566 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
21567 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
21568 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
21569 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
21570 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
21571 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
21572 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
21573 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
21574 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
21575 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
21576 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
21577 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
21578 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
21579 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
21580 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
21581 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
21582 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
21583 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
21584 .ilen = 496,
21585 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21586 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21587 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21588 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21589 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21590 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21591 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21592 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21593 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21594 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21595 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21596 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21597 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21598 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21599 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21600 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21601 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21602 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21603 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21604 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21605 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21606 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21607 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21608 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21609 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21610 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21611 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21612 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21613 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21614 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21615 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21616 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21617 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21618 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21619 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21620 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21621 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21622 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21623 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21624 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21625 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21626 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21627 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21628 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21629 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21630 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21631 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21632 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21633 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21634 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21635 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21636 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21637 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21638 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21639 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21640 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21641 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21642 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21643 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21644 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21645 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21646 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21647 .rlen = 496,
21648 .also_non_np = 1,
21649 .np = 2,
21650 .tap = { 496 - 16, 16 },
21655 * ARC4 test vectors from OpenSSL
21657 #define ARC4_ENC_TEST_VECTORS 7
21658 #define ARC4_DEC_TEST_VECTORS 7
21660 static struct cipher_testvec arc4_enc_tv_template[] = {
21662 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21663 .klen = 8,
21664 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21665 .ilen = 8,
21666 .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
21667 .rlen = 8,
21668 }, {
21669 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21670 .klen = 8,
21671 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
21672 .ilen = 8,
21673 .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
21674 .rlen = 8,
21675 }, {
21676 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
21677 .klen = 8,
21678 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
21679 .ilen = 8,
21680 .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
21681 .rlen = 8,
21682 }, {
21683 .key = "\xef\x01\x23\x45",
21684 .klen = 4,
21685 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
21686 "\x00\x00\x00\x00\x00\x00\x00\x00"
21687 "\x00\x00\x00\x00",
21688 .ilen = 20,
21689 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
21690 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
21691 "\x36\xb6\x78\x58",
21692 .rlen = 20,
21693 }, {
21694 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21695 .klen = 8,
21696 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21697 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21698 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21699 "\x12\x34\x56\x78",
21700 .ilen = 28,
21701 .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
21702 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
21703 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
21704 "\x40\x01\x1e\xcf",
21705 .rlen = 28,
21706 }, {
21707 .key = "\xef\x01\x23\x45",
21708 .klen = 4,
21709 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
21710 "\x00\x00",
21711 .ilen = 10,
21712 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
21713 "\xbd\x61",
21714 .rlen = 10,
21715 }, {
21716 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
21717 "\x00\x00\x00\x00\x00\x00\x00\x00",
21718 .klen = 16,
21719 .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
21720 .ilen = 8,
21721 .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
21722 .rlen = 8,
21726 static struct cipher_testvec arc4_dec_tv_template[] = {
21728 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21729 .klen = 8,
21730 .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
21731 .ilen = 8,
21732 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21733 .rlen = 8,
21734 }, {
21735 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21736 .klen = 8,
21737 .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
21738 .ilen = 8,
21739 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
21740 .rlen = 8,
21741 }, {
21742 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
21743 .klen = 8,
21744 .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
21745 .ilen = 8,
21746 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
21747 .rlen = 8,
21748 }, {
21749 .key = "\xef\x01\x23\x45",
21750 .klen = 4,
21751 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
21752 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
21753 "\x36\xb6\x78\x58",
21754 .ilen = 20,
21755 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
21756 "\x00\x00\x00\x00\x00\x00\x00\x00"
21757 "\x00\x00\x00\x00",
21758 .rlen = 20,
21759 }, {
21760 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21761 .klen = 8,
21762 .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
21763 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
21764 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
21765 "\x40\x01\x1e\xcf",
21766 .ilen = 28,
21767 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21768 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21769 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21770 "\x12\x34\x56\x78",
21771 .rlen = 28,
21772 }, {
21773 .key = "\xef\x01\x23\x45",
21774 .klen = 4,
21775 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
21776 "\xbd\x61",
21777 .ilen = 10,
21778 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
21779 "\x00\x00",
21780 .rlen = 10,
21781 }, {
21782 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
21783 "\x00\x00\x00\x00\x00\x00\x00\x00",
21784 .klen = 16,
21785 .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
21786 .ilen = 8,
21787 .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
21788 .rlen = 8,
21793 * TEA test vectors
21795 #define TEA_ENC_TEST_VECTORS 4
21796 #define TEA_DEC_TEST_VECTORS 4
21798 static struct cipher_testvec tea_enc_tv_template[] = {
21800 .key = zeroed_string,
21801 .klen = 16,
21802 .input = zeroed_string,
21803 .ilen = 8,
21804 .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
21805 .rlen = 8,
21806 }, {
21807 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
21808 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
21809 .klen = 16,
21810 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
21811 .ilen = 8,
21812 .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
21813 .rlen = 8,
21814 }, {
21815 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
21816 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
21817 .klen = 16,
21818 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
21819 "\x65\x73\x74\x5f\x76\x65\x63\x74",
21820 .ilen = 16,
21821 .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
21822 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
21823 .rlen = 16,
21824 }, {
21825 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
21826 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
21827 .klen = 16,
21828 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
21829 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
21830 "\x79\x6f\x75\x21\x21\x21\x20\x72"
21831 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
21832 .ilen = 32,
21833 .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
21834 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
21835 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
21836 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
21837 .rlen = 32,
21841 static struct cipher_testvec tea_dec_tv_template[] = {
21843 .key = zeroed_string,
21844 .klen = 16,
21845 .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
21846 .ilen = 8,
21847 .result = zeroed_string,
21848 .rlen = 8,
21849 }, {
21850 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
21851 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
21852 .klen = 16,
21853 .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
21854 .ilen = 8,
21855 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
21856 .rlen = 8,
21857 }, {
21858 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
21859 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
21860 .klen = 16,
21861 .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
21862 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
21863 .ilen = 16,
21864 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
21865 "\x65\x73\x74\x5f\x76\x65\x63\x74",
21866 .rlen = 16,
21867 }, {
21868 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
21869 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
21870 .klen = 16,
21871 .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
21872 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
21873 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
21874 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
21875 .ilen = 32,
21876 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
21877 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
21878 "\x79\x6f\x75\x21\x21\x21\x20\x72"
21879 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
21880 .rlen = 32,
21885 * XTEA test vectors
21887 #define XTEA_ENC_TEST_VECTORS 4
21888 #define XTEA_DEC_TEST_VECTORS 4
21890 static struct cipher_testvec xtea_enc_tv_template[] = {
21892 .key = zeroed_string,
21893 .klen = 16,
21894 .input = zeroed_string,
21895 .ilen = 8,
21896 .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
21897 .rlen = 8,
21898 }, {
21899 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
21900 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
21901 .klen = 16,
21902 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
21903 .ilen = 8,
21904 .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
21905 .rlen = 8,
21906 }, {
21907 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
21908 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
21909 .klen = 16,
21910 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
21911 "\x65\x73\x74\x5f\x76\x65\x63\x74",
21912 .ilen = 16,
21913 .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
21914 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
21915 .rlen = 16,
21916 }, {
21917 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
21918 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
21919 .klen = 16,
21920 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
21921 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
21922 "\x79\x6f\x75\x21\x21\x21\x20\x72"
21923 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
21924 .ilen = 32,
21925 .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
21926 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
21927 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
21928 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
21929 .rlen = 32,
21933 static struct cipher_testvec xtea_dec_tv_template[] = {
21935 .key = zeroed_string,
21936 .klen = 16,
21937 .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
21938 .ilen = 8,
21939 .result = zeroed_string,
21940 .rlen = 8,
21941 }, {
21942 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
21943 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
21944 .klen = 16,
21945 .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
21946 .ilen = 8,
21947 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
21948 .rlen = 8,
21949 }, {
21950 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
21951 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
21952 .klen = 16,
21953 .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
21954 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
21955 .ilen = 16,
21956 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
21957 "\x65\x73\x74\x5f\x76\x65\x63\x74",
21958 .rlen = 16,
21959 }, {
21960 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
21961 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
21962 .klen = 16,
21963 .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
21964 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
21965 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
21966 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
21967 .ilen = 32,
21968 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
21969 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
21970 "\x79\x6f\x75\x21\x21\x21\x20\x72"
21971 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
21972 .rlen = 32,
21977 * KHAZAD test vectors.
21979 #define KHAZAD_ENC_TEST_VECTORS 5
21980 #define KHAZAD_DEC_TEST_VECTORS 5
21982 static struct cipher_testvec khazad_enc_tv_template[] = {
21984 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
21985 "\x00\x00\x00\x00\x00\x00\x00\x00",
21986 .klen = 16,
21987 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
21988 .ilen = 8,
21989 .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
21990 .rlen = 8,
21991 }, {
21992 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
21993 "\x38\x38\x38\x38\x38\x38\x38\x38",
21994 .klen = 16,
21995 .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
21996 .ilen = 8,
21997 .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
21998 .rlen = 8,
21999 }, {
22000 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
22001 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22002 .klen = 16,
22003 .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22004 .ilen = 8,
22005 .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
22006 .rlen = 8,
22007 }, {
22008 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22009 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22010 .klen = 16,
22011 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22012 .ilen = 8,
22013 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22014 .rlen = 8,
22015 }, {
22016 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22017 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22018 .klen = 16,
22019 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22020 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22021 .ilen = 16,
22022 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
22023 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22024 .rlen = 16,
22028 static struct cipher_testvec khazad_dec_tv_template[] = {
22030 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
22031 "\x00\x00\x00\x00\x00\x00\x00\x00",
22032 .klen = 16,
22033 .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
22034 .ilen = 8,
22035 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
22036 .rlen = 8,
22037 }, {
22038 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
22039 "\x38\x38\x38\x38\x38\x38\x38\x38",
22040 .klen = 16,
22041 .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
22042 .ilen = 8,
22043 .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
22044 .rlen = 8,
22045 }, {
22046 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
22047 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22048 .klen = 16,
22049 .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
22050 .ilen = 8,
22051 .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
22052 .rlen = 8,
22053 }, {
22054 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22055 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22056 .klen = 16,
22057 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22058 .ilen = 8,
22059 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22060 .rlen = 8,
22061 }, {
22062 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22063 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22064 .klen = 16,
22065 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
22066 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
22067 .ilen = 16,
22068 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
22069 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
22070 .rlen = 16,
22075 * Anubis test vectors.
22078 #define ANUBIS_ENC_TEST_VECTORS 5
22079 #define ANUBIS_DEC_TEST_VECTORS 5
22080 #define ANUBIS_CBC_ENC_TEST_VECTORS 2
22081 #define ANUBIS_CBC_DEC_TEST_VECTORS 2
22083 static struct cipher_testvec anubis_enc_tv_template[] = {
22085 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22086 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22087 .klen = 16,
22088 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22089 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22090 .ilen = 16,
22091 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
22092 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
22093 .rlen = 16,
22094 }, {
22096 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
22097 "\x03\x03\x03\x03\x03\x03\x03\x03"
22098 "\x03\x03\x03\x03",
22099 .klen = 20,
22100 .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
22101 "\x03\x03\x03\x03\x03\x03\x03\x03",
22102 .ilen = 16,
22103 .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
22104 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
22105 .rlen = 16,
22106 }, {
22107 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
22108 "\x24\x24\x24\x24\x24\x24\x24\x24"
22109 "\x24\x24\x24\x24\x24\x24\x24\x24"
22110 "\x24\x24\x24\x24",
22111 .klen = 28,
22112 .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
22113 "\x24\x24\x24\x24\x24\x24\x24\x24",
22114 .ilen = 16,
22115 .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
22116 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
22117 .rlen = 16,
22118 }, {
22119 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
22120 "\x25\x25\x25\x25\x25\x25\x25\x25"
22121 "\x25\x25\x25\x25\x25\x25\x25\x25"
22122 "\x25\x25\x25\x25\x25\x25\x25\x25",
22123 .klen = 32,
22124 .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
22125 "\x25\x25\x25\x25\x25\x25\x25\x25",
22126 .ilen = 16,
22127 .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
22128 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
22129 .rlen = 16,
22130 }, {
22131 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
22132 "\x35\x35\x35\x35\x35\x35\x35\x35"
22133 "\x35\x35\x35\x35\x35\x35\x35\x35"
22134 "\x35\x35\x35\x35\x35\x35\x35\x35"
22135 "\x35\x35\x35\x35\x35\x35\x35\x35",
22136 .klen = 40,
22137 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
22138 "\x35\x35\x35\x35\x35\x35\x35\x35",
22139 .ilen = 16,
22140 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
22141 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
22142 .rlen = 16,
22146 static struct cipher_testvec anubis_dec_tv_template[] = {
22148 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22149 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22150 .klen = 16,
22151 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
22152 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
22153 .ilen = 16,
22154 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22155 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22156 .rlen = 16,
22157 }, {
22159 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
22160 "\x03\x03\x03\x03\x03\x03\x03\x03"
22161 "\x03\x03\x03\x03",
22162 .klen = 20,
22163 .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
22164 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
22165 .ilen = 16,
22166 .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
22167 "\x03\x03\x03\x03\x03\x03\x03\x03",
22168 .rlen = 16,
22169 }, {
22170 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
22171 "\x24\x24\x24\x24\x24\x24\x24\x24"
22172 "\x24\x24\x24\x24\x24\x24\x24\x24"
22173 "\x24\x24\x24\x24",
22174 .klen = 28,
22175 .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
22176 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
22177 .ilen = 16,
22178 .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
22179 "\x24\x24\x24\x24\x24\x24\x24\x24",
22180 .rlen = 16,
22181 }, {
22182 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
22183 "\x25\x25\x25\x25\x25\x25\x25\x25"
22184 "\x25\x25\x25\x25\x25\x25\x25\x25"
22185 "\x25\x25\x25\x25\x25\x25\x25\x25",
22186 .klen = 32,
22187 .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
22188 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
22189 .ilen = 16,
22190 .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
22191 "\x25\x25\x25\x25\x25\x25\x25\x25",
22192 .rlen = 16,
22193 }, {
22194 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
22195 "\x35\x35\x35\x35\x35\x35\x35\x35"
22196 "\x35\x35\x35\x35\x35\x35\x35\x35"
22197 "\x35\x35\x35\x35\x35\x35\x35\x35"
22198 "\x35\x35\x35\x35\x35\x35\x35\x35",
22199 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
22200 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
22201 .klen = 40,
22202 .ilen = 16,
22203 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
22204 "\x35\x35\x35\x35\x35\x35\x35\x35",
22205 .rlen = 16,
22209 static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
22211 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22212 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22213 .klen = 16,
22214 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22215 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22216 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22217 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22218 .ilen = 32,
22219 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
22220 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
22221 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
22222 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
22223 .rlen = 32,
22224 }, {
22225 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
22226 "\x35\x35\x35\x35\x35\x35\x35\x35"
22227 "\x35\x35\x35\x35\x35\x35\x35\x35"
22228 "\x35\x35\x35\x35\x35\x35\x35\x35"
22229 "\x35\x35\x35\x35\x35\x35\x35\x35",
22230 .klen = 40,
22231 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
22232 "\x35\x35\x35\x35\x35\x35\x35\x35"
22233 "\x35\x35\x35\x35\x35\x35\x35\x35"
22234 "\x35\x35\x35\x35\x35\x35\x35\x35",
22235 .ilen = 32,
22236 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
22237 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
22238 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
22239 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
22240 .rlen = 32,
22244 static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
22246 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22247 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22248 .klen = 16,
22249 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
22250 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
22251 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
22252 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
22253 .ilen = 32,
22254 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22255 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22256 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
22257 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
22258 .rlen = 32,
22259 }, {
22260 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
22261 "\x35\x35\x35\x35\x35\x35\x35\x35"
22262 "\x35\x35\x35\x35\x35\x35\x35\x35"
22263 "\x35\x35\x35\x35\x35\x35\x35\x35"
22264 "\x35\x35\x35\x35\x35\x35\x35\x35",
22265 .klen = 40,
22266 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
22267 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
22268 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
22269 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
22270 .ilen = 32,
22271 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
22272 "\x35\x35\x35\x35\x35\x35\x35\x35"
22273 "\x35\x35\x35\x35\x35\x35\x35\x35"
22274 "\x35\x35\x35\x35\x35\x35\x35\x35",
22275 .rlen = 32,
22280 * XETA test vectors
22282 #define XETA_ENC_TEST_VECTORS 4
22283 #define XETA_DEC_TEST_VECTORS 4
22285 static struct cipher_testvec xeta_enc_tv_template[] = {
22287 .key = zeroed_string,
22288 .klen = 16,
22289 .input = zeroed_string,
22290 .ilen = 8,
22291 .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
22292 .rlen = 8,
22293 }, {
22294 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
22295 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
22296 .klen = 16,
22297 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
22298 .ilen = 8,
22299 .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
22300 .rlen = 8,
22301 }, {
22302 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
22303 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
22304 .klen = 16,
22305 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
22306 "\x65\x73\x74\x5f\x76\x65\x63\x74",
22307 .ilen = 16,
22308 .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
22309 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
22310 .rlen = 16,
22311 }, {
22312 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
22313 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
22314 .klen = 16,
22315 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
22316 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
22317 "\x79\x6f\x75\x21\x21\x21\x20\x72"
22318 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
22319 .ilen = 32,
22320 .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
22321 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
22322 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
22323 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
22324 .rlen = 32,
22328 static struct cipher_testvec xeta_dec_tv_template[] = {
22330 .key = zeroed_string,
22331 .klen = 16,
22332 .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
22333 .ilen = 8,
22334 .result = zeroed_string,
22335 .rlen = 8,
22336 }, {
22337 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
22338 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
22339 .klen = 16,
22340 .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
22341 .ilen = 8,
22342 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
22343 .rlen = 8,
22344 }, {
22345 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
22346 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
22347 .klen = 16,
22348 .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
22349 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
22350 .ilen = 16,
22351 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
22352 "\x65\x73\x74\x5f\x76\x65\x63\x74",
22353 .rlen = 16,
22354 }, {
22355 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
22356 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
22357 .klen = 16,
22358 .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
22359 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
22360 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
22361 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
22362 .ilen = 32,
22363 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
22364 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
22365 "\x79\x6f\x75\x21\x21\x21\x20\x72"
22366 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
22367 .rlen = 32,
22372 * FCrypt test vectors
22374 #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
22375 #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
22377 static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
22378 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
22379 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
22380 .klen = 8,
22381 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
22382 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
22383 .ilen = 8,
22384 .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
22385 .rlen = 8,
22386 }, {
22387 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
22388 .klen = 8,
22389 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
22390 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
22391 .ilen = 8,
22392 .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
22393 .rlen = 8,
22394 }, { /* From Arla */
22395 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
22396 .klen = 8,
22397 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22398 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
22399 .ilen = 48,
22400 .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
22401 "\xee\xac\x98\x62\x44\x51\xe4\x84"
22402 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
22403 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
22404 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
22405 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
22406 .rlen = 48,
22407 }, {
22408 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22409 .klen = 8,
22410 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
22411 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
22412 .ilen = 48,
22413 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
22414 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
22415 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
22416 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
22417 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
22418 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
22419 .rlen = 48,
22420 }, { /* split-page version */
22421 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22422 .klen = 8,
22423 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
22424 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
22425 .ilen = 48,
22426 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
22427 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
22428 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
22429 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
22430 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
22431 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
22432 .rlen = 48,
22433 .np = 2,
22434 .tap = { 20, 28 },
22438 static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
22439 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
22440 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
22441 .klen = 8,
22442 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
22443 .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
22444 .ilen = 8,
22445 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
22446 .rlen = 8,
22447 }, {
22448 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
22449 .klen = 8,
22450 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
22451 .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
22452 .ilen = 8,
22453 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
22454 .rlen = 8,
22455 }, { /* From Arla */
22456 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
22457 .klen = 8,
22458 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22459 .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
22460 "\xee\xac\x98\x62\x44\x51\xe4\x84"
22461 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
22462 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
22463 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
22464 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
22465 .ilen = 48,
22466 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
22467 .rlen = 48,
22468 }, {
22469 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22470 .klen = 8,
22471 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
22472 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
22473 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
22474 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
22475 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
22476 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
22477 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
22478 .ilen = 48,
22479 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
22480 .rlen = 48,
22481 }, { /* split-page version */
22482 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22483 .klen = 8,
22484 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
22485 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
22486 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
22487 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
22488 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
22489 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
22490 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
22491 .ilen = 48,
22492 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
22493 .rlen = 48,
22494 .np = 2,
22495 .tap = { 20, 28 },
22500 * CAMELLIA test vectors.
22502 #define CAMELLIA_ENC_TEST_VECTORS 4
22503 #define CAMELLIA_DEC_TEST_VECTORS 4
22504 #define CAMELLIA_CBC_ENC_TEST_VECTORS 3
22505 #define CAMELLIA_CBC_DEC_TEST_VECTORS 3
22506 #define CAMELLIA_CTR_ENC_TEST_VECTORS 2
22507 #define CAMELLIA_CTR_DEC_TEST_VECTORS 2
22508 #define CAMELLIA_LRW_ENC_TEST_VECTORS 8
22509 #define CAMELLIA_LRW_DEC_TEST_VECTORS 8
22510 #define CAMELLIA_XTS_ENC_TEST_VECTORS 5
22511 #define CAMELLIA_XTS_DEC_TEST_VECTORS 5
22513 static struct cipher_testvec camellia_enc_tv_template[] = {
22515 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22516 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22517 .klen = 16,
22518 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22519 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22520 .ilen = 16,
22521 .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
22522 "\x08\x57\x06\x56\x48\xea\xbe\x43",
22523 .rlen = 16,
22524 }, {
22525 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22526 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
22527 "\x00\x11\x22\x33\x44\x55\x66\x77",
22528 .klen = 24,
22529 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22530 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22531 .ilen = 16,
22532 .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
22533 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
22534 .rlen = 16,
22535 }, {
22536 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22537 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
22538 "\x00\x11\x22\x33\x44\x55\x66\x77"
22539 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
22540 .klen = 32,
22541 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22542 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22543 .ilen = 16,
22544 .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
22545 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
22546 .rlen = 16,
22547 }, { /* Generated with Crypto++ */
22548 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
22549 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
22550 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
22551 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
22552 .klen = 32,
22553 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22554 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22555 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22556 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22557 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22558 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22559 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22560 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22561 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22562 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22563 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22564 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22565 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22566 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22567 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22568 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22569 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22570 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22571 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22572 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22573 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22574 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22575 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22576 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22577 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22578 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22579 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22580 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22581 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22582 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22583 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22584 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22585 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22586 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22587 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22588 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22589 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22590 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22591 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22592 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22593 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22594 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22595 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22596 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22597 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22598 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22599 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22600 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22601 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22602 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22603 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22604 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22605 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22606 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22607 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22608 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22609 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22610 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22611 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22612 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22613 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22614 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
22615 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
22616 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
22617 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
22618 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
22619 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
22620 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
22621 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
22622 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
22623 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
22624 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
22625 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
22626 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
22627 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
22628 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
22629 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
22630 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
22631 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
22632 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
22633 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
22634 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
22635 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
22636 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
22637 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
22638 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
22639 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
22640 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
22641 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
22642 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
22643 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
22644 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
22645 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
22646 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
22647 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
22648 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
22649 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
22650 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
22651 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
22652 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
22653 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
22654 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
22655 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
22656 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
22657 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
22658 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
22659 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
22660 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
22661 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
22662 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
22663 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
22664 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
22665 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
22666 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
22667 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
22668 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
22669 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
22670 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
22671 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
22672 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
22673 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
22674 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
22675 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
22676 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
22677 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
22678 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
22679 .ilen = 1008,
22680 .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
22681 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
22682 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
22683 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
22684 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
22685 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
22686 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
22687 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
22688 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
22689 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
22690 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
22691 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
22692 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
22693 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
22694 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
22695 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
22696 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
22697 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
22698 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
22699 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
22700 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
22701 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
22702 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
22703 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
22704 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
22705 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
22706 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
22707 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
22708 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
22709 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
22710 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
22711 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
22712 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
22713 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
22714 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
22715 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
22716 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
22717 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
22718 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
22719 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
22720 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
22721 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
22722 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
22723 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
22724 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
22725 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
22726 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
22727 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
22728 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
22729 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
22730 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
22731 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
22732 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
22733 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
22734 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
22735 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
22736 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
22737 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
22738 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
22739 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
22740 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
22741 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
22742 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
22743 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
22744 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
22745 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
22746 "\xED\x28\x39\xE9\x63\xED\x41\x70"
22747 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
22748 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
22749 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
22750 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
22751 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
22752 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
22753 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
22754 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
22755 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
22756 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
22757 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
22758 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
22759 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
22760 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
22761 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
22762 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
22763 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
22764 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
22765 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
22766 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
22767 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
22768 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
22769 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
22770 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
22771 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
22772 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
22773 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
22774 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
22775 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
22776 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
22777 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
22778 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
22779 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
22780 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
22781 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
22782 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
22783 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
22784 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
22785 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
22786 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
22787 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
22788 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
22789 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
22790 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
22791 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
22792 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
22793 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
22794 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
22795 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
22796 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
22797 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
22798 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
22799 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
22800 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
22801 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
22802 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
22803 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
22804 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
22805 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
22806 .rlen = 1008,
22807 .also_non_np = 1,
22808 .np = 2,
22809 .tap = { 1008 - 16, 16 },
22813 static struct cipher_testvec camellia_dec_tv_template[] = {
22815 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22816 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22817 .klen = 16,
22818 .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
22819 "\x08\x57\x06\x56\x48\xea\xbe\x43",
22820 .ilen = 16,
22821 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22822 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22823 .rlen = 16,
22824 }, {
22825 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22826 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
22827 "\x00\x11\x22\x33\x44\x55\x66\x77",
22828 .klen = 24,
22829 .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
22830 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
22831 .ilen = 16,
22832 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22833 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22834 .rlen = 16,
22835 }, {
22836 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22837 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
22838 "\x00\x11\x22\x33\x44\x55\x66\x77"
22839 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
22840 .klen = 32,
22841 .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
22842 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
22843 .ilen = 16,
22844 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
22845 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
22846 .rlen = 16,
22847 }, { /* Generated with Crypto++ */
22848 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
22849 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
22850 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
22851 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
22852 .klen = 32,
22853 .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
22854 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
22855 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
22856 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
22857 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
22858 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
22859 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
22860 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
22861 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
22862 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
22863 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
22864 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
22865 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
22866 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
22867 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
22868 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
22869 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
22870 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
22871 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
22872 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
22873 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
22874 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
22875 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
22876 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
22877 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
22878 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
22879 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
22880 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
22881 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
22882 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
22883 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
22884 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
22885 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
22886 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
22887 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
22888 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
22889 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
22890 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
22891 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
22892 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
22893 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
22894 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
22895 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
22896 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
22897 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
22898 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
22899 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
22900 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
22901 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
22902 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
22903 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
22904 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
22905 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
22906 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
22907 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
22908 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
22909 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
22910 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
22911 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
22912 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
22913 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
22914 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
22915 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
22916 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
22917 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
22918 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
22919 "\xED\x28\x39\xE9\x63\xED\x41\x70"
22920 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
22921 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
22922 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
22923 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
22924 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
22925 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
22926 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
22927 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
22928 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
22929 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
22930 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
22931 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
22932 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
22933 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
22934 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
22935 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
22936 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
22937 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
22938 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
22939 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
22940 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
22941 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
22942 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
22943 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
22944 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
22945 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
22946 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
22947 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
22948 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
22949 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
22950 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
22951 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
22952 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
22953 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
22954 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
22955 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
22956 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
22957 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
22958 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
22959 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
22960 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
22961 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
22962 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
22963 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
22964 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
22965 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
22966 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
22967 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
22968 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
22969 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
22970 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
22971 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
22972 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
22973 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
22974 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
22975 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
22976 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
22977 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
22978 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
22979 .ilen = 1008,
22980 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22981 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22982 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22983 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22984 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22985 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22986 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22987 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22988 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22989 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22990 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22991 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22992 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22993 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22994 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22995 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22996 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22997 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22998 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22999 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
23000 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
23001 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
23002 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
23003 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
23004 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
23005 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
23006 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
23007 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
23008 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
23009 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
23010 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
23011 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
23012 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
23013 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
23014 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
23015 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
23016 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
23017 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
23018 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
23019 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
23020 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
23021 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
23022 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
23023 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
23024 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
23025 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
23026 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
23027 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
23028 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
23029 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
23030 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
23031 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
23032 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
23033 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
23034 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
23035 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
23036 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
23037 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
23038 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
23039 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
23040 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23041 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23042 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
23043 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
23044 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
23045 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
23046 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
23047 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
23048 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
23049 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
23050 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
23051 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
23052 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
23053 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
23054 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
23055 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
23056 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
23057 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
23058 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
23059 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
23060 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
23061 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
23062 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
23063 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
23064 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
23065 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
23066 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
23067 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
23068 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
23069 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
23070 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
23071 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
23072 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
23073 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
23074 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
23075 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
23076 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
23077 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
23078 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
23079 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
23080 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
23081 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
23082 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
23083 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
23084 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
23085 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
23086 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
23087 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
23088 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
23089 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
23090 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
23091 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
23092 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
23093 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
23094 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
23095 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
23096 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
23097 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
23098 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
23099 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
23100 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
23101 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
23102 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
23103 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
23104 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
23105 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
23106 .rlen = 1008,
23107 .also_non_np = 1,
23108 .np = 2,
23109 .tap = { 1008 - 16, 16 },
23113 static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
23115 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
23116 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
23117 .klen = 16,
23118 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
23119 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
23120 .input = "Single block msg",
23121 .ilen = 16,
23122 .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
23123 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
23124 .rlen = 16,
23125 }, {
23126 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
23127 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
23128 .klen = 16,
23129 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
23130 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
23131 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
23132 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23133 "\x10\x11\x12\x13\x14\x15\x16\x17"
23134 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
23135 .ilen = 32,
23136 .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
23137 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
23138 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
23139 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
23140 .rlen = 32,
23141 }, { /* Generated with Crypto++ */
23142 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
23143 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
23144 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
23145 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
23146 .klen = 32,
23147 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
23148 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
23149 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
23150 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
23151 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
23152 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
23153 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
23154 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
23155 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
23156 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
23157 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
23158 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
23159 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
23160 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
23161 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
23162 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
23163 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
23164 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
23165 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
23166 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
23167 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
23168 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
23169 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
23170 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
23171 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
23172 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
23173 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
23174 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
23175 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
23176 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
23177 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
23178 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
23179 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
23180 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
23181 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
23182 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
23183 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
23184 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
23185 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
23186 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
23187 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
23188 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
23189 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
23190 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
23191 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
23192 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
23193 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
23194 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
23195 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
23196 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
23197 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
23198 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
23199 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
23200 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
23201 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
23202 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
23203 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
23204 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
23205 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
23206 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
23207 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
23208 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
23209 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23210 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23211 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
23212 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
23213 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
23214 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
23215 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
23216 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
23217 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
23218 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
23219 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
23220 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
23221 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
23222 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
23223 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
23224 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
23225 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
23226 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
23227 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
23228 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
23229 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
23230 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
23231 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
23232 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
23233 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
23234 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
23235 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
23236 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
23237 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
23238 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
23239 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
23240 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
23241 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
23242 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
23243 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
23244 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
23245 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
23246 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
23247 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
23248 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
23249 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
23250 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
23251 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
23252 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
23253 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
23254 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
23255 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
23256 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
23257 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
23258 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
23259 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
23260 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
23261 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
23262 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
23263 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
23264 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
23265 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
23266 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
23267 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
23268 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
23269 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
23270 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
23271 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
23272 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
23273 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
23274 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
23275 .ilen = 1008,
23276 .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
23277 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
23278 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
23279 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
23280 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
23281 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
23282 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
23283 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
23284 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
23285 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
23286 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
23287 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
23288 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
23289 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
23290 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
23291 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
23292 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
23293 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
23294 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
23295 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
23296 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
23297 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
23298 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
23299 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
23300 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
23301 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
23302 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
23303 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
23304 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
23305 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
23306 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
23307 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
23308 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
23309 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
23310 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
23311 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
23312 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
23313 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
23314 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
23315 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
23316 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
23317 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
23318 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
23319 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
23320 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
23321 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
23322 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
23323 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
23324 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
23325 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
23326 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
23327 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
23328 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
23329 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
23330 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
23331 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
23332 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
23333 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
23334 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
23335 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
23336 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
23337 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
23338 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
23339 "\x21\x41\x56\x72\x13\xE1\x86\x07"
23340 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
23341 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
23342 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
23343 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
23344 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
23345 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
23346 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
23347 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
23348 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
23349 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
23350 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
23351 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
23352 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
23353 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
23354 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
23355 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
23356 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
23357 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
23358 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
23359 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
23360 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
23361 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
23362 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
23363 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
23364 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
23365 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
23366 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
23367 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
23368 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
23369 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
23370 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
23371 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
23372 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
23373 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
23374 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
23375 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
23376 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
23377 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
23378 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
23379 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
23380 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
23381 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
23382 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
23383 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
23384 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
23385 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
23386 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
23387 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
23388 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
23389 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
23390 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
23391 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
23392 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
23393 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
23394 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
23395 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
23396 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
23397 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
23398 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
23399 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
23400 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
23401 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
23402 .rlen = 1008,
23403 .also_non_np = 1,
23404 .np = 2,
23405 .tap = { 1008 - 16, 16 },
23409 static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
23411 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
23412 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
23413 .klen = 16,
23414 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
23415 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
23416 .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
23417 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
23418 .ilen = 16,
23419 .result = "Single block msg",
23420 .rlen = 16,
23421 }, {
23422 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
23423 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
23424 .klen = 16,
23425 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
23426 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
23427 .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
23428 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
23429 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
23430 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
23431 .ilen = 32,
23432 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
23433 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23434 "\x10\x11\x12\x13\x14\x15\x16\x17"
23435 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
23436 .rlen = 32,
23437 }, { /* Generated with Crypto++ */
23438 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
23439 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
23440 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
23441 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
23442 .klen = 32,
23443 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
23444 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
23445 .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
23446 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
23447 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
23448 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
23449 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
23450 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
23451 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
23452 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
23453 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
23454 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
23455 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
23456 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
23457 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
23458 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
23459 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
23460 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
23461 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
23462 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
23463 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
23464 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
23465 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
23466 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
23467 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
23468 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
23469 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
23470 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
23471 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
23472 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
23473 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
23474 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
23475 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
23476 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
23477 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
23478 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
23479 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
23480 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
23481 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
23482 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
23483 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
23484 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
23485 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
23486 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
23487 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
23488 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
23489 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
23490 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
23491 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
23492 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
23493 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
23494 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
23495 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
23496 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
23497 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
23498 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
23499 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
23500 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
23501 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
23502 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
23503 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
23504 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
23505 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
23506 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
23507 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
23508 "\x21\x41\x56\x72\x13\xE1\x86\x07"
23509 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
23510 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
23511 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
23512 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
23513 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
23514 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
23515 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
23516 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
23517 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
23518 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
23519 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
23520 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
23521 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
23522 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
23523 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
23524 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
23525 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
23526 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
23527 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
23528 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
23529 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
23530 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
23531 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
23532 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
23533 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
23534 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
23535 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
23536 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
23537 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
23538 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
23539 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
23540 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
23541 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
23542 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
23543 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
23544 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
23545 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
23546 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
23547 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
23548 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
23549 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
23550 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
23551 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
23552 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
23553 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
23554 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
23555 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
23556 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
23557 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
23558 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
23559 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
23560 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
23561 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
23562 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
23563 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
23564 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
23565 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
23566 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
23567 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
23568 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
23569 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
23570 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
23571 .ilen = 1008,
23572 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
23573 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
23574 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
23575 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
23576 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
23577 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
23578 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
23579 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
23580 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
23581 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
23582 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
23583 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
23584 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
23585 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
23586 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
23587 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
23588 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
23589 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
23590 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
23591 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
23592 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
23593 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
23594 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
23595 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
23596 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
23597 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
23598 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
23599 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
23600 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
23601 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
23602 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
23603 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
23604 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
23605 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
23606 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
23607 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
23608 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
23609 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
23610 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
23611 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
23612 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
23613 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
23614 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
23615 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
23616 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
23617 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
23618 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
23619 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
23620 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
23621 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
23622 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
23623 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
23624 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
23625 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
23626 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
23627 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
23628 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
23629 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
23630 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
23631 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
23632 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23633 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23634 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
23635 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
23636 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
23637 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
23638 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
23639 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
23640 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
23641 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
23642 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
23643 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
23644 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
23645 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
23646 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
23647 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
23648 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
23649 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
23650 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
23651 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
23652 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
23653 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
23654 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
23655 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
23656 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
23657 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
23658 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
23659 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
23660 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
23661 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
23662 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
23663 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
23664 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
23665 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
23666 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
23667 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
23668 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
23669 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
23670 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
23671 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
23672 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
23673 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
23674 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
23675 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
23676 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
23677 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
23678 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
23679 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
23680 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
23681 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
23682 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
23683 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
23684 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
23685 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
23686 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
23687 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
23688 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
23689 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
23690 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
23691 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
23692 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
23693 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
23694 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
23695 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
23696 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
23697 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
23698 .rlen = 1008,
23699 .also_non_np = 1,
23700 .np = 2,
23701 .tap = { 1008 - 16, 16 },
23705 static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
23706 { /* Generated with Crypto++ */
23707 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
23708 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
23709 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
23710 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
23711 .klen = 32,
23712 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
23713 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
23714 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
23715 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
23716 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
23717 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
23718 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
23719 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
23720 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
23721 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
23722 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
23723 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
23724 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
23725 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
23726 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
23727 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
23728 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
23729 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
23730 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
23731 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
23732 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
23733 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
23734 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
23735 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
23736 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
23737 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
23738 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
23739 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
23740 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
23741 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
23742 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
23743 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
23744 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
23745 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
23746 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
23747 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
23748 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
23749 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
23750 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
23751 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
23752 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
23753 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
23754 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
23755 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
23756 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
23757 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
23758 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
23759 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
23760 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
23761 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
23762 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
23763 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
23764 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
23765 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
23766 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
23767 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
23768 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
23769 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
23770 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
23771 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
23772 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
23773 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
23774 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23775 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
23776 .ilen = 496,
23777 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
23778 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
23779 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
23780 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
23781 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
23782 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
23783 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
23784 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
23785 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
23786 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
23787 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
23788 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
23789 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
23790 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
23791 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
23792 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
23793 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
23794 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
23795 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
23796 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
23797 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
23798 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
23799 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
23800 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
23801 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
23802 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
23803 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
23804 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
23805 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
23806 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
23807 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
23808 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
23809 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
23810 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
23811 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
23812 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
23813 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
23814 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
23815 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
23816 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
23817 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
23818 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
23819 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
23820 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
23821 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
23822 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
23823 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
23824 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
23825 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
23826 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
23827 "\x76\x44\x45\xF3\x24\x11\x57\x98"
23828 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
23829 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
23830 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
23831 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
23832 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
23833 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
23834 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
23835 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
23836 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
23837 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
23838 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
23839 .rlen = 496,
23840 }, { /* Generated with Crypto++ */
23841 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
23842 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
23843 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
23844 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
23845 .klen = 32,
23846 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
23847 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
23848 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
23849 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
23850 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
23851 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
23852 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
23853 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
23854 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
23855 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
23856 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
23857 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
23858 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
23859 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
23860 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
23861 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
23862 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
23863 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
23864 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
23865 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
23866 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
23867 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
23868 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
23869 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
23870 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
23871 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
23872 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
23873 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
23874 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
23875 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
23876 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
23877 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
23878 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
23879 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
23880 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
23881 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
23882 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
23883 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
23884 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
23885 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
23886 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
23887 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
23888 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
23889 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
23890 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
23891 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
23892 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
23893 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
23894 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
23895 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
23896 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
23897 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
23898 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
23899 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
23900 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
23901 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
23902 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
23903 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
23904 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
23905 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
23906 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
23907 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
23908 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23909 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23910 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
23911 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
23912 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
23913 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
23914 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
23915 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
23916 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
23917 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
23918 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
23919 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
23920 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
23921 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
23922 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
23923 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
23924 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
23925 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
23926 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
23927 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
23928 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
23929 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
23930 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
23931 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
23932 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
23933 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
23934 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
23935 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
23936 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
23937 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
23938 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
23939 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
23940 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
23941 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
23942 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
23943 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
23944 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
23945 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
23946 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
23947 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
23948 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
23949 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
23950 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
23951 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
23952 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
23953 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
23954 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
23955 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
23956 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
23957 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
23958 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
23959 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
23960 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
23961 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
23962 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
23963 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
23964 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
23965 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
23966 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
23967 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
23968 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
23969 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
23970 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
23971 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
23972 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
23973 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
23974 "\xE4\x7B\x12",
23975 .ilen = 1011,
23976 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
23977 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
23978 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
23979 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
23980 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
23981 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
23982 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
23983 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
23984 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
23985 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
23986 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
23987 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
23988 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
23989 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
23990 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
23991 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
23992 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
23993 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
23994 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
23995 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
23996 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
23997 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
23998 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
23999 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
24000 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
24001 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
24002 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
24003 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
24004 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
24005 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
24006 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
24007 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
24008 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
24009 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
24010 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
24011 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
24012 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
24013 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
24014 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
24015 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
24016 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
24017 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
24018 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
24019 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
24020 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
24021 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
24022 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
24023 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
24024 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
24025 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
24026 "\x76\x44\x45\xF3\x24\x11\x57\x98"
24027 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
24028 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
24029 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
24030 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
24031 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
24032 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
24033 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
24034 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
24035 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
24036 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
24037 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
24038 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
24039 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
24040 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
24041 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
24042 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
24043 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
24044 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
24045 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
24046 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
24047 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
24048 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
24049 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
24050 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
24051 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
24052 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
24053 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
24054 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
24055 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
24056 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
24057 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
24058 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
24059 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
24060 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
24061 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
24062 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
24063 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
24064 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
24065 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
24066 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
24067 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
24068 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
24069 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
24070 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
24071 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
24072 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
24073 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
24074 "\x00\x70\x12\x56\x56\x50\xAD\x14"
24075 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
24076 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
24077 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
24078 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
24079 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
24080 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
24081 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
24082 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
24083 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
24084 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
24085 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
24086 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
24087 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
24088 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
24089 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
24090 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
24091 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
24092 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
24093 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
24094 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
24095 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
24096 "\x74\x28\x9D\x05\x30\x20\x62\x41"
24097 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
24098 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
24099 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
24100 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
24101 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
24102 "\xF1\x6B\xD9",
24103 .rlen = 1011,
24104 .also_non_np = 1,
24105 .np = 2,
24106 .tap = { 1011 - 16, 16 },
24107 }, { /* Generated with Crypto++ */
24108 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24109 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24110 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24111 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24112 .klen = 32,
24113 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
24114 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
24115 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24116 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24117 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24118 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24119 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
24120 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
24121 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24122 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24123 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24124 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24125 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24126 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24127 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24128 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24129 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24130 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24131 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24132 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24133 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24134 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24135 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24136 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24137 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24138 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24139 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24140 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24141 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24142 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24143 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24144 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24145 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24146 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24147 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24148 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24149 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24150 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24151 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24152 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24153 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24154 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24155 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24156 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24157 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24158 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24159 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24160 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24161 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24162 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24163 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24164 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24165 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24166 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24167 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24168 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24169 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24170 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24171 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24172 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24173 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24174 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24175 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
24176 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
24177 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
24178 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
24179 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
24180 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
24181 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
24182 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
24183 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
24184 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
24185 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
24186 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
24187 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
24188 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
24189 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
24190 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
24191 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
24192 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
24193 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
24194 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
24195 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
24196 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
24197 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
24198 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
24199 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
24200 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
24201 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
24202 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
24203 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
24204 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
24205 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
24206 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
24207 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
24208 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
24209 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
24210 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
24211 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
24212 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
24213 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
24214 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
24215 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
24216 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
24217 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
24218 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
24219 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
24220 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
24221 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
24222 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
24223 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
24224 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
24225 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
24226 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
24227 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
24228 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
24229 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
24230 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
24231 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
24232 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
24233 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
24234 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
24235 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
24236 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
24237 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
24238 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
24239 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
24240 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
24241 .ilen = 1008,
24242 .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
24243 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
24244 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
24245 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
24246 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
24247 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
24248 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
24249 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
24250 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
24251 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
24252 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
24253 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
24254 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
24255 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
24256 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
24257 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
24258 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
24259 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
24260 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
24261 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
24262 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
24263 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
24264 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
24265 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
24266 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
24267 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
24268 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
24269 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
24270 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
24271 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
24272 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
24273 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
24274 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
24275 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
24276 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
24277 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
24278 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
24279 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
24280 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
24281 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
24282 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
24283 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
24284 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
24285 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
24286 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
24287 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
24288 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
24289 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
24290 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
24291 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
24292 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
24293 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
24294 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
24295 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
24296 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
24297 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
24298 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
24299 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
24300 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
24301 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
24302 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
24303 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
24304 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
24305 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
24306 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
24307 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
24308 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
24309 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
24310 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
24311 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
24312 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
24313 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
24314 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
24315 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
24316 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
24317 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
24318 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
24319 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
24320 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
24321 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
24322 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
24323 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
24324 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
24325 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
24326 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
24327 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
24328 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
24329 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
24330 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
24331 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
24332 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
24333 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
24334 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
24335 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
24336 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
24337 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
24338 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
24339 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
24340 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
24341 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
24342 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
24343 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
24344 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
24345 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
24346 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
24347 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
24348 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
24349 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
24350 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
24351 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
24352 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
24353 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
24354 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
24355 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
24356 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
24357 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
24358 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
24359 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
24360 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
24361 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
24362 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
24363 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
24364 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
24365 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
24366 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
24367 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
24368 .rlen = 1008,
24372 static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
24373 { /* Generated with Crypto++ */
24374 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24375 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24376 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24377 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24378 .klen = 32,
24379 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
24380 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
24381 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
24382 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
24383 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
24384 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
24385 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
24386 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
24387 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
24388 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
24389 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
24390 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
24391 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
24392 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
24393 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
24394 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
24395 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
24396 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
24397 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
24398 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
24399 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
24400 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
24401 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
24402 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
24403 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
24404 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
24405 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
24406 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
24407 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
24408 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
24409 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
24410 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
24411 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
24412 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
24413 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
24414 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
24415 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
24416 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
24417 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
24418 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
24419 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
24420 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
24421 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
24422 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
24423 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
24424 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
24425 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
24426 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
24427 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
24428 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
24429 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
24430 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
24431 "\x76\x44\x45\xF3\x24\x11\x57\x98"
24432 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
24433 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
24434 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
24435 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
24436 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
24437 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
24438 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
24439 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
24440 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
24441 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
24442 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
24443 .ilen = 496,
24444 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24445 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24446 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24447 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24448 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
24449 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
24450 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24451 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24452 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24453 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24454 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24455 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24456 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24457 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24458 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24459 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24460 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24461 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24462 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24463 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24464 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24465 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24466 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24467 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24468 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24469 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24470 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24471 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24472 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24473 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24474 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24475 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24476 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24477 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24478 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24479 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24480 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24481 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24482 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24483 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24484 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24485 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24486 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24487 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24488 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24489 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24490 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24491 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24492 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24493 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24494 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24495 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24496 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24497 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24498 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24499 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24500 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24501 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24502 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24503 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24504 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
24505 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
24506 .rlen = 496,
24507 }, { /* Generated with Crypto++ */
24508 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24509 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24510 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24511 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24512 .klen = 32,
24513 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
24514 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
24515 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
24516 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
24517 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
24518 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
24519 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
24520 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
24521 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
24522 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
24523 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
24524 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
24525 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
24526 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
24527 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
24528 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
24529 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
24530 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
24531 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
24532 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
24533 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
24534 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
24535 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
24536 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
24537 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
24538 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
24539 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
24540 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
24541 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
24542 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
24543 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
24544 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
24545 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
24546 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
24547 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
24548 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
24549 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
24550 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
24551 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
24552 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
24553 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
24554 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
24555 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
24556 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
24557 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
24558 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
24559 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
24560 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
24561 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
24562 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
24563 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
24564 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
24565 "\x76\x44\x45\xF3\x24\x11\x57\x98"
24566 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
24567 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
24568 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
24569 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
24570 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
24571 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
24572 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
24573 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
24574 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
24575 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
24576 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
24577 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
24578 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
24579 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
24580 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
24581 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
24582 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
24583 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
24584 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
24585 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
24586 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
24587 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
24588 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
24589 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
24590 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
24591 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
24592 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
24593 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
24594 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
24595 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
24596 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
24597 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
24598 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
24599 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
24600 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
24601 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
24602 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
24603 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
24604 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
24605 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
24606 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
24607 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
24608 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
24609 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
24610 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
24611 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
24612 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
24613 "\x00\x70\x12\x56\x56\x50\xAD\x14"
24614 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
24615 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
24616 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
24617 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
24618 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
24619 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
24620 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
24621 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
24622 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
24623 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
24624 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
24625 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
24626 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
24627 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
24628 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
24629 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
24630 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
24631 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
24632 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
24633 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
24634 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
24635 "\x74\x28\x9D\x05\x30\x20\x62\x41"
24636 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
24637 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
24638 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
24639 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
24640 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
24641 "\xF1\x6B\xD9",
24642 .ilen = 1011,
24643 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24644 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24645 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24646 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24647 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
24648 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
24649 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24650 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24651 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24652 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24653 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24654 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24655 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24656 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24657 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24658 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24659 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24660 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24661 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24662 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24663 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24664 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24665 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24666 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24667 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24668 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24669 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24670 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24671 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24672 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24673 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24674 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24675 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24676 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24677 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24678 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24679 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24680 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24681 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24682 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24683 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24684 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24685 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24686 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24687 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24688 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24689 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24690 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24691 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24692 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24693 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24694 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24695 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24696 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24697 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24698 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24699 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24700 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24701 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24702 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24703 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
24704 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
24705 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
24706 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
24707 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
24708 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
24709 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
24710 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
24711 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
24712 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
24713 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
24714 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
24715 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
24716 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
24717 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
24718 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
24719 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
24720 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
24721 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
24722 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
24723 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
24724 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
24725 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
24726 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
24727 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
24728 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
24729 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
24730 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
24731 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
24732 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
24733 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
24734 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
24735 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
24736 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
24737 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
24738 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
24739 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
24740 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
24741 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
24742 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
24743 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
24744 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
24745 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
24746 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
24747 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
24748 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
24749 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
24750 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
24751 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
24752 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
24753 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
24754 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
24755 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
24756 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
24757 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
24758 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
24759 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
24760 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
24761 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
24762 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
24763 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
24764 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
24765 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
24766 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
24767 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
24768 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
24769 "\xE4\x7B\x12",
24770 .rlen = 1011,
24771 .also_non_np = 1,
24772 .np = 2,
24773 .tap = { 1011 - 16, 16 },
24774 }, { /* Generated with Crypto++ */
24775 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
24776 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
24777 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
24778 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
24779 .klen = 32,
24780 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
24781 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
24782 .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
24783 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
24784 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
24785 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
24786 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
24787 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
24788 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
24789 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
24790 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
24791 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
24792 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
24793 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
24794 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
24795 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
24796 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
24797 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
24798 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
24799 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
24800 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
24801 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
24802 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
24803 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
24804 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
24805 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
24806 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
24807 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
24808 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
24809 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
24810 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
24811 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
24812 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
24813 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
24814 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
24815 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
24816 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
24817 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
24818 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
24819 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
24820 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
24821 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
24822 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
24823 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
24824 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
24825 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
24826 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
24827 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
24828 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
24829 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
24830 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
24831 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
24832 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
24833 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
24834 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
24835 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
24836 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
24837 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
24838 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
24839 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
24840 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
24841 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
24842 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
24843 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
24844 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
24845 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
24846 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
24847 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
24848 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
24849 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
24850 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
24851 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
24852 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
24853 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
24854 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
24855 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
24856 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
24857 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
24858 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
24859 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
24860 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
24861 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
24862 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
24863 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
24864 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
24865 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
24866 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
24867 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
24868 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
24869 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
24870 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
24871 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
24872 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
24873 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
24874 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
24875 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
24876 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
24877 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
24878 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
24879 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
24880 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
24881 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
24882 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
24883 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
24884 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
24885 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
24886 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
24887 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
24888 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
24889 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
24890 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
24891 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
24892 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
24893 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
24894 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
24895 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
24896 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
24897 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
24898 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
24899 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
24900 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
24901 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
24902 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
24903 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
24904 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
24905 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
24906 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
24907 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
24908 .ilen = 1008,
24909 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
24910 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
24911 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
24912 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
24913 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
24914 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
24915 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
24916 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
24917 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
24918 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
24919 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
24920 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
24921 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
24922 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
24923 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
24924 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
24925 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
24926 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
24927 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
24928 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
24929 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
24930 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
24931 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
24932 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
24933 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
24934 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
24935 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
24936 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
24937 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
24938 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
24939 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
24940 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
24941 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
24942 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
24943 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
24944 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
24945 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
24946 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
24947 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
24948 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
24949 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
24950 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
24951 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
24952 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
24953 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
24954 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
24955 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
24956 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
24957 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
24958 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
24959 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
24960 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
24961 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
24962 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
24963 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
24964 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
24965 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
24966 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
24967 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
24968 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
24969 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
24970 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
24971 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
24972 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
24973 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
24974 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
24975 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
24976 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
24977 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
24978 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
24979 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
24980 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
24981 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
24982 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
24983 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
24984 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
24985 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
24986 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
24987 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
24988 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
24989 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
24990 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
24991 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
24992 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
24993 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
24994 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
24995 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
24996 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
24997 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
24998 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
24999 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
25000 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
25001 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
25002 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
25003 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
25004 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
25005 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
25006 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
25007 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
25008 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
25009 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
25010 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
25011 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
25012 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
25013 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
25014 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
25015 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
25016 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
25017 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
25018 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
25019 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
25020 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
25021 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
25022 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
25023 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
25024 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
25025 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
25026 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
25027 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
25028 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
25029 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
25030 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
25031 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
25032 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
25033 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
25034 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
25035 .rlen = 1008,
25039 static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
25040 /* Generated from AES-LRW test vectors */
25042 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
25043 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
25044 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
25045 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
25046 .klen = 32,
25047 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25048 "\x00\x00\x00\x00\x00\x00\x00\x01",
25049 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25050 "\x38\x39\x41\x42\x43\x44\x45\x46",
25051 .ilen = 16,
25052 .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
25053 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
25054 .rlen = 16,
25055 }, {
25056 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
25057 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
25058 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
25059 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
25060 .klen = 32,
25061 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25062 "\x00\x00\x00\x00\x00\x00\x00\x02",
25063 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25064 "\x38\x39\x41\x42\x43\x44\x45\x46",
25065 .ilen = 16,
25066 .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
25067 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
25068 .rlen = 16,
25069 }, {
25070 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
25071 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
25072 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
25073 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
25074 .klen = 32,
25075 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25076 "\x00\x00\x00\x02\x00\x00\x00\x00",
25077 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25078 "\x38\x39\x41\x42\x43\x44\x45\x46",
25079 .ilen = 16,
25080 .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
25081 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
25082 .rlen = 16,
25083 }, {
25084 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
25085 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
25086 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
25087 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
25088 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
25089 .klen = 40,
25090 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25091 "\x00\x00\x00\x00\x00\x00\x00\x01",
25092 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25093 "\x38\x39\x41\x42\x43\x44\x45\x46",
25094 .ilen = 16,
25095 .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
25096 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
25097 .rlen = 16,
25098 }, {
25099 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
25100 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
25101 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
25102 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
25103 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
25104 .klen = 40,
25105 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25106 "\x00\x00\x00\x02\x00\x00\x00\x00",
25107 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25108 "\x38\x39\x41\x42\x43\x44\x45\x46",
25109 .ilen = 16,
25110 .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
25111 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
25112 .rlen = 16,
25113 }, {
25114 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
25115 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
25116 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
25117 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
25118 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
25119 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
25120 .klen = 48,
25121 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25122 "\x00\x00\x00\x00\x00\x00\x00\x01",
25123 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25124 "\x38\x39\x41\x42\x43\x44\x45\x46",
25125 .ilen = 16,
25126 .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
25127 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
25128 .rlen = 16,
25129 }, {
25130 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
25131 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
25132 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
25133 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
25134 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
25135 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
25136 .klen = 48,
25137 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25138 "\x00\x00\x00\x02\x00\x00\x00\x00",
25139 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
25140 "\x38\x39\x41\x42\x43\x44\x45\x46",
25141 .ilen = 16,
25142 .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
25143 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
25144 .rlen = 16,
25145 }, {
25146 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
25147 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
25148 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
25149 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
25150 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
25151 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
25152 .klen = 48,
25153 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25154 "\x00\x00\x00\x00\x00\x00\x00\x01",
25155 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
25156 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
25157 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
25158 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
25159 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
25160 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
25161 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
25162 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
25163 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
25164 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
25165 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
25166 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
25167 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
25168 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
25169 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
25170 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
25171 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
25172 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
25173 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
25174 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
25175 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
25176 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
25177 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
25178 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
25179 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
25180 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
25181 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
25182 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
25183 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
25184 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
25185 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
25186 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
25187 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
25188 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
25189 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
25190 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
25191 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
25192 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
25193 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
25194 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
25195 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
25196 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
25197 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
25198 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
25199 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
25200 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
25201 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
25202 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
25203 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
25204 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
25205 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
25206 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
25207 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
25208 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
25209 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
25210 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
25211 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
25212 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
25213 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
25214 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
25215 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
25216 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
25217 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
25218 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
25219 .ilen = 512,
25220 .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
25221 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
25222 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
25223 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
25224 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
25225 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
25226 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
25227 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
25228 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
25229 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
25230 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
25231 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
25232 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
25233 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
25234 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
25235 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
25236 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
25237 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
25238 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
25239 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
25240 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
25241 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
25242 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
25243 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
25244 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
25245 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
25246 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
25247 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
25248 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
25249 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
25250 "\xed\x14\xa9\x57\x19\x63\x40\x04"
25251 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
25252 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
25253 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
25254 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
25255 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
25256 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
25257 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
25258 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
25259 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
25260 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
25261 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
25262 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
25263 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
25264 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
25265 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
25266 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
25267 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
25268 "\x35\xa5\x83\x04\x84\x01\x99\x56"
25269 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
25270 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
25271 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
25272 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
25273 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
25274 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
25275 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
25276 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
25277 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
25278 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
25279 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
25280 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
25281 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
25282 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
25283 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
25284 .rlen = 512,
25285 .also_non_np = 1,
25286 .np = 2,
25287 .tap = { 512 - 16, 16 },
25291 static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
25292 /* Generated from AES-LRW test vectors */
25293 /* same as enc vectors with input and result reversed */
25295 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
25296 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
25297 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
25298 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
25299 .klen = 32,
25300 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25301 "\x00\x00\x00\x00\x00\x00\x00\x01",
25302 .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
25303 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
25304 .ilen = 16,
25305 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
25306 "\x38\x39\x41\x42\x43\x44\x45\x46",
25307 .rlen = 16,
25308 }, {
25309 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
25310 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
25311 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
25312 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
25313 .klen = 32,
25314 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25315 "\x00\x00\x00\x00\x00\x00\x00\x02",
25316 .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
25317 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
25318 .ilen = 16,
25319 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
25320 "\x38\x39\x41\x42\x43\x44\x45\x46",
25321 .rlen = 16,
25322 }, {
25323 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
25324 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
25325 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
25326 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
25327 .klen = 32,
25328 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25329 "\x00\x00\x00\x02\x00\x00\x00\x00",
25330 .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
25331 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
25332 .ilen = 16,
25333 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
25334 "\x38\x39\x41\x42\x43\x44\x45\x46",
25335 .rlen = 16,
25336 }, {
25337 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
25338 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
25339 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
25340 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
25341 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
25342 .klen = 40,
25343 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25344 "\x00\x00\x00\x00\x00\x00\x00\x01",
25345 .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
25346 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
25347 .ilen = 16,
25348 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
25349 "\x38\x39\x41\x42\x43\x44\x45\x46",
25350 .rlen = 16,
25351 }, {
25352 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
25353 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
25354 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
25355 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
25356 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
25357 .klen = 40,
25358 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25359 "\x00\x00\x00\x02\x00\x00\x00\x00",
25360 .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
25361 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
25362 .ilen = 16,
25363 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
25364 "\x38\x39\x41\x42\x43\x44\x45\x46",
25365 .rlen = 16,
25366 }, {
25367 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
25368 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
25369 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
25370 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
25371 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
25372 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
25373 .klen = 48,
25374 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25375 "\x00\x00\x00\x00\x00\x00\x00\x01",
25376 .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
25377 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
25378 .ilen = 16,
25379 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
25380 "\x38\x39\x41\x42\x43\x44\x45\x46",
25381 .rlen = 16,
25382 }, {
25383 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
25384 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
25385 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
25386 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
25387 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
25388 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
25389 .klen = 48,
25390 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25391 "\x00\x00\x00\x02\x00\x00\x00\x00",
25392 .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
25393 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
25394 .ilen = 16,
25395 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
25396 "\x38\x39\x41\x42\x43\x44\x45\x46",
25397 .rlen = 16,
25398 }, {
25399 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
25400 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
25401 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
25402 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
25403 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
25404 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
25405 .klen = 48,
25406 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25407 "\x00\x00\x00\x00\x00\x00\x00\x01",
25408 .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
25409 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
25410 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
25411 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
25412 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
25413 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
25414 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
25415 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
25416 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
25417 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
25418 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
25419 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
25420 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
25421 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
25422 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
25423 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
25424 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
25425 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
25426 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
25427 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
25428 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
25429 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
25430 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
25431 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
25432 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
25433 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
25434 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
25435 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
25436 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
25437 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
25438 "\xed\x14\xa9\x57\x19\x63\x40\x04"
25439 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
25440 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
25441 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
25442 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
25443 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
25444 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
25445 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
25446 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
25447 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
25448 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
25449 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
25450 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
25451 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
25452 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
25453 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
25454 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
25455 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
25456 "\x35\xa5\x83\x04\x84\x01\x99\x56"
25457 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
25458 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
25459 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
25460 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
25461 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
25462 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
25463 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
25464 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
25465 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
25466 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
25467 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
25468 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
25469 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
25470 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
25471 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
25472 .ilen = 512,
25473 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
25474 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
25475 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
25476 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
25477 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
25478 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
25479 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
25480 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
25481 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
25482 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
25483 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
25484 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
25485 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
25486 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
25487 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
25488 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
25489 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
25490 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
25491 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
25492 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
25493 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
25494 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
25495 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
25496 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
25497 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
25498 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
25499 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
25500 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
25501 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
25502 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
25503 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
25504 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
25505 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
25506 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
25507 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
25508 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
25509 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
25510 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
25511 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
25512 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
25513 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
25514 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
25515 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
25516 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
25517 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
25518 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
25519 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
25520 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
25521 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
25522 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
25523 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
25524 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
25525 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
25526 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
25527 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
25528 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
25529 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
25530 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
25531 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
25532 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
25533 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
25534 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
25535 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
25536 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
25537 .rlen = 512,
25538 .also_non_np = 1,
25539 .np = 2,
25540 .tap = { 512 - 16, 16 },
25544 static struct cipher_testvec camellia_xts_enc_tv_template[] = {
25545 /* Generated from AES-XTS test vectors */
25547 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
25548 "\x00\x00\x00\x00\x00\x00\x00\x00"
25549 "\x00\x00\x00\x00\x00\x00\x00\x00"
25550 "\x00\x00\x00\x00\x00\x00\x00\x00",
25551 .klen = 32,
25552 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25553 "\x00\x00\x00\x00\x00\x00\x00\x00",
25554 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
25555 "\x00\x00\x00\x00\x00\x00\x00\x00"
25556 "\x00\x00\x00\x00\x00\x00\x00\x00"
25557 "\x00\x00\x00\x00\x00\x00\x00\x00",
25558 .ilen = 32,
25559 .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
25560 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
25561 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
25562 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
25563 .rlen = 32,
25564 }, {
25565 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
25566 "\x11\x11\x11\x11\x11\x11\x11\x11"
25567 "\x22\x22\x22\x22\x22\x22\x22\x22"
25568 "\x22\x22\x22\x22\x22\x22\x22\x22",
25569 .klen = 32,
25570 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
25571 "\x00\x00\x00\x00\x00\x00\x00\x00",
25572 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
25573 "\x44\x44\x44\x44\x44\x44\x44\x44"
25574 "\x44\x44\x44\x44\x44\x44\x44\x44"
25575 "\x44\x44\x44\x44\x44\x44\x44\x44",
25576 .ilen = 32,
25577 .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
25578 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
25579 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
25580 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
25581 .rlen = 32,
25582 }, {
25583 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
25584 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
25585 "\x22\x22\x22\x22\x22\x22\x22\x22"
25586 "\x22\x22\x22\x22\x22\x22\x22\x22",
25587 .klen = 32,
25588 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
25589 "\x00\x00\x00\x00\x00\x00\x00\x00",
25590 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
25591 "\x44\x44\x44\x44\x44\x44\x44\x44"
25592 "\x44\x44\x44\x44\x44\x44\x44\x44"
25593 "\x44\x44\x44\x44\x44\x44\x44\x44",
25594 .ilen = 32,
25595 .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
25596 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
25597 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
25598 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
25599 .rlen = 32,
25600 }, {
25601 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
25602 "\x23\x53\x60\x28\x74\x71\x35\x26"
25603 "\x31\x41\x59\x26\x53\x58\x97\x93"
25604 "\x23\x84\x62\x64\x33\x83\x27\x95",
25605 .klen = 32,
25606 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25607 "\x00\x00\x00\x00\x00\x00\x00\x00",
25608 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
25609 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
25610 "\x10\x11\x12\x13\x14\x15\x16\x17"
25611 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
25612 "\x20\x21\x22\x23\x24\x25\x26\x27"
25613 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
25614 "\x30\x31\x32\x33\x34\x35\x36\x37"
25615 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
25616 "\x40\x41\x42\x43\x44\x45\x46\x47"
25617 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
25618 "\x50\x51\x52\x53\x54\x55\x56\x57"
25619 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
25620 "\x60\x61\x62\x63\x64\x65\x66\x67"
25621 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
25622 "\x70\x71\x72\x73\x74\x75\x76\x77"
25623 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
25624 "\x80\x81\x82\x83\x84\x85\x86\x87"
25625 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
25626 "\x90\x91\x92\x93\x94\x95\x96\x97"
25627 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
25628 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
25629 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
25630 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
25631 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
25632 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
25633 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
25634 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
25635 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
25636 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
25637 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
25638 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
25639 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
25640 "\x00\x01\x02\x03\x04\x05\x06\x07"
25641 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
25642 "\x10\x11\x12\x13\x14\x15\x16\x17"
25643 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
25644 "\x20\x21\x22\x23\x24\x25\x26\x27"
25645 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
25646 "\x30\x31\x32\x33\x34\x35\x36\x37"
25647 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
25648 "\x40\x41\x42\x43\x44\x45\x46\x47"
25649 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
25650 "\x50\x51\x52\x53\x54\x55\x56\x57"
25651 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
25652 "\x60\x61\x62\x63\x64\x65\x66\x67"
25653 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
25654 "\x70\x71\x72\x73\x74\x75\x76\x77"
25655 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
25656 "\x80\x81\x82\x83\x84\x85\x86\x87"
25657 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
25658 "\x90\x91\x92\x93\x94\x95\x96\x97"
25659 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
25660 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
25661 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
25662 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
25663 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
25664 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
25665 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
25666 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
25667 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
25668 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
25669 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
25670 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
25671 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
25672 .ilen = 512,
25673 .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
25674 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
25675 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
25676 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
25677 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
25678 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
25679 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
25680 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
25681 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
25682 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
25683 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
25684 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
25685 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
25686 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
25687 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
25688 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
25689 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
25690 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
25691 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
25692 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
25693 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
25694 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
25695 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
25696 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
25697 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
25698 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
25699 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
25700 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
25701 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
25702 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
25703 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
25704 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
25705 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
25706 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
25707 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
25708 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
25709 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
25710 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
25711 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
25712 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
25713 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
25714 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
25715 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
25716 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
25717 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
25718 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
25719 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
25720 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
25721 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
25722 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
25723 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
25724 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
25725 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
25726 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
25727 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
25728 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
25729 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
25730 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
25731 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
25732 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
25733 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
25734 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
25735 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
25736 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
25737 .rlen = 512,
25738 }, {
25739 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
25740 "\x23\x53\x60\x28\x74\x71\x35\x26"
25741 "\x62\x49\x77\x57\x24\x70\x93\x69"
25742 "\x99\x59\x57\x49\x66\x96\x76\x27"
25743 "\x31\x41\x59\x26\x53\x58\x97\x93"
25744 "\x23\x84\x62\x64\x33\x83\x27\x95"
25745 "\x02\x88\x41\x97\x16\x93\x99\x37"
25746 "\x51\x05\x82\x09\x74\x94\x45\x92",
25747 .klen = 64,
25748 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
25749 "\x00\x00\x00\x00\x00\x00\x00\x00",
25750 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
25751 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
25752 "\x10\x11\x12\x13\x14\x15\x16\x17"
25753 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
25754 "\x20\x21\x22\x23\x24\x25\x26\x27"
25755 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
25756 "\x30\x31\x32\x33\x34\x35\x36\x37"
25757 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
25758 "\x40\x41\x42\x43\x44\x45\x46\x47"
25759 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
25760 "\x50\x51\x52\x53\x54\x55\x56\x57"
25761 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
25762 "\x60\x61\x62\x63\x64\x65\x66\x67"
25763 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
25764 "\x70\x71\x72\x73\x74\x75\x76\x77"
25765 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
25766 "\x80\x81\x82\x83\x84\x85\x86\x87"
25767 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
25768 "\x90\x91\x92\x93\x94\x95\x96\x97"
25769 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
25770 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
25771 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
25772 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
25773 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
25774 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
25775 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
25776 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
25777 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
25778 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
25779 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
25780 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
25781 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
25782 "\x00\x01\x02\x03\x04\x05\x06\x07"
25783 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
25784 "\x10\x11\x12\x13\x14\x15\x16\x17"
25785 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
25786 "\x20\x21\x22\x23\x24\x25\x26\x27"
25787 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
25788 "\x30\x31\x32\x33\x34\x35\x36\x37"
25789 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
25790 "\x40\x41\x42\x43\x44\x45\x46\x47"
25791 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
25792 "\x50\x51\x52\x53\x54\x55\x56\x57"
25793 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
25794 "\x60\x61\x62\x63\x64\x65\x66\x67"
25795 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
25796 "\x70\x71\x72\x73\x74\x75\x76\x77"
25797 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
25798 "\x80\x81\x82\x83\x84\x85\x86\x87"
25799 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
25800 "\x90\x91\x92\x93\x94\x95\x96\x97"
25801 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
25802 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
25803 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
25804 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
25805 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
25806 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
25807 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
25808 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
25809 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
25810 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
25811 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
25812 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
25813 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
25814 .ilen = 512,
25815 .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
25816 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
25817 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
25818 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
25819 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
25820 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
25821 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
25822 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
25823 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
25824 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
25825 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
25826 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
25827 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
25828 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
25829 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
25830 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
25831 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
25832 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
25833 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
25834 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
25835 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
25836 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
25837 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
25838 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
25839 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
25840 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
25841 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
25842 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
25843 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
25844 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
25845 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
25846 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
25847 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
25848 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
25849 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
25850 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
25851 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
25852 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
25853 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
25854 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
25855 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
25856 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
25857 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
25858 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
25859 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
25860 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
25861 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
25862 "\x21\x17\xf8\x59\x15\x24\x64\x22"
25863 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
25864 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
25865 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
25866 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
25867 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
25868 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
25869 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
25870 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
25871 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
25872 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
25873 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
25874 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
25875 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
25876 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
25877 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
25878 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
25879 .rlen = 512,
25880 .also_non_np = 1,
25881 .np = 2,
25882 .tap = { 512 - 16, 16 },
25886 static struct cipher_testvec camellia_xts_dec_tv_template[] = {
25887 /* Generated from AES-XTS test vectors */
25888 /* same as enc vectors with input and result reversed */
25890 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
25891 "\x00\x00\x00\x00\x00\x00\x00\x00"
25892 "\x00\x00\x00\x00\x00\x00\x00\x00"
25893 "\x00\x00\x00\x00\x00\x00\x00\x00",
25894 .klen = 32,
25895 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25896 "\x00\x00\x00\x00\x00\x00\x00\x00",
25897 .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
25898 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
25899 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
25900 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
25901 .ilen = 32,
25902 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
25903 "\x00\x00\x00\x00\x00\x00\x00\x00"
25904 "\x00\x00\x00\x00\x00\x00\x00\x00"
25905 "\x00\x00\x00\x00\x00\x00\x00\x00",
25906 .rlen = 32,
25907 }, {
25908 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
25909 "\x11\x11\x11\x11\x11\x11\x11\x11"
25910 "\x22\x22\x22\x22\x22\x22\x22\x22"
25911 "\x22\x22\x22\x22\x22\x22\x22\x22",
25912 .klen = 32,
25913 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
25914 "\x00\x00\x00\x00\x00\x00\x00\x00",
25915 .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
25916 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
25917 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
25918 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
25919 .ilen = 32,
25920 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
25921 "\x44\x44\x44\x44\x44\x44\x44\x44"
25922 "\x44\x44\x44\x44\x44\x44\x44\x44"
25923 "\x44\x44\x44\x44\x44\x44\x44\x44",
25924 .rlen = 32,
25925 }, {
25926 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
25927 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
25928 "\x22\x22\x22\x22\x22\x22\x22\x22"
25929 "\x22\x22\x22\x22\x22\x22\x22\x22",
25930 .klen = 32,
25931 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
25932 "\x00\x00\x00\x00\x00\x00\x00\x00",
25933 .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
25934 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
25935 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
25936 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
25937 .ilen = 32,
25938 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
25939 "\x44\x44\x44\x44\x44\x44\x44\x44"
25940 "\x44\x44\x44\x44\x44\x44\x44\x44"
25941 "\x44\x44\x44\x44\x44\x44\x44\x44",
25942 .rlen = 32,
25943 }, {
25944 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
25945 "\x23\x53\x60\x28\x74\x71\x35\x26"
25946 "\x31\x41\x59\x26\x53\x58\x97\x93"
25947 "\x23\x84\x62\x64\x33\x83\x27\x95",
25948 .klen = 32,
25949 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25950 "\x00\x00\x00\x00\x00\x00\x00\x00",
25951 .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
25952 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
25953 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
25954 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
25955 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
25956 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
25957 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
25958 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
25959 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
25960 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
25961 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
25962 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
25963 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
25964 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
25965 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
25966 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
25967 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
25968 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
25969 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
25970 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
25971 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
25972 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
25973 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
25974 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
25975 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
25976 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
25977 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
25978 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
25979 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
25980 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
25981 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
25982 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
25983 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
25984 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
25985 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
25986 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
25987 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
25988 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
25989 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
25990 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
25991 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
25992 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
25993 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
25994 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
25995 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
25996 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
25997 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
25998 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
25999 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
26000 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
26001 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
26002 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
26003 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
26004 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
26005 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
26006 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
26007 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
26008 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
26009 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
26010 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
26011 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
26012 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
26013 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
26014 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
26015 .ilen = 512,
26016 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
26017 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26018 "\x10\x11\x12\x13\x14\x15\x16\x17"
26019 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26020 "\x20\x21\x22\x23\x24\x25\x26\x27"
26021 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26022 "\x30\x31\x32\x33\x34\x35\x36\x37"
26023 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26024 "\x40\x41\x42\x43\x44\x45\x46\x47"
26025 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26026 "\x50\x51\x52\x53\x54\x55\x56\x57"
26027 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26028 "\x60\x61\x62\x63\x64\x65\x66\x67"
26029 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26030 "\x70\x71\x72\x73\x74\x75\x76\x77"
26031 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26032 "\x80\x81\x82\x83\x84\x85\x86\x87"
26033 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26034 "\x90\x91\x92\x93\x94\x95\x96\x97"
26035 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26036 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26037 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26038 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26039 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26040 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26041 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26042 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26043 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26044 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26045 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26046 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26047 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
26048 "\x00\x01\x02\x03\x04\x05\x06\x07"
26049 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26050 "\x10\x11\x12\x13\x14\x15\x16\x17"
26051 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26052 "\x20\x21\x22\x23\x24\x25\x26\x27"
26053 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26054 "\x30\x31\x32\x33\x34\x35\x36\x37"
26055 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26056 "\x40\x41\x42\x43\x44\x45\x46\x47"
26057 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26058 "\x50\x51\x52\x53\x54\x55\x56\x57"
26059 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26060 "\x60\x61\x62\x63\x64\x65\x66\x67"
26061 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26062 "\x70\x71\x72\x73\x74\x75\x76\x77"
26063 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26064 "\x80\x81\x82\x83\x84\x85\x86\x87"
26065 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26066 "\x90\x91\x92\x93\x94\x95\x96\x97"
26067 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26068 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26069 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26070 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26071 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26072 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26073 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26074 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26075 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26076 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26077 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26078 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26079 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
26080 .rlen = 512,
26081 }, {
26082 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
26083 "\x23\x53\x60\x28\x74\x71\x35\x26"
26084 "\x62\x49\x77\x57\x24\x70\x93\x69"
26085 "\x99\x59\x57\x49\x66\x96\x76\x27"
26086 "\x31\x41\x59\x26\x53\x58\x97\x93"
26087 "\x23\x84\x62\x64\x33\x83\x27\x95"
26088 "\x02\x88\x41\x97\x16\x93\x99\x37"
26089 "\x51\x05\x82\x09\x74\x94\x45\x92",
26090 .klen = 64,
26091 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
26092 "\x00\x00\x00\x00\x00\x00\x00\x00",
26093 .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
26094 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
26095 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
26096 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
26097 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
26098 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
26099 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
26100 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
26101 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
26102 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
26103 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
26104 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
26105 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
26106 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
26107 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
26108 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
26109 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
26110 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
26111 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
26112 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
26113 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
26114 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
26115 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
26116 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
26117 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
26118 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
26119 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
26120 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
26121 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
26122 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
26123 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
26124 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
26125 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
26126 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
26127 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
26128 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
26129 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
26130 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
26131 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
26132 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
26133 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
26134 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
26135 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
26136 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
26137 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
26138 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
26139 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
26140 "\x21\x17\xf8\x59\x15\x24\x64\x22"
26141 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
26142 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
26143 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
26144 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
26145 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
26146 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
26147 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
26148 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
26149 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
26150 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
26151 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
26152 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
26153 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
26154 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
26155 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
26156 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
26157 .ilen = 512,
26158 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
26159 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26160 "\x10\x11\x12\x13\x14\x15\x16\x17"
26161 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26162 "\x20\x21\x22\x23\x24\x25\x26\x27"
26163 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26164 "\x30\x31\x32\x33\x34\x35\x36\x37"
26165 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26166 "\x40\x41\x42\x43\x44\x45\x46\x47"
26167 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26168 "\x50\x51\x52\x53\x54\x55\x56\x57"
26169 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26170 "\x60\x61\x62\x63\x64\x65\x66\x67"
26171 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26172 "\x70\x71\x72\x73\x74\x75\x76\x77"
26173 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26174 "\x80\x81\x82\x83\x84\x85\x86\x87"
26175 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26176 "\x90\x91\x92\x93\x94\x95\x96\x97"
26177 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26178 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26179 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26180 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26181 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26182 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26183 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26184 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26185 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26186 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26187 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26188 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26189 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
26190 "\x00\x01\x02\x03\x04\x05\x06\x07"
26191 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26192 "\x10\x11\x12\x13\x14\x15\x16\x17"
26193 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26194 "\x20\x21\x22\x23\x24\x25\x26\x27"
26195 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26196 "\x30\x31\x32\x33\x34\x35\x36\x37"
26197 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26198 "\x40\x41\x42\x43\x44\x45\x46\x47"
26199 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26200 "\x50\x51\x52\x53\x54\x55\x56\x57"
26201 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26202 "\x60\x61\x62\x63\x64\x65\x66\x67"
26203 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26204 "\x70\x71\x72\x73\x74\x75\x76\x77"
26205 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26206 "\x80\x81\x82\x83\x84\x85\x86\x87"
26207 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26208 "\x90\x91\x92\x93\x94\x95\x96\x97"
26209 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26210 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26211 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26212 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26213 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26214 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26215 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26216 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26217 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26218 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26219 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26220 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26221 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
26222 .rlen = 512,
26223 .also_non_np = 1,
26224 .np = 2,
26225 .tap = { 512 - 16, 16 },
26230 * SEED test vectors
26232 #define SEED_ENC_TEST_VECTORS 4
26233 #define SEED_DEC_TEST_VECTORS 4
26235 static struct cipher_testvec seed_enc_tv_template[] = {
26237 .key = zeroed_string,
26238 .klen = 16,
26239 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
26240 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
26241 .ilen = 16,
26242 .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
26243 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
26244 .rlen = 16,
26245 }, {
26246 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
26247 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
26248 .klen = 16,
26249 .input = zeroed_string,
26250 .ilen = 16,
26251 .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
26252 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
26253 .rlen = 16,
26254 }, {
26255 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
26256 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
26257 .klen = 16,
26258 .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
26259 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
26260 .ilen = 16,
26261 .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
26262 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
26263 .rlen = 16,
26264 }, {
26265 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
26266 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
26267 .klen = 16,
26268 .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
26269 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
26270 .ilen = 16,
26271 .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
26272 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
26273 .rlen = 16,
26277 static struct cipher_testvec seed_dec_tv_template[] = {
26279 .key = zeroed_string,
26280 .klen = 16,
26281 .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
26282 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
26283 .ilen = 16,
26284 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
26285 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
26286 .rlen = 16,
26287 }, {
26288 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
26289 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
26290 .klen = 16,
26291 .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
26292 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
26293 .ilen = 16,
26294 .result = zeroed_string,
26295 .rlen = 16,
26296 }, {
26297 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
26298 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
26299 .klen = 16,
26300 .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
26301 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
26302 .ilen = 16,
26303 .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
26304 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
26305 .rlen = 16,
26306 }, {
26307 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
26308 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
26309 .klen = 16,
26310 .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
26311 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
26312 .ilen = 16,
26313 .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
26314 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
26315 .rlen = 16,
26319 #define SALSA20_STREAM_ENC_TEST_VECTORS 5
26320 static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
26322 * Testvectors from verified.test-vectors submitted to ECRYPT.
26323 * They are truncated to size 39, 64, 111, 129 to test a variety
26324 * of input length.
26326 { /* Set 3, vector 0 */
26327 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
26328 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
26329 .klen = 16,
26330 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
26331 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26332 "\x00\x00\x00\x00\x00\x00\x00\x00"
26333 "\x00\x00\x00\x00\x00\x00\x00\x00"
26334 "\x00\x00\x00\x00\x00\x00\x00\x00"
26335 "\x00\x00\x00\x00\x00\x00\x00",
26336 .ilen = 39,
26337 .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
26338 "\x68\x02\x41\x0C\x68\x86\x88\x89"
26339 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
26340 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
26341 "\x58\x3F\x52\x79\x70\xEB\xC1",
26342 .rlen = 39,
26343 }, { /* Set 5, vector 0 */
26344 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
26345 "\x00\x00\x00\x00\x00\x00\x00\x00",
26346 .klen = 16,
26347 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
26348 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26349 "\x00\x00\x00\x00\x00\x00\x00\x00"
26350 "\x00\x00\x00\x00\x00\x00\x00\x00"
26351 "\x00\x00\x00\x00\x00\x00\x00\x00"
26352 "\x00\x00\x00\x00\x00\x00\x00\x00"
26353 "\x00\x00\x00\x00\x00\x00\x00\x00"
26354 "\x00\x00\x00\x00\x00\x00\x00\x00"
26355 "\x00\x00\x00\x00\x00\x00\x00\x00",
26356 .ilen = 64,
26357 .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
26358 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
26359 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
26360 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
26361 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
26362 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
26363 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
26364 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
26365 .rlen = 64,
26366 }, { /* Set 3, vector 27 */
26367 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
26368 "\x23\x24\x25\x26\x27\x28\x29\x2A"
26369 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
26370 "\x33\x34\x35\x36\x37\x38\x39\x3A",
26371 .klen = 32,
26372 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
26373 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26374 "\x00\x00\x00\x00\x00\x00\x00\x00"
26375 "\x00\x00\x00\x00\x00\x00\x00\x00"
26376 "\x00\x00\x00\x00\x00\x00\x00\x00"
26377 "\x00\x00\x00\x00\x00\x00\x00\x00"
26378 "\x00\x00\x00\x00\x00\x00\x00\x00"
26379 "\x00\x00\x00\x00\x00\x00\x00\x00"
26380 "\x00\x00\x00\x00\x00\x00\x00\x00"
26381 "\x00\x00\x00\x00\x00\x00\x00\x00"
26382 "\x00\x00\x00\x00\x00\x00\x00\x00"
26383 "\x00\x00\x00\x00\x00\x00\x00\x00"
26384 "\x00\x00\x00\x00\x00\x00\x00\x00"
26385 "\x00\x00\x00\x00\x00\x00\x00\x00"
26386 "\x00\x00\x00\x00\x00\x00\x00",
26387 .ilen = 111,
26388 .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
26389 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
26390 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
26391 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
26392 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
26393 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
26394 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
26395 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
26396 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
26397 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
26398 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
26399 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
26400 "\x95\x46\x45\x54\xE9\x75\x03\x08"
26401 "\x44\xAF\xE5\x8A\x81\x12\x09",
26402 .rlen = 111,
26403 }, { /* Set 5, vector 27 */
26404 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
26405 "\x00\x00\x00\x00\x00\x00\x00\x00"
26406 "\x00\x00\x00\x00\x00\x00\x00\x00"
26407 "\x00\x00\x00\x00\x00\x00\x00\x00",
26408 .klen = 32,
26409 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
26410 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26411 "\x00\x00\x00\x00\x00\x00\x00\x00"
26412 "\x00\x00\x00\x00\x00\x00\x00\x00"
26413 "\x00\x00\x00\x00\x00\x00\x00\x00"
26414 "\x00\x00\x00\x00\x00\x00\x00\x00"
26415 "\x00\x00\x00\x00\x00\x00\x00\x00"
26416 "\x00\x00\x00\x00\x00\x00\x00\x00"
26417 "\x00\x00\x00\x00\x00\x00\x00\x00"
26418 "\x00\x00\x00\x00\x00\x00\x00\x00"
26419 "\x00\x00\x00\x00\x00\x00\x00\x00"
26420 "\x00\x00\x00\x00\x00\x00\x00\x00"
26421 "\x00\x00\x00\x00\x00\x00\x00\x00"
26422 "\x00\x00\x00\x00\x00\x00\x00\x00"
26423 "\x00\x00\x00\x00\x00\x00\x00\x00"
26424 "\x00\x00\x00\x00\x00\x00\x00\x00"
26425 "\x00\x00\x00\x00\x00\x00\x00\x00"
26426 "\x00",
26427 .ilen = 129,
26428 .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
26429 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
26430 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
26431 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
26432 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
26433 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
26434 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
26435 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
26436 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
26437 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
26438 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
26439 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
26440 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
26441 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
26442 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
26443 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
26444 "\x5A",
26445 .rlen = 129,
26446 }, { /* large test vector generated using Crypto++ */
26447 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
26448 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26449 "\x10\x11\x12\x13\x14\x15\x16\x17"
26450 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
26451 .klen = 32,
26452 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26453 "\x00\x00\x00\x00\x00\x00\x00\x00",
26454 .input =
26455 "\x00\x01\x02\x03\x04\x05\x06\x07"
26456 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
26457 "\x10\x11\x12\x13\x14\x15\x16\x17"
26458 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
26459 "\x20\x21\x22\x23\x24\x25\x26\x27"
26460 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
26461 "\x30\x31\x32\x33\x34\x35\x36\x37"
26462 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
26463 "\x40\x41\x42\x43\x44\x45\x46\x47"
26464 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26465 "\x50\x51\x52\x53\x54\x55\x56\x57"
26466 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
26467 "\x60\x61\x62\x63\x64\x65\x66\x67"
26468 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
26469 "\x70\x71\x72\x73\x74\x75\x76\x77"
26470 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
26471 "\x80\x81\x82\x83\x84\x85\x86\x87"
26472 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26473 "\x90\x91\x92\x93\x94\x95\x96\x97"
26474 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
26475 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
26476 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
26477 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
26478 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
26479 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
26480 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
26481 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
26482 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
26483 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
26484 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
26485 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
26486 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
26487 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
26488 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
26489 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
26490 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
26491 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
26492 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
26493 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
26494 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
26495 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
26496 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
26497 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
26498 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
26499 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
26500 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
26501 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
26502 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
26503 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
26504 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
26505 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
26506 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
26507 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
26508 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
26509 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
26510 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
26511 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
26512 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
26513 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
26514 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
26515 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
26516 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
26517 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
26518 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
26519 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
26520 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
26521 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
26522 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
26523 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
26524 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
26525 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
26526 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
26527 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
26528 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
26529 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
26530 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
26531 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
26532 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
26533 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
26534 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
26535 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
26536 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
26537 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
26538 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
26539 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
26540 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
26541 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
26542 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
26543 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
26544 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
26545 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
26546 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
26547 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
26548 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
26549 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
26550 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
26551 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
26552 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
26553 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
26554 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
26555 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
26556 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
26557 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
26558 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
26559 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
26560 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
26561 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
26562 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
26563 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
26564 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
26565 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
26566 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
26567 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
26568 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
26569 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
26570 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
26571 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
26572 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
26573 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
26574 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
26575 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
26576 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
26577 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
26578 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
26579 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
26580 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
26581 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
26582 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
26583 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
26584 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
26585 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
26586 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
26587 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
26588 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
26589 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
26590 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
26591 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
26592 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
26593 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
26594 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
26595 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
26596 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
26597 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
26598 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
26599 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
26600 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
26601 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
26602 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
26603 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
26604 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
26605 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
26606 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
26607 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
26608 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
26609 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
26610 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
26611 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
26612 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
26613 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
26614 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
26615 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
26616 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
26617 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
26618 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
26619 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
26620 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
26621 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
26622 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
26623 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
26624 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
26625 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
26626 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
26627 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
26628 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
26629 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
26630 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
26631 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
26632 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
26633 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
26634 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
26635 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
26636 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
26637 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
26638 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
26639 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
26640 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
26641 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
26642 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
26643 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
26644 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
26645 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
26646 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
26647 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
26648 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
26649 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
26650 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
26651 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
26652 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
26653 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
26654 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
26655 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
26656 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
26657 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
26658 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
26659 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
26660 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
26661 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
26662 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
26663 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
26664 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
26665 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
26666 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
26667 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
26668 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
26669 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
26670 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
26671 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
26672 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
26673 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
26674 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
26675 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
26676 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
26677 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
26678 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
26679 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
26680 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
26681 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
26682 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
26683 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
26684 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
26685 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
26686 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
26687 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
26688 "\x38\x47\x56\x65\x74\x83\x92\xa1"
26689 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
26690 "\x28\x37\x46\x55\x64\x73\x82\x91"
26691 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
26692 "\x18\x27\x36\x45\x54\x63\x72\x81"
26693 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
26694 "\x08\x17\x26\x35\x44\x53\x62\x71"
26695 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
26696 "\xf8\x07\x16\x25\x34\x43\x52\x61"
26697 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
26698 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
26699 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
26700 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
26701 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
26702 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
26703 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
26704 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
26705 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
26706 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
26707 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
26708 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
26709 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
26710 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
26711 "\x00\x11\x22\x33\x44\x55\x66\x77"
26712 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
26713 "\x10\x21\x32\x43\x54\x65\x76\x87"
26714 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
26715 "\x20\x31\x42\x53\x64\x75\x86\x97"
26716 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
26717 "\x30\x41\x52\x63\x74\x85\x96\xa7"
26718 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
26719 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
26720 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
26721 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
26722 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
26723 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
26724 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
26725 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
26726 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
26727 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
26728 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
26729 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
26730 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
26731 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
26732 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
26733 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
26734 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
26735 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
26736 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
26737 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
26738 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
26739 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
26740 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
26741 "\xf0\x01\x12\x23\x34\x45\x56\x67"
26742 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
26743 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
26744 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
26745 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
26746 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
26747 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
26748 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
26749 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
26750 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
26751 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
26752 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
26753 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
26754 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
26755 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
26756 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
26757 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
26758 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
26759 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
26760 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
26761 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
26762 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
26763 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
26764 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
26765 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
26766 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
26767 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
26768 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
26769 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
26770 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
26771 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
26772 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
26773 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
26774 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
26775 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
26776 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
26777 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
26778 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
26779 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
26780 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
26781 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
26782 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
26783 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
26784 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
26785 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
26786 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
26787 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
26788 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
26789 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
26790 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
26791 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
26792 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
26793 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
26794 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
26795 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
26796 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
26797 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
26798 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
26799 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
26800 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
26801 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
26802 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
26803 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
26804 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
26805 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
26806 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
26807 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
26808 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
26809 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
26810 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
26811 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
26812 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
26813 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
26814 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
26815 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
26816 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
26817 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
26818 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
26819 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
26820 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
26821 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
26822 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
26823 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
26824 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
26825 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
26826 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
26827 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
26828 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
26829 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
26830 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
26831 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
26832 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
26833 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
26834 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
26835 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
26836 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
26837 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
26838 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
26839 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
26840 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
26841 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
26842 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
26843 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
26844 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
26845 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
26846 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
26847 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
26848 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
26849 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
26850 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
26851 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
26852 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
26853 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
26854 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
26855 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
26856 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
26857 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
26858 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
26859 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
26860 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
26861 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
26862 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
26863 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
26864 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
26865 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
26866 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
26867 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
26868 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
26869 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
26870 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
26871 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
26872 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
26873 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
26874 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
26875 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
26876 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
26877 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
26878 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
26879 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
26880 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
26881 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
26882 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
26883 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
26884 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
26885 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
26886 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
26887 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
26888 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
26889 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
26890 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
26891 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
26892 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
26893 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
26894 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
26895 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
26896 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
26897 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
26898 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
26899 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
26900 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
26901 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
26902 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
26903 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
26904 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
26905 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
26906 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
26907 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
26908 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
26909 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
26910 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
26911 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
26912 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
26913 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
26914 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
26915 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
26916 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
26917 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
26918 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
26919 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
26920 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
26921 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
26922 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
26923 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
26924 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
26925 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
26926 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
26927 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
26928 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
26929 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
26930 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
26931 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
26932 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
26933 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
26934 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
26935 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
26936 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
26937 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
26938 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
26939 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
26940 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
26941 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
26942 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
26943 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
26944 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
26945 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
26946 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
26947 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
26948 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
26949 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
26950 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
26951 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
26952 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
26953 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
26954 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
26955 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
26956 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
26957 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
26958 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
26959 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
26960 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
26961 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
26962 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
26963 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
26964 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
26965 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
26966 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
26967 "\x00\x21\x42\x63",
26968 .ilen = 4100,
26969 .result =
26970 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
26971 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
26972 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
26973 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
26974 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
26975 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
26976 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
26977 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
26978 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
26979 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
26980 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
26981 "\xbb\xde\x56\x86\xab\x65\x21\x30"
26982 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
26983 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
26984 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
26985 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
26986 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
26987 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
26988 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
26989 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
26990 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
26991 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
26992 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
26993 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
26994 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
26995 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
26996 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
26997 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
26998 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
26999 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
27000 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
27001 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
27002 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
27003 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
27004 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
27005 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
27006 "\x62\x08\x18\x7a\x25\x49\x28\xac"
27007 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
27008 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
27009 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
27010 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
27011 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
27012 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
27013 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
27014 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
27015 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
27016 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
27017 "\x33\xee\x14\x19\x22\x52\x89\xa7"
27018 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
27019 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
27020 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
27021 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
27022 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
27023 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
27024 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
27025 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
27026 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
27027 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
27028 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
27029 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
27030 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
27031 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
27032 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
27033 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
27034 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
27035 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
27036 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
27037 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
27038 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
27039 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
27040 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
27041 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
27042 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
27043 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
27044 "\x49\x97\x33\xab\x36\x14\x0a\x70"
27045 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
27046 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
27047 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
27048 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
27049 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
27050 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
27051 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
27052 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
27053 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
27054 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
27055 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
27056 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
27057 "\xad\x04\x07\xae\x22\x90\x4a\x93"
27058 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
27059 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
27060 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
27061 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
27062 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
27063 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
27064 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
27065 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
27066 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
27067 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
27068 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
27069 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
27070 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
27071 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
27072 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
27073 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
27074 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
27075 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
27076 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
27077 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
27078 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
27079 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
27080 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
27081 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
27082 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
27083 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
27084 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
27085 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
27086 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
27087 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
27088 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
27089 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
27090 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
27091 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
27092 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
27093 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
27094 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
27095 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
27096 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
27097 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
27098 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
27099 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
27100 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
27101 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
27102 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
27103 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
27104 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
27105 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
27106 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
27107 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
27108 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
27109 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
27110 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
27111 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
27112 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
27113 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
27114 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
27115 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
27116 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
27117 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
27118 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
27119 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
27120 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
27121 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
27122 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
27123 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
27124 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
27125 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
27126 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
27127 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
27128 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
27129 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
27130 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
27131 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
27132 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
27133 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
27134 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
27135 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
27136 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
27137 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
27138 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
27139 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
27140 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
27141 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
27142 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
27143 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
27144 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
27145 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
27146 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
27147 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
27148 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
27149 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
27150 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
27151 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
27152 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
27153 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
27154 "\x2e\x53\x49\x97\x94\x33\xae\x40"
27155 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
27156 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
27157 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
27158 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
27159 "\xce\x87\xad\xcc\x72\x05\x00\x29"
27160 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
27161 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
27162 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
27163 "\xac\xc0\x79\x50\x69\xca\x59\x32"
27164 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
27165 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
27166 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
27167 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
27168 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
27169 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
27170 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
27171 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
27172 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
27173 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
27174 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
27175 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
27176 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
27177 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
27178 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
27179 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
27180 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
27181 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
27182 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
27183 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
27184 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
27185 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
27186 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
27187 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
27188 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
27189 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
27190 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
27191 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
27192 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
27193 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
27194 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
27195 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
27196 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
27197 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
27198 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
27199 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
27200 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
27201 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
27202 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
27203 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
27204 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
27205 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
27206 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
27207 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
27208 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
27209 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
27210 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
27211 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
27212 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
27213 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
27214 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
27215 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
27216 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
27217 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
27218 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
27219 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
27220 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
27221 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
27222 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
27223 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
27224 "\x38\x55\xab\x33\x26\xef\x9f\x43"
27225 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
27226 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
27227 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
27228 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
27229 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
27230 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
27231 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
27232 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
27233 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
27234 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
27235 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
27236 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
27237 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
27238 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
27239 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
27240 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
27241 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
27242 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
27243 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
27244 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
27245 "\x62\x36\x43\xb2\x82\x15\x75\x50"
27246 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
27247 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
27248 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
27249 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
27250 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
27251 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
27252 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
27253 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
27254 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
27255 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
27256 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
27257 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
27258 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
27259 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
27260 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
27261 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
27262 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
27263 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
27264 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
27265 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
27266 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
27267 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
27268 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
27269 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
27270 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
27271 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
27272 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
27273 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
27274 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
27275 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
27276 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
27277 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
27278 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
27279 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
27280 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
27281 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
27282 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
27283 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
27284 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
27285 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
27286 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
27287 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
27288 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
27289 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
27290 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
27291 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
27292 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
27293 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
27294 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
27295 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
27296 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
27297 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
27298 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
27299 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
27300 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
27301 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
27302 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
27303 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
27304 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
27305 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
27306 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
27307 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
27308 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
27309 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
27310 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
27311 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
27312 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
27313 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
27314 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
27315 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
27316 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
27317 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
27318 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
27319 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
27320 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
27321 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
27322 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
27323 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
27324 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
27325 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
27326 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
27327 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
27328 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
27329 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
27330 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
27331 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
27332 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
27333 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
27334 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
27335 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
27336 "\x73\x2e\x71\x79\x16\x06\x63\x28"
27337 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
27338 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
27339 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
27340 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
27341 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
27342 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
27343 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
27344 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
27345 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
27346 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
27347 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
27348 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
27349 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
27350 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
27351 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
27352 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
27353 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
27354 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
27355 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
27356 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
27357 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
27358 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
27359 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
27360 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
27361 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
27362 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
27363 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
27364 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
27365 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
27366 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
27367 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
27368 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
27369 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
27370 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
27371 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
27372 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
27373 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
27374 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
27375 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
27376 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
27377 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
27378 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
27379 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
27380 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
27381 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
27382 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
27383 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
27384 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
27385 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
27386 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
27387 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
27388 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
27389 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
27390 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
27391 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
27392 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
27393 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
27394 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
27395 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
27396 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
27397 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
27398 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
27399 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
27400 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
27401 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
27402 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
27403 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
27404 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
27405 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
27406 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
27407 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
27408 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
27409 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
27410 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
27411 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
27412 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
27413 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
27414 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
27415 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
27416 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
27417 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
27418 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
27419 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
27420 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
27421 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
27422 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
27423 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
27424 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
27425 "\x85\x73\x78\x45\x20\x7f\xae\x13"
27426 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
27427 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
27428 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
27429 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
27430 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
27431 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
27432 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
27433 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
27434 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
27435 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
27436 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
27437 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
27438 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
27439 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
27440 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
27441 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
27442 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
27443 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
27444 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
27445 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
27446 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
27447 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
27448 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
27449 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
27450 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
27451 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
27452 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
27453 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
27454 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
27455 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
27456 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
27457 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
27458 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
27459 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
27460 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
27461 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
27462 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
27463 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
27464 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
27465 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
27466 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
27467 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
27468 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
27469 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
27470 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
27471 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
27472 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
27473 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
27474 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
27475 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
27476 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
27477 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
27478 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
27479 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
27480 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
27481 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
27482 "\xaf\xdf\x11\x95",
27483 .rlen = 4100,
27484 .np = 2,
27485 .tap = { 4064, 36 },
27490 * CTS (Cipher Text Stealing) mode tests
27492 #define CTS_MODE_ENC_TEST_VECTORS 6
27493 #define CTS_MODE_DEC_TEST_VECTORS 6
27494 static struct cipher_testvec cts_mode_enc_tv_template[] = {
27495 { /* from rfc3962 */
27496 .klen = 16,
27497 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27498 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27499 .ilen = 17,
27500 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27501 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27502 "\x20",
27503 .rlen = 17,
27504 .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
27505 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
27506 "\x97",
27507 }, {
27508 .klen = 16,
27509 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27510 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27511 .ilen = 31,
27512 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27513 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27514 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27515 "\x20\x47\x61\x75\x27\x73\x20",
27516 .rlen = 31,
27517 .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
27518 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
27519 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27520 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
27521 }, {
27522 .klen = 16,
27523 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27524 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27525 .ilen = 32,
27526 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27527 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27528 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27529 "\x20\x47\x61\x75\x27\x73\x20\x43",
27530 .rlen = 32,
27531 .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27532 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
27533 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27534 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
27535 }, {
27536 .klen = 16,
27537 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27538 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27539 .ilen = 47,
27540 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27541 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27542 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27543 "\x20\x47\x61\x75\x27\x73\x20\x43"
27544 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
27545 "\x70\x6c\x65\x61\x73\x65\x2c",
27546 .rlen = 47,
27547 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27548 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
27549 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
27550 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
27551 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27552 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
27553 }, {
27554 .klen = 16,
27555 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27556 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27557 .ilen = 48,
27558 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27559 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27560 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27561 "\x20\x47\x61\x75\x27\x73\x20\x43"
27562 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
27563 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
27564 .rlen = 48,
27565 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27566 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
27567 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
27568 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
27569 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27570 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
27571 }, {
27572 .klen = 16,
27573 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27574 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27575 .ilen = 64,
27576 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27577 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27578 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27579 "\x20\x47\x61\x75\x27\x73\x20\x43"
27580 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
27581 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
27582 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
27583 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
27584 .rlen = 64,
27585 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27586 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
27587 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27588 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
27589 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
27590 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
27591 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
27592 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
27596 static struct cipher_testvec cts_mode_dec_tv_template[] = {
27597 { /* from rfc3962 */
27598 .klen = 16,
27599 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27600 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27601 .rlen = 17,
27602 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27603 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27604 "\x20",
27605 .ilen = 17,
27606 .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
27607 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
27608 "\x97",
27609 }, {
27610 .klen = 16,
27611 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27612 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27613 .rlen = 31,
27614 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27615 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27616 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27617 "\x20\x47\x61\x75\x27\x73\x20",
27618 .ilen = 31,
27619 .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
27620 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
27621 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27622 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
27623 }, {
27624 .klen = 16,
27625 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27626 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27627 .rlen = 32,
27628 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27629 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27630 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27631 "\x20\x47\x61\x75\x27\x73\x20\x43",
27632 .ilen = 32,
27633 .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27634 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
27635 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27636 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
27637 }, {
27638 .klen = 16,
27639 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27640 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27641 .rlen = 47,
27642 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27643 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27644 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27645 "\x20\x47\x61\x75\x27\x73\x20\x43"
27646 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
27647 "\x70\x6c\x65\x61\x73\x65\x2c",
27648 .ilen = 47,
27649 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27650 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
27651 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
27652 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
27653 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27654 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
27655 }, {
27656 .klen = 16,
27657 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27658 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27659 .rlen = 48,
27660 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27661 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27662 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27663 "\x20\x47\x61\x75\x27\x73\x20\x43"
27664 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
27665 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
27666 .ilen = 48,
27667 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27668 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
27669 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
27670 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
27671 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27672 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
27673 }, {
27674 .klen = 16,
27675 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
27676 "\x74\x65\x72\x69\x79\x61\x6b\x69",
27677 .rlen = 64,
27678 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
27679 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
27680 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
27681 "\x20\x47\x61\x75\x27\x73\x20\x43"
27682 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
27683 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
27684 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
27685 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
27686 .ilen = 64,
27687 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
27688 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
27689 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
27690 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
27691 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
27692 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
27693 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
27694 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
27699 * Compression stuff.
27701 #define COMP_BUF_SIZE 512
27703 struct comp_testvec {
27704 int inlen, outlen;
27705 char input[COMP_BUF_SIZE];
27706 char output[COMP_BUF_SIZE];
27709 struct pcomp_testvec {
27710 void *params;
27711 unsigned int paramsize;
27712 int inlen, outlen;
27713 char input[COMP_BUF_SIZE];
27714 char output[COMP_BUF_SIZE];
27718 * Deflate test vectors (null-terminated strings).
27719 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
27722 #define DEFLATE_COMP_TEST_VECTORS 2
27723 #define DEFLATE_DECOMP_TEST_VECTORS 2
27725 static struct comp_testvec deflate_comp_tv_template[] = {
27727 .inlen = 70,
27728 .outlen = 38,
27729 .input = "Join us now and share the software "
27730 "Join us now and share the software ",
27731 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
27732 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
27733 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
27734 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
27735 "\x71\xbc\x08\x2b\x01\x00",
27736 }, {
27737 .inlen = 191,
27738 .outlen = 122,
27739 .input = "This document describes a compression method based on the DEFLATE"
27740 "compression algorithm. This document defines the application of "
27741 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
27742 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
27743 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
27744 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
27745 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
27746 "\x68\x12\x51\xae\x76\x67\xd6\x27"
27747 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
27748 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
27749 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
27750 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
27751 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
27752 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
27753 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
27754 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
27755 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
27756 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
27757 "\xfa\x02",
27761 static struct comp_testvec deflate_decomp_tv_template[] = {
27763 .inlen = 122,
27764 .outlen = 191,
27765 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
27766 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
27767 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
27768 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
27769 "\x68\x12\x51\xae\x76\x67\xd6\x27"
27770 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
27771 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
27772 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
27773 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
27774 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
27775 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
27776 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
27777 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
27778 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
27779 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
27780 "\xfa\x02",
27781 .output = "This document describes a compression method based on the DEFLATE"
27782 "compression algorithm. This document defines the application of "
27783 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
27784 }, {
27785 .inlen = 38,
27786 .outlen = 70,
27787 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
27788 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
27789 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
27790 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
27791 "\x71\xbc\x08\x2b\x01\x00",
27792 .output = "Join us now and share the software "
27793 "Join us now and share the software ",
27797 #define ZLIB_COMP_TEST_VECTORS 2
27798 #define ZLIB_DECOMP_TEST_VECTORS 2
27800 static const struct {
27801 struct nlattr nla;
27802 int val;
27803 } deflate_comp_params[] = {
27805 .nla = {
27806 .nla_len = NLA_HDRLEN + sizeof(int),
27807 .nla_type = ZLIB_COMP_LEVEL,
27809 .val = Z_DEFAULT_COMPRESSION,
27810 }, {
27811 .nla = {
27812 .nla_len = NLA_HDRLEN + sizeof(int),
27813 .nla_type = ZLIB_COMP_METHOD,
27815 .val = Z_DEFLATED,
27816 }, {
27817 .nla = {
27818 .nla_len = NLA_HDRLEN + sizeof(int),
27819 .nla_type = ZLIB_COMP_WINDOWBITS,
27821 .val = -11,
27822 }, {
27823 .nla = {
27824 .nla_len = NLA_HDRLEN + sizeof(int),
27825 .nla_type = ZLIB_COMP_MEMLEVEL,
27827 .val = MAX_MEM_LEVEL,
27828 }, {
27829 .nla = {
27830 .nla_len = NLA_HDRLEN + sizeof(int),
27831 .nla_type = ZLIB_COMP_STRATEGY,
27833 .val = Z_DEFAULT_STRATEGY,
27837 static const struct {
27838 struct nlattr nla;
27839 int val;
27840 } deflate_decomp_params[] = {
27842 .nla = {
27843 .nla_len = NLA_HDRLEN + sizeof(int),
27844 .nla_type = ZLIB_DECOMP_WINDOWBITS,
27846 .val = -11,
27850 static struct pcomp_testvec zlib_comp_tv_template[] = {
27852 .params = &deflate_comp_params,
27853 .paramsize = sizeof(deflate_comp_params),
27854 .inlen = 70,
27855 .outlen = 38,
27856 .input = "Join us now and share the software "
27857 "Join us now and share the software ",
27858 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
27859 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
27860 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
27861 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
27862 "\x71\xbc\x08\x2b\x01\x00",
27863 }, {
27864 .params = &deflate_comp_params,
27865 .paramsize = sizeof(deflate_comp_params),
27866 .inlen = 191,
27867 .outlen = 122,
27868 .input = "This document describes a compression method based on the DEFLATE"
27869 "compression algorithm. This document defines the application of "
27870 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
27871 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
27872 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
27873 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
27874 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
27875 "\x68\x12\x51\xae\x76\x67\xd6\x27"
27876 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
27877 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
27878 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
27879 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
27880 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
27881 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
27882 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
27883 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
27884 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
27885 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
27886 "\xfa\x02",
27890 static struct pcomp_testvec zlib_decomp_tv_template[] = {
27892 .params = &deflate_decomp_params,
27893 .paramsize = sizeof(deflate_decomp_params),
27894 .inlen = 122,
27895 .outlen = 191,
27896 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
27897 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
27898 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
27899 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
27900 "\x68\x12\x51\xae\x76\x67\xd6\x27"
27901 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
27902 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
27903 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
27904 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
27905 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
27906 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
27907 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
27908 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
27909 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
27910 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
27911 "\xfa\x02",
27912 .output = "This document describes a compression method based on the DEFLATE"
27913 "compression algorithm. This document defines the application of "
27914 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
27915 }, {
27916 .params = &deflate_decomp_params,
27917 .paramsize = sizeof(deflate_decomp_params),
27918 .inlen = 38,
27919 .outlen = 70,
27920 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
27921 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
27922 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
27923 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
27924 "\x71\xbc\x08\x2b\x01\x00",
27925 .output = "Join us now and share the software "
27926 "Join us now and share the software ",
27931 * LZO test vectors (null-terminated strings).
27933 #define LZO_COMP_TEST_VECTORS 2
27934 #define LZO_DECOMP_TEST_VECTORS 2
27936 static struct comp_testvec lzo_comp_tv_template[] = {
27938 .inlen = 70,
27939 .outlen = 57,
27940 .input = "Join us now and share the software "
27941 "Join us now and share the software ",
27942 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
27943 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
27944 "\x64\x20\x73\x68\x61\x72\x65\x20"
27945 "\x74\x68\x65\x20\x73\x6f\x66\x74"
27946 "\x77\x70\x01\x32\x88\x00\x0c\x65"
27947 "\x20\x74\x68\x65\x20\x73\x6f\x66"
27948 "\x74\x77\x61\x72\x65\x20\x11\x00"
27949 "\x00",
27950 }, {
27951 .inlen = 159,
27952 .outlen = 131,
27953 .input = "This document describes a compression method based on the LZO "
27954 "compression algorithm. This document defines the application of "
27955 "the LZO algorithm used in UBIFS.",
27956 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
27957 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
27958 "\x64\x65\x73\x63\x72\x69\x62\x65"
27959 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
27960 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
27961 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
27962 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
27963 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
27964 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
27965 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
27966 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
27967 "\x73\x20\x74\x06\x05\x61\x70\x70"
27968 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
27969 "\x66\x88\x02\x60\x09\x27\xf0\x00"
27970 "\x0c\x20\x75\x73\x65\x64\x20\x69"
27971 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
27972 "\x11\x00\x00",
27976 static struct comp_testvec lzo_decomp_tv_template[] = {
27978 .inlen = 133,
27979 .outlen = 159,
27980 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
27981 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
27982 "\x64\x65\x73\x63\x72\x69\x62\x65"
27983 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
27984 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
27985 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
27986 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
27987 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
27988 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
27989 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
27990 "\x68\x69\x73\x2a\x54\x01\x02\x66"
27991 "\x69\x6e\x65\x73\x94\x06\x05\x61"
27992 "\x70\x70\x6c\x69\x63\x61\x74\x76"
27993 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
27994 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
27995 "\x20\x69\x6e\x20\x55\x42\x49\x46"
27996 "\x53\x2e\x11\x00\x00",
27997 .output = "This document describes a compression method based on the LZO "
27998 "compression algorithm. This document defines the application of "
27999 "the LZO algorithm used in UBIFS.",
28000 }, {
28001 .inlen = 46,
28002 .outlen = 70,
28003 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
28004 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
28005 "\x64\x20\x73\x68\x61\x72\x65\x20"
28006 "\x74\x68\x65\x20\x73\x6f\x66\x74"
28007 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
28008 "\x3d\x88\x00\x11\x00\x00",
28009 .output = "Join us now and share the software "
28010 "Join us now and share the software ",
28015 * Michael MIC test vectors from IEEE 802.11i
28017 #define MICHAEL_MIC_TEST_VECTORS 6
28019 static struct hash_testvec michael_mic_tv_template[] = {
28021 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
28022 .ksize = 8,
28023 .plaintext = zeroed_string,
28024 .psize = 0,
28025 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
28028 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
28029 .ksize = 8,
28030 .plaintext = "M",
28031 .psize = 1,
28032 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
28035 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
28036 .ksize = 8,
28037 .plaintext = "Mi",
28038 .psize = 2,
28039 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
28042 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
28043 .ksize = 8,
28044 .plaintext = "Mic",
28045 .psize = 3,
28046 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
28049 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
28050 .ksize = 8,
28051 .plaintext = "Mich",
28052 .psize = 4,
28053 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
28056 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
28057 .ksize = 8,
28058 .plaintext = "Michael",
28059 .psize = 7,
28060 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
28065 * CRC32C test vectors
28067 #define CRC32C_TEST_VECTORS 15
28069 static struct hash_testvec crc32c_tv_template[] = {
28071 .psize = 0,
28072 .digest = "\x00\x00\x00\x00",
28075 .key = "\x87\xa9\xcb\xed",
28076 .ksize = 4,
28077 .psize = 0,
28078 .digest = "\x78\x56\x34\x12",
28081 .key = "\xff\xff\xff\xff",
28082 .ksize = 4,
28083 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
28084 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
28085 "\x11\x12\x13\x14\x15\x16\x17\x18"
28086 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
28087 "\x21\x22\x23\x24\x25\x26\x27\x28",
28088 .psize = 40,
28089 .digest = "\x7f\x15\x2c\x0e",
28092 .key = "\xff\xff\xff\xff",
28093 .ksize = 4,
28094 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
28095 "\x31\x32\x33\x34\x35\x36\x37\x38"
28096 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
28097 "\x41\x42\x43\x44\x45\x46\x47\x48"
28098 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
28099 .psize = 40,
28100 .digest = "\xf6\xeb\x80\xe9",
28103 .key = "\xff\xff\xff\xff",
28104 .ksize = 4,
28105 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
28106 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
28107 "\x61\x62\x63\x64\x65\x66\x67\x68"
28108 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
28109 "\x71\x72\x73\x74\x75\x76\x77\x78",
28110 .psize = 40,
28111 .digest = "\xed\xbd\x74\xde",
28114 .key = "\xff\xff\xff\xff",
28115 .ksize = 4,
28116 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
28117 "\x81\x82\x83\x84\x85\x86\x87\x88"
28118 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
28119 "\x91\x92\x93\x94\x95\x96\x97\x98"
28120 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
28121 .psize = 40,
28122 .digest = "\x62\xc8\x79\xd5",
28125 .key = "\xff\xff\xff\xff",
28126 .ksize = 4,
28127 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
28128 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
28129 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
28130 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
28131 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
28132 .psize = 40,
28133 .digest = "\xd0\x9a\x97\xba",
28136 .key = "\xff\xff\xff\xff",
28137 .ksize = 4,
28138 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
28139 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
28140 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
28141 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
28142 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
28143 .psize = 40,
28144 .digest = "\x13\xd9\x29\x2b",
28147 .key = "\x80\xea\xd3\xf1",
28148 .ksize = 4,
28149 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
28150 "\x31\x32\x33\x34\x35\x36\x37\x38"
28151 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
28152 "\x41\x42\x43\x44\x45\x46\x47\x48"
28153 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
28154 .psize = 40,
28155 .digest = "\x0c\xb5\xe2\xa2",
28158 .key = "\xf3\x4a\x1d\x5d",
28159 .ksize = 4,
28160 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
28161 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
28162 "\x61\x62\x63\x64\x65\x66\x67\x68"
28163 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
28164 "\x71\x72\x73\x74\x75\x76\x77\x78",
28165 .psize = 40,
28166 .digest = "\xd1\x7f\xfb\xa6",
28169 .key = "\x2e\x80\x04\x59",
28170 .ksize = 4,
28171 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
28172 "\x81\x82\x83\x84\x85\x86\x87\x88"
28173 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
28174 "\x91\x92\x93\x94\x95\x96\x97\x98"
28175 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
28176 .psize = 40,
28177 .digest = "\x59\x33\xe6\x7a",
28180 .key = "\xa6\xcc\x19\x85",
28181 .ksize = 4,
28182 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
28183 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
28184 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
28185 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
28186 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
28187 .psize = 40,
28188 .digest = "\xbe\x03\x01\xd2",
28191 .key = "\x41\xfc\xfe\x2d",
28192 .ksize = 4,
28193 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
28194 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
28195 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
28196 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
28197 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
28198 .psize = 40,
28199 .digest = "\x75\xd3\xc5\x24",
28202 .key = "\xff\xff\xff\xff",
28203 .ksize = 4,
28204 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
28205 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
28206 "\x11\x12\x13\x14\x15\x16\x17\x18"
28207 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
28208 "\x21\x22\x23\x24\x25\x26\x27\x28"
28209 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
28210 "\x31\x32\x33\x34\x35\x36\x37\x38"
28211 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
28212 "\x41\x42\x43\x44\x45\x46\x47\x48"
28213 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
28214 "\x51\x52\x53\x54\x55\x56\x57\x58"
28215 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
28216 "\x61\x62\x63\x64\x65\x66\x67\x68"
28217 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
28218 "\x71\x72\x73\x74\x75\x76\x77\x78"
28219 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
28220 "\x81\x82\x83\x84\x85\x86\x87\x88"
28221 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
28222 "\x91\x92\x93\x94\x95\x96\x97\x98"
28223 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
28224 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
28225 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
28226 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
28227 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
28228 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
28229 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
28230 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
28231 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
28232 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
28233 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
28234 .psize = 240,
28235 .digest = "\x75\xd3\xc5\x24",
28236 .np = 2,
28237 .tap = { 31, 209 }
28238 }, {
28239 .key = "\xff\xff\xff\xff",
28240 .ksize = 4,
28241 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
28242 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
28243 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
28244 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
28245 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
28246 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
28247 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
28248 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
28249 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
28250 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
28251 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
28252 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
28253 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
28254 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
28255 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
28256 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
28257 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
28258 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
28259 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
28260 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
28261 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
28262 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
28263 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
28264 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
28265 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
28266 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
28267 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
28268 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
28269 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
28270 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
28271 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
28272 "\x47\xde\x75\x0c\x80\x17\xae\x22"
28273 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
28274 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
28275 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
28276 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
28277 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
28278 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
28279 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
28280 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
28281 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
28282 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
28283 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
28284 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
28285 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
28286 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
28287 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
28288 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
28289 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
28290 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
28291 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
28292 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
28293 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
28294 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
28295 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
28296 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
28297 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
28298 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
28299 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
28300 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
28301 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
28302 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
28303 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
28304 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
28305 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
28306 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
28307 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
28308 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
28309 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
28310 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
28311 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
28312 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
28313 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
28314 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
28315 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
28316 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
28317 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
28318 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
28319 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
28320 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
28321 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
28322 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
28323 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
28324 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
28325 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
28326 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
28327 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
28328 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
28329 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
28330 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
28331 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
28332 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
28333 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
28334 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
28335 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
28336 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
28337 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
28338 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
28339 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
28340 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
28341 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
28342 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
28343 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
28344 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
28345 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
28346 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
28347 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
28348 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
28349 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
28350 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
28351 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
28352 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
28353 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
28354 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
28355 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
28356 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
28357 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
28358 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
28359 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
28360 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
28361 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
28362 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
28363 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
28364 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
28365 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
28366 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
28367 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
28368 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
28369 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
28370 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
28371 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
28372 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
28373 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
28374 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
28375 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
28376 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
28377 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
28378 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
28379 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
28380 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
28381 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
28382 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
28383 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
28384 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
28385 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
28386 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
28387 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
28388 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
28389 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
28390 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
28391 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
28392 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
28393 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
28394 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
28395 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
28396 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
28397 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
28398 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
28399 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
28400 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
28401 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
28402 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
28403 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
28404 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
28405 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
28406 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
28407 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
28408 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
28409 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
28410 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
28411 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
28412 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
28413 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
28414 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
28415 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
28416 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
28417 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
28418 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
28419 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
28420 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
28421 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
28422 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
28423 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
28424 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
28425 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
28426 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
28427 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
28428 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
28429 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
28430 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
28431 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
28432 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
28433 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
28434 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
28435 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
28436 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
28437 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
28438 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
28439 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
28440 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
28441 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
28442 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
28443 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
28444 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
28445 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
28446 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
28447 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
28448 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
28449 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
28450 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
28451 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
28452 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
28453 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
28454 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
28455 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
28456 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
28457 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
28458 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
28459 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
28460 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
28461 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
28462 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
28463 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
28464 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
28465 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
28466 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
28467 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
28468 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
28469 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
28470 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
28471 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
28472 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
28473 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
28474 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
28475 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
28476 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
28477 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
28478 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
28479 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
28480 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
28481 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
28482 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
28483 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
28484 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
28485 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
28486 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
28487 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
28488 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
28489 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
28490 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
28491 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
28492 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
28493 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
28494 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
28495 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
28496 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
28497 .psize = 2048,
28498 .digest = "\xec\x26\x4d\x95",
28503 * Blakcifn CRC test vectors
28505 #define BFIN_CRC_TEST_VECTORS 6
28507 static struct hash_testvec bfin_crc_tv_template[] = {
28509 .psize = 0,
28510 .digest = "\x00\x00\x00\x00",
28513 .key = "\x87\xa9\xcb\xed",
28514 .ksize = 4,
28515 .psize = 0,
28516 .digest = "\x87\xa9\xcb\xed",
28519 .key = "\xff\xff\xff\xff",
28520 .ksize = 4,
28521 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
28522 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
28523 "\x11\x12\x13\x14\x15\x16\x17\x18"
28524 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
28525 "\x21\x22\x23\x24\x25\x26\x27\x28",
28526 .psize = 40,
28527 .digest = "\x84\x0c\x8d\xa2",
28530 .key = "\xff\xff\xff\xff",
28531 .ksize = 4,
28532 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
28533 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
28534 "\x11\x12\x13\x14\x15\x16\x17\x18"
28535 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
28536 "\x21\x22\x23\x24\x25\x26",
28537 .psize = 38,
28538 .digest = "\x8c\x58\xec\xb7",
28541 .key = "\xff\xff\xff\xff",
28542 .ksize = 4,
28543 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
28544 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
28545 "\x11\x12\x13\x14\x15\x16\x17\x18"
28546 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
28547 "\x21\x22\x23\x24\x25\x26\x27",
28548 .psize = 39,
28549 .digest = "\xdc\x50\x28\x7b",
28552 .key = "\xff\xff\xff\xff",
28553 .ksize = 4,
28554 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
28555 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
28556 "\x11\x12\x13\x14\x15\x16\x17\x18"
28557 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
28558 "\x21\x22\x23\x24\x25\x26\x27\x28"
28559 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
28560 "\x31\x32\x33\x34\x35\x36\x37\x38"
28561 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
28562 "\x41\x42\x43\x44\x45\x46\x47\x48"
28563 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
28564 "\x51\x52\x53\x54\x55\x56\x57\x58"
28565 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
28566 "\x61\x62\x63\x64\x65\x66\x67\x68"
28567 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
28568 "\x71\x72\x73\x74\x75\x76\x77\x78"
28569 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
28570 "\x81\x82\x83\x84\x85\x86\x87\x88"
28571 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
28572 "\x91\x92\x93\x94\x95\x96\x97\x98"
28573 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
28574 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
28575 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
28576 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
28577 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
28578 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
28579 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
28580 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
28581 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
28582 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
28583 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
28584 .psize = 240,
28585 .digest = "\x10\x19\x4a\x5c",
28586 .np = 2,
28587 .tap = { 31, 209 }
28592 #endif /* _CRYPTO_TESTMGR_H */