xref: /openbmc/linux/crypto/testmgr.h (revision 8fdff1dc)
1 /*
2  * Algorithm testing framework and tests.
3  *
4  * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
5  * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
6  * Copyright (c) 2007 Nokia Siemens Networks
7  * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
8  *
9  * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
10  * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
11  * gcm/gcm-test-vectors.tar.gz
12  *     Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
13  *              Adrian Hoban <adrian.hoban@intel.com>
14  *              Gabriele Paoloni <gabriele.paoloni@intel.com>
15  *              Tadeusz Struk (tadeusz.struk@intel.com)
16  *     Copyright (c) 2010, Intel Corporation.
17  *
18  * This program is free software; you can redistribute it and/or modify it
19  * under the terms of the GNU General Public License as published by the Free
20  * Software Foundation; either version 2 of the License, or (at your option)
21  * any later version.
22  *
23  */
24 #ifndef _CRYPTO_TESTMGR_H
25 #define _CRYPTO_TESTMGR_H
26 
27 #include <linux/netlink.h>
28 #include <linux/zlib.h>
29 
30 #include <crypto/compress.h>
31 
32 #define MAX_DIGEST_SIZE		64
33 #define MAX_TAP			8
34 
35 #define MAX_KEYLEN		56
36 #define MAX_IVLEN		32
37 
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;
47 };
48 
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;
62 };
63 
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;
81 };
82 
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;
93 };
94 
95 static char zeroed_string[48];
96 
97 /*
98  * MD4 test vectors from RFC1320
99  */
100 #define MD4_TEST_VECTORS	7
101 
102 static struct hash_testvec md4_tv_template [] = {
103 	{
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",
140 	},
141 };
142 
143 /*
144  * MD5 test vectors from RFC1321
145  */
146 #define MD5_TEST_VECTORS	7
147 
148 static struct hash_testvec md5_tv_template[] = {
149 	{
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",
185 	}
186 
187 };
188 
189 /*
190  * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
191  */
192 #define RMD128_TEST_VECTORS     10
193 
194 static struct hash_testvec rmd128_tv_template[] = {
195 	{
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",
250 	}
251 };
252 
253 /*
254  * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
255  */
256 #define RMD160_TEST_VECTORS     10
257 
258 static struct hash_testvec rmd160_tv_template[] = {
259 	{
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",
314 	}
315 };
316 
317 /*
318  * RIPEMD-256 test vectors
319  */
320 #define RMD256_TEST_VECTORS     8
321 
322 static struct hash_testvec rmd256_tv_template[] = {
323 	{
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 },
382 	}
383 };
384 
385 /*
386  * RIPEMD-320 test vectors
387  */
388 #define RMD320_TEST_VECTORS     8
389 
390 static struct hash_testvec rmd320_tv_template[] = {
391 	{
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 },
450 	}
451 };
452 
453 /*
454  * SHA1 test vectors  from from FIPS PUB 180-1
455  * Long vector from CAVS 5.0
456  */
457 #define SHA1_TEST_VECTORS	3
458 
459 static struct hash_testvec sha1_tv_template[] = {
460 	{
461 		.plaintext = "abc",
462 		.psize	= 3,
463 		.digest	= "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
464 			  "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
465 	}, {
466 		.plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
467 		.psize	= 56,
468 		.digest	= "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
469 			  "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
470 		.np	= 2,
471 		.tap	= { 28, 28 }
472 	}, {
473 		.plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
474 			     "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
475 			     "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
476 			     "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
477 			     "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
478 			     "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
479 			     "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
480 			     "\x72\x28\x26\xc0\x66\x86\x9e\xda"
481 			     "\xcd\x73\xb2\x54\x80\x35\x18\x58"
482 			     "\x13\xe2\x26\x34\xa9\xda\x44\x00"
483 			     "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
484 			     "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
485 			     "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
486 			     "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
487 			     "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
488 			     "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
489 			     "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
490 			     "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
491 			     "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
492 			     "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
493 			     "\x5a\x90\x11",
494 		.psize	= 163,
495 		.digest	= "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
496 			  "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
497 		.np	= 4,
498 		.tap	= { 63, 64, 31, 5 }
499 	}
500 };
501 
502 
503 /*
504  * SHA224 test vectors from from FIPS PUB 180-2
505  */
506 #define SHA224_TEST_VECTORS     2
507 
508 static struct hash_testvec sha224_tv_template[] = {
509 	{
510 		.plaintext = "abc",
511 		.psize  = 3,
512 		.digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
513 			  "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
514 			  "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
515 			  "\xE3\x6C\x9D\xA7",
516 	}, {
517 		.plaintext =
518 		"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
519 		.psize  = 56,
520 		.digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
521 			  "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
522 			  "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
523 			  "\x52\x52\x25\x25",
524 		.np     = 2,
525 		.tap    = { 28, 28 }
526 	}
527 };
528 
529 /*
530  * SHA256 test vectors from from NIST
531  */
532 #define SHA256_TEST_VECTORS	2
533 
534 static struct hash_testvec sha256_tv_template[] = {
535 	{
536 		.plaintext = "abc",
537 		.psize	= 3,
538 		.digest	= "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
539 			  "\x41\x41\x40\xde\x5d\xae\x22\x23"
540 			  "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
541 			  "\xb4\x10\xff\x61\xf2\x00\x15\xad",
542 	}, {
543 		.plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
544 		.psize	= 56,
545 		.digest	= "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
546 			  "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
547 			  "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
548 			  "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
549 		.np	= 2,
550 		.tap	= { 28, 28 }
551 	},
552 };
553 
554 /*
555  * SHA384 test vectors from from NIST and kerneli
556  */
557 #define SHA384_TEST_VECTORS	4
558 
559 static struct hash_testvec sha384_tv_template[] = {
560 	{
561 		.plaintext= "abc",
562 		.psize	= 3,
563 		.digest	= "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
564 			  "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
565 			  "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
566 			  "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
567 			  "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
568 			  "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
569 	}, {
570 		.plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
571 		.psize	= 56,
572 		.digest	= "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
573 			  "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
574 			  "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
575 			  "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
576 			  "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
577 			  "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
578 	}, {
579 		.plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
580 			   "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
581 		.psize	= 112,
582 		.digest	= "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
583 			  "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
584 			  "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
585 			  "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
586 			  "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
587 			  "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
588 	}, {
589 		.plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
590 			   "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
591 		.psize	= 104,
592 		.digest	= "\x3d\x20\x89\x73\xab\x35\x08\xdb"
593 			  "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
594 			  "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
595 			  "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
596 			  "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
597 			  "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
598 		.np	= 4,
599 		.tap	= { 26, 26, 26, 26 }
600 	},
601 };
602 
603 /*
604  * SHA512 test vectors from from NIST and kerneli
605  */
606 #define SHA512_TEST_VECTORS	4
607 
608 static struct hash_testvec sha512_tv_template[] = {
609 	{
610 		.plaintext = "abc",
611 		.psize	= 3,
612 		.digest	= "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
613 			  "\xcc\x41\x73\x49\xae\x20\x41\x31"
614 			  "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
615 			  "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
616 			  "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
617 			  "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
618 			  "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
619 			  "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
620 	}, {
621 		.plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
622 		.psize	= 56,
623 		.digest	= "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
624 			  "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
625 			  "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
626 			  "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
627 			  "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
628 			  "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
629 			  "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
630 			  "\x54\xec\x63\x12\x38\xca\x34\x45",
631 	}, {
632 		.plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
633 			   "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
634 		.psize	= 112,
635 		.digest	= "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
636 			  "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
637 			  "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
638 			  "\x72\x99\xae\xad\xb6\x88\x90\x18"
639 			  "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
640 			  "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
641 			  "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
642 			  "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
643 	}, {
644 		.plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
645 			   "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
646 		.psize	= 104,
647 		.digest	= "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
648 			  "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
649 			  "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
650 			  "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
651 			  "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
652 			  "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
653 			  "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
654 			  "\xed\xb4\x19\x87\x23\x28\x50\xc9",
655 		.np	= 4,
656 		.tap	= { 26, 26, 26, 26 }
657 	},
658 };
659 
660 
661 /*
662  * WHIRLPOOL test vectors from Whirlpool package
663  * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
664  * submission
665  */
666 #define WP512_TEST_VECTORS	8
667 
668 static struct hash_testvec wp512_tv_template[] = {
669 	{
670 		.plaintext = "",
671 		.psize	= 0,
672 		.digest	= "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
673 			  "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
674 			  "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
675 			  "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
676 			  "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
677 			  "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
678 			  "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
679 			  "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
680 
681 
682 	}, {
683 		.plaintext = "a",
684 		.psize	= 1,
685 		.digest	= "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
686 			  "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
687 			  "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
688 			  "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
689 			  "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
690 			  "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
691 			  "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
692 			  "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
693 	}, {
694 		.plaintext = "abc",
695 		.psize	= 3,
696 		.digest	= "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
697 			  "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
698 			  "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
699 			  "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
700 			  "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
701 			  "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
702 			  "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
703 			  "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
704 	}, {
705 		.plaintext = "message digest",
706 		.psize	= 14,
707 		.digest	= "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
708 			  "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
709 			  "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
710 			  "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
711 			  "\x84\x21\x55\x76\x59\xEF\x55\xC1"
712 			  "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
713 			  "\x92\xED\x92\x00\x52\x83\x8F\x33"
714 			  "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
715 	}, {
716 		.plaintext = "abcdefghijklmnopqrstuvwxyz",
717 		.psize	= 26,
718 		.digest	= "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
719 			  "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
720 			  "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
721 			  "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
722 			  "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
723 			  "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
724 			  "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
725 			  "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
726 	}, {
727 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
728 			   "abcdefghijklmnopqrstuvwxyz0123456789",
729 		.psize	= 62,
730 		.digest	= "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
731 			  "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
732 			  "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
733 			  "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
734 			  "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
735 			  "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
736 			  "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
737 			  "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
738 	}, {
739 		.plaintext = "1234567890123456789012345678901234567890"
740 			   "1234567890123456789012345678901234567890",
741 		.psize	= 80,
742 		.digest	= "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
743 			  "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
744 			  "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
745 			  "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
746 			  "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
747 			  "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
748 			  "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
749 			  "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
750 	}, {
751 		.plaintext = "abcdbcdecdefdefgefghfghighijhijk",
752 		.psize	= 32,
753 		.digest	= "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
754 			  "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
755 			  "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
756 			  "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
757 			  "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
758 			  "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
759 			  "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
760 			  "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
761 	},
762 };
763 
764 #define WP384_TEST_VECTORS	8
765 
766 static struct hash_testvec wp384_tv_template[] = {
767 	{
768 		.plaintext = "",
769 		.psize	= 0,
770 		.digest	= "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
771 			  "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
772 			  "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
773 			  "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
774 			  "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
775 			  "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
776 
777 
778 	}, {
779 		.plaintext = "a",
780 		.psize	= 1,
781 		.digest	= "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
782 			  "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
783 			  "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
784 			  "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
785 			  "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
786 			  "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
787 	}, {
788 		.plaintext = "abc",
789 		.psize	= 3,
790 		.digest	= "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
791 			  "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
792 			  "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
793 			  "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
794 			  "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
795 			  "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
796 	}, {
797 		.plaintext = "message digest",
798 		.psize	= 14,
799 		.digest	= "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
800 			  "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
801 			  "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
802 			  "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
803 			  "\x84\x21\x55\x76\x59\xEF\x55\xC1"
804 			  "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
805 	}, {
806 		.plaintext = "abcdefghijklmnopqrstuvwxyz",
807 		.psize	= 26,
808 		.digest	= "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
809 			  "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
810 			  "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
811 			  "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
812 			  "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
813 			  "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
814 	}, {
815 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
816 			   "abcdefghijklmnopqrstuvwxyz0123456789",
817 		.psize	= 62,
818 		.digest	= "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
819 			  "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
820 			  "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
821 			  "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
822 			  "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
823 			  "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
824 	}, {
825 		.plaintext = "1234567890123456789012345678901234567890"
826 			   "1234567890123456789012345678901234567890",
827 		.psize	= 80,
828 		.digest	= "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
829 			  "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
830 			  "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
831 			  "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
832 			  "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
833 			  "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
834 	}, {
835 		.plaintext = "abcdbcdecdefdefgefghfghighijhijk",
836 		.psize	= 32,
837 		.digest	= "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
838 			  "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
839 			  "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
840 			  "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
841 			  "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
842 			  "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
843 	},
844 };
845 
846 #define WP256_TEST_VECTORS	8
847 
848 static struct hash_testvec wp256_tv_template[] = {
849 	{
850 		.plaintext = "",
851 		.psize	= 0,
852 		.digest	= "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
853 			  "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
854 			  "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
855 			  "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
856 
857 
858 	}, {
859 		.plaintext = "a",
860 		.psize	= 1,
861 		.digest	= "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
862 			  "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
863 			  "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
864 			  "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
865 	}, {
866 		.plaintext = "abc",
867 		.psize	= 3,
868 		.digest	= "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
869 			  "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
870 			  "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
871 			  "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
872 	}, {
873 		.plaintext = "message digest",
874 		.psize	= 14,
875 		.digest	= "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
876 			  "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
877 			  "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
878 			  "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
879 	}, {
880 		.plaintext = "abcdefghijklmnopqrstuvwxyz",
881 		.psize	= 26,
882 		.digest	= "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
883 			  "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
884 			  "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
885 			  "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
886 	}, {
887 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
888 			   "abcdefghijklmnopqrstuvwxyz0123456789",
889 		.psize	= 62,
890 		.digest	= "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
891 			  "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
892 			  "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
893 			  "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
894 	}, {
895 		.plaintext = "1234567890123456789012345678901234567890"
896 			   "1234567890123456789012345678901234567890",
897 		.psize	= 80,
898 		.digest	= "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
899 			  "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
900 			  "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
901 			  "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
902 	}, {
903 		.plaintext = "abcdbcdecdefdefgefghfghighijhijk",
904 		.psize	= 32,
905 		.digest	= "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
906 			  "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
907 			  "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
908 			  "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
909 	},
910 };
911 
912 /*
913  * TIGER test vectors from Tiger website
914  */
915 #define TGR192_TEST_VECTORS	6
916 
917 static struct hash_testvec tgr192_tv_template[] = {
918 	{
919 		.plaintext = "",
920 		.psize	= 0,
921 		.digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
922 			  "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
923 			  "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
924 	}, {
925 		.plaintext = "abc",
926 		.psize	= 3,
927 		.digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
928 			  "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
929 			  "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
930 	}, {
931 		.plaintext = "Tiger",
932 		.psize	= 5,
933 		.digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
934 			  "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
935 			  "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
936 	}, {
937 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
938 		.psize	= 64,
939 		.digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
940 			  "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
941 			  "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
942 	}, {
943 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
944 		.psize	= 64,
945 		.digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
946 			  "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
947 			  "\x57\x89\x65\x65\x97\x5f\x91\x97",
948 	}, {
949 		.plaintext = "Tiger - A Fast New Hash Function, "
950 			   "by Ross Anderson and Eli Biham, "
951 			   "proceedings of Fast Software Encryption 3, "
952 			   "Cambridge, 1996.",
953 		.psize  = 125,
954 		.digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
955 			  "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
956 			  "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
957 	},
958 };
959 
960 #define TGR160_TEST_VECTORS	6
961 
962 static struct hash_testvec tgr160_tv_template[] = {
963 	{
964 		.plaintext = "",
965 		.psize	= 0,
966 		.digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
967 			  "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
968 			  "\xf3\x73\xde\x2d",
969 	}, {
970 		.plaintext = "abc",
971 		.psize	= 3,
972 		.digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
973 			  "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
974 			  "\x93\x5f\x7b\x95",
975 	}, {
976 		.plaintext = "Tiger",
977 		.psize	= 5,
978 		.digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
979 			  "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
980 			  "\x37\x79\x0c\x11",
981 	}, {
982 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
983 		.psize	= 64,
984 		.digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
985 			  "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
986 			  "\xb5\x86\x44\x50",
987 	}, {
988 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
989 		.psize	= 64,
990 		.digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
991 			  "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
992 			  "\x57\x89\x65\x65",
993 	}, {
994 		.plaintext = "Tiger - A Fast New Hash Function, "
995 			   "by Ross Anderson and Eli Biham, "
996 			   "proceedings of Fast Software Encryption 3, "
997 			   "Cambridge, 1996.",
998 		.psize  = 125,
999 		.digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1000 			  "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
1001 			  "\xdd\x68\x15\x1d",
1002 	},
1003 };
1004 
1005 #define TGR128_TEST_VECTORS	6
1006 
1007 static struct hash_testvec tgr128_tv_template[] = {
1008 	{
1009 		.plaintext = "",
1010 		.psize	= 0,
1011 		.digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
1012 			  "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
1013 	}, {
1014 		.plaintext = "abc",
1015 		.psize	= 3,
1016 		.digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
1017 			  "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
1018 	}, {
1019 		.plaintext = "Tiger",
1020 		.psize	= 5,
1021 		.digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
1022 			  "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
1023 	}, {
1024 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1025 		.psize	= 64,
1026 		.digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
1027 			  "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
1028 	}, {
1029 		.plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
1030 		.psize	= 64,
1031 		.digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
1032 			  "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
1033 	}, {
1034 		.plaintext = "Tiger - A Fast New Hash Function, "
1035 			   "by Ross Anderson and Eli Biham, "
1036 			   "proceedings of Fast Software Encryption 3, "
1037 			   "Cambridge, 1996.",
1038 		.psize  = 125,
1039 		.digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
1040 			  "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
1041 	},
1042 };
1043 
1044 #define GHASH_TEST_VECTORS 1
1045 
1046 static struct hash_testvec ghash_tv_template[] =
1047 {
1048 	{
1049 
1050 		.key	= "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61",
1051 		.ksize	= 16,
1052 		.plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
1053 		.psize	= 16,
1054 		.digest	= "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
1055 			  "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
1056 	},
1057 };
1058 
1059 /*
1060  * HMAC-MD5 test vectors from RFC2202
1061  * (These need to be fixed to not use strlen).
1062  */
1063 #define HMAC_MD5_TEST_VECTORS	7
1064 
1065 static struct hash_testvec hmac_md5_tv_template[] =
1066 {
1067 	{
1068 		.key	= "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1069 		.ksize	= 16,
1070 		.plaintext = "Hi There",
1071 		.psize	= 8,
1072 		.digest	= "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
1073 			  "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
1074 	}, {
1075 		.key	= "Jefe",
1076 		.ksize	= 4,
1077 		.plaintext = "what do ya want for nothing?",
1078 		.psize	= 28,
1079 		.digest	= "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
1080 			  "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
1081 		.np	= 2,
1082 		.tap	= {14, 14}
1083 	}, {
1084 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1085 		.ksize	= 16,
1086 		.plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1087 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1088 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1089 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1090 		.psize	= 50,
1091 		.digest	= "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
1092 			  "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
1093 	}, {
1094 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1095 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1096 			  "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
1097 		.ksize	= 25,
1098 		.plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1099 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1100 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1101 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1102 		.psize	= 50,
1103 		.digest	= "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
1104 			  "\x3a\x75\x16\x47\x46\xff\xaa\x79",
1105 	}, {
1106 		.key	= "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
1107 		.ksize	= 16,
1108 		.plaintext = "Test With Truncation",
1109 		.psize	= 20,
1110 		.digest	= "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
1111 			  "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
1112 	}, {
1113 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1114 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1115 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1116 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1117 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1118 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1119 			"\xaa\xaa",
1120 		.ksize	= 80,
1121 		.plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1122 		.psize	= 54,
1123 		.digest	= "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
1124 			  "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
1125 	}, {
1126 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1127 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1128 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1129 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1130 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1131 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1132 			"\xaa\xaa",
1133 		.ksize	= 80,
1134 		.plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
1135 			   "Block-Size Data",
1136 		.psize	= 73,
1137 		.digest	= "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
1138 			  "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
1139 	},
1140 };
1141 
1142 /*
1143  * HMAC-RIPEMD128 test vectors from RFC2286
1144  */
1145 #define HMAC_RMD128_TEST_VECTORS	7
1146 
1147 static struct hash_testvec hmac_rmd128_tv_template[] = {
1148 	{
1149 		.key	= "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1150 		.ksize	= 16,
1151 		.plaintext = "Hi There",
1152 		.psize	= 8,
1153 		.digest	= "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
1154 			  "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
1155 	}, {
1156 		.key	= "Jefe",
1157 		.ksize	= 4,
1158 		.plaintext = "what do ya want for nothing?",
1159 		.psize	= 28,
1160 		.digest	= "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
1161 			  "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
1162 		.np	= 2,
1163 		.tap	= { 14, 14 },
1164 	}, {
1165 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1166 		.ksize	= 16,
1167 		.plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1168 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1169 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1170 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1171 		.psize	= 50,
1172 		.digest	= "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
1173 			  "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
1174 	}, {
1175 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1176 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1177 			  "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
1178 		.ksize	= 25,
1179 		.plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1180 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1181 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1182 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1183 		.psize	= 50,
1184 		.digest	= "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
1185 			  "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
1186 	}, {
1187 		.key	= "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
1188 		.ksize	= 16,
1189 		.plaintext = "Test With Truncation",
1190 		.psize	= 20,
1191 		.digest	= "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
1192 			  "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
1193 	}, {
1194 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1195 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1196 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1197 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1198 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1199 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1200 			"\xaa\xaa",
1201 		.ksize	= 80,
1202 		.plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1203 		.psize	= 54,
1204 		.digest	= "\xdc\x73\x29\x28\xde\x98\x10\x4a"
1205 			  "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
1206 	}, {
1207 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1208 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1209 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1210 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1211 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1212 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1213 			"\xaa\xaa",
1214 		.ksize	= 80,
1215 		.plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
1216 			   "Block-Size Data",
1217 		.psize	= 73,
1218 		.digest	= "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
1219 			  "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
1220 	},
1221 };
1222 
1223 /*
1224  * HMAC-RIPEMD160 test vectors from RFC2286
1225  */
1226 #define HMAC_RMD160_TEST_VECTORS	7
1227 
1228 static struct hash_testvec hmac_rmd160_tv_template[] = {
1229 	{
1230 		.key	= "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1231 		.ksize	= 20,
1232 		.plaintext = "Hi There",
1233 		.psize	= 8,
1234 		.digest	= "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
1235 			  "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
1236 	}, {
1237 		.key	= "Jefe",
1238 		.ksize	= 4,
1239 		.plaintext = "what do ya want for nothing?",
1240 		.psize	= 28,
1241 		.digest	= "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
1242 			  "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
1243 		.np	= 2,
1244 		.tap	= { 14, 14 },
1245 	}, {
1246 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1247 		.ksize	= 20,
1248 		.plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1249 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1250 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1251 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1252 		.psize	= 50,
1253 		.digest	= "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
1254 			  "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
1255 	}, {
1256 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1257 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1258 			  "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
1259 		.ksize	= 25,
1260 		.plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1261 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1262 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1263 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1264 		.psize	= 50,
1265 		.digest	= "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
1266 			  "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
1267 	}, {
1268 		.key	= "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
1269 		.ksize	= 20,
1270 		.plaintext = "Test With Truncation",
1271 		.psize	= 20,
1272 		.digest	= "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
1273 			  "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
1274 	}, {
1275 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1276 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1277 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1278 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1279 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1280 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1281 			"\xaa\xaa",
1282 		.ksize	= 80,
1283 		.plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1284 		.psize	= 54,
1285 		.digest	= "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
1286 			  "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
1287 	}, {
1288 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1289 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1290 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1291 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1292 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1293 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1294 			"\xaa\xaa",
1295 		.ksize	= 80,
1296 		.plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
1297 			   "Block-Size Data",
1298 		.psize	= 73,
1299 		.digest	= "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
1300 			  "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
1301 	},
1302 };
1303 
1304 /*
1305  * HMAC-SHA1 test vectors from RFC2202
1306  */
1307 #define HMAC_SHA1_TEST_VECTORS	7
1308 
1309 static struct hash_testvec hmac_sha1_tv_template[] = {
1310 	{
1311 		.key	= "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
1312 		.ksize	= 20,
1313 		.plaintext = "Hi There",
1314 		.psize	= 8,
1315 		.digest	= "\xb6\x17\x31\x86\x55\x05\x72\x64"
1316 			  "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
1317 			  "\x46\xbe",
1318 	}, {
1319 		.key	= "Jefe",
1320 		.ksize	= 4,
1321 		.plaintext = "what do ya want for nothing?",
1322 		.psize	= 28,
1323 		.digest	= "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
1324 			  "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
1325 		.np	= 2,
1326 		.tap	= { 14, 14 }
1327 	}, {
1328 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1329 		.ksize	= 20,
1330 		.plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1331 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1332 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1333 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1334 		.psize	= 50,
1335 		.digest	= "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
1336 			  "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
1337 	}, {
1338 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1339 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1340 			  "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
1341 		.ksize	= 25,
1342 		.plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1343 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1344 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1345 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1346 		.psize	= 50,
1347 		.digest	= "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
1348 			  "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
1349 	}, {
1350 		.key	= "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
1351 		.ksize	= 20,
1352 		.plaintext = "Test With Truncation",
1353 		.psize	= 20,
1354 		.digest	= "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
1355 			  "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
1356 	}, {
1357 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1358 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1359 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1360 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1361 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1362 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1363 			"\xaa\xaa",
1364 		.ksize	= 80,
1365 		.plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1366 		.psize	= 54,
1367 		.digest	= "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
1368 			  "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
1369 	}, {
1370 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1371 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1372 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1373 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1374 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1375 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1376 			"\xaa\xaa",
1377 		.ksize	= 80,
1378 		.plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
1379 			   "Block-Size Data",
1380 		.psize	= 73,
1381 		.digest	= "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
1382 			  "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
1383 	},
1384 };
1385 
1386 
1387 /*
1388  * SHA224 HMAC test vectors from RFC4231
1389  */
1390 #define HMAC_SHA224_TEST_VECTORS    4
1391 
1392 static struct hash_testvec hmac_sha224_tv_template[] = {
1393 	{
1394 		.key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1395 			"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1396 			"\x0b\x0b\x0b\x0b",
1397 		.ksize  = 20,
1398 		/*  ("Hi There") */
1399 		.plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
1400 		.psize  = 8,
1401 		.digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
1402 			"\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
1403 			"\x47\xb4\xb1\x16\x99\x12\xba\x4f"
1404 			"\x53\x68\x4b\x22",
1405 	}, {
1406 		.key    = "Jefe",
1407 		.ksize  = 4,
1408 		/* ("what do ya want for nothing?") */
1409 		.plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
1410 			"\x79\x61\x20\x77\x61\x6e\x74\x20"
1411 			"\x66\x6f\x72\x20\x6e\x6f\x74\x68"
1412 			"\x69\x6e\x67\x3f",
1413 		.psize  = 28,
1414 		.digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
1415 			"\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
1416 			"\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
1417 			"\x8f\xd0\x5e\x44",
1418 		.np = 4,
1419 		.tap    = { 7, 7, 7, 7 }
1420 	}, {
1421 		.key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1422 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1423 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1424 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1425 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1426 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1427 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1428 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1429 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1430 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1431 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1432 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1433 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1434 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1435 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1436 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1437 			"\xaa\xaa\xaa",
1438 		.ksize  = 131,
1439 		/* ("Test Using Larger Than Block-Size Key - Hash Key First") */
1440 		.plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
1441 			"\x6e\x67\x20\x4c\x61\x72\x67\x65"
1442 			"\x72\x20\x54\x68\x61\x6e\x20\x42"
1443 			"\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
1444 			"\x65\x20\x4b\x65\x79\x20\x2d\x20"
1445 			"\x48\x61\x73\x68\x20\x4b\x65\x79"
1446 			"\x20\x46\x69\x72\x73\x74",
1447 		.psize  = 54,
1448 		.digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
1449 			"\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
1450 			"\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
1451 			"\x3f\xa6\x87\x0e",
1452 	}, {
1453 		.key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1454 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1455 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1456 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1457 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1458 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1459 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1460 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1461 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1462 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1463 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1464 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1465 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1466 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1467 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1468 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1469 			"\xaa\xaa\xaa",
1470 		.ksize  = 131,
1471 		/* ("This is a test using a larger than block-size key and a")
1472 		(" larger than block-size data. The key needs to be")
1473 			(" hashed before being used by the HMAC algorithm.") */
1474 		.plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
1475 			"\x61\x20\x74\x65\x73\x74\x20\x75"
1476 			"\x73\x69\x6e\x67\x20\x61\x20\x6c"
1477 			"\x61\x72\x67\x65\x72\x20\x74\x68"
1478 			"\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
1479 			"\x2d\x73\x69\x7a\x65\x20\x6b\x65"
1480 			"\x79\x20\x61\x6e\x64\x20\x61\x20"
1481 			"\x6c\x61\x72\x67\x65\x72\x20\x74"
1482 			"\x68\x61\x6e\x20\x62\x6c\x6f\x63"
1483 			"\x6b\x2d\x73\x69\x7a\x65\x20\x64"
1484 			"\x61\x74\x61\x2e\x20\x54\x68\x65"
1485 			"\x20\x6b\x65\x79\x20\x6e\x65\x65"
1486 			"\x64\x73\x20\x74\x6f\x20\x62\x65"
1487 			"\x20\x68\x61\x73\x68\x65\x64\x20"
1488 			"\x62\x65\x66\x6f\x72\x65\x20\x62"
1489 			"\x65\x69\x6e\x67\x20\x75\x73\x65"
1490 			"\x64\x20\x62\x79\x20\x74\x68\x65"
1491 			"\x20\x48\x4d\x41\x43\x20\x61\x6c"
1492 			"\x67\x6f\x72\x69\x74\x68\x6d\x2e",
1493 		.psize  = 152,
1494 		.digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
1495 			"\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
1496 			"\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
1497 			"\xf6\xf5\x65\xd1",
1498 	},
1499 };
1500 
1501 /*
1502  * HMAC-SHA256 test vectors from
1503  * draft-ietf-ipsec-ciph-sha-256-01.txt
1504  */
1505 #define HMAC_SHA256_TEST_VECTORS	10
1506 
1507 static struct hash_testvec hmac_sha256_tv_template[] = {
1508 	{
1509 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1510 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1511 			  "\x11\x12\x13\x14\x15\x16\x17\x18"
1512 			  "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
1513 		.ksize	= 32,
1514 		.plaintext = "abc",
1515 		.psize	= 3,
1516 		.digest	= "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
1517 			  "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
1518 			  "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
1519 			  "\x92\x75\x90\x21\xcf\xab\x81\x81",
1520 	}, {
1521 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1522 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1523 			  "\x11\x12\x13\x14\x15\x16\x17\x18"
1524 			  "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
1525 		.ksize	= 32,
1526 		.plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1527 		.psize	= 56,
1528 		.digest	= "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
1529 			  "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
1530 			  "\xe6\x98\xe3\x61\x19\x42\x11\x49"
1531 			  "\xea\x8c\x71\x24\x56\x69\x7d\x30",
1532 	}, {
1533 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1534 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1535 			  "\x11\x12\x13\x14\x15\x16\x17\x18"
1536 			  "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
1537 		.ksize	= 32,
1538 		.plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
1539 			   "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1540 		.psize	= 112,
1541 		.digest	= "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
1542 			  "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
1543 			  "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
1544 			  "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
1545 	}, {
1546 		.key	= "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1547 			"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1548 			"\x0b\x0b\x0b\x0b\x0b\x0b",
1549 		.ksize	= 32,
1550 		.plaintext = "Hi There",
1551 		.psize	= 8,
1552 		.digest	= "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
1553 			  "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
1554 			  "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
1555 			  "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
1556 	}, {
1557 		.key	= "Jefe",
1558 		.ksize	= 4,
1559 		.plaintext = "what do ya want for nothing?",
1560 		.psize	= 28,
1561 		.digest	= "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
1562 			  "\x6a\x04\x24\x26\x08\x95\x75\xc7"
1563 			  "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
1564 			  "\x9d\xec\x58\xb9\x64\xec\x38\x43",
1565 		.np	= 2,
1566 		.tap	= { 14, 14 }
1567 	}, {
1568 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1569 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1570 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
1571 		.ksize	= 32,
1572 		.plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1573 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1574 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
1575 			"\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
1576 		.psize	= 50,
1577 		.digest	= "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
1578 			  "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
1579 			  "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
1580 			  "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
1581 	}, {
1582 		.key	= "\x01\x02\x03\x04\x05\x06\x07\x08"
1583 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
1584 			  "\x11\x12\x13\x14\x15\x16\x17\x18"
1585 			  "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
1586 			  "\x21\x22\x23\x24\x25",
1587 		.ksize	= 37,
1588 		.plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1589 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1590 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
1591 			"\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
1592 		.psize	= 50,
1593 		.digest	= "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
1594 			  "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
1595 			  "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
1596 			  "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
1597 	}, {
1598 		.key	= "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
1599 			"\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
1600 			"\x0c\x0c\x0c\x0c\x0c\x0c",
1601 		.ksize	= 32,
1602 		.plaintext = "Test With Truncation",
1603 		.psize	= 20,
1604 		.digest	= "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
1605 			  "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
1606 			  "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
1607 			  "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
1608 	}, {
1609 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1610 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1611 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1612 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1613 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1614 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1615 			"\xaa\xaa",
1616 		.ksize	= 80,
1617 		.plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
1618 		.psize	= 54,
1619 		.digest	= "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
1620 			  "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
1621 			  "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
1622 			  "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
1623 	}, {
1624 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1625 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1626 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1627 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1628 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1629 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1630 			"\xaa\xaa",
1631 		.ksize	= 80,
1632 		.plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
1633 			   "One Block-Size Data",
1634 		.psize	= 73,
1635 		.digest	= "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
1636 			  "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
1637 			  "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
1638 			  "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
1639 	},
1640 };
1641 
1642 #define XCBC_AES_TEST_VECTORS 6
1643 
1644 static struct hash_testvec aes_xcbc128_tv_template[] = {
1645 	{
1646 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
1647 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1648 		.plaintext = zeroed_string,
1649 		.digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
1650 			  "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
1651 		.psize	= 0,
1652 		.ksize	= 16,
1653 	}, {
1654 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
1655 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1656 		.plaintext = "\x00\x01\x02",
1657 		.digest	= "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
1658 			  "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
1659 		.psize	= 3,
1660 		.ksize	= 16,
1661 	} , {
1662 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
1663 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1664 		.plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
1665 			     "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1666 		.digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
1667 			  "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
1668 		.psize	= 16,
1669 		.ksize	= 16,
1670 	}, {
1671 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
1672 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1673 		.plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
1674 			     "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
1675 			     "\x10\x11\x12\x13",
1676 		.digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
1677 			  "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
1678 		.tap	= { 10, 10 },
1679 		.psize	= 20,
1680 		.np	= 2,
1681 		.ksize	= 16,
1682 	}, {
1683 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
1684 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1685 		.plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
1686 			     "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
1687 			     "\x10\x11\x12\x13\x14\x15\x16\x17"
1688 			     "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
1689 		.digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
1690 			  "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
1691 		.psize	= 32,
1692 		.ksize	= 16,
1693 	}, {
1694 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
1695 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1696 		.plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
1697 			     "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
1698 			     "\x10\x11\x12\x13\x14\x15\x16\x17"
1699 			     "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
1700 			     "\x20\x21",
1701 		.digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
1702 			  "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
1703 		.tap	= { 17, 17 },
1704 		.psize	= 34,
1705 		.np	= 2,
1706 		.ksize	= 16,
1707 	}
1708 };
1709 
1710 #define VMAC_AES_TEST_VECTORS	11
1711 static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
1712 				'\x02', '\x03', '\x02', '\x02',
1713 				'\x02', '\x04', '\x01', '\x07',
1714 				'\x04', '\x01', '\x04', '\x03',};
1715 static char vmac_string2[128] = {'a', 'b', 'c',};
1716 static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
1717 				'a', 'b', 'c', 'a', 'b', 'c',
1718 				'a', 'b', 'c', 'a', 'b', 'c',
1719 				'a', 'b', 'c', 'a', 'b', 'c',
1720 				'a', 'b', 'c', 'a', 'b', 'c',
1721 				'a', 'b', 'c', 'a', 'b', 'c',
1722 				'a', 'b', 'c', 'a', 'b', 'c',
1723 				'a', 'b', 'c', 'a', 'b', 'c',
1724 				};
1725 
1726 static char vmac_string4[17] = {'b', 'c', 'e', 'f',
1727 				'i', 'j', 'l', 'm',
1728 				'o', 'p', 'r', 's',
1729 				't', 'u', 'w', 'x', 'z'};
1730 
1731 static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
1732 				 'o', 'l', 'k', ']', '%',
1733 				 '9', '2', '7', '!', 'A'};
1734 
1735 static char vmac_string6[129] = {'p', 't', '*', '7', 'l',
1736 				 'i', '!', '#', 'w', '0',
1737 				 'z', '/', '4', 'A', 'n'};
1738 
1739 static struct hash_testvec aes_vmac128_tv_template[] = {
1740 	{
1741 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
1742 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1743 		.plaintext = NULL,
1744 		.digest	= "\x07\x58\x80\x35\x77\xa4\x7b\x54",
1745 		.psize	= 0,
1746 		.ksize	= 16,
1747 	}, {
1748 		.key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
1749 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1750 		.plaintext = vmac_string1,
1751 		.digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
1752 		.psize  = 128,
1753 		.ksize  = 16,
1754 	}, {
1755 		.key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
1756 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1757 		.plaintext = vmac_string2,
1758 		.digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
1759 		.psize  = 128,
1760 		.ksize  = 16,
1761 	}, {
1762 		.key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
1763 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
1764 		.plaintext = vmac_string3,
1765 		.digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
1766 		.psize  = 128,
1767 		.ksize  = 16,
1768 	}, {
1769 		.key	= "abcdefghijklmnop",
1770 		.plaintext = NULL,
1771 		.digest	= "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
1772 		.psize	= 0,
1773 		.ksize	= 16,
1774 	}, {
1775 		.key    = "abcdefghijklmnop",
1776 		.plaintext = vmac_string1,
1777 		.digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
1778 		.psize  = 128,
1779 		.ksize  = 16,
1780 	}, {
1781 		.key    = "abcdefghijklmnop",
1782 		.plaintext = vmac_string2,
1783 		.digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
1784 		.psize  = 128,
1785 		.ksize  = 16,
1786 	}, {
1787 		.key    = "abcdefghijklmnop",
1788 		.plaintext = vmac_string3,
1789 		.digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
1790 		.psize  = 128,
1791 		.ksize  = 16,
1792 	}, {
1793 		.key = "a09b5cd!f#07K\x00\x00\x00",
1794 		.plaintext = vmac_string4,
1795 		.digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
1796 		.psize = sizeof(vmac_string4),
1797 		.ksize = 16,
1798 	}, {
1799 		.key = "a09b5cd!f#07K\x00\x00\x00",
1800 		.plaintext = vmac_string5,
1801 		.digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
1802 		.psize = sizeof(vmac_string5),
1803 		.ksize = 16,
1804 	}, {
1805 		.key = "a09b5cd!f#07K\x00\x00\x00",
1806 		.plaintext = vmac_string6,
1807 		.digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
1808 		.psize = sizeof(vmac_string6),
1809 		.ksize = 16,
1810 	},
1811 };
1812 
1813 /*
1814  * SHA384 HMAC test vectors from RFC4231
1815  */
1816 
1817 #define HMAC_SHA384_TEST_VECTORS	4
1818 
1819 static struct hash_testvec hmac_sha384_tv_template[] = {
1820 	{
1821 		.key	= "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1822 			  "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1823 			  "\x0b\x0b\x0b\x0b",
1824 		.ksize	= 20,
1825 		.plaintext = "Hi There",
1826 		.psize	= 8,
1827 		.digest	= "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
1828 			  "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
1829 			  "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
1830 			  "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
1831 			  "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
1832 			  "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
1833 	}, {
1834 		.key	= "Jefe",
1835 		.ksize	= 4,
1836 		.plaintext = "what do ya want for nothing?",
1837 		.psize	= 28,
1838 		.digest	= "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
1839 			  "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
1840 			  "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
1841 			  "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
1842 			  "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
1843 			  "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
1844 		.np	= 4,
1845 		.tap	= { 7, 7, 7, 7 }
1846 	}, {
1847 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1848 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1849 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1850 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1851 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1852 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1853 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1854 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1855 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1856 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1857 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1858 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1859 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1860 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1861 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1862 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1863 			  "\xaa\xaa\xaa",
1864 		.ksize	= 131,
1865 		.plaintext = "Test Using Larger Than Block-Siz"
1866 			   "e Key - Hash Key First",
1867 		.psize	= 54,
1868 		.digest	= "\x4e\xce\x08\x44\x85\x81\x3e\x90"
1869 			  "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
1870 			  "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
1871 			  "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
1872 			  "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
1873 			  "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
1874 	}, {
1875 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1876 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1877 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1878 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1879 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1880 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1881 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1882 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1883 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1884 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1885 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1886 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1887 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1888 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1889 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1890 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1891 			  "\xaa\xaa\xaa",
1892 		.ksize	= 131,
1893 		.plaintext = "This is a test u"
1894 			   "sing a larger th"
1895 			   "an block-size ke"
1896 			   "y and a larger t"
1897 			   "han block-size d"
1898 			   "ata. The key nee"
1899 			   "ds to be hashed "
1900 			   "before being use"
1901 			   "d by the HMAC al"
1902 			   "gorithm.",
1903 		.psize	= 152,
1904 		.digest	= "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
1905 			  "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
1906 			  "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
1907 			  "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
1908 			  "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
1909 			  "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
1910 	},
1911 };
1912 
1913 /*
1914  * SHA512 HMAC test vectors from RFC4231
1915  */
1916 
1917 #define HMAC_SHA512_TEST_VECTORS	4
1918 
1919 static struct hash_testvec hmac_sha512_tv_template[] = {
1920 	{
1921 		.key	= "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1922 			  "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
1923 			  "\x0b\x0b\x0b\x0b",
1924 		.ksize	= 20,
1925 		.plaintext = "Hi There",
1926 		.psize	= 8,
1927 		.digest	= "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
1928 			  "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
1929 			  "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
1930 			  "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
1931 			  "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
1932 			  "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
1933 			  "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
1934 			  "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
1935 	}, {
1936 		.key	= "Jefe",
1937 		.ksize	= 4,
1938 		.plaintext = "what do ya want for nothing?",
1939 		.psize	= 28,
1940 		.digest	= "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
1941 			  "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
1942 			  "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
1943 			  "\x10\x27\x0c\xd7\xea\x25\x05\x54"
1944 			  "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
1945 			  "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
1946 			  "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
1947 			  "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
1948 		.np	= 4,
1949 		.tap	= { 7, 7, 7, 7 }
1950 	}, {
1951 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1952 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1953 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1954 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1955 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1956 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1957 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1958 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1959 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1960 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1961 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1962 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1963 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1964 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1965 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1966 			  "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1967 			  "\xaa\xaa\xaa",
1968 		.ksize	= 131,
1969 		.plaintext = "Test Using Large"
1970 			   "r Than Block-Siz"
1971 			   "e Key - Hash Key"
1972 			   " First",
1973 		.psize	= 54,
1974 		.digest	= "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
1975 			"\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
1976 			"\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
1977 			"\x12\x1b\x01\x37\x83\xf8\xf3\x52"
1978 			"\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
1979 			"\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
1980 			"\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
1981 			"\x8b\x91\x5a\x98\x5d\x78\x65\x98",
1982 	}, {
1983 		.key	= "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1984 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1985 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1986 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1987 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1988 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1989 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1990 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1991 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1992 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1993 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1994 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1995 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1996 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1997 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1998 			"\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
1999 			"\xaa\xaa\xaa",
2000 		.ksize	= 131,
2001 		.plaintext =
2002 			  "This is a test u"
2003 			  "sing a larger th"
2004 			  "an block-size ke"
2005 			  "y and a larger t"
2006 			  "han block-size d"
2007 			  "ata. The key nee"
2008 			  "ds to be hashed "
2009 			  "before being use"
2010 			  "d by the HMAC al"
2011 			  "gorithm.",
2012 		.psize	= 152,
2013 		.digest	= "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
2014 			"\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
2015 			"\xde\xbd\x71\xf8\x86\x72\x89\x86"
2016 			"\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
2017 			"\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
2018 			"\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
2019 			"\x13\x46\x76\xfb\x6d\xe0\x44\x60"
2020 			"\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
2021 	},
2022 };
2023 
2024 /*
2025  * DES test vectors.
2026  */
2027 #define DES_ENC_TEST_VECTORS		11
2028 #define DES_DEC_TEST_VECTORS		5
2029 #define DES_CBC_ENC_TEST_VECTORS	6
2030 #define DES_CBC_DEC_TEST_VECTORS	5
2031 #define DES_CTR_ENC_TEST_VECTORS	2
2032 #define DES_CTR_DEC_TEST_VECTORS	2
2033 #define DES3_EDE_ENC_TEST_VECTORS	4
2034 #define DES3_EDE_DEC_TEST_VECTORS	4
2035 #define DES3_EDE_CBC_ENC_TEST_VECTORS	2
2036 #define DES3_EDE_CBC_DEC_TEST_VECTORS	2
2037 #define DES3_EDE_CTR_ENC_TEST_VECTORS	2
2038 #define DES3_EDE_CTR_DEC_TEST_VECTORS	2
2039 
2040 static struct cipher_testvec des_enc_tv_template[] = {
2041 	{ /* From Applied Cryptography */
2042 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2043 		.klen	= 8,
2044 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7",
2045 		.ilen	= 8,
2046 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
2047 		.rlen	= 8,
2048 	}, { /* Same key, different plaintext block */
2049 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2050 		.klen	= 8,
2051 		.input	= "\x22\x33\x44\x55\x66\x77\x88\x99",
2052 		.ilen	= 8,
2053 		.result	= "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
2054 		.rlen	= 8,
2055 	}, { /* Sbox test from NBS */
2056 		.key	= "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
2057 		.klen	= 8,
2058 		.input	= "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
2059 		.ilen	= 8,
2060 		.result	= "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
2061 		.rlen	= 8,
2062 	}, { /* Three blocks */
2063 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2064 		.klen	= 8,
2065 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2066 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
2067 			  "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
2068 		.ilen	= 24,
2069 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2070 			  "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
2071 			  "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
2072 		.rlen	= 24,
2073 	}, { /* Weak key */
2074 		.fail	= 1,
2075 		.wk	= 1,
2076 		.key	= "\x01\x01\x01\x01\x01\x01\x01\x01",
2077 		.klen	= 8,
2078 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7",
2079 		.ilen	= 8,
2080 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
2081 		.rlen	= 8,
2082 	}, { /* Two blocks -- for testing encryption across pages */
2083 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2084 		.klen	= 8,
2085 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2086 			  "\x22\x33\x44\x55\x66\x77\x88\x99",
2087 		.ilen	= 16,
2088 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2089 			  "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
2090 		.rlen	= 16,
2091 		.np	= 2,
2092 		.tap	= { 8, 8 }
2093 	}, { /* Four blocks -- for testing encryption with chunking */
2094 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2095 		.klen	= 8,
2096 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2097 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
2098 			  "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
2099 			  "\x22\x33\x44\x55\x66\x77\x88\x99",
2100 		.ilen	= 32,
2101 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2102 			  "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
2103 			  "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
2104 			  "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
2105 		.rlen	= 32,
2106 		.np	= 3,
2107 		.tap	= { 14, 10, 8 }
2108 	}, {
2109 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2110 		.klen	= 8,
2111 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2112 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
2113 			  "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
2114 		.ilen	= 24,
2115 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2116 			  "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
2117 			  "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
2118 		.rlen	= 24,
2119 		.np	= 4,
2120 		.tap	= { 2, 1, 3, 18 }
2121 	}, {
2122 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2123 		.klen	= 8,
2124 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2125 			  "\x22\x33\x44\x55\x66\x77\x88\x99",
2126 		.ilen	= 16,
2127 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2128 			  "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
2129 		.rlen	= 16,
2130 		.np	= 5,
2131 		.tap	= { 2, 2, 2, 2, 8 }
2132 	}, {
2133 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2134 		.klen	= 8,
2135 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xe7",
2136 		.ilen	= 8,
2137 		.result	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
2138 		.rlen	= 8,
2139 		.np	= 8,
2140 		.tap	= { 1, 1, 1, 1, 1, 1, 1, 1 }
2141 	}, { /* Generated with Crypto++ */
2142 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2143 		.klen	= 8,
2144 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2145 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2146 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2147 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2148 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2149 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2150 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2151 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2152 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2153 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2154 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2155 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2156 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2157 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2158 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2159 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2160 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2161 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2162 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2163 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2164 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2165 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2166 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2167 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2168 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2169 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2170 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2171 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2172 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2173 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2174 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
2175 		.ilen	= 248,
2176 		.result	= "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
2177 			  "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
2178 			  "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
2179 			  "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
2180 			  "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
2181 			  "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
2182 			  "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
2183 			  "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
2184 			  "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
2185 			  "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
2186 			  "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
2187 			  "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
2188 			  "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
2189 			  "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
2190 			  "\x2E\x51\x16\xCA\x09\x89\x54\x62"
2191 			  "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
2192 			  "\x62\xF0\x02\x58\x83\xAF\x30\x87"
2193 			  "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
2194 			  "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
2195 			  "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
2196 			  "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
2197 			  "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
2198 			  "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
2199 			  "\xE9\x95\x61\x74\x12\xED\x07\xD7"
2200 			  "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
2201 			  "\x51\x96\x16\xF7\x94\x61\xB8\x87"
2202 			  "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
2203 			  "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
2204 			  "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
2205 			  "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
2206 			  "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
2207 		.rlen	= 248,
2208 		.also_non_np = 1,
2209 		.np	= 2,
2210 		.tap	= { 248 - 8, 8 },
2211 	},
2212 };
2213 
2214 static struct cipher_testvec des_dec_tv_template[] = {
2215 	{ /* From Applied Cryptography */
2216 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2217 		.klen	= 8,
2218 		.input	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
2219 		.ilen	= 8,
2220 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xe7",
2221 		.rlen	= 8,
2222 	}, { /* Sbox test from NBS */
2223 		.key	= "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
2224 		.klen	= 8,
2225 		.input	= "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
2226 		.ilen	= 8,
2227 		.result	= "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
2228 		.rlen	= 8,
2229 	}, { /* Two blocks, for chunking test */
2230 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2231 		.klen	= 8,
2232 		.input	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2233 			  "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
2234 		.ilen	= 16,
2235 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2236 			  "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
2237 		.rlen	= 16,
2238 		.np	= 2,
2239 		.tap	= { 8, 8 }
2240 	}, {
2241 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2242 		.klen	= 8,
2243 		.input	= "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
2244 			  "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
2245 		.ilen	= 16,
2246 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xe7"
2247 			  "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
2248 		.rlen	= 16,
2249 		.np	= 3,
2250 		.tap	= { 3, 12, 1 }
2251 	}, { /* Generated with Crypto++ */
2252 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2253 		.klen	= 8,
2254 		.input	= "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
2255 			  "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
2256 			  "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
2257 			  "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
2258 			  "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
2259 			  "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
2260 			  "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
2261 			  "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
2262 			  "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
2263 			  "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
2264 			  "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
2265 			  "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
2266 			  "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
2267 			  "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
2268 			  "\x2E\x51\x16\xCA\x09\x89\x54\x62"
2269 			  "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
2270 			  "\x62\xF0\x02\x58\x83\xAF\x30\x87"
2271 			  "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
2272 			  "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
2273 			  "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
2274 			  "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
2275 			  "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
2276 			  "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
2277 			  "\xE9\x95\x61\x74\x12\xED\x07\xD7"
2278 			  "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
2279 			  "\x51\x96\x16\xF7\x94\x61\xB8\x87"
2280 			  "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
2281 			  "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
2282 			  "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
2283 			  "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
2284 			  "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
2285 		.ilen	= 248,
2286 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2287 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2288 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2289 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2290 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2291 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2292 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2293 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2294 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2295 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2296 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2297 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2298 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2299 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2300 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2301 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2302 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2303 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2304 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2305 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2306 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2307 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2308 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2309 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2310 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2311 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2312 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2313 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2314 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2315 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2316 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
2317 		.rlen	= 248,
2318 		.also_non_np = 1,
2319 		.np	= 2,
2320 		.tap	= { 248 - 8, 8 },
2321 	},
2322 };
2323 
2324 static struct cipher_testvec des_cbc_enc_tv_template[] = {
2325 	{ /* From OpenSSL */
2326 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2327 		.klen	= 8,
2328 		.iv	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
2329 		.input	= "\x37\x36\x35\x34\x33\x32\x31\x20"
2330 			  "\x4e\x6f\x77\x20\x69\x73\x20\x74"
2331 			  "\x68\x65\x20\x74\x69\x6d\x65\x20",
2332 		.ilen	= 24,
2333 		.result	= "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
2334 			  "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
2335 			  "\x46\x8e\x91\x15\x78\x88\xba\x68",
2336 		.rlen	= 24,
2337 	}, { /* FIPS Pub 81 */
2338 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2339 		.klen	= 8,
2340 		.iv	= "\x12\x34\x56\x78\x90\xab\xcd\xef",
2341 		.input	= "\x4e\x6f\x77\x20\x69\x73\x20\x74",
2342 		.ilen	= 8,
2343 		.result	= "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
2344 		.rlen	= 8,
2345 	}, {
2346 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2347 		.klen	= 8,
2348 		.iv	= "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
2349 		.input	= "\x68\x65\x20\x74\x69\x6d\x65\x20",
2350 		.ilen	= 8,
2351 		.result	= "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
2352 		.rlen	= 8,
2353 	}, {
2354 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2355 		.klen	= 8,
2356 		.iv	= "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
2357 		.input	= "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
2358 		.ilen	= 8,
2359 		.result	= "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
2360 		.rlen	= 8,
2361 	}, { /* Copy of openssl vector for chunk testing */
2362 	     /* From OpenSSL */
2363 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2364 		.klen	= 8,
2365 		.iv	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
2366 		.input	= "\x37\x36\x35\x34\x33\x32\x31\x20"
2367 			  "\x4e\x6f\x77\x20\x69\x73\x20\x74"
2368 			  "\x68\x65\x20\x74\x69\x6d\x65\x20",
2369 		.ilen	= 24,
2370 		.result	= "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
2371 			  "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
2372 			  "\x46\x8e\x91\x15\x78\x88\xba\x68",
2373 		.rlen	= 24,
2374 		.np	= 2,
2375 		.tap	= { 13, 11 }
2376 	}, { /* Generated with Crypto++ */
2377 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2378 		.klen	= 8,
2379 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
2380 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2381 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2382 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2383 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2384 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2385 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2386 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2387 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2388 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2389 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2390 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2391 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2392 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2393 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2394 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2395 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2396 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2397 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2398 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2399 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2400 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2401 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2402 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2403 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2404 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2405 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2406 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2407 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2408 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2409 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2410 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
2411 		.ilen	= 248,
2412 		.result	= "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
2413 			  "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
2414 			  "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
2415 			  "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
2416 			  "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
2417 			  "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
2418 			  "\x81\x72\x74\xDE\x30\x19\x69\x49"
2419 			  "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
2420 			  "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
2421 			  "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
2422 			  "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
2423 			  "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
2424 			  "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
2425 			  "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
2426 			  "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
2427 			  "\x49\x90\x88\x6A\x09\x8F\x76\x59"
2428 			  "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
2429 			  "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
2430 			  "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
2431 			  "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
2432 			  "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
2433 			  "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
2434 			  "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
2435 			  "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
2436 			  "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
2437 			  "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
2438 			  "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
2439 			  "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
2440 			  "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
2441 			  "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
2442 			  "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
2443 		.rlen	= 248,
2444 		.also_non_np = 1,
2445 		.np	= 2,
2446 		.tap	= { 248 - 8, 8 },
2447 	},
2448 };
2449 
2450 static struct cipher_testvec des_cbc_dec_tv_template[] = {
2451 	{ /* FIPS Pub 81 */
2452 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2453 		.klen	= 8,
2454 		.iv	= "\x12\x34\x56\x78\x90\xab\xcd\xef",
2455 		.input	= "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
2456 		.ilen	= 8,
2457 		.result	= "\x4e\x6f\x77\x20\x69\x73\x20\x74",
2458 		.rlen	= 8,
2459 	}, {
2460 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2461 		.klen	= 8,
2462 		.iv	= "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
2463 		.input	= "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
2464 		.ilen	= 8,
2465 		.result	= "\x68\x65\x20\x74\x69\x6d\x65\x20",
2466 		.rlen	= 8,
2467 	}, {
2468 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2469 		.klen	= 8,
2470 		.iv	= "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
2471 		.input	= "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
2472 		.ilen	= 8,
2473 		.result	= "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
2474 		.rlen	= 8,
2475 	}, { /* Copy of above, for chunk testing */
2476 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
2477 		.klen	= 8,
2478 		.iv	= "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
2479 		.input	= "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
2480 		.ilen	= 8,
2481 		.result	= "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
2482 		.rlen	= 8,
2483 		.np	= 2,
2484 		.tap	= { 4, 4 }
2485 	}, { /* Generated with Crypto++ */
2486 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2487 		.klen	= 8,
2488 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
2489 		.input	= "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
2490 			  "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
2491 			  "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
2492 			  "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
2493 			  "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
2494 			  "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
2495 			  "\x81\x72\x74\xDE\x30\x19\x69\x49"
2496 			  "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
2497 			  "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
2498 			  "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
2499 			  "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
2500 			  "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
2501 			  "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
2502 			  "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
2503 			  "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
2504 			  "\x49\x90\x88\x6A\x09\x8F\x76\x59"
2505 			  "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
2506 			  "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
2507 			  "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
2508 			  "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
2509 			  "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
2510 			  "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
2511 			  "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
2512 			  "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
2513 			  "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
2514 			  "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
2515 			  "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
2516 			  "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
2517 			  "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
2518 			  "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
2519 			  "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
2520 		.ilen	= 248,
2521 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2522 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2523 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2524 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2525 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2526 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2527 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2528 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2529 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2530 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2531 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2532 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2533 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2534 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2535 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2536 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2537 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2538 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2539 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2540 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2541 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2542 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2543 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2544 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2545 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2546 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2547 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2548 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2549 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2550 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2551 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
2552 		.rlen	= 248,
2553 		.also_non_np = 1,
2554 		.np	= 2,
2555 		.tap	= { 248 - 8, 8 },
2556 	},
2557 };
2558 
2559 static struct cipher_testvec des_ctr_enc_tv_template[] = {
2560 	{ /* Generated with Crypto++ */
2561 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2562 		.klen	= 8,
2563 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
2564 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2565 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2566 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2567 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2568 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2569 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2570 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2571 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2572 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2573 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2574 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2575 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2576 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2577 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2578 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2579 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2580 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2581 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2582 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2583 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2584 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2585 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2586 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2587 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2588 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2589 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2590 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2591 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2592 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2593 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2594 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
2595 		.ilen	= 248,
2596 		.result	= "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
2597 			  "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
2598 			  "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
2599 			  "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
2600 			  "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
2601 			  "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
2602 			  "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
2603 			  "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
2604 			  "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
2605 			  "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
2606 			  "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
2607 			  "\xBE\x4C\x91\x43\x22\x65\x72\x48"
2608 			  "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
2609 			  "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
2610 			  "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
2611 			  "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
2612 			  "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
2613 			  "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
2614 			  "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
2615 			  "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
2616 			  "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
2617 			  "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
2618 			  "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
2619 			  "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
2620 			  "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
2621 			  "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
2622 			  "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
2623 			  "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
2624 			  "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
2625 			  "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
2626 			  "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
2627 		.rlen	= 248,
2628 		.also_non_np = 1,
2629 		.np	= 2,
2630 		.tap	= { 248 - 8, 8 },
2631 	}, { /* Generated with Crypto++ */
2632 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2633 		.klen	= 8,
2634 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
2635 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2636 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2637 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2638 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2639 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2640 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2641 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2642 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2643 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2644 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2645 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2646 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2647 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2648 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2649 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2650 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2651 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2652 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2653 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2654 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2655 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2656 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2657 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2658 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2659 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2660 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2661 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2662 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2663 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2664 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2665 			  "\xC6\x2F\xBB\x24\x8D\x19\x82",
2666 		.ilen	= 247,
2667 		.result	= "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
2668 			  "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
2669 			  "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
2670 			  "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
2671 			  "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
2672 			  "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
2673 			  "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
2674 			  "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
2675 			  "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
2676 			  "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
2677 			  "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
2678 			  "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
2679 			  "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
2680 			  "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
2681 			  "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
2682 			  "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
2683 			  "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
2684 			  "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
2685 			  "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
2686 			  "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
2687 			  "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
2688 			  "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
2689 			  "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
2690 			  "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
2691 			  "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
2692 			  "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
2693 			  "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
2694 			  "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
2695 			  "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
2696 			  "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
2697 			  "\x91\x45\x05\x3E\x58\xBF\x32",
2698 		.rlen	= 247,
2699 		.also_non_np = 1,
2700 		.np	= 2,
2701 		.tap	= { 247 - 8, 8 },
2702 	},
2703 };
2704 
2705 static struct cipher_testvec des_ctr_dec_tv_template[] = {
2706 	{ /* Generated with Crypto++ */
2707 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2708 		.klen	= 8,
2709 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
2710 		.input	= "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
2711 			  "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
2712 			  "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
2713 			  "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
2714 			  "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
2715 			  "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
2716 			  "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
2717 			  "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
2718 			  "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
2719 			  "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
2720 			  "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
2721 			  "\xBE\x4C\x91\x43\x22\x65\x72\x48"
2722 			  "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
2723 			  "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
2724 			  "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
2725 			  "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
2726 			  "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
2727 			  "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
2728 			  "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
2729 			  "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
2730 			  "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
2731 			  "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
2732 			  "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
2733 			  "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
2734 			  "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
2735 			  "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
2736 			  "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
2737 			  "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
2738 			  "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
2739 			  "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
2740 			  "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
2741 		.ilen	= 248,
2742 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2743 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2744 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2745 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2746 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2747 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2748 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2749 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2750 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2751 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2752 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2753 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2754 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2755 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2756 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2757 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2758 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2759 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2760 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2761 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2762 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2763 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2764 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2765 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2766 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2767 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2768 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2769 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2770 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2771 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2772 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
2773 		.rlen	= 248,
2774 		.also_non_np = 1,
2775 		.np	= 2,
2776 		.tap	= { 248 - 8, 8 },
2777 	}, { /* Generated with Crypto++ */
2778 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
2779 		.klen	= 8,
2780 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
2781 		.input	= "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
2782 			  "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
2783 			  "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
2784 			  "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
2785 			  "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
2786 			  "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
2787 			  "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
2788 			  "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
2789 			  "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
2790 			  "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
2791 			  "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
2792 			  "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
2793 			  "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
2794 			  "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
2795 			  "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
2796 			  "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
2797 			  "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
2798 			  "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
2799 			  "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
2800 			  "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
2801 			  "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
2802 			  "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
2803 			  "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
2804 			  "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
2805 			  "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
2806 			  "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
2807 			  "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
2808 			  "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
2809 			  "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
2810 			  "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
2811 			  "\x91\x45\x05\x3E\x58\xBF\x32",
2812 		.ilen	= 247,
2813 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
2814 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
2815 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
2816 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
2817 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
2818 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
2819 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
2820 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
2821 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
2822 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
2823 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
2824 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
2825 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
2826 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
2827 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
2828 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
2829 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
2830 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
2831 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
2832 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
2833 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
2834 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
2835 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
2836 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
2837 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
2838 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
2839 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
2840 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
2841 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
2842 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
2843 			  "\xC6\x2F\xBB\x24\x8D\x19\x82",
2844 		.rlen	= 247,
2845 		.also_non_np = 1,
2846 		.np	= 2,
2847 		.tap	= { 247 - 8, 8 },
2848 	},
2849 };
2850 
2851 static struct cipher_testvec des3_ede_enc_tv_template[] = {
2852 	{ /* These are from openssl */
2853 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
2854 			  "\x55\x55\x55\x55\x55\x55\x55\x55"
2855 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
2856 		.klen	= 24,
2857 		.input	= "\x73\x6f\x6d\x65\x64\x61\x74\x61",
2858 		.ilen	= 8,
2859 		.result	= "\x18\xd7\x48\xe5\x63\x62\x05\x72",
2860 		.rlen	= 8,
2861 	}, {
2862 		.key	= "\x03\x52\x02\x07\x67\x20\x82\x17"
2863 			  "\x86\x02\x87\x66\x59\x08\x21\x98"
2864 			  "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
2865 		.klen	= 24,
2866 		.input	= "\x73\x71\x75\x69\x67\x67\x6c\x65",
2867 		.ilen	= 8,
2868 		.result	= "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
2869 		.rlen	= 8,
2870 	}, {
2871 		.key	= "\x10\x46\x10\x34\x89\x98\x80\x20"
2872 			  "\x91\x07\xd0\x15\x89\x19\x01\x01"
2873 			  "\x19\x07\x92\x10\x98\x1a\x01\x01",
2874 		.klen	= 24,
2875 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00",
2876 		.ilen	= 8,
2877 		.result	= "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
2878 		.rlen	= 8,
2879 	}, { /* Generated with Crypto++ */
2880 		.key	= "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
2881 			  "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
2882 			  "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
2883 		.klen	= 24,
2884 		.input	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
2885 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
2886 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
2887 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
2888 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
2889 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
2890 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
2891 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
2892 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
2893 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
2894 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
2895 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
2896 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
2897 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
2898 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
2899 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
2900 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
2901 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
2902 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
2903 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
2904 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
2905 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
2906 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
2907 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
2908 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
2909 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
2910 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
2911 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
2912 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
2913 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
2914 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
2915 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
2916 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
2917 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
2918 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
2919 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
2920 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
2921 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
2922 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
2923 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
2924 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
2925 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
2926 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
2927 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
2928 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
2929 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
2930 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
2931 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
2932 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
2933 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
2934 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
2935 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
2936 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
2937 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
2938 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
2939 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
2940 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
2941 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
2942 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
2943 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
2944 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
2945 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
2946 		.ilen	= 496,
2947 		.result	= "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
2948 			  "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
2949 			  "\x81\x01\x04\x00\x76\xFA\xED\xD3"
2950 			  "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
2951 			  "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
2952 			  "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
2953 			  "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
2954 			  "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
2955 			  "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
2956 			  "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
2957 			  "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
2958 			  "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
2959 			  "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
2960 			  "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
2961 			  "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
2962 			  "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
2963 			  "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
2964 			  "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
2965 			  "\x45\x86\x50\x01\x70\x35\x99\x92"
2966 			  "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
2967 			  "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
2968 			  "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
2969 			  "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
2970 			  "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
2971 			  "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
2972 			  "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
2973 			  "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
2974 			  "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
2975 			  "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
2976 			  "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
2977 			  "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
2978 			  "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
2979 			  "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
2980 			  "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
2981 			  "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
2982 			  "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
2983 			  "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
2984 			  "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
2985 			  "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
2986 			  "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
2987 			  "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
2988 			  "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
2989 			  "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
2990 			  "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
2991 			  "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
2992 			  "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
2993 			  "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
2994 			  "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
2995 			  "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
2996 			  "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
2997 			  "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
2998 			  "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
2999 			  "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
3000 			  "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
3001 			  "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
3002 			  "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
3003 			  "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
3004 			  "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
3005 			  "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
3006 			  "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
3007 			  "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
3008 			  "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
3009 		.rlen	= 496,
3010 		.also_non_np = 1,
3011 		.np	= 2,
3012 		.tap	= { 496 - 16, 16 },
3013 	},
3014 };
3015 
3016 static struct cipher_testvec des3_ede_dec_tv_template[] = {
3017 	{ /* These are from openssl */
3018 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
3019 			  "\x55\x55\x55\x55\x55\x55\x55\x55"
3020 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
3021 		.klen	= 24,
3022 		.input	= "\x18\xd7\x48\xe5\x63\x62\x05\x72",
3023 		.ilen	= 8,
3024 		.result	= "\x73\x6f\x6d\x65\x64\x61\x74\x61",
3025 		.rlen	= 8,
3026 	}, {
3027 		.key	= "\x03\x52\x02\x07\x67\x20\x82\x17"
3028 			  "\x86\x02\x87\x66\x59\x08\x21\x98"
3029 			  "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
3030 		.klen	= 24,
3031 		.input	= "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
3032 		.ilen	= 8,
3033 		.result	= "\x73\x71\x75\x69\x67\x67\x6c\x65",
3034 		.rlen	= 8,
3035 	}, {
3036 		.key	= "\x10\x46\x10\x34\x89\x98\x80\x20"
3037 			  "\x91\x07\xd0\x15\x89\x19\x01\x01"
3038 			  "\x19\x07\x92\x10\x98\x1a\x01\x01",
3039 		.klen	= 24,
3040 		.input	= "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
3041 		.ilen	= 8,
3042 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00",
3043 		.rlen	= 8,
3044 	}, { /* Generated with Crypto++ */
3045 		.key	= "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
3046 			  "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
3047 			  "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
3048 		.klen	= 24,
3049 		.input	= "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
3050 			  "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
3051 			  "\x81\x01\x04\x00\x76\xFA\xED\xD3"
3052 			  "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
3053 			  "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
3054 			  "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
3055 			  "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
3056 			  "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
3057 			  "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
3058 			  "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
3059 			  "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
3060 			  "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
3061 			  "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
3062 			  "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
3063 			  "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
3064 			  "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
3065 			  "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
3066 			  "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
3067 			  "\x45\x86\x50\x01\x70\x35\x99\x92"
3068 			  "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
3069 			  "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
3070 			  "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
3071 			  "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
3072 			  "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
3073 			  "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
3074 			  "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
3075 			  "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
3076 			  "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
3077 			  "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
3078 			  "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
3079 			  "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
3080 			  "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
3081 			  "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
3082 			  "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
3083 			  "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
3084 			  "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
3085 			  "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
3086 			  "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
3087 			  "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
3088 			  "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
3089 			  "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
3090 			  "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
3091 			  "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
3092 			  "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
3093 			  "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
3094 			  "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
3095 			  "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
3096 			  "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
3097 			  "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
3098 			  "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
3099 			  "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
3100 			  "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
3101 			  "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
3102 			  "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
3103 			  "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
3104 			  "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
3105 			  "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
3106 			  "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
3107 			  "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
3108 			  "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
3109 			  "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
3110 			  "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
3111 		.ilen	= 496,
3112 		.result	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3113 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3114 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3115 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3116 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3117 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3118 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3119 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3120 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3121 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3122 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3123 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3124 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3125 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3126 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3127 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3128 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3129 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3130 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3131 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3132 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3133 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3134 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3135 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3136 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3137 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3138 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3139 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3140 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3141 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3142 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3143 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3144 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3145 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3146 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3147 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3148 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3149 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3150 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3151 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3152 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3153 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3154 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3155 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3156 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3157 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3158 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3159 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3160 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3161 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3162 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3163 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3164 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3165 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3166 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3167 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3168 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3169 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3170 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3171 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3172 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3173 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
3174 		.rlen	= 496,
3175 		.also_non_np = 1,
3176 		.np	= 2,
3177 		.tap	= { 496 - 16, 16 },
3178 	},
3179 };
3180 
3181 static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
3182 	{ /* Generated from openssl */
3183 		.key	= "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
3184 			  "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
3185 			  "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
3186 		.klen	= 24,
3187 		.iv	= "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
3188 		.input	= "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
3189 			  "\x53\x20\x63\x65\x65\x72\x73\x74"
3190 			  "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
3191 			  "\x20\x79\x65\x53\x72\x63\x74\x65"
3192 			  "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
3193 			  "\x79\x6e\x53\x20\x63\x65\x65\x72"
3194 			  "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
3195 			  "\x6e\x61\x20\x79\x65\x53\x72\x63"
3196 			  "\x74\x65\x20\x73\x6f\x54\x20\x6f"
3197 			  "\x61\x4d\x79\x6e\x53\x20\x63\x65"
3198 			  "\x65\x72\x73\x74\x54\x20\x6f\x6f"
3199 			  "\x4d\x20\x6e\x61\x20\x79\x65\x53"
3200 			  "\x72\x63\x74\x65\x20\x73\x6f\x54"
3201 			  "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
3202 			  "\x63\x65\x65\x72\x73\x74\x54\x20"
3203 			  "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
3204 		.ilen	= 128,
3205 		.result	= "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
3206 			  "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
3207 			  "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
3208 			  "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
3209 			  "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
3210 			  "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
3211 			  "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
3212 			  "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
3213 			  "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
3214 			  "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
3215 			  "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
3216 			  "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
3217 			  "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
3218 			  "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
3219 			  "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
3220 			  "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
3221 		.rlen	= 128,
3222 	}, { /* Generated with Crypto++ */
3223 		.key	= "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
3224 			  "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
3225 			  "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
3226 		.klen	= 24,
3227 		.iv	= "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
3228 			  "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
3229 		.input	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3230 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3231 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3232 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3233 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3234 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3235 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3236 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3237 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3238 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3239 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3240 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3241 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3242 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3243 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3244 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3245 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3246 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3247 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3248 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3249 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3250 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3251 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3252 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3253 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3254 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3255 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3256 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3257 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3258 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3259 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3260 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3261 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3262 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3263 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3264 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3265 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3266 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3267 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3268 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3269 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3270 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3271 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3272 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3273 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3274 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3275 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3276 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3277 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3278 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3279 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3280 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3281 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3282 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3283 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3284 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3285 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3286 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3287 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3288 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3289 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3290 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
3291 		.ilen	= 496,
3292 		.result	= "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
3293 			  "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
3294 			  "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
3295 			  "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
3296 			  "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
3297 			  "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
3298 			  "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
3299 			  "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
3300 			  "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
3301 			  "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
3302 			  "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
3303 			  "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
3304 			  "\x11\x35\x61\x94\x88\x7B\x1C\x48"
3305 			  "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
3306 			  "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
3307 			  "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
3308 			  "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
3309 			  "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
3310 			  "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
3311 			  "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
3312 			  "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
3313 			  "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
3314 			  "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
3315 			  "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
3316 			  "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
3317 			  "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
3318 			  "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
3319 			  "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
3320 			  "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
3321 			  "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
3322 			  "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
3323 			  "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
3324 			  "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
3325 			  "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
3326 			  "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
3327 			  "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
3328 			  "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
3329 			  "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
3330 			  "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
3331 			  "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
3332 			  "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
3333 			  "\x73\x50\x08\x56\x20\x9B\x94\x23"
3334 			  "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
3335 			  "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
3336 			  "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
3337 			  "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
3338 			  "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
3339 			  "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
3340 			  "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
3341 			  "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
3342 			  "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
3343 			  "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
3344 			  "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
3345 			  "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
3346 			  "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
3347 			  "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
3348 			  "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
3349 			  "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
3350 			  "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
3351 			  "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
3352 			  "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
3353 			  "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
3354 		.rlen	= 496,
3355 		.also_non_np = 1,
3356 		.np	= 2,
3357 		.tap	= { 496 - 16, 16 },
3358 	},
3359 };
3360 
3361 static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
3362 	{ /* Generated from openssl */
3363 		.key	= "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
3364 			  "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
3365 			  "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
3366 		.klen	= 24,
3367 		.iv	= "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
3368 		.input	= "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
3369 			  "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
3370 			  "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
3371 			  "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
3372 			  "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
3373 			  "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
3374 			  "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
3375 			  "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
3376 			  "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
3377 			  "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
3378 			  "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
3379 			  "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
3380 			  "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
3381 			  "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
3382 			  "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
3383 			  "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
3384 		.ilen	= 128,
3385 		.result	= "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
3386 			  "\x53\x20\x63\x65\x65\x72\x73\x74"
3387 			  "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
3388 			  "\x20\x79\x65\x53\x72\x63\x74\x65"
3389 			  "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
3390 			  "\x79\x6e\x53\x20\x63\x65\x65\x72"
3391 			  "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
3392 			  "\x6e\x61\x20\x79\x65\x53\x72\x63"
3393 			  "\x74\x65\x20\x73\x6f\x54\x20\x6f"
3394 			  "\x61\x4d\x79\x6e\x53\x20\x63\x65"
3395 			  "\x65\x72\x73\x74\x54\x20\x6f\x6f"
3396 			  "\x4d\x20\x6e\x61\x20\x79\x65\x53"
3397 			  "\x72\x63\x74\x65\x20\x73\x6f\x54"
3398 			  "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
3399 			  "\x63\x65\x65\x72\x73\x74\x54\x20"
3400 			  "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
3401 		.rlen	= 128,
3402 	}, { /* Generated with Crypto++ */
3403 		.key	= "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
3404 			  "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
3405 			  "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
3406 		.klen	= 24,
3407 		.iv	= "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
3408 			  "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
3409 		.input	= "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
3410 			  "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
3411 			  "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
3412 			  "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
3413 			  "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
3414 			  "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
3415 			  "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
3416 			  "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
3417 			  "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
3418 			  "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
3419 			  "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
3420 			  "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
3421 			  "\x11\x35\x61\x94\x88\x7B\x1C\x48"
3422 			  "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
3423 			  "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
3424 			  "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
3425 			  "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
3426 			  "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
3427 			  "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
3428 			  "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
3429 			  "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
3430 			  "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
3431 			  "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
3432 			  "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
3433 			  "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
3434 			  "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
3435 			  "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
3436 			  "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
3437 			  "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
3438 			  "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
3439 			  "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
3440 			  "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
3441 			  "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
3442 			  "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
3443 			  "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
3444 			  "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
3445 			  "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
3446 			  "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
3447 			  "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
3448 			  "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
3449 			  "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
3450 			  "\x73\x50\x08\x56\x20\x9B\x94\x23"
3451 			  "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
3452 			  "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
3453 			  "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
3454 			  "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
3455 			  "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
3456 			  "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
3457 			  "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
3458 			  "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
3459 			  "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
3460 			  "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
3461 			  "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
3462 			  "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
3463 			  "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
3464 			  "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
3465 			  "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
3466 			  "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
3467 			  "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
3468 			  "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
3469 			  "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
3470 			  "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
3471 		.ilen	= 496,
3472 		.result	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3473 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3474 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3475 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3476 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3477 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3478 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3479 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3480 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3481 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3482 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3483 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3484 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3485 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3486 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3487 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3488 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3489 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3490 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3491 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3492 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3493 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3494 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3495 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3496 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3497 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3498 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3499 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3500 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3501 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3502 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3503 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3504 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3505 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3506 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3507 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3508 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3509 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3510 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3511 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3512 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3513 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3514 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3515 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3516 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3517 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3518 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3519 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3520 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3521 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3522 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3523 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3524 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3525 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3526 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3527 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3528 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3529 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3530 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3531 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3532 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3533 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
3534 		.rlen	= 496,
3535 		.also_non_np = 1,
3536 		.np	= 2,
3537 		.tap	= { 496 - 16, 16 },
3538 	},
3539 };
3540 
3541 static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
3542 	{ /* Generated with Crypto++ */
3543 		.key	= "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
3544 			  "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
3545 			  "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
3546 		.klen	= 24,
3547 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
3548 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
3549 		.input	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3550 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3551 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3552 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3553 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3554 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3555 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3556 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3557 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3558 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3559 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3560 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3561 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3562 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3563 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3564 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3565 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3566 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3567 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3568 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3569 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3570 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3571 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3572 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3573 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3574 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3575 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3576 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3577 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3578 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3579 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3580 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3581 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3582 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3583 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3584 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3585 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3586 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3587 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3588 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3589 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3590 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3591 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3592 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3593 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3594 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3595 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3596 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3597 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3598 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3599 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3600 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3601 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3602 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3603 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3604 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3605 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3606 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3607 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3608 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3609 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3610 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
3611 		.ilen	= 496,
3612 		.result	= "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
3613 			  "\x19\xCD\x6F\x32\x53\x05\x22\x15"
3614 			  "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
3615 			  "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
3616 			  "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
3617 			  "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
3618 			  "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
3619 			  "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
3620 			  "\x13\x78\xDC\x89\x12\x12\x43\xFA"
3621 			  "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
3622 			  "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
3623 			  "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
3624 			  "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
3625 			  "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
3626 			  "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
3627 			  "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
3628 			  "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
3629 			  "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
3630 			  "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
3631 			  "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
3632 			  "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
3633 			  "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
3634 			  "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
3635 			  "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
3636 			  "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
3637 			  "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
3638 			  "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
3639 			  "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
3640 			  "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
3641 			  "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
3642 			  "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
3643 			  "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
3644 			  "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
3645 			  "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
3646 			  "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
3647 			  "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
3648 			  "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
3649 			  "\x83\x37\x4F\x1F\x48\x30\xED\x04"
3650 			  "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
3651 			  "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
3652 			  "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
3653 			  "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
3654 			  "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
3655 			  "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
3656 			  "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
3657 			  "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
3658 			  "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
3659 			  "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
3660 			  "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
3661 			  "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
3662 			  "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
3663 			  "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
3664 			  "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
3665 			  "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
3666 			  "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
3667 			  "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
3668 			  "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
3669 			  "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
3670 			  "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
3671 			  "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
3672 			  "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
3673 			  "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
3674 		.rlen	= 496,
3675 		.also_non_np = 1,
3676 		.np	= 2,
3677 		.tap	= { 496 - 16, 16 },
3678 	}, { /* Generated with Crypto++ */
3679 		.key	= "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
3680 			  "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
3681 			  "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
3682 		.klen	= 24,
3683 		.iv	= "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
3684 			  "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
3685 		.input	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3686 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3687 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3688 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3689 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3690 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3691 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3692 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3693 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3694 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3695 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3696 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3697 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3698 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3699 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3700 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3701 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3702 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3703 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3704 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3705 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3706 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3707 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3708 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3709 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3710 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3711 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3712 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3713 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3714 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3715 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3716 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3717 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3718 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3719 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3720 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3721 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3722 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3723 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3724 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3725 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3726 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3727 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3728 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3729 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3730 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3731 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3732 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3733 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3734 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3735 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3736 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3737 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3738 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3739 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3740 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3741 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3742 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3743 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3744 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3745 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3746 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
3747 			  "\x2E\xB1\x18",
3748 		.ilen	= 499,
3749 		.result	= "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
3750 			  "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
3751 			  "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
3752 			  "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
3753 			  "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
3754 			  "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
3755 			  "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
3756 			  "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
3757 			  "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
3758 			  "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
3759 			  "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
3760 			  "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
3761 			  "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
3762 			  "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
3763 			  "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
3764 			  "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
3765 			  "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
3766 			  "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
3767 			  "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
3768 			  "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
3769 			  "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
3770 			  "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
3771 			  "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
3772 			  "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
3773 			  "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
3774 			  "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
3775 			  "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
3776 			  "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
3777 			  "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
3778 			  "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
3779 			  "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
3780 			  "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
3781 			  "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
3782 			  "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
3783 			  "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
3784 			  "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
3785 			  "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
3786 			  "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
3787 			  "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
3788 			  "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
3789 			  "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
3790 			  "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
3791 			  "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
3792 			  "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
3793 			  "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
3794 			  "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
3795 			  "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
3796 			  "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
3797 			  "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
3798 			  "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
3799 			  "\x8A\x19\x08\xE1\x08\x48\x59\x51"
3800 			  "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
3801 			  "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
3802 			  "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
3803 			  "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
3804 			  "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
3805 			  "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
3806 			  "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
3807 			  "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
3808 			  "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
3809 			  "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
3810 			  "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
3811 			  "\xF2\x79\xD9",
3812 		.rlen	= 499,
3813 		.also_non_np = 1,
3814 		.np	= 2,
3815 		.tap	= { 499 - 16, 16 },
3816 	},
3817 };
3818 
3819 static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
3820 	{ /* Generated with Crypto++ */
3821 		.key	= "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
3822 			  "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
3823 			  "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
3824 		.klen	= 24,
3825 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
3826 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
3827 		.input	= "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
3828 			  "\x19\xCD\x6F\x32\x53\x05\x22\x15"
3829 			  "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
3830 			  "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
3831 			  "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
3832 			  "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
3833 			  "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
3834 			  "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
3835 			  "\x13\x78\xDC\x89\x12\x12\x43\xFA"
3836 			  "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
3837 			  "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
3838 			  "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
3839 			  "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
3840 			  "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
3841 			  "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
3842 			  "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
3843 			  "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
3844 			  "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
3845 			  "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
3846 			  "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
3847 			  "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
3848 			  "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
3849 			  "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
3850 			  "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
3851 			  "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
3852 			  "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
3853 			  "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
3854 			  "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
3855 			  "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
3856 			  "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
3857 			  "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
3858 			  "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
3859 			  "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
3860 			  "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
3861 			  "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
3862 			  "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
3863 			  "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
3864 			  "\x83\x37\x4F\x1F\x48\x30\xED\x04"
3865 			  "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
3866 			  "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
3867 			  "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
3868 			  "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
3869 			  "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
3870 			  "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
3871 			  "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
3872 			  "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
3873 			  "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
3874 			  "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
3875 			  "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
3876 			  "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
3877 			  "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
3878 			  "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
3879 			  "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
3880 			  "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
3881 			  "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
3882 			  "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
3883 			  "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
3884 			  "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
3885 			  "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
3886 			  "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
3887 			  "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
3888 			  "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
3889 		.ilen	= 496,
3890 		.result	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
3891 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
3892 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
3893 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
3894 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
3895 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
3896 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
3897 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
3898 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
3899 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
3900 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
3901 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
3902 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
3903 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
3904 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
3905 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
3906 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
3907 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
3908 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
3909 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
3910 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
3911 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
3912 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
3913 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
3914 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
3915 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
3916 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
3917 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
3918 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
3919 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
3920 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
3921 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
3922 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
3923 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
3924 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
3925 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
3926 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
3927 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
3928 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
3929 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
3930 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
3931 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
3932 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
3933 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
3934 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
3935 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
3936 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
3937 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
3938 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
3939 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
3940 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
3941 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
3942 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
3943 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
3944 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
3945 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
3946 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
3947 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
3948 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
3949 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
3950 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
3951 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
3952 		.rlen	= 496,
3953 		.also_non_np = 1,
3954 		.np	= 2,
3955 		.tap	= { 496 - 16, 16 },
3956 	}, { /* Generated with Crypto++ */
3957 		.key	= "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
3958 			  "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
3959 			  "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
3960 		.klen	= 24,
3961 		.iv	= "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
3962 			  "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
3963 		.input	= "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
3964 			  "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
3965 			  "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
3966 			  "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
3967 			  "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
3968 			  "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
3969 			  "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
3970 			  "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
3971 			  "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
3972 			  "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
3973 			  "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
3974 			  "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
3975 			  "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
3976 			  "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
3977 			  "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
3978 			  "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
3979 			  "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
3980 			  "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
3981 			  "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
3982 			  "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
3983 			  "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
3984 			  "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
3985 			  "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
3986 			  "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
3987 			  "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
3988 			  "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
3989 			  "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
3990 			  "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
3991 			  "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
3992 			  "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
3993 			  "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
3994 			  "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
3995 			  "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
3996 			  "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
3997 			  "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
3998 			  "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
3999 			  "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
4000 			  "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
4001 			  "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
4002 			  "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
4003 			  "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
4004 			  "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
4005 			  "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
4006 			  "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
4007 			  "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
4008 			  "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
4009 			  "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
4010 			  "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
4011 			  "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
4012 			  "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
4013 			  "\x8A\x19\x08\xE1\x08\x48\x59\x51"
4014 			  "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
4015 			  "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
4016 			  "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
4017 			  "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
4018 			  "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
4019 			  "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
4020 			  "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
4021 			  "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
4022 			  "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
4023 			  "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
4024 			  "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
4025 			  "\xF2\x79\xD9",
4026 		.ilen	= 499,
4027 		.result	= "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
4028 			  "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
4029 			  "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
4030 			  "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
4031 			  "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
4032 			  "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
4033 			  "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
4034 			  "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
4035 			  "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
4036 			  "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
4037 			  "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
4038 			  "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
4039 			  "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
4040 			  "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
4041 			  "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
4042 			  "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
4043 			  "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
4044 			  "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
4045 			  "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
4046 			  "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
4047 			  "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
4048 			  "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
4049 			  "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
4050 			  "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
4051 			  "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
4052 			  "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
4053 			  "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
4054 			  "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
4055 			  "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
4056 			  "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
4057 			  "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
4058 			  "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
4059 			  "\x50\x3B\x82\x15\x99\x60\xCB\x52"
4060 			  "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
4061 			  "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
4062 			  "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
4063 			  "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
4064 			  "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
4065 			  "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
4066 			  "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
4067 			  "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
4068 			  "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
4069 			  "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
4070 			  "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
4071 			  "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
4072 			  "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
4073 			  "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
4074 			  "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
4075 			  "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
4076 			  "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
4077 			  "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
4078 			  "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
4079 			  "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
4080 			  "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
4081 			  "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
4082 			  "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
4083 			  "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
4084 			  "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
4085 			  "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
4086 			  "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
4087 			  "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
4088 			  "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
4089 			  "\x2E\xB1\x18",
4090 		.rlen	= 499,
4091 		.also_non_np = 1,
4092 		.np	= 2,
4093 		.tap	= { 499 - 16, 16 },
4094 	},
4095 };
4096 
4097 /*
4098  * Blowfish test vectors.
4099  */
4100 #define BF_ENC_TEST_VECTORS	7
4101 #define BF_DEC_TEST_VECTORS	7
4102 #define BF_CBC_ENC_TEST_VECTORS	2
4103 #define BF_CBC_DEC_TEST_VECTORS	2
4104 #define BF_CTR_ENC_TEST_VECTORS	2
4105 #define BF_CTR_DEC_TEST_VECTORS	2
4106 
4107 static struct cipher_testvec bf_enc_tv_template[] = {
4108 	{ /* DES test vectors from OpenSSL */
4109 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00",
4110 		.klen	= 8,
4111 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00",
4112 		.ilen	= 8,
4113 		.result	= "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
4114 		.rlen	= 8,
4115 	}, {
4116 		.key	= "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
4117 		.klen	= 8,
4118 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
4119 		.ilen	= 8,
4120 		.result	= "\xa7\x90\x79\x51\x08\xea\x3c\xae",
4121 		.rlen	= 8,
4122 	}, {
4123 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
4124 		.klen	= 8,
4125 		.input	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4126 		.ilen	= 8,
4127 		.result	= "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
4128 		.rlen	= 8,
4129 	}, { /* Vary the keylength... */
4130 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
4131 			  "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
4132 		.klen	= 16,
4133 		.input	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4134 		.ilen	= 8,
4135 		.result	= "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
4136 		.rlen	= 8,
4137 	}, {
4138 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
4139 			  "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
4140 			  "\x00\x11\x22\x33\x44",
4141 		.klen	= 21,
4142 		.input	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4143 		.ilen	= 8,
4144 		.result	= "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
4145 		.rlen	= 8,
4146 	}, { /* Generated with bf488 */
4147 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
4148 			  "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
4149 			  "\x00\x11\x22\x33\x44\x55\x66\x77"
4150 			  "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
4151 			  "\x58\x40\x23\x64\x1a\xba\x61\x76"
4152 			  "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
4153 			  "\xff\xff\xff\xff\xff\xff\xff\xff",
4154 		.klen	= 56,
4155 		.input	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4156 		.ilen	= 8,
4157 		.result	= "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
4158 		.rlen	= 8,
4159 	}, { /* Generated with Crypto++ */
4160 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
4161 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
4162 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
4163 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
4164 		.klen	= 32,
4165 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
4166 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
4167 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
4168 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
4169 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
4170 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
4171 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4172 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4173 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
4174 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
4175 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
4176 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
4177 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
4178 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
4179 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
4180 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
4181 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
4182 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
4183 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
4184 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
4185 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
4186 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
4187 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
4188 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
4189 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
4190 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
4191 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
4192 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
4193 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
4194 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
4195 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
4196 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
4197 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
4198 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
4199 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
4200 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
4201 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
4202 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
4203 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
4204 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
4205 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
4206 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
4207 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
4208 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
4209 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
4210 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
4211 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
4212 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
4213 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
4214 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
4215 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
4216 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
4217 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
4218 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
4219 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
4220 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
4221 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
4222 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
4223 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
4224 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
4225 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
4226 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
4227 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
4228 		.ilen	= 504,
4229 		.result	= "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
4230 			  "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
4231 			  "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
4232 			  "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
4233 			  "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
4234 			  "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
4235 			  "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
4236 			  "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
4237 			  "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
4238 			  "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
4239 			  "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
4240 			  "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
4241 			  "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
4242 			  "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
4243 			  "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
4244 			  "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
4245 			  "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
4246 			  "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
4247 			  "\x47\x82\x98\x23\x33\x36\xBC\x1B"
4248 			  "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
4249 			  "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
4250 			  "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
4251 			  "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
4252 			  "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
4253 			  "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
4254 			  "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
4255 			  "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
4256 			  "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
4257 			  "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
4258 			  "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
4259 			  "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
4260 			  "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
4261 			  "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
4262 			  "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
4263 			  "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
4264 			  "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
4265 			  "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
4266 			  "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
4267 			  "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
4268 			  "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
4269 			  "\x3E\x42\x14\x49\x88\x51\xBF\x68"
4270 			  "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
4271 			  "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
4272 			  "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
4273 			  "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
4274 			  "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
4275 			  "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
4276 			  "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
4277 			  "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
4278 			  "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
4279 			  "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
4280 			  "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
4281 			  "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
4282 			  "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
4283 			  "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
4284 			  "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
4285 			  "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
4286 			  "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
4287 			  "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
4288 			  "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
4289 			  "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
4290 			  "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
4291 			  "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
4292 		.rlen	= 504,
4293 		.also_non_np = 1,
4294 		.np	= 2,
4295 		.tap	= { 504 - 8, 8 },
4296 	},
4297 };
4298 
4299 static struct cipher_testvec bf_dec_tv_template[] = {
4300 	{ /* DES test vectors from OpenSSL */
4301 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00",
4302 		.klen	= 8,
4303 		.input	= "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
4304 		.ilen	= 8,
4305 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00",
4306 		.rlen	= 8,
4307 	}, {
4308 		.key	= "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
4309 		.klen	= 8,
4310 		.input	= "\xa7\x90\x79\x51\x08\xea\x3c\xae",
4311 		.ilen	= 8,
4312 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
4313 		.rlen	= 8,
4314 	}, {
4315 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
4316 		.klen	= 8,
4317 		.input	= "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
4318 		.ilen	= 8,
4319 		.result	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4320 		.rlen	= 8,
4321 	}, { /* Vary the keylength... */
4322 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
4323 			  "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
4324 		.klen	= 16,
4325 		.input	= "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
4326 		.ilen	= 8,
4327 		.result	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4328 		.rlen	= 8,
4329 	}, {
4330 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
4331 			  "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
4332 			  "\x00\x11\x22\x33\x44",
4333 		.klen	= 21,
4334 		.input	= "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
4335 		.ilen	= 8,
4336 		.result	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4337 		.rlen	= 8,
4338 	}, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
4339 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
4340 			  "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
4341 			  "\x00\x11\x22\x33\x44\x55\x66\x77"
4342 			  "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
4343 			  "\x58\x40\x23\x64\x1a\xba\x61\x76"
4344 			  "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
4345 			  "\xff\xff\xff\xff\xff\xff\xff\xff",
4346 		.klen	= 56,
4347 		.input	= "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
4348 		.ilen	= 8,
4349 		.result	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4350 		.rlen	= 8,
4351 	}, { /* Generated with Crypto++ */
4352 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
4353 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
4354 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
4355 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
4356 		.klen	= 32,
4357 		.input	= "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
4358 			  "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
4359 			  "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
4360 			  "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
4361 			  "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
4362 			  "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
4363 			  "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
4364 			  "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
4365 			  "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
4366 			  "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
4367 			  "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
4368 			  "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
4369 			  "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
4370 			  "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
4371 			  "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
4372 			  "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
4373 			  "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
4374 			  "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
4375 			  "\x47\x82\x98\x23\x33\x36\xBC\x1B"
4376 			  "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
4377 			  "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
4378 			  "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
4379 			  "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
4380 			  "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
4381 			  "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
4382 			  "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
4383 			  "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
4384 			  "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
4385 			  "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
4386 			  "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
4387 			  "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
4388 			  "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
4389 			  "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
4390 			  "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
4391 			  "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
4392 			  "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
4393 			  "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
4394 			  "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
4395 			  "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
4396 			  "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
4397 			  "\x3E\x42\x14\x49\x88\x51\xBF\x68"
4398 			  "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
4399 			  "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
4400 			  "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
4401 			  "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
4402 			  "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
4403 			  "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
4404 			  "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
4405 			  "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
4406 			  "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
4407 			  "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
4408 			  "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
4409 			  "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
4410 			  "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
4411 			  "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
4412 			  "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
4413 			  "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
4414 			  "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
4415 			  "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
4416 			  "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
4417 			  "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
4418 			  "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
4419 			  "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
4420 		.ilen	= 504,
4421 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
4422 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
4423 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
4424 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
4425 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
4426 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
4427 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4428 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4429 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
4430 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
4431 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
4432 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
4433 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
4434 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
4435 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
4436 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
4437 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
4438 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
4439 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
4440 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
4441 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
4442 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
4443 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
4444 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
4445 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
4446 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
4447 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
4448 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
4449 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
4450 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
4451 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
4452 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
4453 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
4454 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
4455 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
4456 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
4457 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
4458 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
4459 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
4460 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
4461 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
4462 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
4463 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
4464 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
4465 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
4466 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
4467 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
4468 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
4469 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
4470 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
4471 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
4472 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
4473 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
4474 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
4475 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
4476 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
4477 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
4478 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
4479 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
4480 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
4481 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
4482 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
4483 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
4484 		.rlen	= 504,
4485 		.also_non_np = 1,
4486 		.np	= 2,
4487 		.tap	= { 504 - 8, 8 },
4488 	},
4489 };
4490 
4491 static struct cipher_testvec bf_cbc_enc_tv_template[] = {
4492 	{ /* From OpenSSL */
4493 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
4494 			  "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
4495 		.klen	= 16,
4496 		.iv	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4497 		.input	= "\x37\x36\x35\x34\x33\x32\x31\x20"
4498 			  "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4499 			  "\x68\x65\x20\x74\x69\x6d\x65\x20"
4500 			  "\x66\x6f\x72\x20\x00\x00\x00\x00",
4501 		.ilen	= 32,
4502 		.result	= "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
4503 			  "\x05\xb1\x56\xe2\x74\x03\x97\x93"
4504 			  "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
4505 			  "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
4506 		.rlen	= 32,
4507 	}, { /* Generated with Crypto++ */
4508 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
4509 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
4510 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
4511 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
4512 		.klen	= 32,
4513 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
4514 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
4515 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
4516 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
4517 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
4518 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
4519 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
4520 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4521 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4522 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
4523 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
4524 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
4525 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
4526 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
4527 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
4528 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
4529 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
4530 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
4531 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
4532 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
4533 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
4534 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
4535 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
4536 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
4537 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
4538 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
4539 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
4540 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
4541 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
4542 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
4543 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
4544 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
4545 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
4546 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
4547 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
4548 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
4549 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
4550 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
4551 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
4552 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
4553 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
4554 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
4555 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
4556 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
4557 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
4558 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
4559 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
4560 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
4561 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
4562 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
4563 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
4564 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
4565 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
4566 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
4567 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
4568 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
4569 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
4570 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
4571 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
4572 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
4573 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
4574 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
4575 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
4576 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
4577 		.ilen	= 504,
4578 		.result	= "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
4579 			  "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
4580 			  "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
4581 			  "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
4582 			  "\x01\x9C\x93\x63\x51\x60\x82\xD2"
4583 			  "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
4584 			  "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
4585 			  "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
4586 			  "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
4587 			  "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
4588 			  "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
4589 			  "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
4590 			  "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
4591 			  "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
4592 			  "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
4593 			  "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
4594 			  "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
4595 			  "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
4596 			  "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
4597 			  "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
4598 			  "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
4599 			  "\x65\xFE\x15\x40\xD0\x62\x41\x02"
4600 			  "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
4601 			  "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
4602 			  "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
4603 			  "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
4604 			  "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
4605 			  "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
4606 			  "\x04\xF0\x86\x08\x78\x18\x42\xE0"
4607 			  "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
4608 			  "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
4609 			  "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
4610 			  "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
4611 			  "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
4612 			  "\x97\x18\x92\xFF\x15\x11\xCE\xED"
4613 			  "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
4614 			  "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
4615 			  "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
4616 			  "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
4617 			  "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
4618 			  "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
4619 			  "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
4620 			  "\x43\x12\x73\x77\xDB\x91\x83\x5B"
4621 			  "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
4622 			  "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
4623 			  "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
4624 			  "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
4625 			  "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
4626 			  "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
4627 			  "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
4628 			  "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
4629 			  "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
4630 			  "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
4631 			  "\xC5\xF8\x69\x83\x28\x84\x87\x56"
4632 			  "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
4633 			  "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
4634 			  "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
4635 			  "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
4636 			  "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
4637 			  "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
4638 			  "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
4639 			  "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
4640 			  "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
4641 		.rlen	= 504,
4642 		.also_non_np = 1,
4643 		.np	= 2,
4644 		.tap	= { 504 - 8, 8 },
4645 	},
4646 };
4647 
4648 static struct cipher_testvec bf_cbc_dec_tv_template[] = {
4649 	{ /* From OpenSSL */
4650 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
4651 			  "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
4652 		.klen	= 16,
4653 		.iv	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4654 		.input	= "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
4655 			  "\x05\xb1\x56\xe2\x74\x03\x97\x93"
4656 			  "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
4657 			  "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
4658 		.ilen	= 32,
4659 		.result	= "\x37\x36\x35\x34\x33\x32\x31\x20"
4660 			  "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4661 			  "\x68\x65\x20\x74\x69\x6d\x65\x20"
4662 			  "\x66\x6f\x72\x20\x00\x00\x00\x00",
4663 		.rlen	= 32,
4664 	}, { /* Generated with Crypto++ */
4665 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
4666 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
4667 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
4668 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
4669 		.klen	= 32,
4670 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
4671 		.input	= "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
4672 			  "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
4673 			  "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
4674 			  "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
4675 			  "\x01\x9C\x93\x63\x51\x60\x82\xD2"
4676 			  "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
4677 			  "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
4678 			  "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
4679 			  "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
4680 			  "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
4681 			  "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
4682 			  "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
4683 			  "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
4684 			  "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
4685 			  "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
4686 			  "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
4687 			  "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
4688 			  "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
4689 			  "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
4690 			  "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
4691 			  "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
4692 			  "\x65\xFE\x15\x40\xD0\x62\x41\x02"
4693 			  "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
4694 			  "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
4695 			  "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
4696 			  "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
4697 			  "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
4698 			  "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
4699 			  "\x04\xF0\x86\x08\x78\x18\x42\xE0"
4700 			  "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
4701 			  "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
4702 			  "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
4703 			  "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
4704 			  "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
4705 			  "\x97\x18\x92\xFF\x15\x11\xCE\xED"
4706 			  "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
4707 			  "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
4708 			  "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
4709 			  "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
4710 			  "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
4711 			  "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
4712 			  "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
4713 			  "\x43\x12\x73\x77\xDB\x91\x83\x5B"
4714 			  "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
4715 			  "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
4716 			  "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
4717 			  "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
4718 			  "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
4719 			  "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
4720 			  "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
4721 			  "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
4722 			  "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
4723 			  "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
4724 			  "\xC5\xF8\x69\x83\x28\x84\x87\x56"
4725 			  "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
4726 			  "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
4727 			  "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
4728 			  "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
4729 			  "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
4730 			  "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
4731 			  "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
4732 			  "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
4733 			  "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
4734 		.ilen	= 504,
4735 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
4736 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
4737 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
4738 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
4739 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
4740 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
4741 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4742 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4743 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
4744 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
4745 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
4746 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
4747 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
4748 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
4749 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
4750 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
4751 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
4752 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
4753 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
4754 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
4755 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
4756 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
4757 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
4758 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
4759 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
4760 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
4761 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
4762 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
4763 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
4764 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
4765 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
4766 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
4767 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
4768 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
4769 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
4770 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
4771 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
4772 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
4773 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
4774 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
4775 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
4776 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
4777 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
4778 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
4779 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
4780 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
4781 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
4782 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
4783 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
4784 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
4785 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
4786 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
4787 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
4788 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
4789 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
4790 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
4791 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
4792 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
4793 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
4794 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
4795 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
4796 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
4797 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
4798 		.rlen	= 504,
4799 		.also_non_np = 1,
4800 		.np	= 2,
4801 		.tap	= { 504 - 8, 8 },
4802 	},
4803 };
4804 
4805 static struct cipher_testvec bf_ctr_enc_tv_template[] = {
4806 	{ /* Generated with Crypto++ */
4807 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
4808 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
4809 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
4810 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
4811 		.klen	= 32,
4812 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
4813 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
4814 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
4815 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
4816 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
4817 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
4818 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
4819 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4820 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4821 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
4822 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
4823 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
4824 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
4825 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
4826 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
4827 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
4828 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
4829 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
4830 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
4831 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
4832 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
4833 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
4834 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
4835 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
4836 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
4837 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
4838 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
4839 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
4840 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
4841 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
4842 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
4843 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
4844 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
4845 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
4846 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
4847 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
4848 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
4849 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
4850 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
4851 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
4852 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
4853 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
4854 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
4855 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
4856 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
4857 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
4858 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
4859 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
4860 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
4861 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
4862 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
4863 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
4864 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
4865 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
4866 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
4867 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
4868 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
4869 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
4870 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
4871 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
4872 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
4873 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
4874 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
4875 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
4876 		.ilen	= 504,
4877 		.result	= "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
4878 			  "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
4879 			  "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
4880 			  "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
4881 			  "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
4882 			  "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
4883 			  "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
4884 			  "\x97\xEB\x98\x75\xC4\x73\x45\x83"
4885 			  "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
4886 			  "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
4887 			  "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
4888 			  "\x13\xD2\x96\x68\x69\x10\x67\x0C"
4889 			  "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
4890 			  "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
4891 			  "\x88\x09\x40\x59\xBD\x12\x64\xB5"
4892 			  "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
4893 			  "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
4894 			  "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
4895 			  "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
4896 			  "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
4897 			  "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
4898 			  "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
4899 			  "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
4900 			  "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
4901 			  "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
4902 			  "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
4903 			  "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
4904 			  "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
4905 			  "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
4906 			  "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
4907 			  "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
4908 			  "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
4909 			  "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
4910 			  "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
4911 			  "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
4912 			  "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
4913 			  "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
4914 			  "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
4915 			  "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
4916 			  "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
4917 			  "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
4918 			  "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
4919 			  "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
4920 			  "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
4921 			  "\x82\x63\x11\xB3\x54\x49\x00\x08"
4922 			  "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
4923 			  "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
4924 			  "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
4925 			  "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
4926 			  "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
4927 			  "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
4928 			  "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
4929 			  "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
4930 			  "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
4931 			  "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
4932 			  "\x91\x04\x94\x99\x03\x3B\x42\x6D"
4933 			  "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
4934 			  "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
4935 			  "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
4936 			  "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
4937 			  "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
4938 			  "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
4939 			  "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
4940 		.rlen	= 504,
4941 	}, { /* Generated with Crypto++ */
4942 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
4943 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
4944 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
4945 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
4946 		.klen	= 32,
4947 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
4948 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
4949 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
4950 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
4951 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
4952 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
4953 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
4954 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4955 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4956 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
4957 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
4958 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
4959 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
4960 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
4961 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
4962 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
4963 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
4964 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
4965 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
4966 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
4967 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
4968 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
4969 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
4970 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
4971 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
4972 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
4973 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
4974 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
4975 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
4976 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
4977 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
4978 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
4979 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
4980 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
4981 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
4982 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
4983 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
4984 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
4985 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
4986 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
4987 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
4988 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
4989 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
4990 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
4991 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
4992 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
4993 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
4994 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
4995 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
4996 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
4997 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
4998 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
4999 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5000 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5001 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5002 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5003 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5004 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5005 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5006 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5007 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5008 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5009 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5010 			  "\x2B\xC2\x59\xF0\x64\xFB\x92",
5011 		.ilen	= 503,
5012 		.result	= "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
5013 			  "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
5014 			  "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
5015 			  "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
5016 			  "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
5017 			  "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
5018 			  "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
5019 			  "\x97\xEB\x98\x75\xC4\x73\x45\x83"
5020 			  "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
5021 			  "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
5022 			  "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
5023 			  "\x13\xD2\x96\x68\x69\x10\x67\x0C"
5024 			  "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
5025 			  "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
5026 			  "\x88\x09\x40\x59\xBD\x12\x64\xB5"
5027 			  "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
5028 			  "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
5029 			  "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
5030 			  "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
5031 			  "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
5032 			  "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
5033 			  "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
5034 			  "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
5035 			  "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
5036 			  "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
5037 			  "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
5038 			  "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
5039 			  "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
5040 			  "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
5041 			  "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
5042 			  "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
5043 			  "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
5044 			  "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
5045 			  "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
5046 			  "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
5047 			  "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
5048 			  "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
5049 			  "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
5050 			  "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
5051 			  "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
5052 			  "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
5053 			  "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
5054 			  "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
5055 			  "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
5056 			  "\x82\x63\x11\xB3\x54\x49\x00\x08"
5057 			  "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
5058 			  "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
5059 			  "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
5060 			  "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
5061 			  "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
5062 			  "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
5063 			  "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
5064 			  "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
5065 			  "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
5066 			  "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
5067 			  "\x91\x04\x94\x99\x03\x3B\x42\x6D"
5068 			  "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
5069 			  "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
5070 			  "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
5071 			  "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
5072 			  "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
5073 			  "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
5074 			  "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
5075 		.rlen	= 503,
5076 		.also_non_np = 1,
5077 		.np	= 2,
5078 		.tap	= { 503 - 8, 8 },
5079 	}, { /* Generated with Crypto++ */
5080 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5081 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5082 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5083 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5084 		.klen	= 32,
5085 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5086 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5087 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5088 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5089 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5090 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5091 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5092 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5093 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5094 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5095 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5096 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5097 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5098 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5099 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5100 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5101 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5102 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5103 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5104 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5105 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5106 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5107 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5108 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5109 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5110 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5111 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5112 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5113 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5114 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5115 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5116 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5117 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5118 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5119 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5120 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5121 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5122 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5123 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5124 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5125 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5126 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5127 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5128 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5129 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5130 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5131 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5132 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5133 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5134 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5135 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5136 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5137 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5138 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5139 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5140 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5141 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5142 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5143 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5144 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5145 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5146 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5147 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5148 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5149 		.ilen	= 504,
5150 		.result	= "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
5151 			  "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
5152 			  "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
5153 			  "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
5154 			  "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
5155 			  "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
5156 			  "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
5157 			  "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
5158 			  "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
5159 			  "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
5160 			  "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
5161 			  "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
5162 			  "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
5163 			  "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
5164 			  "\x0B\x82\x59\x14\x26\x67\x08\x09"
5165 			  "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
5166 			  "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
5167 			  "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
5168 			  "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
5169 			  "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
5170 			  "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
5171 			  "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
5172 			  "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
5173 			  "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
5174 			  "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
5175 			  "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
5176 			  "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
5177 			  "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
5178 			  "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
5179 			  "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
5180 			  "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
5181 			  "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
5182 			  "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
5183 			  "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
5184 			  "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
5185 			  "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
5186 			  "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
5187 			  "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
5188 			  "\xB4\x19\xD8\x19\x45\x66\x27\x02"
5189 			  "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
5190 			  "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
5191 			  "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
5192 			  "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
5193 			  "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
5194 			  "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
5195 			  "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
5196 			  "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
5197 			  "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
5198 			  "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
5199 			  "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
5200 			  "\x91\x51\x4E\x71\xF2\x98\x85\x16"
5201 			  "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
5202 			  "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
5203 			  "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
5204 			  "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
5205 			  "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
5206 			  "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
5207 			  "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
5208 			  "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
5209 			  "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
5210 			  "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
5211 			  "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
5212 			  "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
5213 		.rlen	= 504,
5214 	},
5215 };
5216 
5217 static struct cipher_testvec bf_ctr_dec_tv_template[] = {
5218 	{ /* Generated with Crypto++ */
5219 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5220 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5221 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5222 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5223 		.klen	= 32,
5224 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5225 		.input	= "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
5226 			  "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
5227 			  "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
5228 			  "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
5229 			  "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
5230 			  "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
5231 			  "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
5232 			  "\x97\xEB\x98\x75\xC4\x73\x45\x83"
5233 			  "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
5234 			  "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
5235 			  "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
5236 			  "\x13\xD2\x96\x68\x69\x10\x67\x0C"
5237 			  "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
5238 			  "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
5239 			  "\x88\x09\x40\x59\xBD\x12\x64\xB5"
5240 			  "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
5241 			  "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
5242 			  "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
5243 			  "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
5244 			  "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
5245 			  "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
5246 			  "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
5247 			  "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
5248 			  "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
5249 			  "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
5250 			  "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
5251 			  "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
5252 			  "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
5253 			  "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
5254 			  "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
5255 			  "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
5256 			  "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
5257 			  "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
5258 			  "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
5259 			  "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
5260 			  "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
5261 			  "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
5262 			  "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
5263 			  "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
5264 			  "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
5265 			  "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
5266 			  "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
5267 			  "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
5268 			  "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
5269 			  "\x82\x63\x11\xB3\x54\x49\x00\x08"
5270 			  "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
5271 			  "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
5272 			  "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
5273 			  "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
5274 			  "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
5275 			  "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
5276 			  "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
5277 			  "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
5278 			  "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
5279 			  "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
5280 			  "\x91\x04\x94\x99\x03\x3B\x42\x6D"
5281 			  "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
5282 			  "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
5283 			  "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
5284 			  "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
5285 			  "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
5286 			  "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
5287 			  "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
5288 		.ilen	= 504,
5289 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5290 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5291 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5292 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5293 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5294 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5295 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5296 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5297 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5298 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5299 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5300 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5301 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5302 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5303 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5304 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5305 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5306 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5307 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5308 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5309 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5310 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5311 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5312 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5313 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5314 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5315 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5316 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5317 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5318 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5319 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5320 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5321 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5322 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5323 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5324 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5325 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5326 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5327 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5328 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5329 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5330 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5331 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5332 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5333 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5334 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5335 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5336 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5337 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5338 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5339 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5340 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5341 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5342 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5343 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5344 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5345 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5346 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5347 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5348 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5349 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5350 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5351 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5352 		.rlen	= 504,
5353 	}, { /* Generated with Crypto++ */
5354 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5355 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5356 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5357 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5358 		.klen	= 32,
5359 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
5360 		.input	= "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
5361 			  "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
5362 			  "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
5363 			  "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
5364 			  "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
5365 			  "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
5366 			  "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
5367 			  "\x97\xEB\x98\x75\xC4\x73\x45\x83"
5368 			  "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
5369 			  "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
5370 			  "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
5371 			  "\x13\xD2\x96\x68\x69\x10\x67\x0C"
5372 			  "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
5373 			  "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
5374 			  "\x88\x09\x40\x59\xBD\x12\x64\xB5"
5375 			  "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
5376 			  "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
5377 			  "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
5378 			  "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
5379 			  "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
5380 			  "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
5381 			  "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
5382 			  "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
5383 			  "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
5384 			  "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
5385 			  "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
5386 			  "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
5387 			  "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
5388 			  "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
5389 			  "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
5390 			  "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
5391 			  "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
5392 			  "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
5393 			  "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
5394 			  "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
5395 			  "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
5396 			  "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
5397 			  "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
5398 			  "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
5399 			  "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
5400 			  "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
5401 			  "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
5402 			  "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
5403 			  "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
5404 			  "\x82\x63\x11\xB3\x54\x49\x00\x08"
5405 			  "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
5406 			  "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
5407 			  "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
5408 			  "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
5409 			  "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
5410 			  "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
5411 			  "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
5412 			  "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
5413 			  "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
5414 			  "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
5415 			  "\x91\x04\x94\x99\x03\x3B\x42\x6D"
5416 			  "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
5417 			  "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
5418 			  "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
5419 			  "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
5420 			  "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
5421 			  "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
5422 			  "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
5423 		.ilen	= 503,
5424 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5425 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5426 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5427 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5428 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5429 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5430 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5431 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5432 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5433 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5434 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5435 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5436 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5437 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5438 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5439 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5440 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5441 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5442 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5443 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5444 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5445 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5446 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5447 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5448 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5449 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5450 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5451 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5452 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5453 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5454 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5455 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5456 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5457 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5458 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5459 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5460 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5461 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5462 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5463 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5464 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5465 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5466 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5467 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5468 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5469 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5470 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5471 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5472 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5473 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5474 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5475 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5476 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5477 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5478 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5479 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5480 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5481 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5482 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5483 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5484 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5485 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5486 			  "\x2B\xC2\x59\xF0\x64\xFB\x92",
5487 		.rlen	= 503,
5488 		.also_non_np = 1,
5489 		.np	= 2,
5490 		.tap	= { 503 - 8, 8 },
5491 	}, { /* Generated with Crypto++ */
5492 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
5493 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
5494 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
5495 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
5496 		.klen	= 32,
5497 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5498 		.input	= "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
5499 			  "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
5500 			  "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
5501 			  "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
5502 			  "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
5503 			  "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
5504 			  "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
5505 			  "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
5506 			  "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
5507 			  "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
5508 			  "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
5509 			  "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
5510 			  "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
5511 			  "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
5512 			  "\x0B\x82\x59\x14\x26\x67\x08\x09"
5513 			  "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
5514 			  "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
5515 			  "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
5516 			  "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
5517 			  "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
5518 			  "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
5519 			  "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
5520 			  "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
5521 			  "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
5522 			  "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
5523 			  "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
5524 			  "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
5525 			  "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
5526 			  "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
5527 			  "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
5528 			  "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
5529 			  "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
5530 			  "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
5531 			  "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
5532 			  "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
5533 			  "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
5534 			  "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
5535 			  "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
5536 			  "\xB4\x19\xD8\x19\x45\x66\x27\x02"
5537 			  "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
5538 			  "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
5539 			  "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
5540 			  "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
5541 			  "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
5542 			  "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
5543 			  "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
5544 			  "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
5545 			  "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
5546 			  "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
5547 			  "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
5548 			  "\x91\x51\x4E\x71\xF2\x98\x85\x16"
5549 			  "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
5550 			  "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
5551 			  "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
5552 			  "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
5553 			  "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
5554 			  "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
5555 			  "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
5556 			  "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
5557 			  "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
5558 			  "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
5559 			  "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
5560 			  "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
5561 		.ilen	= 504,
5562 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5563 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5564 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5565 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5566 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5567 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5568 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5569 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5570 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5571 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5572 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5573 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5574 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5575 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5576 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5577 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5578 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5579 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5580 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5581 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5582 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5583 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5584 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5585 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5586 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5587 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5588 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5589 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5590 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5591 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5592 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5593 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5594 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5595 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5596 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5597 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5598 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5599 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5600 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5601 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5602 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5603 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5604 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5605 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5606 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5607 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5608 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5609 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5610 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5611 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5612 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5613 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5614 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5615 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5616 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5617 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5618 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5619 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5620 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5621 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5622 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5623 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
5624 			  "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
5625 		.rlen	= 504,
5626 	},
5627 };
5628 
5629 /*
5630  * Twofish test vectors.
5631  */
5632 #define TF_ENC_TEST_VECTORS		4
5633 #define TF_DEC_TEST_VECTORS		4
5634 #define TF_CBC_ENC_TEST_VECTORS		5
5635 #define TF_CBC_DEC_TEST_VECTORS		5
5636 #define TF_CTR_ENC_TEST_VECTORS		2
5637 #define TF_CTR_DEC_TEST_VECTORS		2
5638 #define TF_LRW_ENC_TEST_VECTORS		8
5639 #define TF_LRW_DEC_TEST_VECTORS		8
5640 #define TF_XTS_ENC_TEST_VECTORS		5
5641 #define TF_XTS_DEC_TEST_VECTORS		5
5642 
5643 static struct cipher_testvec tf_enc_tv_template[] = {
5644 	{
5645 		.key	= zeroed_string,
5646 		.klen	= 16,
5647 		.input	= zeroed_string,
5648 		.ilen	= 16,
5649 		.result	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
5650 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
5651 		.rlen	= 16,
5652 	}, {
5653 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
5654 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
5655 			  "\x00\x11\x22\x33\x44\x55\x66\x77",
5656 		.klen	= 24,
5657 		.input	= zeroed_string,
5658 		.ilen	= 16,
5659 		.result	= "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
5660 			  "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
5661 		.rlen	= 16,
5662 	}, {
5663 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
5664 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
5665 			  "\x00\x11\x22\x33\x44\x55\x66\x77"
5666 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
5667 		.klen	= 32,
5668 		.input	= zeroed_string,
5669 		.ilen	= 16,
5670 		.result	= "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
5671 			  "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
5672 		.rlen	= 16,
5673 	}, { /* Generated with Crypto++ */
5674 		.key	= "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
5675 			  "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
5676 			  "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
5677 			  "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
5678 		.klen	= 32,
5679 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5680 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5681 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5682 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5683 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5684 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5685 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5686 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5687 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5688 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5689 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5690 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5691 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5692 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5693 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5694 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5695 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5696 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5697 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5698 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5699 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5700 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5701 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5702 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5703 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5704 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5705 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5706 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5707 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5708 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5709 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5710 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5711 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5712 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5713 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5714 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5715 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5716 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5717 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5718 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5719 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5720 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5721 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5722 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5723 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5724 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5725 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5726 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5727 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5728 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5729 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5730 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5731 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5732 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5733 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5734 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5735 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5736 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5737 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5738 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5739 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5740 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
5741 		.ilen	= 496,
5742 		.result	= "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
5743 			  "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
5744 			  "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
5745 			  "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
5746 			  "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
5747 			  "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
5748 			  "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
5749 			  "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
5750 			  "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
5751 			  "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
5752 			  "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
5753 			  "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
5754 			  "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
5755 			  "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
5756 			  "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
5757 			  "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
5758 			  "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
5759 			  "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
5760 			  "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
5761 			  "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
5762 			  "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
5763 			  "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
5764 			  "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
5765 			  "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
5766 			  "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
5767 			  "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
5768 			  "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
5769 			  "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
5770 			  "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
5771 			  "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
5772 			  "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
5773 			  "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
5774 			  "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
5775 			  "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
5776 			  "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
5777 			  "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
5778 			  "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
5779 			  "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
5780 			  "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
5781 			  "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
5782 			  "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
5783 			  "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
5784 			  "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
5785 			  "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
5786 			  "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
5787 			  "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
5788 			  "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
5789 			  "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
5790 			  "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
5791 			  "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
5792 			  "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
5793 			  "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
5794 			  "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
5795 			  "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
5796 			  "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
5797 			  "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
5798 			  "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
5799 			  "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
5800 			  "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
5801 			  "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
5802 			  "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
5803 			  "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
5804 		.rlen	= 496,
5805 		.also_non_np = 1,
5806 		.np	= 2,
5807 		.tap	= { 496 - 16, 16 },
5808 	},
5809 };
5810 
5811 static struct cipher_testvec tf_dec_tv_template[] = {
5812 	{
5813 		.key	= zeroed_string,
5814 		.klen	= 16,
5815 		.input	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
5816 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
5817 		.ilen	= 16,
5818 		.result	= zeroed_string,
5819 		.rlen	= 16,
5820 	}, {
5821 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
5822 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
5823 			  "\x00\x11\x22\x33\x44\x55\x66\x77",
5824 		.klen	= 24,
5825 		.input	= "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
5826 			  "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
5827 		.ilen	= 16,
5828 		.result	= zeroed_string,
5829 		.rlen	= 16,
5830 	}, {
5831 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
5832 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
5833 			  "\x00\x11\x22\x33\x44\x55\x66\x77"
5834 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
5835 		.klen	= 32,
5836 		.input	= "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
5837 			  "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
5838 		.ilen	= 16,
5839 		.result	= zeroed_string,
5840 		.rlen	= 16,
5841 	}, { /* Generated with Crypto++ */
5842 		.key	= "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
5843 			  "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
5844 			  "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
5845 			  "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
5846 		.klen	= 32,
5847 		.input	= "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
5848 			  "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
5849 			  "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
5850 			  "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
5851 			  "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
5852 			  "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
5853 			  "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
5854 			  "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
5855 			  "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
5856 			  "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
5857 			  "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
5858 			  "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
5859 			  "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
5860 			  "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
5861 			  "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
5862 			  "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
5863 			  "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
5864 			  "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
5865 			  "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
5866 			  "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
5867 			  "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
5868 			  "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
5869 			  "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
5870 			  "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
5871 			  "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
5872 			  "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
5873 			  "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
5874 			  "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
5875 			  "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
5876 			  "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
5877 			  "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
5878 			  "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
5879 			  "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
5880 			  "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
5881 			  "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
5882 			  "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
5883 			  "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
5884 			  "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
5885 			  "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
5886 			  "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
5887 			  "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
5888 			  "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
5889 			  "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
5890 			  "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
5891 			  "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
5892 			  "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
5893 			  "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
5894 			  "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
5895 			  "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
5896 			  "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
5897 			  "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
5898 			  "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
5899 			  "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
5900 			  "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
5901 			  "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
5902 			  "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
5903 			  "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
5904 			  "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
5905 			  "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
5906 			  "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
5907 			  "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
5908 			  "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
5909 		.ilen	= 496,
5910 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
5911 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
5912 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
5913 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
5914 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
5915 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
5916 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
5917 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
5918 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
5919 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
5920 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
5921 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
5922 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
5923 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
5924 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
5925 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
5926 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
5927 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
5928 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
5929 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
5930 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
5931 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
5932 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
5933 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
5934 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
5935 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
5936 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
5937 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
5938 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
5939 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
5940 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
5941 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
5942 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
5943 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
5944 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
5945 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
5946 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
5947 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
5948 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
5949 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
5950 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
5951 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
5952 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
5953 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
5954 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
5955 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
5956 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
5957 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
5958 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
5959 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
5960 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
5961 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
5962 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
5963 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
5964 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
5965 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
5966 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
5967 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
5968 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
5969 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
5970 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
5971 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
5972 		.rlen	= 496,
5973 		.also_non_np = 1,
5974 		.np	= 2,
5975 		.tap	= { 496 - 16, 16 },
5976 	},
5977 };
5978 
5979 static struct cipher_testvec tf_cbc_enc_tv_template[] = {
5980 	{ /* Generated with Nettle */
5981 		.key	= zeroed_string,
5982 		.klen	= 16,
5983 		.iv	= zeroed_string,
5984 		.input	= zeroed_string,
5985 		.ilen	= 16,
5986 		.result	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
5987 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
5988 		.rlen	= 16,
5989 	}, {
5990 		.key	= zeroed_string,
5991 		.klen	= 16,
5992 		.iv	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
5993 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
5994 		.input	= zeroed_string,
5995 		.ilen	= 16,
5996 		.result	= "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
5997 			  "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
5998 		.rlen	= 16,
5999 	}, {
6000 		.key	= zeroed_string,
6001 		.klen	= 16,
6002 		.iv	= "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6003 			  "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
6004 		.input	= zeroed_string,
6005 		.ilen	= 16,
6006 		.result	= "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6007 			  "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6008 		.rlen	= 16,
6009 	}, {
6010 		.key	= zeroed_string,
6011 		.klen	= 16,
6012 		.iv	= zeroed_string,
6013 		.input	= zeroed_string,
6014 		.ilen	= 48,
6015 		.result	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6016 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
6017 			  "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6018 			  "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
6019 			  "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6020 			  "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6021 		.rlen	= 48,
6022 	}, { /* Generated with Crypto++ */
6023 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6024 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6025 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6026 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6027 		.klen	= 32,
6028 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
6029 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
6030 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6031 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6032 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6033 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6034 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6035 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6036 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6037 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6038 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6039 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6040 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6041 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6042 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6043 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6044 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6045 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6046 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6047 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6048 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6049 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6050 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6051 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6052 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6053 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6054 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6055 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6056 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6057 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6058 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6059 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6060 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6061 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6062 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6063 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6064 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6065 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6066 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6067 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6068 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6069 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6070 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6071 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6072 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6073 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6074 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6075 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6076 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6077 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6078 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6079 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6080 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6081 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6082 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6083 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6084 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6085 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6086 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6087 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6088 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6089 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6090 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6091 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6092 		.ilen	= 496,
6093 		.result	= "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
6094 			  "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
6095 			  "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
6096 			  "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
6097 			  "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
6098 			  "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
6099 			  "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
6100 			  "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
6101 			  "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
6102 			  "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
6103 			  "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
6104 			  "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
6105 			  "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
6106 			  "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
6107 			  "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
6108 			  "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
6109 			  "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
6110 			  "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
6111 			  "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
6112 			  "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
6113 			  "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
6114 			  "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
6115 			  "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
6116 			  "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
6117 			  "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
6118 			  "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
6119 			  "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
6120 			  "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
6121 			  "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
6122 			  "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
6123 			  "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
6124 			  "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
6125 			  "\x75\x42\x62\x04\x31\x1F\x95\x7C"
6126 			  "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
6127 			  "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
6128 			  "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
6129 			  "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
6130 			  "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
6131 			  "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
6132 			  "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
6133 			  "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
6134 			  "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
6135 			  "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
6136 			  "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
6137 			  "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
6138 			  "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
6139 			  "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
6140 			  "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
6141 			  "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
6142 			  "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
6143 			  "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
6144 			  "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
6145 			  "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
6146 			  "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
6147 			  "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
6148 			  "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
6149 			  "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
6150 			  "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
6151 			  "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
6152 			  "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
6153 			  "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
6154 			  "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
6155 		.rlen	= 496,
6156 		.also_non_np = 1,
6157 		.np	= 2,
6158 		.tap	= { 496 - 16, 16 },
6159 	},
6160 };
6161 
6162 static struct cipher_testvec tf_cbc_dec_tv_template[] = {
6163 	{ /* Reverse of the first four above */
6164 		.key	= zeroed_string,
6165 		.klen	= 16,
6166 		.iv	= zeroed_string,
6167 		.input	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6168 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6169 		.ilen	= 16,
6170 		.result	= zeroed_string,
6171 		.rlen	= 16,
6172 	}, {
6173 		.key	= zeroed_string,
6174 		.klen	= 16,
6175 		.iv	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6176 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
6177 		.input	= "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6178 			  "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
6179 		.ilen	= 16,
6180 		.result	= zeroed_string,
6181 		.rlen	= 16,
6182 	}, {
6183 		.key	= zeroed_string,
6184 		.klen	= 16,
6185 		.iv	= "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6186 			  "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
6187 		.input	= "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6188 			  "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6189 		.ilen	= 16,
6190 		.result	= zeroed_string,
6191 		.rlen	= 16,
6192 	}, {
6193 		.key	= zeroed_string,
6194 		.klen	= 16,
6195 		.iv	= zeroed_string,
6196 		.input	= "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
6197 			  "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
6198 			  "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
6199 			  "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
6200 			  "\x05\xef\x8c\x61\xa8\x11\x58\x26"
6201 			  "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
6202 		.ilen	= 48,
6203 		.result	= zeroed_string,
6204 		.rlen	= 48,
6205 	}, { /* Generated with Crypto++ */
6206 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6207 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6208 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6209 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6210 		.klen	= 32,
6211 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
6212 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
6213 		.input	= "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
6214 			  "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
6215 			  "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
6216 			  "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
6217 			  "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
6218 			  "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
6219 			  "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
6220 			  "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
6221 			  "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
6222 			  "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
6223 			  "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
6224 			  "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
6225 			  "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
6226 			  "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
6227 			  "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
6228 			  "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
6229 			  "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
6230 			  "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
6231 			  "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
6232 			  "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
6233 			  "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
6234 			  "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
6235 			  "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
6236 			  "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
6237 			  "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
6238 			  "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
6239 			  "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
6240 			  "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
6241 			  "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
6242 			  "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
6243 			  "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
6244 			  "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
6245 			  "\x75\x42\x62\x04\x31\x1F\x95\x7C"
6246 			  "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
6247 			  "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
6248 			  "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
6249 			  "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
6250 			  "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
6251 			  "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
6252 			  "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
6253 			  "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
6254 			  "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
6255 			  "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
6256 			  "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
6257 			  "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
6258 			  "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
6259 			  "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
6260 			  "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
6261 			  "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
6262 			  "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
6263 			  "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
6264 			  "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
6265 			  "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
6266 			  "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
6267 			  "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
6268 			  "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
6269 			  "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
6270 			  "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
6271 			  "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
6272 			  "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
6273 			  "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
6274 			  "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
6275 		.ilen	= 496,
6276 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6277 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6278 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6279 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6280 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6281 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6282 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6283 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6284 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6285 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6286 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6287 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6288 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6289 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6290 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6291 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6292 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6293 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6294 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6295 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6296 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6297 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6298 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6299 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6300 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6301 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6302 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6303 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6304 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6305 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6306 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6307 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6308 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6309 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6310 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6311 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6312 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6313 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6314 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6315 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6316 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6317 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6318 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6319 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6320 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6321 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6322 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6323 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6324 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6325 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6326 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6327 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6328 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6329 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6330 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6331 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6332 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6333 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6334 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6335 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6336 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6337 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6338 		.rlen	= 496,
6339 		.also_non_np = 1,
6340 		.np	= 2,
6341 		.tap	= { 496 - 16, 16 },
6342 	},
6343 };
6344 
6345 static struct cipher_testvec tf_ctr_enc_tv_template[] = {
6346 	{ /* Generated with Crypto++ */
6347 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6348 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6349 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6350 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6351 		.klen	= 32,
6352 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
6353 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
6354 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6355 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6356 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6357 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6358 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6359 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6360 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6361 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6362 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6363 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6364 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6365 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6366 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6367 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6368 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6369 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6370 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6371 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6372 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6373 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6374 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6375 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6376 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6377 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6378 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6379 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6380 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6381 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6382 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6383 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6384 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6385 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6386 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6387 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6388 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6389 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6390 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6391 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6392 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6393 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6394 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6395 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6396 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6397 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6398 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6399 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6400 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6401 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6402 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6403 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6404 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6405 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6406 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6407 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6408 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6409 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6410 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6411 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6412 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6413 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6414 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6415 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6416 		.ilen	= 496,
6417 		.result	= "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
6418 			  "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
6419 			  "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
6420 			  "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
6421 			  "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
6422 			  "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
6423 			  "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
6424 			  "\x01\x41\x21\x12\x38\xAB\x52\x4F"
6425 			  "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
6426 			  "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
6427 			  "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
6428 			  "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
6429 			  "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
6430 			  "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
6431 			  "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
6432 			  "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
6433 			  "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
6434 			  "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
6435 			  "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
6436 			  "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
6437 			  "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
6438 			  "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
6439 			  "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
6440 			  "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
6441 			  "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
6442 			  "\x23\x61\x48\xEA\x80\x04\x27\xAA"
6443 			  "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
6444 			  "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
6445 			  "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
6446 			  "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
6447 			  "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
6448 			  "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
6449 			  "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
6450 			  "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
6451 			  "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
6452 			  "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
6453 			  "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
6454 			  "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
6455 			  "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
6456 			  "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
6457 			  "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
6458 			  "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
6459 			  "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
6460 			  "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
6461 			  "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
6462 			  "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
6463 			  "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
6464 			  "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
6465 			  "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
6466 			  "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
6467 			  "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
6468 			  "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
6469 			  "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
6470 			  "\x11\xE9\x43\x83\x76\xAA\x53\x37"
6471 			  "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
6472 			  "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
6473 			  "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
6474 			  "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
6475 			  "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
6476 			  "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
6477 			  "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
6478 			  "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
6479 		.rlen	= 496,
6480 	}, { /* Generated with Crypto++ */
6481 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6482 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6483 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6484 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6485 		.klen	= 32,
6486 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6487 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6488 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6489 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6490 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6491 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6492 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6493 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6494 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6495 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6496 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6497 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6498 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6499 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6500 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6501 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6502 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6503 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6504 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6505 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6506 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6507 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6508 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6509 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6510 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6511 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6512 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6513 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6514 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6515 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6516 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6517 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6518 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6519 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6520 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6521 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6522 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6523 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6524 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6525 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6526 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6527 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6528 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6529 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6530 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6531 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6532 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6533 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6534 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6535 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6536 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6537 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6538 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6539 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6540 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6541 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6542 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6543 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6544 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6545 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6546 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6547 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6548 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6549 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6550 		.ilen	= 496,
6551 		.result	= "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
6552 			  "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
6553 			  "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
6554 			  "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
6555 			  "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
6556 			  "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
6557 			  "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
6558 			  "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
6559 			  "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
6560 			  "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
6561 			  "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
6562 			  "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
6563 			  "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
6564 			  "\x39\x18\x09\xA4\x82\x59\x78\xE7"
6565 			  "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
6566 			  "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
6567 			  "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
6568 			  "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
6569 			  "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
6570 			  "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
6571 			  "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
6572 			  "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
6573 			  "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
6574 			  "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
6575 			  "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
6576 			  "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
6577 			  "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
6578 			  "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
6579 			  "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
6580 			  "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
6581 			  "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
6582 			  "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
6583 			  "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
6584 			  "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
6585 			  "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
6586 			  "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
6587 			  "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
6588 			  "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
6589 			  "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
6590 			  "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
6591 			  "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
6592 			  "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
6593 			  "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
6594 			  "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
6595 			  "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
6596 			  "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
6597 			  "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
6598 			  "\xDE\x55\x1B\x50\x14\x53\x44\x17"
6599 			  "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
6600 			  "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
6601 			  "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
6602 			  "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
6603 			  "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
6604 			  "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
6605 			  "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
6606 			  "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
6607 			  "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
6608 			  "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
6609 			  "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
6610 			  "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
6611 			  "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
6612 			  "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
6613 		.rlen	= 496,
6614 	}, { /* Generated with Crypto++ */
6615 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6616 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6617 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6618 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6619 		.klen	= 32,
6620 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
6621 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
6622 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6623 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6624 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6625 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6626 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6627 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6628 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6629 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6630 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6631 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6632 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6633 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6634 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6635 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6636 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6637 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6638 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6639 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6640 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6641 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6642 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6643 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6644 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6645 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6646 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6647 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6648 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6649 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6650 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6651 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6652 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6653 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6654 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6655 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6656 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6657 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6658 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6659 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6660 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6661 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6662 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6663 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6664 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6665 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6666 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6667 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6668 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6669 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6670 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6671 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6672 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6673 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6674 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6675 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6676 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6677 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6678 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6679 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6680 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6681 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6682 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6683 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6684 			  "\x2B\xC2\x59",
6685 		.ilen	= 499,
6686 		.result	= "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
6687 			  "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
6688 			  "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
6689 			  "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
6690 			  "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
6691 			  "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
6692 			  "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
6693 			  "\x01\x41\x21\x12\x38\xAB\x52\x4F"
6694 			  "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
6695 			  "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
6696 			  "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
6697 			  "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
6698 			  "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
6699 			  "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
6700 			  "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
6701 			  "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
6702 			  "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
6703 			  "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
6704 			  "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
6705 			  "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
6706 			  "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
6707 			  "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
6708 			  "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
6709 			  "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
6710 			  "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
6711 			  "\x23\x61\x48\xEA\x80\x04\x27\xAA"
6712 			  "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
6713 			  "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
6714 			  "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
6715 			  "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
6716 			  "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
6717 			  "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
6718 			  "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
6719 			  "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
6720 			  "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
6721 			  "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
6722 			  "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
6723 			  "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
6724 			  "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
6725 			  "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
6726 			  "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
6727 			  "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
6728 			  "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
6729 			  "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
6730 			  "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
6731 			  "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
6732 			  "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
6733 			  "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
6734 			  "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
6735 			  "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
6736 			  "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
6737 			  "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
6738 			  "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
6739 			  "\x11\xE9\x43\x83\x76\xAA\x53\x37"
6740 			  "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
6741 			  "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
6742 			  "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
6743 			  "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
6744 			  "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
6745 			  "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
6746 			  "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
6747 			  "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
6748 			  "\x6C\x82\x9D",
6749 		.rlen	= 499,
6750 		.also_non_np = 1,
6751 		.np	= 2,
6752 		.tap	= { 499 - 16, 16 },
6753 	},
6754 };
6755 
6756 static struct cipher_testvec tf_ctr_dec_tv_template[] = {
6757 	{ /* Generated with Crypto++ */
6758 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6759 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6760 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6761 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6762 		.klen	= 32,
6763 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
6764 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
6765 		.input	= "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
6766 			  "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
6767 			  "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
6768 			  "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
6769 			  "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
6770 			  "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
6771 			  "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
6772 			  "\x01\x41\x21\x12\x38\xAB\x52\x4F"
6773 			  "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
6774 			  "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
6775 			  "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
6776 			  "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
6777 			  "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
6778 			  "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
6779 			  "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
6780 			  "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
6781 			  "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
6782 			  "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
6783 			  "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
6784 			  "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
6785 			  "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
6786 			  "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
6787 			  "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
6788 			  "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
6789 			  "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
6790 			  "\x23\x61\x48\xEA\x80\x04\x27\xAA"
6791 			  "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
6792 			  "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
6793 			  "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
6794 			  "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
6795 			  "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
6796 			  "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
6797 			  "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
6798 			  "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
6799 			  "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
6800 			  "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
6801 			  "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
6802 			  "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
6803 			  "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
6804 			  "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
6805 			  "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
6806 			  "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
6807 			  "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
6808 			  "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
6809 			  "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
6810 			  "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
6811 			  "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
6812 			  "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
6813 			  "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
6814 			  "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
6815 			  "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
6816 			  "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
6817 			  "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
6818 			  "\x11\xE9\x43\x83\x76\xAA\x53\x37"
6819 			  "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
6820 			  "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
6821 			  "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
6822 			  "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
6823 			  "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
6824 			  "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
6825 			  "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
6826 			  "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
6827 		.ilen	= 496,
6828 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6829 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6830 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6831 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6832 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6833 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6834 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6835 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6836 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6837 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6838 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6839 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6840 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6841 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6842 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6843 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6844 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6845 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6846 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6847 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6848 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6849 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6850 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6851 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6852 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6853 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6854 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6855 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6856 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6857 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6858 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6859 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6860 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6861 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6862 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6863 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6864 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6865 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6866 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6867 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6868 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6869 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6870 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6871 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6872 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6873 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6874 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6875 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6876 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6877 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6878 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6879 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6880 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6881 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6882 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6883 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6884 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6885 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6886 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6887 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6888 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6889 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
6890 		.rlen	= 496,
6891 	}, { /* Generated with Crypto++ */
6892 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6893 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6894 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6895 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6896 		.klen	= 32,
6897 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6898 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6899 		.input	= "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
6900 			  "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
6901 			  "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
6902 			  "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
6903 			  "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
6904 			  "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
6905 			  "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
6906 			  "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
6907 			  "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
6908 			  "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
6909 			  "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
6910 			  "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
6911 			  "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
6912 			  "\x39\x18\x09\xA4\x82\x59\x78\xE7"
6913 			  "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
6914 			  "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
6915 			  "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
6916 			  "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
6917 			  "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
6918 			  "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
6919 			  "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
6920 			  "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
6921 			  "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
6922 			  "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
6923 			  "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
6924 			  "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
6925 			  "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
6926 			  "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
6927 			  "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
6928 			  "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
6929 			  "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
6930 			  "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
6931 			  "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
6932 			  "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
6933 			  "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
6934 			  "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
6935 			  "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
6936 			  "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
6937 			  "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
6938 			  "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
6939 			  "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
6940 			  "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
6941 			  "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
6942 			  "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
6943 			  "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
6944 			  "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
6945 			  "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
6946 			  "\xDE\x55\x1B\x50\x14\x53\x44\x17"
6947 			  "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
6948 			  "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
6949 			  "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
6950 			  "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
6951 			  "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
6952 			  "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
6953 			  "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
6954 			  "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
6955 			  "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
6956 			  "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
6957 			  "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
6958 			  "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
6959 			  "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
6960 			  "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
6961 		.ilen	= 496,
6962 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6963 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6964 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6965 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6966 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6967 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6968 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6969 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6970 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6971 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6972 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6973 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6974 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6975 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6976 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6977 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6978 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6979 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6980 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6981 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6982 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6983 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6984 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6985 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6986 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6987 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6988 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6989 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6990 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6991 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6992 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6993 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6994 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6995 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6996 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6997 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6998 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6999 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7000 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7001 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7002 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7003 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7004 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7005 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7006 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7007 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7008 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7009 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7010 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7011 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7012 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7013 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7014 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7015 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7016 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7017 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7018 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7019 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7020 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7021 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7022 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7023 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7024 		.rlen	= 496,
7025 	}, { /* Generated with Crypto++ */
7026 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7027 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7028 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7029 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7030 		.klen	= 32,
7031 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7032 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7033 		.input	= "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7034 			  "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7035 			  "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7036 			  "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7037 			  "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7038 			  "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7039 			  "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7040 			  "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7041 			  "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7042 			  "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7043 			  "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7044 			  "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7045 			  "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7046 			  "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7047 			  "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7048 			  "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7049 			  "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7050 			  "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7051 			  "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7052 			  "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7053 			  "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7054 			  "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7055 			  "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7056 			  "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7057 			  "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7058 			  "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7059 			  "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7060 			  "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7061 			  "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7062 			  "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7063 			  "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7064 			  "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7065 			  "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7066 			  "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7067 			  "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7068 			  "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7069 			  "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7070 			  "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7071 			  "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7072 			  "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7073 			  "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7074 			  "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7075 			  "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7076 			  "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7077 			  "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7078 			  "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7079 			  "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7080 			  "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7081 			  "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7082 			  "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7083 			  "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7084 			  "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7085 			  "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7086 			  "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7087 			  "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7088 			  "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7089 			  "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7090 			  "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7091 			  "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7092 			  "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7093 			  "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7094 			  "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
7095 			  "\x6C\x82\x9D",
7096 		.ilen	= 499,
7097 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7098 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7099 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7100 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7101 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7102 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7103 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7104 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7105 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7106 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7107 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7108 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7109 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7110 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7111 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7112 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7113 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7114 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7115 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7116 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7117 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7118 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7119 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7120 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7121 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7122 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7123 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7124 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7125 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7126 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7127 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7128 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7129 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7130 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7131 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7132 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7133 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7134 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7135 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7136 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7137 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7138 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7139 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7140 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7141 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7142 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7143 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7144 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7145 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7146 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7147 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7148 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7149 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7150 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7151 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7152 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7153 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7154 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7155 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7156 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7157 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7158 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7159 			  "\x2B\xC2\x59",
7160 		.rlen	= 499,
7161 		.also_non_np = 1,
7162 		.np	= 2,
7163 		.tap	= { 499 - 16, 16 },
7164 	},
7165 };
7166 
7167 static struct cipher_testvec tf_lrw_enc_tv_template[] = {
7168 	/* Generated from AES-LRW test vectors */
7169 	{
7170 		.key	= "\x45\x62\xac\x25\xf8\x28\x17\x6d"
7171 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
7172 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
7173 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
7174 		.klen	= 32,
7175 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7176 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7177 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7178 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7179 		.ilen	= 16,
7180 		.result	= "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
7181 			  "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
7182 		.rlen	= 16,
7183 	}, {
7184 		.key	= "\x59\x70\x47\x14\xf5\x57\x47\x8c"
7185 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
7186 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
7187 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
7188 		.klen	= 32,
7189 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7190 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
7191 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7192 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7193 		.ilen	= 16,
7194 		.result	= "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
7195 			  "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
7196 		.rlen	= 16,
7197 	}, {
7198 		.key	= "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
7199 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
7200 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
7201 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
7202 		.klen	= 32,
7203 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7204 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
7205 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7206 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7207 		.ilen	= 16,
7208 		.result	= "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
7209 			  "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
7210 		.rlen	= 16,
7211 	}, {
7212 		.key	= "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
7213 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
7214 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
7215 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
7216 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
7217 		.klen	= 40,
7218 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7219 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7220 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7221 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7222 		.ilen	= 16,
7223 		.result	= "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
7224 			  "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
7225 		.rlen	= 16,
7226 	}, {
7227 		.key	= "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
7228 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
7229 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
7230 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
7231 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
7232 		.klen	= 40,
7233 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7234 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
7235 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7236 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7237 		.ilen	= 16,
7238 		.result	= "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
7239 			  "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
7240 		.rlen	= 16,
7241 	}, {
7242 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
7243 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
7244 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
7245 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
7246 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
7247 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
7248 		.klen	= 48,
7249 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7250 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7251 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7252 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7253 		.ilen	= 16,
7254 		.result	= "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
7255 			  "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
7256 		.rlen	= 16,
7257 	}, {
7258 		.key	= "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
7259 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
7260 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
7261 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
7262 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
7263 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
7264 		.klen	= 48,
7265 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7266 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
7267 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7268 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7269 		.ilen	= 16,
7270 		.result	= "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
7271 			  "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
7272 		.rlen	= 16,
7273 	}, {
7274 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
7275 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
7276 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
7277 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
7278 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
7279 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
7280 		.klen	= 48,
7281 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7282 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7283 		.input	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
7284 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
7285 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
7286 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
7287 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
7288 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
7289 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
7290 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
7291 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
7292 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
7293 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
7294 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
7295 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
7296 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
7297 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
7298 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
7299 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
7300 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
7301 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
7302 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
7303 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
7304 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
7305 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
7306 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
7307 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
7308 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
7309 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
7310 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
7311 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
7312 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
7313 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
7314 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
7315 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
7316 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
7317 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
7318 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
7319 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
7320 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
7321 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
7322 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
7323 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
7324 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
7325 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
7326 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
7327 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
7328 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
7329 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
7330 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
7331 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
7332 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
7333 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
7334 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
7335 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
7336 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
7337 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
7338 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
7339 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
7340 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
7341 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
7342 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
7343 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
7344 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
7345 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
7346 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
7347 		.ilen	= 512,
7348 		.result	= "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
7349 			  "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
7350 			  "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
7351 			  "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
7352 			  "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
7353 			  "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
7354 			  "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
7355 			  "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
7356 			  "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
7357 			  "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
7358 			  "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
7359 			  "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
7360 			  "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
7361 			  "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
7362 			  "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
7363 			  "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
7364 			  "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
7365 			  "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
7366 			  "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
7367 			  "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
7368 			  "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
7369 			  "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
7370 			  "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
7371 			  "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
7372 			  "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
7373 			  "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
7374 			  "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
7375 			  "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
7376 			  "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
7377 			  "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
7378 			  "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
7379 			  "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
7380 			  "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
7381 			  "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
7382 			  "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
7383 			  "\x3e\xae\x71\x90\x07\x70\x1c\x38"
7384 			  "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
7385 			  "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
7386 			  "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
7387 			  "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
7388 			  "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
7389 			  "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
7390 			  "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
7391 			  "\x93\x51\x1d\x3d\x62\x59\x83\x82"
7392 			  "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
7393 			  "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
7394 			  "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
7395 			  "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
7396 			  "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
7397 			  "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
7398 			  "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
7399 			  "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
7400 			  "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
7401 			  "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
7402 			  "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
7403 			  "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
7404 			  "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
7405 			  "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
7406 			  "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
7407 			  "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
7408 			  "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
7409 			  "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
7410 			  "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
7411 			  "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
7412 		.rlen	= 512,
7413 		.also_non_np = 1,
7414 		.np	= 2,
7415 		.tap	= { 512 - 16, 16 },
7416 	},
7417 };
7418 
7419 static struct cipher_testvec tf_lrw_dec_tv_template[] = {
7420 	/* Generated from AES-LRW test vectors */
7421 	/* same as enc vectors with input and result reversed */
7422 	{
7423 		.key	= "\x45\x62\xac\x25\xf8\x28\x17\x6d"
7424 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
7425 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
7426 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
7427 		.klen	= 32,
7428 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7429 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7430 		.input	= "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
7431 			  "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
7432 		.ilen	= 16,
7433 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7434 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7435 		.rlen	= 16,
7436 	}, {
7437 		.key	= "\x59\x70\x47\x14\xf5\x57\x47\x8c"
7438 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
7439 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
7440 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
7441 		.klen	= 32,
7442 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7443 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
7444 		.input	= "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
7445 			  "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
7446 		.ilen	= 16,
7447 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7448 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7449 		.rlen	= 16,
7450 	}, {
7451 		.key	= "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
7452 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
7453 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
7454 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
7455 		.klen	= 32,
7456 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7457 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
7458 		.input	= "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
7459 			  "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
7460 		.ilen	= 16,
7461 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7462 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7463 		.rlen	= 16,
7464 	}, {
7465 		.key	= "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
7466 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
7467 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
7468 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
7469 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
7470 		.klen	= 40,
7471 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7472 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7473 		.input	= "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
7474 			  "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
7475 		.ilen	= 16,
7476 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7477 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7478 		.rlen	= 16,
7479 	}, {
7480 		.key	= "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
7481 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
7482 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
7483 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
7484 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
7485 		.klen	= 40,
7486 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7487 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
7488 		.input	= "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
7489 			  "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
7490 		.ilen	= 16,
7491 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7492 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7493 		.rlen	= 16,
7494 	}, {
7495 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
7496 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
7497 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
7498 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
7499 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
7500 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
7501 		.klen	= 48,
7502 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7503 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7504 		.input	= "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
7505 			  "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
7506 		.ilen	= 16,
7507 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7508 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7509 		.rlen	= 16,
7510 	}, {
7511 		.key	= "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
7512 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
7513 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
7514 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
7515 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
7516 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
7517 		.klen	= 48,
7518 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7519 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
7520 		.input	= "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
7521 			  "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
7522 		.ilen	= 16,
7523 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
7524 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
7525 		.rlen	= 16,
7526 	}, {
7527 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
7528 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
7529 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
7530 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
7531 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
7532 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
7533 		.klen	= 48,
7534 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7535 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
7536 		.input	= "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
7537 			  "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
7538 			  "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
7539 			  "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
7540 			  "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
7541 			  "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
7542 			  "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
7543 			  "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
7544 			  "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
7545 			  "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
7546 			  "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
7547 			  "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
7548 			  "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
7549 			  "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
7550 			  "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
7551 			  "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
7552 			  "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
7553 			  "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
7554 			  "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
7555 			  "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
7556 			  "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
7557 			  "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
7558 			  "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
7559 			  "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
7560 			  "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
7561 			  "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
7562 			  "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
7563 			  "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
7564 			  "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
7565 			  "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
7566 			  "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
7567 			  "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
7568 			  "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
7569 			  "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
7570 			  "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
7571 			  "\x3e\xae\x71\x90\x07\x70\x1c\x38"
7572 			  "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
7573 			  "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
7574 			  "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
7575 			  "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
7576 			  "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
7577 			  "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
7578 			  "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
7579 			  "\x93\x51\x1d\x3d\x62\x59\x83\x82"
7580 			  "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
7581 			  "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
7582 			  "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
7583 			  "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
7584 			  "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
7585 			  "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
7586 			  "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
7587 			  "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
7588 			  "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
7589 			  "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
7590 			  "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
7591 			  "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
7592 			  "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
7593 			  "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
7594 			  "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
7595 			  "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
7596 			  "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
7597 			  "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
7598 			  "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
7599 			  "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
7600 		.ilen	= 512,
7601 		.result	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
7602 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
7603 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
7604 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
7605 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
7606 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
7607 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
7608 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
7609 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
7610 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
7611 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
7612 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
7613 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
7614 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
7615 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
7616 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
7617 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
7618 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
7619 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
7620 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
7621 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
7622 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
7623 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
7624 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
7625 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
7626 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
7627 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
7628 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
7629 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
7630 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
7631 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
7632 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
7633 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
7634 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
7635 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
7636 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
7637 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
7638 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
7639 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
7640 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
7641 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
7642 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
7643 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
7644 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
7645 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
7646 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
7647 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
7648 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
7649 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
7650 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
7651 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
7652 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
7653 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
7654 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
7655 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
7656 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
7657 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
7658 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
7659 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
7660 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
7661 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
7662 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
7663 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
7664 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
7665 		.rlen	= 512,
7666 		.also_non_np = 1,
7667 		.np	= 2,
7668 		.tap	= { 512 - 16, 16 },
7669 	},
7670 };
7671 
7672 static struct cipher_testvec tf_xts_enc_tv_template[] = {
7673 	/* Generated from AES-XTS test vectors */
7674 {
7675 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7676 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
7677 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
7678 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
7679 		.klen	= 32,
7680 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7681 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
7682 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7683 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
7684 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
7685 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
7686 		.ilen	= 32,
7687 		.result	= "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
7688 			  "\x30\x74\xe4\x44\x52\x77\x97\x43"
7689 			  "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
7690 			  "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
7691 		.rlen	= 32,
7692 	}, {
7693 		.key	= "\x11\x11\x11\x11\x11\x11\x11\x11"
7694 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
7695 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
7696 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
7697 		.klen	= 32,
7698 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
7699 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
7700 		.input	= "\x44\x44\x44\x44\x44\x44\x44\x44"
7701 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
7702 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
7703 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
7704 		.ilen	= 32,
7705 		.result	= "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
7706 			  "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
7707 			  "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
7708 			  "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
7709 		.rlen	= 32,
7710 	}, {
7711 		.key	= "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
7712 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
7713 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
7714 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
7715 		.klen	= 32,
7716 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
7717 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
7718 		.input	= "\x44\x44\x44\x44\x44\x44\x44\x44"
7719 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
7720 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
7721 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
7722 		.ilen	= 32,
7723 		.result	= "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
7724 			  "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
7725 			  "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
7726 			  "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
7727 		.rlen	= 32,
7728 	}, {
7729 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
7730 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
7731 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
7732 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
7733 		.klen	= 32,
7734 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
7735 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
7736 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
7737 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
7738 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
7739 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
7740 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
7741 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
7742 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
7743 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
7744 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
7745 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
7746 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
7747 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
7748 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
7749 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
7750 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
7751 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
7752 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
7753 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
7754 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
7755 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
7756 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
7757 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
7758 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
7759 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
7760 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
7761 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
7762 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
7763 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
7764 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
7765 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
7766 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
7767 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
7768 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
7769 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
7770 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
7771 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
7772 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
7773 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
7774 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
7775 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
7776 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
7777 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
7778 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
7779 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
7780 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
7781 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
7782 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
7783 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
7784 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
7785 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
7786 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
7787 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
7788 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
7789 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
7790 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
7791 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
7792 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
7793 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
7794 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
7795 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
7796 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
7797 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
7798 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
7799 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
7800 		.ilen	= 512,
7801 		.result	= "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
7802 			  "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
7803 			  "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
7804 			  "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
7805 			  "\xea\x35\x35\x8c\xb2\x46\x61\x06"
7806 			  "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
7807 			  "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
7808 			  "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
7809 			  "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
7810 			  "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
7811 			  "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
7812 			  "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
7813 			  "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
7814 			  "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
7815 			  "\x01\x73\x68\x32\x25\x19\xfa\xfb"
7816 			  "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
7817 			  "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
7818 			  "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
7819 			  "\x39\x80\x39\x09\x97\x65\xf2\x83"
7820 			  "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
7821 			  "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
7822 			  "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
7823 			  "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
7824 			  "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
7825 			  "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
7826 			  "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
7827 			  "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
7828 			  "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
7829 			  "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
7830 			  "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
7831 			  "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
7832 			  "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
7833 			  "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
7834 			  "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
7835 			  "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
7836 			  "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
7837 			  "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
7838 			  "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
7839 			  "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
7840 			  "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
7841 			  "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
7842 			  "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
7843 			  "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
7844 			  "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
7845 			  "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
7846 			  "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
7847 			  "\x04\x39\x73\x32\xb2\x86\x79\xe7"
7848 			  "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
7849 			  "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
7850 			  "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
7851 			  "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
7852 			  "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
7853 			  "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
7854 			  "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
7855 			  "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
7856 			  "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
7857 			  "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
7858 			  "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
7859 			  "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
7860 			  "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
7861 			  "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
7862 			  "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
7863 			  "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
7864 			  "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
7865 		.rlen	= 512,
7866 	}, {
7867 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
7868 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
7869 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
7870 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
7871 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
7872 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
7873 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
7874 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
7875 		.klen	= 64,
7876 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
7877 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
7878 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
7879 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
7880 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
7881 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
7882 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
7883 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
7884 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
7885 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
7886 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
7887 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
7888 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
7889 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
7890 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
7891 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
7892 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
7893 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
7894 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
7895 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
7896 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
7897 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
7898 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
7899 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
7900 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
7901 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
7902 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
7903 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
7904 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
7905 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
7906 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
7907 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
7908 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
7909 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
7910 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
7911 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
7912 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
7913 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
7914 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
7915 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
7916 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
7917 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
7918 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
7919 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
7920 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
7921 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
7922 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
7923 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
7924 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
7925 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
7926 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
7927 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
7928 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
7929 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
7930 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
7931 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
7932 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
7933 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
7934 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
7935 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
7936 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
7937 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
7938 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
7939 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
7940 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
7941 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
7942 		.ilen	= 512,
7943 		.result	= "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
7944 			  "\x35\x39\x71\x88\x76\x1e\xc9\xea"
7945 			  "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
7946 			  "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
7947 			  "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
7948 			  "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
7949 			  "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
7950 			  "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
7951 			  "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
7952 			  "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
7953 			  "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
7954 			  "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
7955 			  "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
7956 			  "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
7957 			  "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
7958 			  "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
7959 			  "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
7960 			  "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
7961 			  "\x69\x35\x61\x86\xf8\x86\xb9\x89"
7962 			  "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
7963 			  "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
7964 			  "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
7965 			  "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
7966 			  "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
7967 			  "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
7968 			  "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
7969 			  "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
7970 			  "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
7971 			  "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
7972 			  "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
7973 			  "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
7974 			  "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
7975 			  "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
7976 			  "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
7977 			  "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
7978 			  "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
7979 			  "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
7980 			  "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
7981 			  "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
7982 			  "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
7983 			  "\xad\x12\x32\x31\x03\xf7\x21\xbe"
7984 			  "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
7985 			  "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
7986 			  "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
7987 			  "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
7988 			  "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
7989 			  "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
7990 			  "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
7991 			  "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
7992 			  "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
7993 			  "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
7994 			  "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
7995 			  "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
7996 			  "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
7997 			  "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
7998 			  "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
7999 			  "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8000 			  "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8001 			  "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8002 			  "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8003 			  "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8004 			  "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8005 			  "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8006 			  "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
8007 		.rlen	= 512,
8008 		.also_non_np = 1,
8009 		.np	= 2,
8010 		.tap	= { 512 - 16, 16 },
8011 	},
8012 };
8013 
8014 static struct cipher_testvec tf_xts_dec_tv_template[] = {
8015 	/* Generated from AES-XTS test vectors */
8016 	/* same as enc vectors with input and result reversed */
8017 	{
8018 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
8019 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
8020 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
8021 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8022 		.klen	= 32,
8023 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
8024 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8025 		.input	= "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8026 			  "\x30\x74\xe4\x44\x52\x77\x97\x43"
8027 			  "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8028 			  "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8029 		.ilen	= 32,
8030 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00"
8031 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
8032 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
8033 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8034 		.rlen	= 32,
8035 	}, {
8036 		.key	= "\x11\x11\x11\x11\x11\x11\x11\x11"
8037 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
8038 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
8039 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
8040 		.klen	= 32,
8041 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
8042 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8043 		.input	= "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8044 			  "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8045 			  "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8046 			  "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8047 		.ilen	= 32,
8048 		.result	= "\x44\x44\x44\x44\x44\x44\x44\x44"
8049 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
8050 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
8051 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
8052 		.rlen	= 32,
8053 	}, {
8054 		.key	= "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8055 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8056 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
8057 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
8058 		.klen	= 32,
8059 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
8060 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8061 		.input	= "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
8062 			  "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8063 			  "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8064 			  "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
8065 		.ilen	= 32,
8066 		.result	= "\x44\x44\x44\x44\x44\x44\x44\x44"
8067 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
8068 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
8069 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
8070 		.rlen	= 32,
8071 	}, {
8072 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
8073 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
8074 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
8075 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
8076 		.klen	= 32,
8077 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
8078 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8079 		.input	= "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
8080 			  "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8081 			  "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8082 			  "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8083 			  "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8084 			  "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8085 			  "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8086 			  "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8087 			  "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8088 			  "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8089 			  "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8090 			  "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8091 			  "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8092 			  "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8093 			  "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8094 			  "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8095 			  "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8096 			  "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8097 			  "\x39\x80\x39\x09\x97\x65\xf2\x83"
8098 			  "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8099 			  "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8100 			  "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8101 			  "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8102 			  "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8103 			  "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8104 			  "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8105 			  "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8106 			  "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8107 			  "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8108 			  "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
8109 			  "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
8110 			  "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
8111 			  "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
8112 			  "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
8113 			  "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
8114 			  "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
8115 			  "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
8116 			  "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
8117 			  "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
8118 			  "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
8119 			  "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
8120 			  "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
8121 			  "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
8122 			  "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
8123 			  "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
8124 			  "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
8125 			  "\x04\x39\x73\x32\xb2\x86\x79\xe7"
8126 			  "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
8127 			  "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
8128 			  "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
8129 			  "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
8130 			  "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
8131 			  "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
8132 			  "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
8133 			  "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
8134 			  "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
8135 			  "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
8136 			  "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
8137 			  "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
8138 			  "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
8139 			  "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
8140 			  "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
8141 			  "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
8142 			  "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
8143 		.ilen	= 512,
8144 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8145 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8146 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
8147 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8148 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
8149 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8150 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
8151 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8152 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
8153 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8154 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
8155 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8156 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
8157 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8158 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
8159 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8160 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
8161 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8162 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
8163 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8164 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8165 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8166 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8167 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8168 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8169 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8170 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8171 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8172 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8173 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8174 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8175 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8176 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
8177 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8178 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
8179 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8180 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
8181 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8182 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
8183 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8184 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
8185 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8186 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
8187 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8188 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
8189 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8190 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
8191 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8192 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
8193 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8194 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
8195 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8196 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8197 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8198 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8199 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8200 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8201 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8202 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8203 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8204 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8205 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8206 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8207 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8208 		.rlen	= 512,
8209 	}, {
8210 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
8211 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
8212 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
8213 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
8214 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
8215 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
8216 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
8217 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
8218 		.klen	= 64,
8219 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
8220 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8221 		.input	= "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
8222 			  "\x35\x39\x71\x88\x76\x1e\xc9\xea"
8223 			  "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
8224 			  "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
8225 			  "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
8226 			  "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
8227 			  "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
8228 			  "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
8229 			  "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
8230 			  "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
8231 			  "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
8232 			  "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
8233 			  "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
8234 			  "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
8235 			  "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
8236 			  "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
8237 			  "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
8238 			  "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
8239 			  "\x69\x35\x61\x86\xf8\x86\xb9\x89"
8240 			  "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
8241 			  "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
8242 			  "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
8243 			  "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
8244 			  "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
8245 			  "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
8246 			  "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
8247 			  "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
8248 			  "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
8249 			  "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
8250 			  "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
8251 			  "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
8252 			  "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
8253 			  "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
8254 			  "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
8255 			  "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
8256 			  "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
8257 			  "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
8258 			  "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
8259 			  "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
8260 			  "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
8261 			  "\xad\x12\x32\x31\x03\xf7\x21\xbe"
8262 			  "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
8263 			  "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
8264 			  "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
8265 			  "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
8266 			  "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
8267 			  "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
8268 			  "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
8269 			  "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
8270 			  "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
8271 			  "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
8272 			  "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
8273 			  "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
8274 			  "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
8275 			  "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
8276 			  "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
8277 			  "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8278 			  "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8279 			  "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8280 			  "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8281 			  "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8282 			  "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8283 			  "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8284 			  "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
8285 		.ilen	= 512,
8286 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8287 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8288 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
8289 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8290 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
8291 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8292 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
8293 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8294 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
8295 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8296 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
8297 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8298 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
8299 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8300 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
8301 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8302 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
8303 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8304 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
8305 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8306 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8307 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8308 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8309 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8310 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8311 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8312 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8313 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8314 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8315 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8316 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8317 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8318 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
8319 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8320 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
8321 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8322 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
8323 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8324 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
8325 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8326 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
8327 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8328 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
8329 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8330 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
8331 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8332 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
8333 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8334 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
8335 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8336 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
8337 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8338 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8339 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8340 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8341 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8342 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8343 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8344 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8345 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8346 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8347 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8348 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8349 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8350 		.rlen	= 512,
8351 		.also_non_np = 1,
8352 		.np	= 2,
8353 		.tap	= { 512 - 16, 16 },
8354 	},
8355 };
8356 
8357 /*
8358  * Serpent test vectors.  These are backwards because Serpent writes
8359  * octet sequences in right-to-left mode.
8360  */
8361 #define SERPENT_ENC_TEST_VECTORS	5
8362 #define SERPENT_DEC_TEST_VECTORS	5
8363 
8364 #define TNEPRES_ENC_TEST_VECTORS	4
8365 #define TNEPRES_DEC_TEST_VECTORS	4
8366 
8367 #define SERPENT_CBC_ENC_TEST_VECTORS	1
8368 #define SERPENT_CBC_DEC_TEST_VECTORS	1
8369 
8370 #define SERPENT_CTR_ENC_TEST_VECTORS	2
8371 #define SERPENT_CTR_DEC_TEST_VECTORS	2
8372 
8373 #define SERPENT_LRW_ENC_TEST_VECTORS	8
8374 #define SERPENT_LRW_DEC_TEST_VECTORS	8
8375 
8376 #define SERPENT_XTS_ENC_TEST_VECTORS	5
8377 #define SERPENT_XTS_DEC_TEST_VECTORS	5
8378 
8379 static struct cipher_testvec serpent_enc_tv_template[] = {
8380 	{
8381 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8382 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8383 		.ilen	= 16,
8384 		.result	= "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
8385 			  "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
8386 		.rlen	= 16,
8387 	}, {
8388 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8389 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8390 		.klen	= 16,
8391 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8392 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8393 		.ilen	= 16,
8394 		.result	= "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
8395 			  "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
8396 		.rlen	= 16,
8397 	}, {
8398 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8399 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8400 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
8401 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8402 		.klen	= 32,
8403 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8404 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8405 		.ilen	= 16,
8406 		.result	= "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
8407 			  "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
8408 		.rlen	= 16,
8409 	}, {
8410 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8411 		.klen	= 16,
8412 		.input	= zeroed_string,
8413 		.ilen	= 16,
8414 		.result	= "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
8415 			  "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
8416 		.rlen	= 16,
8417 	}, { /* Generated with Crypto++ */
8418 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8419 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8420 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8421 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8422 		.klen	= 32,
8423 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8424 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8425 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8426 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8427 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8428 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8429 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8430 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8431 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8432 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8433 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8434 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8435 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8436 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8437 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8438 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8439 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8440 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8441 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8442 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8443 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8444 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8445 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8446 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8447 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8448 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8449 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8450 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8451 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8452 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8453 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8454 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8455 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8456 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8457 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8458 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8459 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8460 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8461 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8462 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8463 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8464 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8465 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8466 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8467 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8468 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8469 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8470 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8471 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8472 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8473 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8474 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8475 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8476 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8477 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8478 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8479 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8480 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8481 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8482 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8483 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8484 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8485 		.ilen	= 496,
8486 		.result	= "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
8487 			  "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
8488 			  "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
8489 			  "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
8490 			  "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
8491 			  "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
8492 			  "\x99\x34\x89\x5B\x54\xE9\x12\x13"
8493 			  "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
8494 			  "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
8495 			  "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
8496 			  "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
8497 			  "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
8498 			  "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
8499 			  "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
8500 			  "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
8501 			  "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
8502 			  "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
8503 			  "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
8504 			  "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
8505 			  "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
8506 			  "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
8507 			  "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
8508 			  "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
8509 			  "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
8510 			  "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
8511 			  "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
8512 			  "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
8513 			  "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
8514 			  "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
8515 			  "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
8516 			  "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
8517 			  "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
8518 			  "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
8519 			  "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
8520 			  "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
8521 			  "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
8522 			  "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
8523 			  "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
8524 			  "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
8525 			  "\x87\x70\x14\xD0\x01\x57\xCB\x42"
8526 			  "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
8527 			  "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
8528 			  "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
8529 			  "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
8530 			  "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
8531 			  "\x71\x80\x05\x35\x3F\x40\x0B\x21"
8532 			  "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
8533 			  "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
8534 			  "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
8535 			  "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
8536 			  "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
8537 			  "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
8538 			  "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
8539 			  "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
8540 			  "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
8541 			  "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
8542 			  "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
8543 			  "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
8544 			  "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
8545 			  "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
8546 			  "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
8547 			  "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
8548 		.rlen	= 496,
8549 		.also_non_np = 1,
8550 		.np	= 2,
8551 		.tap	= { 496 - 16, 16 },
8552 	},
8553 };
8554 
8555 static struct cipher_testvec tnepres_enc_tv_template[] = {
8556 	{ /* KeySize=128, PT=0, I=1 */
8557 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
8558 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8559 		.key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8560 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8561 		.klen   = 16,
8562 		.ilen	= 16,
8563 		.result	= "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
8564 			  "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
8565 		.rlen	= 16,
8566 	}, { /* KeySize=192, PT=0, I=1 */
8567 		.key	= "\x80\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	= 24,
8571 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
8572 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8573 		.ilen	= 16,
8574 		.result	= "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
8575 			  "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
8576 		.rlen	= 16,
8577 	}, { /* KeySize=256, PT=0, I=1 */
8578 		.key	= "\x80\x00\x00\x00\x00\x00\x00\x00"
8579 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
8580 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
8581 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8582 		.klen	= 32,
8583 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
8584 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
8585 		.ilen	= 16,
8586 		.result	= "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
8587 			  "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
8588 		.rlen	= 16,
8589 	}, { /* KeySize=256, I=257 */
8590 		.key	= "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
8591 			  "\x17\x16\x15\x14\x13\x12\x11\x10"
8592 			  "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
8593 			  "\x07\x06\x05\x04\x03\x02\x01\x00",
8594 		.klen	= 32,
8595 		.input	= "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
8596 			  "\x07\x06\x05\x04\x03\x02\x01\x00",
8597 		.ilen	= 16,
8598 		.result	= "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
8599 			  "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
8600 		.rlen	= 16,
8601 	},
8602 };
8603 
8604 
8605 static struct cipher_testvec serpent_dec_tv_template[] = {
8606 	{
8607 		.input	= "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
8608 			  "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
8609 		.ilen	= 16,
8610 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8611 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8612 		.rlen	= 16,
8613 	}, {
8614 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8615 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8616 		.klen	= 16,
8617 		.input	= "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
8618 			  "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
8619 		.ilen	= 16,
8620 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8621 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8622 		.rlen	= 16,
8623 	}, {
8624 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8625 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8626 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
8627 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8628 		.klen	= 32,
8629 		.input	= "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
8630 			  "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
8631 		.ilen	= 16,
8632 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8633 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8634 		.rlen	= 16,
8635 	}, {
8636 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8637 		.klen	= 16,
8638 		.input	= "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
8639 			  "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
8640 		.ilen	= 16,
8641 		.result	= zeroed_string,
8642 		.rlen	= 16,
8643 	}, { /* Generated with Crypto++ */
8644 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8645 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8646 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8647 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8648 		.klen	= 32,
8649 		.input	= "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
8650 			  "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
8651 			  "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
8652 			  "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
8653 			  "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
8654 			  "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
8655 			  "\x99\x34\x89\x5B\x54\xE9\x12\x13"
8656 			  "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
8657 			  "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
8658 			  "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
8659 			  "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
8660 			  "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
8661 			  "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
8662 			  "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
8663 			  "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
8664 			  "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
8665 			  "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
8666 			  "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
8667 			  "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
8668 			  "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
8669 			  "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
8670 			  "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
8671 			  "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
8672 			  "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
8673 			  "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
8674 			  "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
8675 			  "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
8676 			  "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
8677 			  "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
8678 			  "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
8679 			  "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
8680 			  "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
8681 			  "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
8682 			  "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
8683 			  "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
8684 			  "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
8685 			  "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
8686 			  "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
8687 			  "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
8688 			  "\x87\x70\x14\xD0\x01\x57\xCB\x42"
8689 			  "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
8690 			  "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
8691 			  "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
8692 			  "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
8693 			  "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
8694 			  "\x71\x80\x05\x35\x3F\x40\x0B\x21"
8695 			  "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
8696 			  "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
8697 			  "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
8698 			  "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
8699 			  "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
8700 			  "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
8701 			  "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
8702 			  "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
8703 			  "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
8704 			  "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
8705 			  "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
8706 			  "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
8707 			  "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
8708 			  "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
8709 			  "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
8710 			  "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
8711 		.ilen	= 496,
8712 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8713 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8714 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8715 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8716 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8717 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8718 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8719 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8720 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8721 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8722 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8723 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8724 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8725 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8726 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8727 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8728 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8729 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8730 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8731 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8732 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8733 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8734 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8735 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8736 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8737 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8738 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8739 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8740 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8741 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8742 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8743 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8744 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8745 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8746 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8747 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8748 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8749 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8750 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8751 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8752 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8753 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8754 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8755 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8756 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8757 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8758 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8759 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8760 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8761 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8762 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8763 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8764 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8765 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8766 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8767 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8768 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8769 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8770 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8771 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8772 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8773 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8774 		.rlen	= 496,
8775 		.also_non_np = 1,
8776 		.np	= 2,
8777 		.tap	= { 496 - 16, 16 },
8778 	},
8779 };
8780 
8781 static struct cipher_testvec tnepres_dec_tv_template[] = {
8782 	{
8783 		.input	= "\x41\xcc\x6b\x31\x59\x31\x45\x97"
8784 			  "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
8785 		.ilen	= 16,
8786 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8787 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8788 		.rlen	= 16,
8789 	}, {
8790 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8791 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8792 		.klen	= 16,
8793 		.input	= "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
8794 			  "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
8795 		.ilen	= 16,
8796 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8797 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8798 		.rlen	= 16,
8799 	}, {
8800 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8801 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8802 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
8803 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8804 		.klen	= 32,
8805 		.input	= "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
8806 			  "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
8807 		.ilen	= 16,
8808 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
8809 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8810 		.rlen	= 16,
8811 	}, { /* KeySize=128, I=121 */
8812 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8813 		.klen	= 16,
8814 		.input	= "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
8815 			  "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
8816 		.ilen	= 16,
8817 		.result	= zeroed_string,
8818 		.rlen	= 16,
8819 	},
8820 };
8821 
8822 static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
8823 	{ /* Generated with Crypto++ */
8824 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8825 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8826 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8827 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8828 		.klen	= 32,
8829 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8830 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8831 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8832 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8833 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8834 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8835 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8836 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8837 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8838 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8839 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8840 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8841 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8842 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8843 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8844 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8845 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8846 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8847 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8848 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8849 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8850 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8851 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8852 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8853 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8854 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8855 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8856 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8857 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8858 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8859 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8860 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8861 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8862 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8863 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8864 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8865 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8866 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8867 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8868 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8869 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8870 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8871 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8872 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8873 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8874 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8875 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8876 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8877 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8878 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8879 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8880 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8881 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8882 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8883 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8884 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8885 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8886 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8887 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8888 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8889 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8890 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8891 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8892 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8893 		.ilen	= 496,
8894 		.result	= "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
8895 			  "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
8896 			  "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
8897 			  "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
8898 			  "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
8899 			  "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
8900 			  "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
8901 			  "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
8902 			  "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
8903 			  "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
8904 			  "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
8905 			  "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
8906 			  "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
8907 			  "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
8908 			  "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
8909 			  "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
8910 			  "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
8911 			  "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
8912 			  "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
8913 			  "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
8914 			  "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
8915 			  "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
8916 			  "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
8917 			  "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
8918 			  "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
8919 			  "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
8920 			  "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
8921 			  "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
8922 			  "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
8923 			  "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
8924 			  "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
8925 			  "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
8926 			  "\x81\x92\x66\x67\x15\x1E\x39\x98"
8927 			  "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
8928 			  "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
8929 			  "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
8930 			  "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
8931 			  "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
8932 			  "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
8933 			  "\x04\x05\x46\xD3\x90\x0F\x64\x64"
8934 			  "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
8935 			  "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
8936 			  "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
8937 			  "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
8938 			  "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
8939 			  "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
8940 			  "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
8941 			  "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
8942 			  "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
8943 			  "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
8944 			  "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
8945 			  "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
8946 			  "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
8947 			  "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
8948 			  "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
8949 			  "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
8950 			  "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
8951 			  "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
8952 			  "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
8953 			  "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
8954 			  "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
8955 			  "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
8956 		.rlen	= 496,
8957 		.also_non_np = 1,
8958 		.np	= 2,
8959 		.tap	= { 496 - 16, 16 },
8960 	},
8961 };
8962 
8963 static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
8964 	{ /* Generated with Crypto++ */
8965 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8966 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8967 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8968 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8969 		.klen	= 32,
8970 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8971 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8972 		.input	= "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
8973 			  "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
8974 			  "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
8975 			  "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
8976 			  "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
8977 			  "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
8978 			  "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
8979 			  "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
8980 			  "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
8981 			  "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
8982 			  "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
8983 			  "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
8984 			  "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
8985 			  "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
8986 			  "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
8987 			  "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
8988 			  "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
8989 			  "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
8990 			  "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
8991 			  "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
8992 			  "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
8993 			  "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
8994 			  "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
8995 			  "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
8996 			  "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
8997 			  "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
8998 			  "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
8999 			  "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9000 			  "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9001 			  "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9002 			  "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9003 			  "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9004 			  "\x81\x92\x66\x67\x15\x1E\x39\x98"
9005 			  "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9006 			  "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9007 			  "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9008 			  "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9009 			  "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9010 			  "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9011 			  "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9012 			  "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9013 			  "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9014 			  "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9015 			  "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9016 			  "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9017 			  "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9018 			  "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9019 			  "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9020 			  "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9021 			  "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9022 			  "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9023 			  "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9024 			  "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9025 			  "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9026 			  "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9027 			  "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9028 			  "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9029 			  "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9030 			  "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9031 			  "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9032 			  "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9033 			  "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9034 		.ilen	= 496,
9035 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9036 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9037 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9038 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9039 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9040 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9041 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9042 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9043 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9044 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9045 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9046 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9047 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9048 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9049 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9050 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9051 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9052 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9053 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9054 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9055 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9056 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9057 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9058 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9059 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9060 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9061 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9062 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9063 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9064 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9065 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9066 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9067 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9068 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9069 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9070 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9071 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9072 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9073 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9074 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9075 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9076 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9077 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9078 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9079 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9080 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9081 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9082 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9083 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9084 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9085 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9086 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9087 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9088 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9089 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9090 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9091 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9092 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9093 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9094 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9095 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9096 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9097 		.rlen	= 496,
9098 		.also_non_np = 1,
9099 		.np	= 2,
9100 		.tap	= { 496 - 16, 16 },
9101 	},
9102 };
9103 
9104 static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
9105 	{ /* Generated with Crypto++ */
9106 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9107 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9108 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9109 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9110 		.klen	= 32,
9111 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9112 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9113 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9114 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9115 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9116 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9117 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9118 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9119 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9120 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9121 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9122 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9123 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9124 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9125 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9126 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9127 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9128 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9129 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9130 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9131 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9132 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9133 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9134 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9135 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9136 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9137 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9138 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9139 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9140 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9141 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9142 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9143 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9144 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9145 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9146 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9147 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9148 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9149 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9150 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9151 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9152 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9153 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9154 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9155 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9156 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9157 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9158 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9159 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9160 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9161 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9162 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9163 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9164 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9165 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9166 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9167 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9168 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9169 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9170 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9171 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9172 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9173 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9174 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9175 		.ilen	= 496,
9176 		.result	= "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9177 			  "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9178 			  "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9179 			  "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9180 			  "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9181 			  "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9182 			  "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9183 			  "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9184 			  "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9185 			  "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9186 			  "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9187 			  "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9188 			  "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9189 			  "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9190 			  "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9191 			  "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9192 			  "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9193 			  "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9194 			  "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9195 			  "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9196 			  "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9197 			  "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9198 			  "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9199 			  "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9200 			  "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9201 			  "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9202 			  "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9203 			  "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9204 			  "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9205 			  "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9206 			  "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9207 			  "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9208 			  "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9209 			  "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9210 			  "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9211 			  "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9212 			  "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9213 			  "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9214 			  "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9215 			  "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9216 			  "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9217 			  "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9218 			  "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9219 			  "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9220 			  "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9221 			  "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9222 			  "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9223 			  "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9224 			  "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9225 			  "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9226 			  "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9227 			  "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9228 			  "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9229 			  "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9230 			  "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9231 			  "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9232 			  "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9233 			  "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9234 			  "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9235 			  "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9236 			  "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9237 			  "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
9238 		.rlen	= 496,
9239 	}, { /* Generated with Crypto++ */
9240 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9241 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9242 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9243 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9244 		.klen	= 32,
9245 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9246 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9247 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9248 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9249 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9250 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9251 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9252 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9253 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9254 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9255 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9256 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9257 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9258 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9259 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9260 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9261 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9262 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9263 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9264 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9265 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9266 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9267 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9268 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9269 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9270 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9271 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9272 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9273 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9274 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9275 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9276 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9277 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9278 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9279 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9280 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9281 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9282 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9283 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9284 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9285 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9286 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9287 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9288 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9289 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9290 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9291 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9292 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9293 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9294 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9295 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9296 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9297 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9298 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9299 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9300 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9301 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9302 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9303 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9304 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9305 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9306 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9307 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9308 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9309 			  "\x2B\xC2\x59",
9310 		.ilen	= 499,
9311 		.result	= "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9312 			  "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9313 			  "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9314 			  "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9315 			  "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9316 			  "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9317 			  "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9318 			  "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9319 			  "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9320 			  "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9321 			  "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9322 			  "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9323 			  "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9324 			  "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9325 			  "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9326 			  "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9327 			  "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9328 			  "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9329 			  "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9330 			  "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9331 			  "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9332 			  "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9333 			  "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9334 			  "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9335 			  "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9336 			  "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9337 			  "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9338 			  "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9339 			  "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9340 			  "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9341 			  "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9342 			  "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9343 			  "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9344 			  "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9345 			  "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9346 			  "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9347 			  "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9348 			  "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9349 			  "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9350 			  "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9351 			  "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9352 			  "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9353 			  "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9354 			  "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9355 			  "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9356 			  "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9357 			  "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9358 			  "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9359 			  "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9360 			  "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9361 			  "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9362 			  "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9363 			  "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9364 			  "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9365 			  "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9366 			  "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9367 			  "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9368 			  "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9369 			  "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9370 			  "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9371 			  "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9372 			  "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
9373 			  "\x38\xE2\xE5",
9374 		.rlen	= 499,
9375 		.also_non_np = 1,
9376 		.np	= 2,
9377 		.tap	= { 499 - 16, 16 },
9378 	}, { /* Generated with Crypto++ */
9379 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9380 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9381 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9382 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9383 		.klen	= 32,
9384 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9385 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9386 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9387 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9388 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9389 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9390 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9391 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9392 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9393 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9394 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9395 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9396 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9397 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9398 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9399 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9400 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9401 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9402 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9403 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9404 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9405 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9406 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9407 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9408 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9409 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9410 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9411 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9412 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9413 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9414 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9415 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9416 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9417 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9418 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9419 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9420 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9421 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9422 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9423 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9424 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9425 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9426 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9427 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9428 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9429 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9430 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9431 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9432 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9433 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9434 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9435 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9436 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9437 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9438 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9439 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9440 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9441 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9442 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9443 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9444 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9445 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9446 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9447 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9448 		.ilen	= 496,
9449 		.result	= "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
9450 			  "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
9451 			  "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
9452 			  "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
9453 			  "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
9454 			  "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
9455 			  "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
9456 			  "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
9457 			  "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
9458 			  "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
9459 			  "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
9460 			  "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
9461 			  "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
9462 			  "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
9463 			  "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
9464 			  "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
9465 			  "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
9466 			  "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
9467 			  "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
9468 			  "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
9469 			  "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
9470 			  "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
9471 			  "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
9472 			  "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
9473 			  "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
9474 			  "\x29\x5E\x01\x47\x13\x32\x78\xBE"
9475 			  "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
9476 			  "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
9477 			  "\x38\x35\x11\x26\x4A\xB4\x06\x32"
9478 			  "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
9479 			  "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
9480 			  "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
9481 			  "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
9482 			  "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
9483 			  "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
9484 			  "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
9485 			  "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
9486 			  "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
9487 			  "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
9488 			  "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
9489 			  "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
9490 			  "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
9491 			  "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
9492 			  "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
9493 			  "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
9494 			  "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
9495 			  "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
9496 			  "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
9497 			  "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
9498 			  "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
9499 			  "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
9500 			  "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
9501 			  "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
9502 			  "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
9503 			  "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
9504 			  "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
9505 			  "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
9506 			  "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
9507 			  "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
9508 			  "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
9509 			  "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
9510 			  "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
9511 		.rlen	= 496,
9512 	},
9513 };
9514 
9515 static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
9516 	{ /* Generated with Crypto++ */
9517 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9518 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9519 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9520 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9521 		.klen	= 32,
9522 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9523 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9524 		.input	= "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9525 			  "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9526 			  "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9527 			  "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9528 			  "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9529 			  "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9530 			  "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9531 			  "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9532 			  "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9533 			  "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9534 			  "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9535 			  "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9536 			  "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9537 			  "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9538 			  "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9539 			  "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9540 			  "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9541 			  "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9542 			  "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9543 			  "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9544 			  "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9545 			  "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9546 			  "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9547 			  "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9548 			  "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9549 			  "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9550 			  "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9551 			  "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9552 			  "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9553 			  "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9554 			  "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9555 			  "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9556 			  "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9557 			  "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9558 			  "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9559 			  "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9560 			  "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9561 			  "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9562 			  "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9563 			  "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9564 			  "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9565 			  "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9566 			  "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9567 			  "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9568 			  "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9569 			  "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9570 			  "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9571 			  "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9572 			  "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9573 			  "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9574 			  "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9575 			  "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9576 			  "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9577 			  "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9578 			  "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9579 			  "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9580 			  "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9581 			  "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9582 			  "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9583 			  "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9584 			  "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9585 			  "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
9586 		.ilen	= 496,
9587 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9588 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9589 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9590 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9591 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9592 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9593 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9594 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9595 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9596 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9597 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9598 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9599 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9600 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9601 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9602 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9603 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9604 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9605 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9606 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9607 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9608 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9609 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9610 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9611 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9612 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9613 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9614 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9615 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9616 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9617 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9618 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9619 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9620 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9621 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9622 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9623 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9624 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9625 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9626 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9627 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9628 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9629 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9630 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9631 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9632 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9633 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9634 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9635 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9636 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9637 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9638 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9639 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9640 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9641 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9642 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9643 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9644 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9645 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9646 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9647 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9648 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9649 		.rlen	= 496,
9650 	}, { /* Generated with Crypto++ */
9651 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9652 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9653 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9654 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9655 		.klen	= 32,
9656 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9657 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9658 		.input	= "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9659 			  "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9660 			  "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9661 			  "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9662 			  "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9663 			  "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9664 			  "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9665 			  "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9666 			  "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9667 			  "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9668 			  "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9669 			  "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9670 			  "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9671 			  "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9672 			  "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9673 			  "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9674 			  "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9675 			  "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9676 			  "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9677 			  "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9678 			  "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9679 			  "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9680 			  "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9681 			  "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9682 			  "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9683 			  "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9684 			  "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9685 			  "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9686 			  "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9687 			  "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9688 			  "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9689 			  "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9690 			  "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9691 			  "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9692 			  "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9693 			  "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9694 			  "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9695 			  "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9696 			  "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9697 			  "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9698 			  "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9699 			  "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9700 			  "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9701 			  "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9702 			  "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9703 			  "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9704 			  "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9705 			  "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9706 			  "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9707 			  "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9708 			  "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9709 			  "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9710 			  "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9711 			  "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9712 			  "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9713 			  "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9714 			  "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9715 			  "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9716 			  "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9717 			  "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9718 			  "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9719 			  "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
9720 			  "\x38\xE2\xE5",
9721 		.ilen	= 499,
9722 		.result	= "\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 			  "\x2B\xC2\x59",
9785 		.rlen	= 499,
9786 		.also_non_np = 1,
9787 		.np	= 2,
9788 		.tap	= { 499 - 16, 16 },
9789 	}, { /* Generated with Crypto++ */
9790 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9791 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9792 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9793 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9794 		.klen	= 32,
9795 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9796 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9797 		.input	= "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
9798 			  "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
9799 			  "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
9800 			  "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
9801 			  "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
9802 			  "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
9803 			  "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
9804 			  "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
9805 			  "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
9806 			  "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
9807 			  "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
9808 			  "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
9809 			  "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
9810 			  "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
9811 			  "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
9812 			  "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
9813 			  "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
9814 			  "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
9815 			  "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
9816 			  "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
9817 			  "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
9818 			  "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
9819 			  "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
9820 			  "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
9821 			  "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
9822 			  "\x29\x5E\x01\x47\x13\x32\x78\xBE"
9823 			  "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
9824 			  "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
9825 			  "\x38\x35\x11\x26\x4A\xB4\x06\x32"
9826 			  "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
9827 			  "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
9828 			  "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
9829 			  "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
9830 			  "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
9831 			  "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
9832 			  "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
9833 			  "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
9834 			  "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
9835 			  "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
9836 			  "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
9837 			  "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
9838 			  "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
9839 			  "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
9840 			  "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
9841 			  "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
9842 			  "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
9843 			  "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
9844 			  "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
9845 			  "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
9846 			  "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
9847 			  "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
9848 			  "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
9849 			  "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
9850 			  "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
9851 			  "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
9852 			  "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
9853 			  "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
9854 			  "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
9855 			  "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
9856 			  "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
9857 			  "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
9858 			  "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
9859 		.ilen	= 496,
9860 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9861 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9862 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9863 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9864 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9865 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9866 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9867 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9868 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9869 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9870 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9871 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9872 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9873 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9874 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9875 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9876 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9877 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9878 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9879 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9880 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9881 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9882 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9883 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9884 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9885 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9886 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9887 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9888 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9889 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9890 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9891 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9892 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9893 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9894 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9895 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9896 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9897 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9898 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9899 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9900 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9901 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9902 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9903 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9904 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9905 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9906 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9907 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9908 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9909 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9910 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9911 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9912 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9913 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9914 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9915 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9916 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9917 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9918 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9919 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9920 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9921 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9922 		.rlen	= 496,
9923 	},
9924 };
9925 
9926 static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
9927 	/* Generated from AES-LRW test vectors */
9928 	{
9929 		.key	= "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9930 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9931 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9932 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9933 		.klen	= 32,
9934 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
9935 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
9936 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
9937 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
9938 		.ilen	= 16,
9939 		.result	= "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
9940 			  "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
9941 		.rlen	= 16,
9942 	}, {
9943 		.key	= "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9944 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9945 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9946 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9947 		.klen	= 32,
9948 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
9949 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
9950 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
9951 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
9952 		.ilen	= 16,
9953 		.result	= "\xfd\xb2\x66\x98\x80\x96\x55\xad"
9954 			  "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
9955 		.rlen	= 16,
9956 	}, {
9957 		.key	= "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9958 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9959 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9960 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9961 		.klen	= 32,
9962 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
9963 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
9964 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
9965 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
9966 		.ilen	= 16,
9967 		.result	= "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
9968 			  "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
9969 		.rlen	= 16,
9970 	}, {
9971 		.key	= "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9972 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9973 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9974 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9975 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9976 		.klen	= 40,
9977 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
9978 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
9979 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
9980 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
9981 		.ilen	= 16,
9982 		.result	= "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
9983 			  "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
9984 		.rlen	= 16,
9985 	}, {
9986 		.key	= "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9987 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9988 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9989 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9990 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9991 		.klen	= 40,
9992 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
9993 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
9994 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
9995 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
9996 		.ilen	= 16,
9997 		.result	= "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
9998 			  "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
9999 		.rlen	= 16,
10000 	}, {
10001 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10002 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10003 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10004 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10005 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10006 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10007 		.klen	= 48,
10008 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10009 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
10010 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10011 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10012 		.ilen	= 16,
10013 		.result	= "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
10014 			  "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
10015 		.rlen	= 16,
10016 	}, {
10017 		.key	= "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10018 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10019 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10020 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10021 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10022 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10023 		.klen	= 48,
10024 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10025 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
10026 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10027 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10028 		.ilen	= 16,
10029 		.result	= "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
10030 			  "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
10031 		.rlen	= 16,
10032 	}, {
10033 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10034 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10035 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10036 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10037 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10038 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10039 		.klen	= 48,
10040 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10041 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
10042 		.input	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10043 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10044 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10045 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10046 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10047 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10048 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10049 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10050 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10051 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10052 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10053 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10054 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10055 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10056 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10057 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10058 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10059 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10060 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10061 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10062 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10063 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10064 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10065 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10066 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10067 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10068 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10069 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10070 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10071 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10072 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10073 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10074 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10075 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10076 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10077 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10078 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10079 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10080 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10081 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10082 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10083 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10084 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10085 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10086 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10087 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10088 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10089 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10090 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10091 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10092 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10093 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10094 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10095 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10096 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10097 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10098 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10099 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10100 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10101 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10102 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10103 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10104 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10105 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10106 		.ilen	= 512,
10107 		.result	= "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
10108 			  "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
10109 			  "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
10110 			  "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
10111 			  "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
10112 			  "\xce\xab\xda\x33\x30\x20\x12\xfa"
10113 			  "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
10114 			  "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
10115 			  "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
10116 			  "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
10117 			  "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
10118 			  "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
10119 			  "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
10120 			  "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
10121 			  "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
10122 			  "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
10123 			  "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
10124 			  "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
10125 			  "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
10126 			  "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
10127 			  "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
10128 			  "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
10129 			  "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
10130 			  "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
10131 			  "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
10132 			  "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
10133 			  "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
10134 			  "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
10135 			  "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
10136 			  "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
10137 			  "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
10138 			  "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
10139 			  "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
10140 			  "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
10141 			  "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
10142 			  "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
10143 			  "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
10144 			  "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
10145 			  "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
10146 			  "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
10147 			  "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
10148 			  "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
10149 			  "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
10150 			  "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
10151 			  "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
10152 			  "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
10153 			  "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
10154 			  "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
10155 			  "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
10156 			  "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
10157 			  "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
10158 			  "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
10159 			  "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
10160 			  "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
10161 			  "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
10162 			  "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
10163 			  "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
10164 			  "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
10165 			  "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
10166 			  "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
10167 			  "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
10168 			  "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
10169 			  "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
10170 			  "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
10171 		.rlen	= 512,
10172 		.also_non_np = 1,
10173 		.np	= 2,
10174 		.tap	= { 512 - 16, 16 },
10175 	},
10176 };
10177 
10178 static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
10179 	/* Generated from AES-LRW test vectors */
10180 	/* same as enc vectors with input and result reversed */
10181 	{
10182 		.key	= "\x45\x62\xac\x25\xf8\x28\x17\x6d"
10183 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
10184 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
10185 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
10186 		.klen	= 32,
10187 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10188 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
10189 		.input	= "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
10190 			  "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
10191 		.ilen	= 16,
10192 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10193 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10194 		.rlen	= 16,
10195 	}, {
10196 		.key	= "\x59\x70\x47\x14\xf5\x57\x47\x8c"
10197 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
10198 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
10199 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
10200 		.klen	= 32,
10201 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10202 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
10203 		.input	= "\xfd\xb2\x66\x98\x80\x96\x55\xad"
10204 			  "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
10205 		.ilen	= 16,
10206 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10207 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10208 		.rlen	= 16,
10209 	}, {
10210 		.key	= "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
10211 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
10212 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
10213 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
10214 		.klen	= 32,
10215 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10216 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
10217 		.input	= "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
10218 			  "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
10219 		.ilen	= 16,
10220 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10221 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10222 		.rlen	= 16,
10223 	}, {
10224 		.key	= "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
10225 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
10226 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
10227 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
10228 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
10229 		.klen	= 40,
10230 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10231 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
10232 		.input	= "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
10233 			  "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
10234 		.ilen	= 16,
10235 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10236 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10237 		.rlen	= 16,
10238 	}, {
10239 		.key	= "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
10240 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
10241 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
10242 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
10243 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
10244 		.klen	= 40,
10245 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10246 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
10247 		.input	= "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
10248 			  "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
10249 		.ilen	= 16,
10250 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10251 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10252 		.rlen	= 16,
10253 	}, {
10254 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10255 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10256 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10257 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10258 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10259 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10260 		.klen	= 48,
10261 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10262 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
10263 		.input	= "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
10264 			  "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
10265 		.ilen	= 16,
10266 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10267 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10268 		.rlen	= 16,
10269 	}, {
10270 		.key	= "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10271 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10272 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10273 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10274 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10275 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10276 		.klen	= 48,
10277 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10278 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
10279 		.input	= "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
10280 			  "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
10281 		.ilen	= 16,
10282 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
10283 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
10284 		.rlen	= 16,
10285 	}, {
10286 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10287 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10288 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10289 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10290 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10291 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10292 		.klen	= 48,
10293 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10294 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
10295 		.input	= "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
10296 			  "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
10297 			  "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
10298 			  "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
10299 			  "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
10300 			  "\xce\xab\xda\x33\x30\x20\x12\xfa"
10301 			  "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
10302 			  "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
10303 			  "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
10304 			  "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
10305 			  "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
10306 			  "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
10307 			  "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
10308 			  "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
10309 			  "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
10310 			  "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
10311 			  "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
10312 			  "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
10313 			  "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
10314 			  "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
10315 			  "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
10316 			  "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
10317 			  "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
10318 			  "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
10319 			  "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
10320 			  "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
10321 			  "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
10322 			  "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
10323 			  "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
10324 			  "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
10325 			  "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
10326 			  "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
10327 			  "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
10328 			  "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
10329 			  "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
10330 			  "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
10331 			  "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
10332 			  "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
10333 			  "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
10334 			  "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
10335 			  "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
10336 			  "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
10337 			  "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
10338 			  "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
10339 			  "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
10340 			  "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
10341 			  "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
10342 			  "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
10343 			  "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
10344 			  "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
10345 			  "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
10346 			  "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
10347 			  "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
10348 			  "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
10349 			  "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
10350 			  "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
10351 			  "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
10352 			  "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
10353 			  "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
10354 			  "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
10355 			  "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
10356 			  "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
10357 			  "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
10358 			  "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
10359 		.ilen	= 512,
10360 		.result	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10361 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10362 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10363 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10364 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10365 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10366 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10367 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10368 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10369 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10370 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10371 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10372 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10373 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10374 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10375 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10376 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10377 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10378 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10379 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10380 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10381 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10382 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10383 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10384 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10385 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10386 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10387 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10388 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10389 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10390 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10391 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10392 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10393 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10394 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10395 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10396 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10397 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10398 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10399 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10400 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10401 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10402 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10403 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10404 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10405 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10406 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10407 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10408 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10409 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10410 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10411 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10412 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10413 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10414 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10415 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10416 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10417 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10418 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10419 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10420 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10421 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10422 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10423 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10424 		.rlen	= 512,
10425 		.also_non_np = 1,
10426 		.np	= 2,
10427 		.tap	= { 512 - 16, 16 },
10428 	},
10429 };
10430 
10431 static struct cipher_testvec serpent_xts_enc_tv_template[] = {
10432 	/* Generated from AES-XTS test vectors */
10433 	{
10434 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10435 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10436 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10437 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10438 		.klen	= 32,
10439 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10440 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10441 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10442 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10443 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10444 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10445 		.ilen	= 32,
10446 		.result	= "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
10447 			  "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
10448 			  "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
10449 			  "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
10450 		.rlen	= 32,
10451 	}, {
10452 		.key	= "\x11\x11\x11\x11\x11\x11\x11\x11"
10453 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
10454 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
10455 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
10456 		.klen	= 32,
10457 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
10458 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10459 		.input	= "\x44\x44\x44\x44\x44\x44\x44\x44"
10460 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10461 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10462 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
10463 		.ilen	= 32,
10464 		.result	= "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
10465 			  "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
10466 			  "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
10467 			  "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
10468 		.rlen	= 32,
10469 	}, {
10470 		.key	= "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10471 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10472 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
10473 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
10474 		.klen	= 32,
10475 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
10476 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10477 		.input	= "\x44\x44\x44\x44\x44\x44\x44\x44"
10478 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10479 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10480 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
10481 		.ilen	= 32,
10482 		.result	= "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
10483 			  "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
10484 			  "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
10485 			  "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
10486 		.rlen	= 32,
10487 	}, {
10488 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
10489 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
10490 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
10491 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
10492 		.klen	= 32,
10493 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10494 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10495 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
10496 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10497 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
10498 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10499 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
10500 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10501 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
10502 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10503 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
10504 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10505 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
10506 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10507 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
10508 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10509 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
10510 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10511 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
10512 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10513 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
10514 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10515 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10516 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10517 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10518 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10519 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10520 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10521 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10522 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10523 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10524 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10525 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10526 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10527 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
10528 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10529 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
10530 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10531 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
10532 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10533 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
10534 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10535 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
10536 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10537 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
10538 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10539 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
10540 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10541 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
10542 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10543 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
10544 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10545 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
10546 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10547 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10548 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10549 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10550 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10551 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10552 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10553 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10554 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10555 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10556 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10557 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10558 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10559 		.ilen	= 512,
10560 		.result	= "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
10561 			  "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
10562 			  "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
10563 			  "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
10564 			  "\x00\x5c\x75\x14\x06\xd6\x25\x82"
10565 			  "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
10566 			  "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
10567 			  "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
10568 			  "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
10569 			  "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
10570 			  "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
10571 			  "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
10572 			  "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
10573 			  "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
10574 			  "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
10575 			  "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
10576 			  "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
10577 			  "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
10578 			  "\x58\xfa\x43\x91\x16\x85\x40\xbb"
10579 			  "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
10580 			  "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
10581 			  "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
10582 			  "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
10583 			  "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
10584 			  "\x6e\x29\x60\xbd\x10\x14\x84\x82"
10585 			  "\x83\x82\x0c\x63\x73\x92\x02\x7c"
10586 			  "\x55\x37\x20\x80\x17\x51\xc8\xbc"
10587 			  "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
10588 			  "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
10589 			  "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
10590 			  "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
10591 			  "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
10592 			  "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
10593 			  "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
10594 			  "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
10595 			  "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
10596 			  "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
10597 			  "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
10598 			  "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
10599 			  "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
10600 			  "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
10601 			  "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
10602 			  "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
10603 			  "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
10604 			  "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
10605 			  "\x43\x42\x35\xd0\xcf\xec\x77\x67"
10606 			  "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
10607 			  "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
10608 			  "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
10609 			  "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
10610 			  "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
10611 			  "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
10612 			  "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
10613 			  "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
10614 			  "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
10615 			  "\x03\x57\xe6\x98\x52\x2f\x61\x62"
10616 			  "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
10617 			  "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
10618 			  "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
10619 			  "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
10620 			  "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
10621 			  "\xef\x91\x64\x1d\x18\x07\x4e\x31"
10622 			  "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
10623 			  "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
10624 		.rlen	= 512,
10625 	}, {
10626 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
10627 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
10628 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
10629 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
10630 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
10631 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
10632 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
10633 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
10634 		.klen	= 64,
10635 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
10636 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10637 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
10638 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10639 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
10640 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10641 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
10642 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10643 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
10644 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10645 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
10646 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10647 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
10648 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10649 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
10650 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10651 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
10652 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10653 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
10654 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10655 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
10656 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10657 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10658 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10659 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10660 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10661 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10662 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10663 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10664 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10665 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10666 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10667 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10668 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10669 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
10670 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10671 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
10672 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10673 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
10674 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10675 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
10676 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10677 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
10678 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10679 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
10680 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10681 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
10682 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10683 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
10684 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10685 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
10686 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10687 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
10688 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10689 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10690 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10691 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10692 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10693 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10694 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10695 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10696 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10697 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10698 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10699 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10700 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10701 		.ilen	= 512,
10702 		.result	= "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
10703 			  "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
10704 			  "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
10705 			  "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
10706 			  "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
10707 			  "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
10708 			  "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
10709 			  "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
10710 			  "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
10711 			  "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
10712 			  "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
10713 			  "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
10714 			  "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
10715 			  "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
10716 			  "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
10717 			  "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
10718 			  "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
10719 			  "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
10720 			  "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
10721 			  "\xec\x9a\xda\x64\x96\xb5\x61\xff"
10722 			  "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
10723 			  "\x81\x85\x14\xa8\x59\xac\x8c\x94"
10724 			  "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
10725 			  "\x82\xc6\x4d\xca\x86\xea\x53\x28"
10726 			  "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
10727 			  "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
10728 			  "\x05\xca\x81\x7b\xda\xa2\xde\x63"
10729 			  "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
10730 			  "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
10731 			  "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
10732 			  "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
10733 			  "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
10734 			  "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
10735 			  "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
10736 			  "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
10737 			  "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
10738 			  "\xfd\x43\x7d\xda\x42\x51\x87\x43"
10739 			  "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
10740 			  "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
10741 			  "\x27\x5f\x11\xac\x71\xc7\x48\x46"
10742 			  "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
10743 			  "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
10744 			  "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
10745 			  "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
10746 			  "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
10747 			  "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
10748 			  "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
10749 			  "\x50\x88\x97\x40\x69\xb1\x37\xf5"
10750 			  "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
10751 			  "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
10752 			  "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
10753 			  "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
10754 			  "\xc1\x16\x73\x50\x77\xba\xa6\x65"
10755 			  "\x20\x2d\xb0\x02\x27\x89\xda\x99"
10756 			  "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
10757 			  "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
10758 			  "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
10759 			  "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
10760 			  "\xa3\x0e\x33\x74\x40\x18\x39\x72"
10761 			  "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
10762 			  "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
10763 			  "\x30\x05\xc8\x92\x98\x80\xff\x7a"
10764 			  "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
10765 			  "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
10766 		.rlen	= 512,
10767 		.also_non_np = 1,
10768 		.np	= 2,
10769 		.tap	= { 512 - 16, 16 },
10770 	},
10771 };
10772 
10773 static struct cipher_testvec serpent_xts_dec_tv_template[] = {
10774 	/* Generated from AES-XTS test vectors */
10775 	/* same as enc vectors with input and result reversed */
10776 	{
10777 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10778 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10779 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10780 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10781 		.klen	= 32,
10782 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10783 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10784 		.input	= "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
10785 			  "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
10786 			  "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
10787 			  "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
10788 		.ilen	= 32,
10789 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10790 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10791 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
10792 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10793 		.rlen	= 32,
10794 	}, {
10795 		.key	= "\x11\x11\x11\x11\x11\x11\x11\x11"
10796 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
10797 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
10798 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
10799 		.klen	= 32,
10800 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
10801 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10802 		.input	= "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
10803 			  "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
10804 			  "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
10805 			  "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
10806 		.ilen	= 32,
10807 		.result	= "\x44\x44\x44\x44\x44\x44\x44\x44"
10808 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10809 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10810 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
10811 		.rlen	= 32,
10812 	}, {
10813 		.key	= "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10814 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10815 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
10816 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
10817 		.klen	= 32,
10818 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
10819 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10820 		.input	= "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
10821 			  "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
10822 			  "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
10823 			  "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
10824 		.ilen	= 32,
10825 		.result	= "\x44\x44\x44\x44\x44\x44\x44\x44"
10826 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10827 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
10828 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
10829 		.rlen	= 32,
10830 	}, {
10831 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
10832 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
10833 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
10834 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
10835 		.klen	= 32,
10836 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
10837 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10838 		.input	= "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
10839 			  "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
10840 			  "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
10841 			  "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
10842 			  "\x00\x5c\x75\x14\x06\xd6\x25\x82"
10843 			  "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
10844 			  "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
10845 			  "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
10846 			  "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
10847 			  "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
10848 			  "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
10849 			  "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
10850 			  "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
10851 			  "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
10852 			  "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
10853 			  "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
10854 			  "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
10855 			  "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
10856 			  "\x58\xfa\x43\x91\x16\x85\x40\xbb"
10857 			  "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
10858 			  "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
10859 			  "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
10860 			  "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
10861 			  "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
10862 			  "\x6e\x29\x60\xbd\x10\x14\x84\x82"
10863 			  "\x83\x82\x0c\x63\x73\x92\x02\x7c"
10864 			  "\x55\x37\x20\x80\x17\x51\xc8\xbc"
10865 			  "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
10866 			  "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
10867 			  "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
10868 			  "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
10869 			  "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
10870 			  "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
10871 			  "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
10872 			  "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
10873 			  "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
10874 			  "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
10875 			  "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
10876 			  "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
10877 			  "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
10878 			  "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
10879 			  "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
10880 			  "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
10881 			  "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
10882 			  "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
10883 			  "\x43\x42\x35\xd0\xcf\xec\x77\x67"
10884 			  "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
10885 			  "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
10886 			  "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
10887 			  "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
10888 			  "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
10889 			  "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
10890 			  "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
10891 			  "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
10892 			  "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
10893 			  "\x03\x57\xe6\x98\x52\x2f\x61\x62"
10894 			  "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
10895 			  "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
10896 			  "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
10897 			  "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
10898 			  "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
10899 			  "\xef\x91\x64\x1d\x18\x07\x4e\x31"
10900 			  "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
10901 			  "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
10902 		.ilen	= 512,
10903 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
10904 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10905 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
10906 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10907 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
10908 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10909 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
10910 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10911 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
10912 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10913 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
10914 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10915 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
10916 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10917 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
10918 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10919 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
10920 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10921 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
10922 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10923 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10924 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10925 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10926 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10927 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10928 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10929 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10930 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10931 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10932 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10933 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10934 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10935 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
10936 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10937 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
10938 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10939 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
10940 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10941 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
10942 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10943 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
10944 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10945 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
10946 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10947 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
10948 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10949 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
10950 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10951 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
10952 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10953 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
10954 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10955 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10956 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10957 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10958 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10959 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10960 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10961 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10962 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10963 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10964 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10965 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10966 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10967 		.rlen	= 512,
10968 	}, {
10969 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
10970 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
10971 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
10972 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
10973 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
10974 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
10975 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
10976 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
10977 		.klen	= 64,
10978 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
10979 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
10980 		.input	= "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
10981 			  "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
10982 			  "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
10983 			  "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
10984 			  "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
10985 			  "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
10986 			  "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
10987 			  "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
10988 			  "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
10989 			  "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
10990 			  "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
10991 			  "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
10992 			  "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
10993 			  "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
10994 			  "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
10995 			  "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
10996 			  "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
10997 			  "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
10998 			  "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
10999 			  "\xec\x9a\xda\x64\x96\xb5\x61\xff"
11000 			  "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
11001 			  "\x81\x85\x14\xa8\x59\xac\x8c\x94"
11002 			  "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
11003 			  "\x82\xc6\x4d\xca\x86\xea\x53\x28"
11004 			  "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
11005 			  "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
11006 			  "\x05\xca\x81\x7b\xda\xa2\xde\x63"
11007 			  "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
11008 			  "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
11009 			  "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
11010 			  "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
11011 			  "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
11012 			  "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
11013 			  "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
11014 			  "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
11015 			  "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
11016 			  "\xfd\x43\x7d\xda\x42\x51\x87\x43"
11017 			  "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
11018 			  "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
11019 			  "\x27\x5f\x11\xac\x71\xc7\x48\x46"
11020 			  "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
11021 			  "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
11022 			  "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
11023 			  "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
11024 			  "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
11025 			  "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
11026 			  "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
11027 			  "\x50\x88\x97\x40\x69\xb1\x37\xf5"
11028 			  "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
11029 			  "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
11030 			  "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
11031 			  "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
11032 			  "\xc1\x16\x73\x50\x77\xba\xa6\x65"
11033 			  "\x20\x2d\xb0\x02\x27\x89\xda\x99"
11034 			  "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
11035 			  "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
11036 			  "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
11037 			  "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
11038 			  "\xa3\x0e\x33\x74\x40\x18\x39\x72"
11039 			  "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
11040 			  "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
11041 			  "\x30\x05\xc8\x92\x98\x80\xff\x7a"
11042 			  "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
11043 			  "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
11044 		.ilen	= 512,
11045 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
11046 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11047 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
11048 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11049 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
11050 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11051 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
11052 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11053 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
11054 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11055 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
11056 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11057 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
11058 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11059 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
11060 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11061 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
11062 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11063 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
11064 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11065 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11066 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11067 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11068 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11069 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11070 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11071 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11072 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11073 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11074 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11075 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11076 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11077 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
11078 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11079 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
11080 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11081 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
11082 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11083 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
11084 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11085 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
11086 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11087 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
11088 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11089 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
11090 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11091 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
11092 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11093 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
11094 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11095 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
11096 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11097 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11098 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11099 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11100 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11101 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11102 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11103 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11104 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11105 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11106 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11107 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11108 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11109 		.rlen	= 512,
11110 		.also_non_np = 1,
11111 		.np	= 2,
11112 		.tap	= { 512 - 16, 16 },
11113 	},
11114 };
11115 
11116 /* Cast6 test vectors from RFC 2612 */
11117 #define CAST6_ENC_TEST_VECTORS		4
11118 #define CAST6_DEC_TEST_VECTORS		4
11119 #define CAST6_CBC_ENC_TEST_VECTORS	1
11120 #define CAST6_CBC_DEC_TEST_VECTORS	1
11121 #define CAST6_CTR_ENC_TEST_VECTORS	2
11122 #define CAST6_CTR_DEC_TEST_VECTORS	2
11123 #define CAST6_LRW_ENC_TEST_VECTORS	1
11124 #define CAST6_LRW_DEC_TEST_VECTORS	1
11125 #define CAST6_XTS_ENC_TEST_VECTORS	1
11126 #define CAST6_XTS_DEC_TEST_VECTORS	1
11127 
11128 static struct cipher_testvec cast6_enc_tv_template[] = {
11129 	{
11130 		.key	= "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11131 			  "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
11132 		.klen	= 16,
11133 		.input	= zeroed_string,
11134 		.ilen	= 16,
11135 		.result	= "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
11136 			  "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
11137 		.rlen	= 16,
11138 	}, {
11139 		.key	= "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11140 			  "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
11141 			  "\xba\xc7\x7a\x77\x17\x94\x28\x63",
11142 		.klen	= 24,
11143 		.input	= zeroed_string,
11144 		.ilen	= 16,
11145 		.result	= "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
11146 			  "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
11147 		.rlen	= 16,
11148 	}, {
11149 		.key	= "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11150 			  "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
11151 			  "\x8d\x7c\x47\xce\x26\x49\x08\x46"
11152 			  "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
11153 		.klen	= 32,
11154 		.input	= zeroed_string,
11155 		.ilen	= 16,
11156 		.result	= "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
11157 			  "\xc9\x87\x01\x36\x55\x33\x17\xfa",
11158 		.rlen	= 16,
11159 	}, { /* Generated from TF test vectors */
11160 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11161 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11162 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11163 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11164 		.klen	= 32,
11165 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11166 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11167 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11168 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11169 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11170 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11171 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11172 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11173 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11174 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11175 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11176 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11177 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11178 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11179 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11180 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11181 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11182 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11183 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11184 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11185 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11186 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11187 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11188 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11189 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11190 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11191 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11192 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11193 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11194 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11195 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11196 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11197 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11198 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11199 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11200 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11201 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11202 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11203 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11204 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11205 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11206 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11207 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11208 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11209 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11210 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11211 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11212 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11213 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11214 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11215 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11216 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11217 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11218 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11219 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11220 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11221 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11222 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11223 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11224 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11225 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11226 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11227 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11228 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11229 		.ilen	= 496,
11230 		.result	= "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
11231 			  "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
11232 			  "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
11233 			  "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
11234 			  "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
11235 			  "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
11236 			  "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
11237 			  "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
11238 			  "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
11239 			  "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
11240 			  "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
11241 			  "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
11242 			  "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
11243 			  "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
11244 			  "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
11245 			  "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
11246 			  "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
11247 			  "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
11248 			  "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
11249 			  "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
11250 			  "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
11251 			  "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
11252 			  "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
11253 			  "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
11254 			  "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
11255 			  "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
11256 			  "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
11257 			  "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
11258 			  "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
11259 			  "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
11260 			  "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
11261 			  "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
11262 			  "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
11263 			  "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
11264 			  "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
11265 			  "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
11266 			  "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
11267 			  "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
11268 			  "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
11269 			  "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
11270 			  "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
11271 			  "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
11272 			  "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
11273 			  "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
11274 			  "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
11275 			  "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
11276 			  "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
11277 			  "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
11278 			  "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
11279 			  "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
11280 			  "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
11281 			  "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
11282 			  "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
11283 			  "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
11284 			  "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
11285 			  "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
11286 			  "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
11287 			  "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
11288 			  "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
11289 			  "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
11290 			  "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
11291 			  "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
11292 		.rlen	= 496,
11293 		.also_non_np = 1,
11294 		.np	= 2,
11295 		.tap	= { 496 - 16, 16 },
11296 	},
11297 };
11298 
11299 static struct cipher_testvec cast6_dec_tv_template[] = {
11300 	{
11301 		.key	= "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11302 			  "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
11303 		.klen	= 16,
11304 		.input	= "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
11305 			  "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
11306 		.ilen	= 16,
11307 		.result	= zeroed_string,
11308 		.rlen	= 16,
11309 	}, {
11310 		.key	= "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11311 			  "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
11312 			  "\xba\xc7\x7a\x77\x17\x94\x28\x63",
11313 		.klen	= 24,
11314 		.input	= "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
11315 			  "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
11316 		.ilen	= 16,
11317 		.result	= zeroed_string,
11318 		.rlen	= 16,
11319 	}, {
11320 		.key	= "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11321 			  "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
11322 			  "\x8d\x7c\x47\xce\x26\x49\x08\x46"
11323 			  "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
11324 		.klen	= 32,
11325 		.input	= "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
11326 			  "\xc9\x87\x01\x36\x55\x33\x17\xfa",
11327 		.ilen	= 16,
11328 		.result	= zeroed_string,
11329 		.rlen	= 16,
11330 	}, { /* Generated from TF test vectors */
11331 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11332 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11333 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11334 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11335 		.klen	= 32,
11336 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11337 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11338 		.input	= "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
11339 			  "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
11340 			  "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
11341 			  "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
11342 			  "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
11343 			  "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
11344 			  "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
11345 			  "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
11346 			  "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
11347 			  "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
11348 			  "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
11349 			  "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
11350 			  "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
11351 			  "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
11352 			  "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
11353 			  "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
11354 			  "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
11355 			  "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
11356 			  "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
11357 			  "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
11358 			  "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
11359 			  "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
11360 			  "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
11361 			  "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
11362 			  "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
11363 			  "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
11364 			  "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
11365 			  "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
11366 			  "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
11367 			  "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
11368 			  "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
11369 			  "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
11370 			  "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
11371 			  "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
11372 			  "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
11373 			  "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
11374 			  "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
11375 			  "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
11376 			  "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
11377 			  "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
11378 			  "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
11379 			  "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
11380 			  "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
11381 			  "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
11382 			  "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
11383 			  "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
11384 			  "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
11385 			  "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
11386 			  "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
11387 			  "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
11388 			  "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
11389 			  "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
11390 			  "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
11391 			  "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
11392 			  "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
11393 			  "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
11394 			  "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
11395 			  "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
11396 			  "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
11397 			  "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
11398 			  "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
11399 			  "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
11400 		.ilen	= 496,
11401 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11402 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11403 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11404 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11405 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11406 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11407 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11408 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11409 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11410 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11411 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11412 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11413 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11414 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11415 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11416 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11417 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11418 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11419 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11420 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11421 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11422 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11423 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11424 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11425 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11426 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11427 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11428 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11429 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11430 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11431 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11432 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11433 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11434 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11435 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11436 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11437 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11438 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11439 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11440 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11441 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11442 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11443 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11444 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11445 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11446 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11447 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11448 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11449 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11450 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11451 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11452 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11453 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11454 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11455 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11456 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11457 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11458 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11459 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11460 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11461 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11462 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11463 		.rlen	= 496,
11464 		.also_non_np = 1,
11465 		.np	= 2,
11466 		.tap	= { 496 - 16, 16 },
11467 	},
11468 };
11469 
11470 static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
11471 	{ /* Generated from TF test vectors */
11472 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11473 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11474 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11475 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11476 		.klen	= 32,
11477 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11478 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11479 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11480 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11481 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11482 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11483 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11484 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11485 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11486 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11487 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11488 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11489 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11490 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11491 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11492 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11493 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11494 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11495 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11496 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11497 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11498 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11499 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11500 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11501 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11502 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11503 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11504 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11505 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11506 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11507 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11508 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11509 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11510 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11511 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11512 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11513 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11514 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11515 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11516 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11517 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11518 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11519 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11520 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11521 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11522 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11523 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11524 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11525 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11526 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11527 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11528 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11529 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11530 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11531 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11532 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11533 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11534 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11535 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11536 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11537 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11538 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11539 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11540 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11541 		.ilen	= 496,
11542 		.result	= "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
11543 			  "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
11544 			  "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
11545 			  "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
11546 			  "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
11547 			  "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
11548 			  "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
11549 			  "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
11550 			  "\x57\x95\xE1\x21\x26\x10\x9A\x21"
11551 			  "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
11552 			  "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
11553 			  "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
11554 			  "\x23\x16\x47\x72\x81\x13\x3A\x72"
11555 			  "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
11556 			  "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
11557 			  "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
11558 			  "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
11559 			  "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
11560 			  "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
11561 			  "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
11562 			  "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
11563 			  "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
11564 			  "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
11565 			  "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
11566 			  "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
11567 			  "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
11568 			  "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
11569 			  "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
11570 			  "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
11571 			  "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
11572 			  "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
11573 			  "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
11574 			  "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
11575 			  "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
11576 			  "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
11577 			  "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
11578 			  "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
11579 			  "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
11580 			  "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
11581 			  "\x73\x3F\x12\x91\x47\x54\xBA\x39"
11582 			  "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
11583 			  "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
11584 			  "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
11585 			  "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
11586 			  "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
11587 			  "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
11588 			  "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
11589 			  "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
11590 			  "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
11591 			  "\x80\x21\x83\x58\x3C\x76\xFD\x28"
11592 			  "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
11593 			  "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
11594 			  "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
11595 			  "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
11596 			  "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
11597 			  "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
11598 			  "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
11599 			  "\x56\x4D\x82\x62\x37\xA3\x48\x01"
11600 			  "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
11601 			  "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
11602 			  "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
11603 			  "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
11604 		.rlen	= 496,
11605 		.also_non_np = 1,
11606 		.np	= 2,
11607 		.tap	= { 496 - 16, 16 },
11608 	},
11609 };
11610 
11611 static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
11612 	{ /* Generated from TF test vectors */
11613 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11614 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11615 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11616 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11617 		.klen	= 32,
11618 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11619 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11620 		.input	= "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
11621 			  "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
11622 			  "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
11623 			  "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
11624 			  "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
11625 			  "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
11626 			  "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
11627 			  "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
11628 			  "\x57\x95\xE1\x21\x26\x10\x9A\x21"
11629 			  "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
11630 			  "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
11631 			  "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
11632 			  "\x23\x16\x47\x72\x81\x13\x3A\x72"
11633 			  "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
11634 			  "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
11635 			  "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
11636 			  "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
11637 			  "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
11638 			  "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
11639 			  "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
11640 			  "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
11641 			  "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
11642 			  "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
11643 			  "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
11644 			  "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
11645 			  "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
11646 			  "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
11647 			  "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
11648 			  "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
11649 			  "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
11650 			  "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
11651 			  "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
11652 			  "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
11653 			  "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
11654 			  "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
11655 			  "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
11656 			  "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
11657 			  "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
11658 			  "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
11659 			  "\x73\x3F\x12\x91\x47\x54\xBA\x39"
11660 			  "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
11661 			  "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
11662 			  "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
11663 			  "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
11664 			  "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
11665 			  "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
11666 			  "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
11667 			  "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
11668 			  "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
11669 			  "\x80\x21\x83\x58\x3C\x76\xFD\x28"
11670 			  "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
11671 			  "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
11672 			  "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
11673 			  "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
11674 			  "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
11675 			  "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
11676 			  "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
11677 			  "\x56\x4D\x82\x62\x37\xA3\x48\x01"
11678 			  "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
11679 			  "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
11680 			  "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
11681 			  "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
11682 		.ilen	= 496,
11683 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11684 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11685 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11686 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11687 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11688 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11689 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11690 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11691 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11692 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11693 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11694 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11695 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11696 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11697 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11698 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11699 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11700 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11701 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11702 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11703 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11704 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11705 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11706 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11707 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11708 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11709 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11710 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11711 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11712 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11713 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11714 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11715 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11716 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11717 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11718 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11719 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11720 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11721 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11722 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11723 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11724 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11725 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11726 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11727 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11728 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11729 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11730 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11731 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11732 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11733 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11734 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11735 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11736 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11737 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11738 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11739 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11740 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11741 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11742 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11743 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11744 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11745 		.rlen	= 496,
11746 		.also_non_np = 1,
11747 		.np	= 2,
11748 		.tap	= { 496 - 16, 16 },
11749 	},
11750 };
11751 
11752 static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
11753 	{ /* Generated from TF test vectors */
11754 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11755 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11756 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11757 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11758 		.klen	= 32,
11759 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11760 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11761 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11762 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11763 			  "\x3A",
11764 		.ilen	= 17,
11765 		.result	= "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11766 			  "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11767 			  "\x57",
11768 		.rlen	= 17,
11769 	}, { /* Generated from TF test vectors */
11770 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11771 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11772 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11773 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11774 		.klen	= 32,
11775 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11776 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11777 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11778 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11779 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11780 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11781 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11782 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11783 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11784 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11785 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11786 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11787 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11788 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11789 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11790 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11791 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11792 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11793 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11794 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11795 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11796 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11797 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11798 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11799 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11800 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11801 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11802 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11803 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11804 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11805 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11806 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11807 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11808 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11809 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11810 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11811 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11812 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11813 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11814 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11815 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11816 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11817 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11818 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11819 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11820 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11821 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11822 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11823 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11824 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11825 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11826 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11827 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11828 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11829 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11830 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11831 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11832 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11833 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11834 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11835 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11836 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11837 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11838 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11839 		.ilen	= 496,
11840 		.result	= "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11841 			  "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11842 			  "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
11843 			  "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
11844 			  "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
11845 			  "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
11846 			  "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
11847 			  "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
11848 			  "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
11849 			  "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
11850 			  "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
11851 			  "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
11852 			  "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
11853 			  "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
11854 			  "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
11855 			  "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
11856 			  "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
11857 			  "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
11858 			  "\x49\x61\x22\x52\x64\x8C\x46\x41"
11859 			  "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
11860 			  "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
11861 			  "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
11862 			  "\x00\x14\x15\x59\xC1\x30\x64\xAF"
11863 			  "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
11864 			  "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
11865 			  "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
11866 			  "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
11867 			  "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
11868 			  "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
11869 			  "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
11870 			  "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
11871 			  "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
11872 			  "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
11873 			  "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
11874 			  "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
11875 			  "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
11876 			  "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
11877 			  "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
11878 			  "\x60\x40\x38\x90\x20\x46\xC7\xB3"
11879 			  "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
11880 			  "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
11881 			  "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
11882 			  "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
11883 			  "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
11884 			  "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
11885 			  "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
11886 			  "\x73\xFC\x91\xAB\x79\x41\x23\x14"
11887 			  "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
11888 			  "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
11889 			  "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
11890 			  "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
11891 			  "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
11892 			  "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
11893 			  "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
11894 			  "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
11895 			  "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
11896 			  "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
11897 			  "\x19\x35\x88\x22\x45\x59\x0E\x8F"
11898 			  "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
11899 			  "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
11900 			  "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
11901 			  "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
11902 		.rlen	= 496,
11903 		.also_non_np = 1,
11904 		.np	= 2,
11905 		.tap	= { 496 - 16, 16 },
11906 	},
11907 };
11908 
11909 static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
11910 	{ /* Generated from TF test vectors */
11911 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11912 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11913 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11914 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11915 		.klen	= 32,
11916 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11917 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11918 		.input	= "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11919 			  "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11920 			  "\x57",
11921 		.ilen	= 17,
11922 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11923 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11924 			  "\x3A",
11925 		.rlen	= 17,
11926 	}, { /* Generated from TF test vectors */
11927 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11928 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11929 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11930 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11931 		.klen	= 32,
11932 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11933 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11934 		.input	= "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11935 			  "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11936 			  "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
11937 			  "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
11938 			  "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
11939 			  "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
11940 			  "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
11941 			  "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
11942 			  "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
11943 			  "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
11944 			  "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
11945 			  "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
11946 			  "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
11947 			  "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
11948 			  "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
11949 			  "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
11950 			  "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
11951 			  "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
11952 			  "\x49\x61\x22\x52\x64\x8C\x46\x41"
11953 			  "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
11954 			  "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
11955 			  "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
11956 			  "\x00\x14\x15\x59\xC1\x30\x64\xAF"
11957 			  "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
11958 			  "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
11959 			  "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
11960 			  "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
11961 			  "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
11962 			  "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
11963 			  "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
11964 			  "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
11965 			  "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
11966 			  "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
11967 			  "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
11968 			  "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
11969 			  "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
11970 			  "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
11971 			  "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
11972 			  "\x60\x40\x38\x90\x20\x46\xC7\xB3"
11973 			  "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
11974 			  "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
11975 			  "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
11976 			  "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
11977 			  "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
11978 			  "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
11979 			  "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
11980 			  "\x73\xFC\x91\xAB\x79\x41\x23\x14"
11981 			  "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
11982 			  "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
11983 			  "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
11984 			  "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
11985 			  "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
11986 			  "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
11987 			  "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
11988 			  "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
11989 			  "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
11990 			  "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
11991 			  "\x19\x35\x88\x22\x45\x59\x0E\x8F"
11992 			  "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
11993 			  "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
11994 			  "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
11995 			  "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
11996 		.ilen	= 496,
11997 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11998 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11999 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12000 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12001 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12002 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12003 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12004 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12005 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12006 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12007 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12008 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12009 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12010 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12011 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12012 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12013 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12014 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12015 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12016 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12017 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12018 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12019 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12020 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12021 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12022 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12023 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12024 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12025 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12026 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12027 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12028 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12029 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12030 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12031 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12032 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12033 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12034 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12035 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12036 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12037 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12038 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12039 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12040 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12041 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12042 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12043 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12044 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12045 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12046 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12047 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12048 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12049 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12050 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12051 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12052 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12053 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12054 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12055 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12056 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12057 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12058 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12059 		.rlen	= 496,
12060 		.also_non_np = 1,
12061 		.np	= 2,
12062 		.tap	= { 496 - 16, 16 },
12063 	},
12064 };
12065 
12066 static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
12067 	{ /* Generated from TF test vectors */
12068 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12069 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12070 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12071 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12072 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12073 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12074 		.klen	= 48,
12075 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
12076 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
12077 		.input	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12078 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12079 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12080 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12081 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12082 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12083 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12084 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12085 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12086 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12087 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12088 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12089 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12090 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12091 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12092 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12093 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12094 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12095 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12096 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12097 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12098 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12099 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12100 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12101 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12102 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12103 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12104 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12105 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12106 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12107 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12108 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12109 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12110 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12111 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12112 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12113 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12114 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12115 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12116 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12117 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12118 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12119 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12120 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12121 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12122 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12123 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12124 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12125 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12126 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12127 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12128 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12129 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12130 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12131 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12132 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12133 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12134 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12135 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12136 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12137 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12138 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12139 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12140 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12141 		.ilen	= 512,
12142 		.result	= "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
12143 			  "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
12144 			  "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
12145 			  "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
12146 			  "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
12147 			  "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
12148 			  "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
12149 			  "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
12150 			  "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
12151 			  "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
12152 			  "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
12153 			  "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
12154 			  "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
12155 			  "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
12156 			  "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
12157 			  "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
12158 			  "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
12159 			  "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
12160 			  "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
12161 			  "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
12162 			  "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
12163 			  "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
12164 			  "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
12165 			  "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
12166 			  "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
12167 			  "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
12168 			  "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
12169 			  "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
12170 			  "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
12171 			  "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
12172 			  "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
12173 			  "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
12174 			  "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
12175 			  "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
12176 			  "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
12177 			  "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
12178 			  "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
12179 			  "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
12180 			  "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
12181 			  "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
12182 			  "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
12183 			  "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
12184 			  "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
12185 			  "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
12186 			  "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
12187 			  "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
12188 			  "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
12189 			  "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
12190 			  "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
12191 			  "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
12192 			  "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
12193 			  "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
12194 			  "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
12195 			  "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
12196 			  "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
12197 			  "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
12198 			  "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
12199 			  "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
12200 			  "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
12201 			  "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
12202 			  "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
12203 			  "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
12204 			  "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
12205 			  "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
12206 		.rlen	= 512,
12207 		.also_non_np = 1,
12208 		.np	= 2,
12209 		.tap	= { 512 - 16, 16 },
12210 	},
12211 };
12212 
12213 static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
12214 	{ /* Generated from TF test vectors */
12215 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12216 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12217 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12218 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12219 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12220 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12221 		.klen	= 48,
12222 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
12223 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
12224 		.input	= "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
12225 			  "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
12226 			  "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
12227 			  "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
12228 			  "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
12229 			  "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
12230 			  "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
12231 			  "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
12232 			  "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
12233 			  "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
12234 			  "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
12235 			  "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
12236 			  "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
12237 			  "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
12238 			  "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
12239 			  "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
12240 			  "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
12241 			  "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
12242 			  "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
12243 			  "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
12244 			  "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
12245 			  "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
12246 			  "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
12247 			  "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
12248 			  "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
12249 			  "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
12250 			  "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
12251 			  "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
12252 			  "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
12253 			  "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
12254 			  "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
12255 			  "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
12256 			  "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
12257 			  "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
12258 			  "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
12259 			  "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
12260 			  "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
12261 			  "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
12262 			  "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
12263 			  "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
12264 			  "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
12265 			  "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
12266 			  "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
12267 			  "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
12268 			  "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
12269 			  "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
12270 			  "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
12271 			  "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
12272 			  "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
12273 			  "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
12274 			  "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
12275 			  "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
12276 			  "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
12277 			  "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
12278 			  "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
12279 			  "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
12280 			  "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
12281 			  "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
12282 			  "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
12283 			  "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
12284 			  "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
12285 			  "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
12286 			  "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
12287 			  "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
12288 		.ilen	= 512,
12289 		.result	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12290 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12291 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12292 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12293 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12294 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12295 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12296 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12297 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12298 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12299 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12300 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12301 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12302 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12303 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12304 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12305 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12306 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12307 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12308 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12309 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12310 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12311 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12312 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12313 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12314 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12315 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12316 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12317 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12318 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12319 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12320 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12321 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12322 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12323 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12324 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12325 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12326 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12327 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12328 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12329 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12330 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12331 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12332 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12333 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12334 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12335 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12336 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12337 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12338 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12339 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12340 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12341 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12342 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12343 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12344 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12345 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12346 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12347 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12348 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12349 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12350 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12351 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12352 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12353 		.rlen	= 512,
12354 		.also_non_np = 1,
12355 		.np	= 2,
12356 		.tap	= { 512 - 16, 16 },
12357 	},
12358 };
12359 
12360 static struct cipher_testvec cast6_xts_enc_tv_template[] = {
12361 	{ /* Generated from TF test vectors */
12362 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
12363 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
12364 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
12365 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
12366 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
12367 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
12368 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
12369 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
12370 		.klen	= 64,
12371 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
12372 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
12373 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12374 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12375 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
12376 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12377 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
12378 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12379 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
12380 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12381 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
12382 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12383 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
12384 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12385 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
12386 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12387 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
12388 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12389 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
12390 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12391 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
12392 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12393 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12394 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12395 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12396 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12397 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12398 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12399 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12400 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12401 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12402 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12403 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12404 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
12405 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
12406 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12407 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
12408 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12409 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
12410 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12411 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
12412 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12413 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
12414 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12415 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
12416 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12417 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
12418 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12419 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
12420 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12421 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
12422 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12423 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
12424 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12425 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12426 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12427 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12428 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12429 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12430 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12431 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12432 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12433 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12434 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12435 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12436 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
12437 		.ilen	= 512,
12438 		.result	= "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
12439 			  "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
12440 			  "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
12441 			  "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
12442 			  "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
12443 			  "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
12444 			  "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
12445 			  "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
12446 			  "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
12447 			  "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
12448 			  "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
12449 			  "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
12450 			  "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
12451 			  "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
12452 			  "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
12453 			  "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
12454 			  "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
12455 			  "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
12456 			  "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
12457 			  "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
12458 			  "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
12459 			  "\x71\x38\x17\x91\x44\xE8\xFC\x65"
12460 			  "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
12461 			  "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
12462 			  "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
12463 			  "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
12464 			  "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
12465 			  "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
12466 			  "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
12467 			  "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
12468 			  "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
12469 			  "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
12470 			  "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
12471 			  "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
12472 			  "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
12473 			  "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
12474 			  "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
12475 			  "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
12476 			  "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
12477 			  "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
12478 			  "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
12479 			  "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
12480 			  "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
12481 			  "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
12482 			  "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
12483 			  "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
12484 			  "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
12485 			  "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
12486 			  "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
12487 			  "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
12488 			  "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
12489 			  "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
12490 			  "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
12491 			  "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
12492 			  "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
12493 			  "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
12494 			  "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
12495 			  "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
12496 			  "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
12497 			  "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
12498 			  "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
12499 			  "\x45\x72\x80\x17\x81\xBD\x9D\x62"
12500 			  "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
12501 			  "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
12502 		.rlen	= 512,
12503 		.also_non_np = 1,
12504 		.np	= 2,
12505 		.tap	= { 512 - 16, 16 },
12506 	},
12507 };
12508 
12509 static struct cipher_testvec cast6_xts_dec_tv_template[] = {
12510 	{ /* Generated from TF test vectors */
12511 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
12512 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
12513 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
12514 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
12515 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
12516 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
12517 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
12518 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
12519 		.klen	= 64,
12520 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
12521 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
12522 		.input	= "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
12523 			  "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
12524 			  "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
12525 			  "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
12526 			  "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
12527 			  "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
12528 			  "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
12529 			  "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
12530 			  "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
12531 			  "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
12532 			  "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
12533 			  "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
12534 			  "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
12535 			  "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
12536 			  "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
12537 			  "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
12538 			  "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
12539 			  "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
12540 			  "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
12541 			  "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
12542 			  "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
12543 			  "\x71\x38\x17\x91\x44\xE8\xFC\x65"
12544 			  "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
12545 			  "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
12546 			  "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
12547 			  "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
12548 			  "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
12549 			  "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
12550 			  "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
12551 			  "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
12552 			  "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
12553 			  "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
12554 			  "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
12555 			  "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
12556 			  "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
12557 			  "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
12558 			  "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
12559 			  "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
12560 			  "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
12561 			  "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
12562 			  "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
12563 			  "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
12564 			  "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
12565 			  "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
12566 			  "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
12567 			  "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
12568 			  "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
12569 			  "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
12570 			  "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
12571 			  "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
12572 			  "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
12573 			  "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
12574 			  "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
12575 			  "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
12576 			  "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
12577 			  "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
12578 			  "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
12579 			  "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
12580 			  "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
12581 			  "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
12582 			  "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
12583 			  "\x45\x72\x80\x17\x81\xBD\x9D\x62"
12584 			  "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
12585 			  "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
12586 		.ilen	= 512,
12587 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12588 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12589 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
12590 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12591 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
12592 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12593 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
12594 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12595 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
12596 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12597 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
12598 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12599 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
12600 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12601 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
12602 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12603 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
12604 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12605 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
12606 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12607 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12608 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12609 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12610 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12611 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12612 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12613 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12614 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12615 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12616 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12617 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12618 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
12619 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
12620 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12621 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
12622 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12623 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
12624 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12625 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
12626 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12627 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
12628 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12629 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
12630 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12631 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
12632 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12633 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
12634 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12635 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
12636 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12637 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
12638 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12639 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12640 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12641 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12642 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12643 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12644 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12645 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12646 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12647 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12648 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12649 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12650 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
12651 		.rlen	= 512,
12652 		.also_non_np = 1,
12653 		.np	= 2,
12654 		.tap	= { 512 - 16, 16 },
12655 	},
12656 };
12657 
12658 
12659 /*
12660  * AES test vectors.
12661  */
12662 #define AES_ENC_TEST_VECTORS 4
12663 #define AES_DEC_TEST_VECTORS 4
12664 #define AES_CBC_ENC_TEST_VECTORS 5
12665 #define AES_CBC_DEC_TEST_VECTORS 5
12666 #define HMAC_SHA1_AES_CBC_ENC_TEST_VECTORS 7
12667 #define HMAC_SHA256_AES_CBC_ENC_TEST_VECTORS 7
12668 #define HMAC_SHA512_AES_CBC_ENC_TEST_VECTORS 7
12669 #define AES_LRW_ENC_TEST_VECTORS 8
12670 #define AES_LRW_DEC_TEST_VECTORS 8
12671 #define AES_XTS_ENC_TEST_VECTORS 5
12672 #define AES_XTS_DEC_TEST_VECTORS 5
12673 #define AES_CTR_ENC_TEST_VECTORS 5
12674 #define AES_CTR_DEC_TEST_VECTORS 5
12675 #define AES_OFB_ENC_TEST_VECTORS 1
12676 #define AES_OFB_DEC_TEST_VECTORS 1
12677 #define AES_CTR_3686_ENC_TEST_VECTORS 7
12678 #define AES_CTR_3686_DEC_TEST_VECTORS 6
12679 #define AES_GCM_ENC_TEST_VECTORS 9
12680 #define AES_GCM_DEC_TEST_VECTORS 8
12681 #define AES_GCM_4106_ENC_TEST_VECTORS 7
12682 #define AES_GCM_4106_DEC_TEST_VECTORS 7
12683 #define AES_CCM_ENC_TEST_VECTORS 7
12684 #define AES_CCM_DEC_TEST_VECTORS 7
12685 #define AES_CCM_4309_ENC_TEST_VECTORS 7
12686 #define AES_CCM_4309_DEC_TEST_VECTORS 10
12687 
12688 static struct cipher_testvec aes_enc_tv_template[] = {
12689 	{ /* From FIPS-197 */
12690 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12691 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12692 		.klen	= 16,
12693 		.input	= "\x00\x11\x22\x33\x44\x55\x66\x77"
12694 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
12695 		.ilen	= 16,
12696 		.result	= "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
12697 			  "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
12698 		.rlen	= 16,
12699 	}, {
12700 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12701 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12702 			  "\x10\x11\x12\x13\x14\x15\x16\x17",
12703 		.klen	= 24,
12704 		.input	= "\x00\x11\x22\x33\x44\x55\x66\x77"
12705 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
12706 		.ilen	= 16,
12707 		.result	= "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
12708 			  "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
12709 		.rlen	= 16,
12710 	}, {
12711 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12712 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12713 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
12714 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12715 		.klen	= 32,
12716 		.input	= "\x00\x11\x22\x33\x44\x55\x66\x77"
12717 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
12718 		.ilen	= 16,
12719 		.result	= "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
12720 			  "\xea\xfc\x49\x90\x4b\x49\x60\x89",
12721 		.rlen	= 16,
12722 	}, { /* Generated with Crypto++ */
12723 		.key	= "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
12724 			  "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
12725 			  "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
12726 			  "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
12727 		.klen	= 32,
12728 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
12729 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
12730 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
12731 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
12732 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
12733 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
12734 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
12735 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
12736 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
12737 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
12738 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
12739 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
12740 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
12741 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
12742 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
12743 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
12744 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
12745 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
12746 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
12747 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
12748 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
12749 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
12750 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
12751 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
12752 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
12753 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
12754 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
12755 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
12756 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
12757 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
12758 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
12759 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
12760 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
12761 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
12762 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
12763 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
12764 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
12765 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
12766 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
12767 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
12768 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
12769 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
12770 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
12771 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
12772 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
12773 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
12774 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
12775 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
12776 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
12777 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
12778 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
12779 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
12780 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
12781 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
12782 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
12783 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
12784 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
12785 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
12786 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
12787 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
12788 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
12789 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
12790 		.ilen	= 496,
12791 		.result	= "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
12792 			  "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
12793 			  "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
12794 			  "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
12795 			  "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
12796 			  "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
12797 			  "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
12798 			  "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
12799 			  "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
12800 			  "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
12801 			  "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
12802 			  "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
12803 			  "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
12804 			  "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
12805 			  "\x41\x72\x51\x97\x1D\x07\x49\xA0"
12806 			  "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
12807 			  "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
12808 			  "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
12809 			  "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
12810 			  "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
12811 			  "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
12812 			  "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
12813 			  "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
12814 			  "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
12815 			  "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
12816 			  "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
12817 			  "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
12818 			  "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
12819 			  "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
12820 			  "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
12821 			  "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
12822 			  "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
12823 			  "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
12824 			  "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
12825 			  "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
12826 			  "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
12827 			  "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
12828 			  "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
12829 			  "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
12830 			  "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
12831 			  "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
12832 			  "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
12833 			  "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
12834 			  "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
12835 			  "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
12836 			  "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
12837 			  "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
12838 			  "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
12839 			  "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
12840 			  "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
12841 			  "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
12842 			  "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
12843 			  "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
12844 			  "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
12845 			  "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
12846 			  "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
12847 			  "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
12848 			  "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
12849 			  "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
12850 			  "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
12851 			  "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
12852 			  "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
12853 		.rlen	= 496,
12854 		.also_non_np = 1,
12855 		.np	= 2,
12856 		.tap	= { 496 - 16, 16 },
12857 	},
12858 };
12859 
12860 static struct cipher_testvec aes_dec_tv_template[] = {
12861 	{ /* From FIPS-197 */
12862 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12863 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12864 		.klen	= 16,
12865 		.input	= "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
12866 			  "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
12867 		.ilen	= 16,
12868 		.result	= "\x00\x11\x22\x33\x44\x55\x66\x77"
12869 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
12870 		.rlen	= 16,
12871 	}, {
12872 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12873 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12874 			  "\x10\x11\x12\x13\x14\x15\x16\x17",
12875 		.klen	= 24,
12876 		.input	= "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
12877 			  "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
12878 		.ilen	= 16,
12879 		.result	= "\x00\x11\x22\x33\x44\x55\x66\x77"
12880 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
12881 		.rlen	= 16,
12882 	}, {
12883 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
12884 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12885 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
12886 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12887 		.klen	= 32,
12888 		.input	= "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
12889 			  "\xea\xfc\x49\x90\x4b\x49\x60\x89",
12890 		.ilen	= 16,
12891 		.result	= "\x00\x11\x22\x33\x44\x55\x66\x77"
12892 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
12893 		.rlen	= 16,
12894 	}, { /* Generated with Crypto++ */
12895 		.key	= "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
12896 			  "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
12897 			  "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
12898 			  "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
12899 		.klen	= 32,
12900 		.input	= "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
12901 			  "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
12902 			  "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
12903 			  "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
12904 			  "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
12905 			  "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
12906 			  "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
12907 			  "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
12908 			  "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
12909 			  "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
12910 			  "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
12911 			  "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
12912 			  "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
12913 			  "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
12914 			  "\x41\x72\x51\x97\x1D\x07\x49\xA0"
12915 			  "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
12916 			  "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
12917 			  "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
12918 			  "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
12919 			  "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
12920 			  "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
12921 			  "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
12922 			  "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
12923 			  "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
12924 			  "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
12925 			  "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
12926 			  "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
12927 			  "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
12928 			  "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
12929 			  "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
12930 			  "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
12931 			  "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
12932 			  "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
12933 			  "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
12934 			  "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
12935 			  "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
12936 			  "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
12937 			  "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
12938 			  "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
12939 			  "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
12940 			  "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
12941 			  "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
12942 			  "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
12943 			  "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
12944 			  "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
12945 			  "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
12946 			  "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
12947 			  "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
12948 			  "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
12949 			  "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
12950 			  "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
12951 			  "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
12952 			  "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
12953 			  "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
12954 			  "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
12955 			  "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
12956 			  "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
12957 			  "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
12958 			  "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
12959 			  "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
12960 			  "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
12961 			  "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
12962 		.ilen	= 496,
12963 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
12964 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
12965 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
12966 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
12967 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
12968 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
12969 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
12970 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
12971 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
12972 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
12973 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
12974 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
12975 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
12976 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
12977 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
12978 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
12979 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
12980 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
12981 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
12982 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
12983 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
12984 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
12985 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
12986 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
12987 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
12988 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
12989 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
12990 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
12991 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
12992 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
12993 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
12994 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
12995 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
12996 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
12997 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
12998 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
12999 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13000 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13001 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13002 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13003 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13004 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13005 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13006 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13007 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13008 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13009 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13010 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13011 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13012 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13013 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13014 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13015 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13016 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13017 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13018 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13019 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13020 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13021 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13022 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13023 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13024 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13025 		.rlen	= 496,
13026 		.also_non_np = 1,
13027 		.np	= 2,
13028 		.tap	= { 496 - 16, 16 },
13029 	},
13030 };
13031 
13032 static struct cipher_testvec aes_cbc_enc_tv_template[] = {
13033 	{ /* From RFC 3602 */
13034 		.key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13035 			  "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13036 		.klen   = 16,
13037 		.iv	= "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13038 			  "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13039 		.input	= "Single block msg",
13040 		.ilen   = 16,
13041 		.result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13042 			  "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
13043 		.rlen   = 16,
13044 	}, {
13045 		.key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13046 			  "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13047 		.klen   = 16,
13048 		.iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13049 			  "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13050 		.input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13051 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13052 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
13053 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13054 		.ilen   = 32,
13055 		.result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13056 			  "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13057 			  "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13058 			  "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
13059 		.rlen   = 32,
13060 	}, { /* From NIST SP800-38A */
13061 		.key	= "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13062 			  "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13063 			  "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13064 		.klen	= 24,
13065 		.iv	= "\x00\x01\x02\x03\x04\x05\x06\x07"
13066 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13067 		.input	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13068 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13069 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13070 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13071 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13072 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13073 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13074 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13075 		.ilen	= 64,
13076 		.result	= "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13077 			  "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13078 			  "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13079 			  "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13080 			  "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13081 			  "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13082 			  "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13083 			  "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
13084 		.rlen	= 64,
13085 	}, {
13086 		.key	= "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13087 			  "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13088 			  "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13089 			  "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13090 		.klen	= 32,
13091 		.iv	= "\x00\x01\x02\x03\x04\x05\x06\x07"
13092 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13093 		.input	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13094 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13095 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13096 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13097 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13098 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13099 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13100 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13101 		.ilen	= 64,
13102 		.result	= "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13103 			  "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13104 			  "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13105 			  "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13106 			  "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13107 			  "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13108 			  "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13109 			  "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
13110 		.rlen	= 64,
13111 	}, { /* Generated with Crypto++ */
13112 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
13113 			  "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
13114 			  "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
13115 			  "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
13116 		.klen	= 32,
13117 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
13118 			  "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
13119 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13120 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13121 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13122 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13123 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13124 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13125 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13126 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13127 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13128 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13129 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13130 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13131 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13132 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13133 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13134 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13135 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13136 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13137 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13138 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13139 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13140 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13141 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13142 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13143 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13144 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13145 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13146 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13147 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13148 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13149 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13150 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13151 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13152 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13153 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13154 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13155 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13156 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13157 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13158 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13159 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13160 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13161 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13162 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13163 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13164 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13165 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13166 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13167 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13168 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13169 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13170 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13171 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13172 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13173 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13174 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13175 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13176 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13177 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13178 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13179 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13180 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13181 		.ilen	= 496,
13182 		.result	= "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
13183 			  "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
13184 			  "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
13185 			  "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
13186 			  "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
13187 			  "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
13188 			  "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
13189 			  "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
13190 			  "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
13191 			  "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
13192 			  "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
13193 			  "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
13194 			  "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
13195 			  "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
13196 			  "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
13197 			  "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
13198 			  "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
13199 			  "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
13200 			  "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
13201 			  "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
13202 			  "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
13203 			  "\x16\x24\x02\x07\x48\xAE\xF2\x31"
13204 			  "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
13205 			  "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
13206 			  "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
13207 			  "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
13208 			  "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
13209 			  "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
13210 			  "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
13211 			  "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
13212 			  "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
13213 			  "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
13214 			  "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
13215 			  "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
13216 			  "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
13217 			  "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
13218 			  "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
13219 			  "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
13220 			  "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
13221 			  "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
13222 			  "\x22\x39\x7B\x16\x03\x01\x69\xAF"
13223 			  "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
13224 			  "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
13225 			  "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
13226 			  "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
13227 			  "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
13228 			  "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
13229 			  "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
13230 			  "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
13231 			  "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
13232 			  "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
13233 			  "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
13234 			  "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
13235 			  "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
13236 			  "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
13237 			  "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
13238 			  "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
13239 			  "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
13240 			  "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
13241 			  "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
13242 			  "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
13243 			  "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
13244 		.rlen	= 496,
13245 		.also_non_np = 1,
13246 		.np	= 2,
13247 		.tap	= { 496 - 16, 16 },
13248 	},
13249 };
13250 
13251 static struct cipher_testvec aes_cbc_dec_tv_template[] = {
13252 	{ /* From RFC 3602 */
13253 		.key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13254 			  "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13255 		.klen   = 16,
13256 		.iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13257 			  "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13258 		.input  = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13259 			  "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
13260 		.ilen   = 16,
13261 		.result = "Single block msg",
13262 		.rlen   = 16,
13263 	}, {
13264 		.key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13265 			  "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13266 		.klen   = 16,
13267 		.iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13268 			  "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13269 		.input  = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13270 			  "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13271 			  "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13272 			  "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
13273 		.ilen   = 32,
13274 		.result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13275 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13276 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
13277 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13278 		.rlen   = 32,
13279 	}, { /* From NIST SP800-38A */
13280 		.key	= "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13281 			  "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13282 			  "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13283 		.klen	= 24,
13284 		.iv	= "\x00\x01\x02\x03\x04\x05\x06\x07"
13285 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13286 		.input	= "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13287 			  "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13288 			  "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13289 			  "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13290 			  "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13291 			  "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13292 			  "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13293 			  "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
13294 		.ilen	= 64,
13295 		.result	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13296 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13297 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13298 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13299 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13300 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13301 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13302 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13303 		.rlen	= 64,
13304 	}, {
13305 		.key	= "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13306 			  "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13307 			  "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13308 			  "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13309 		.klen	= 32,
13310 		.iv	= "\x00\x01\x02\x03\x04\x05\x06\x07"
13311 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13312 		.input	= "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13313 			  "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13314 			  "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13315 			  "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13316 			  "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13317 			  "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13318 			  "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13319 			  "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
13320 		.ilen	= 64,
13321 		.result	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13322 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13323 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13324 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13325 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13326 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13327 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13328 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13329 		.rlen	= 64,
13330 	}, { /* Generated with Crypto++ */
13331 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
13332 			  "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
13333 			  "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
13334 			  "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
13335 		.klen	= 32,
13336 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
13337 			  "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
13338 		.input	= "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
13339 			  "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
13340 			  "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
13341 			  "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
13342 			  "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
13343 			  "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
13344 			  "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
13345 			  "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
13346 			  "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
13347 			  "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
13348 			  "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
13349 			  "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
13350 			  "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
13351 			  "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
13352 			  "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
13353 			  "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
13354 			  "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
13355 			  "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
13356 			  "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
13357 			  "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
13358 			  "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
13359 			  "\x16\x24\x02\x07\x48\xAE\xF2\x31"
13360 			  "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
13361 			  "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
13362 			  "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
13363 			  "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
13364 			  "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
13365 			  "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
13366 			  "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
13367 			  "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
13368 			  "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
13369 			  "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
13370 			  "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
13371 			  "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
13372 			  "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
13373 			  "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
13374 			  "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
13375 			  "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
13376 			  "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
13377 			  "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
13378 			  "\x22\x39\x7B\x16\x03\x01\x69\xAF"
13379 			  "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
13380 			  "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
13381 			  "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
13382 			  "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
13383 			  "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
13384 			  "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
13385 			  "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
13386 			  "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
13387 			  "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
13388 			  "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
13389 			  "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
13390 			  "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
13391 			  "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
13392 			  "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
13393 			  "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
13394 			  "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
13395 			  "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
13396 			  "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
13397 			  "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
13398 			  "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
13399 			  "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
13400 		.ilen	= 496,
13401 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13402 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13403 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13404 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13405 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13406 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13407 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13408 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13409 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13410 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13411 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13412 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13413 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13414 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13415 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13416 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13417 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13418 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13419 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13420 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13421 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13422 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13423 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13424 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13425 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13426 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13427 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13428 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13429 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13430 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13431 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13432 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13433 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13434 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13435 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13436 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13437 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13438 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13439 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13440 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13441 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13442 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13443 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13444 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13445 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13446 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13447 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13448 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13449 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13450 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13451 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13452 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13453 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13454 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13455 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13456 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13457 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13458 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13459 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13460 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13461 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13462 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13463 		.rlen	= 496,
13464 		.also_non_np = 1,
13465 		.np	= 2,
13466 		.tap	= { 496 - 16, 16 },
13467 	},
13468 };
13469 
13470 static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_template[] = {
13471 	{ /* RFC 3602 Case 1 */
13472 #ifdef __LITTLE_ENDIAN
13473 		.key    = "\x08\x00"		/* rta length */
13474 			  "\x01\x00"		/* rta type */
13475 #else
13476 		.key    = "\x00\x08"		/* rta length */
13477 			  "\x00\x01"		/* rta type */
13478 #endif
13479 			  "\x00\x00\x00\x10"	/* enc key length */
13480 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13481 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13482 			  "\x00\x00\x00\x00"
13483 			  "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13484 			  "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13485 		.klen   = 8 + 20 + 16,
13486 		.iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13487 			  "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13488 		.input  = "Single block msg",
13489 		.ilen   = 16,
13490 		.result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13491 			  "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13492 			  "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
13493 			  "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
13494 			  "\x03\x71\xa2\x06",
13495 		.rlen   = 16 + 20,
13496 	}, { /* RFC 3602 Case 2 */
13497 #ifdef __LITTLE_ENDIAN
13498 		.key    = "\x08\x00"		/* rta length */
13499 			  "\x01\x00"		/* rta type */
13500 #else
13501 		.key    = "\x00\x08"		/* rta length */
13502 			  "\x00\x01"		/* rta type */
13503 #endif
13504 			  "\x00\x00\x00\x10"	/* enc key length */
13505 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
13506 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13507 			  "\x30\x31\x32\x33"
13508 			  "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13509 			  "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13510 		.klen   = 8 + 20 + 16,
13511 		.iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13512 			  "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13513 		.input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13514 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13515 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
13516 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13517 		.ilen   = 32,
13518 		.result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13519 			  "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13520 			  "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13521 			  "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13522 			  "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
13523 			  "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
13524 			  "\x65\x39\xf8\xde",
13525 		.rlen   = 32 + 20,
13526 	}, { /* RFC 3602 Case 3 */
13527 #ifdef __LITTLE_ENDIAN
13528 		.key    = "\x08\x00"		/* rta length */
13529 			  "\x01\x00"            /* rta type */
13530 #else
13531 		.key    = "\x00\x08"		/* rta length */
13532 			  "\x00\x01"		/* rta type */
13533 #endif
13534 			  "\x00\x00\x00\x10"	/* enc key length */
13535 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13536 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13537 			  "\x22\x33\x44\x55"
13538 			  "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
13539 			  "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
13540 		.klen   = 8 + 20 + 16,
13541 		.iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13542 			  "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
13543 		.input  = "This is a 48-byte message (exactly 3 AES blocks)",
13544 		.ilen   = 48,
13545 		.result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
13546 			  "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
13547 			  "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
13548 			  "\x50\x69\x39\x27\x67\x72\xf8\xd5"
13549 			  "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
13550 			  "\x85\x79\x69\x5d\x83\xba\x26\x84"
13551 			  "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
13552 			  "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
13553 			  "\x8d\x62\xf2\x1e",
13554 		.rlen   = 48 + 20,
13555 	}, { /* RFC 3602 Case 4 */
13556 #ifdef __LITTLE_ENDIAN
13557 		.key    = "\x08\x00"		/* rta length */
13558 			  "\x01\x00"		/* rta type */
13559 #else
13560 		.key    = "\x00\x08"		/* rta length */
13561 			  "\x00\x01"            /* rta type */
13562 #endif
13563 			  "\x00\x00\x00\x10"	/* enc key length */
13564 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13565 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13566 			  "\x22\x33\x44\x55"
13567 			  "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
13568 			  "\xbc\x46\x90\x3d\xba\x29\x03\x49",
13569 		.klen   = 8 + 20 + 16,
13570 		.iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13571 			  "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
13572 		.input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13573 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13574 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13575 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13576 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13577 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13578 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13579 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
13580 		.ilen   = 64,
13581 		.result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
13582 			  "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
13583 			  "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
13584 			  "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
13585 			  "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
13586 			  "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
13587 			  "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
13588 			  "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
13589 			  "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
13590 			  "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
13591 			  "\x1d\xbe\xc6\xe9",
13592 		.rlen   = 64 + 20,
13593 	}, { /* RFC 3602 Case 5 */
13594 #ifdef __LITTLE_ENDIAN
13595 		.key    = "\x08\x00"		/* rta length */
13596 			  "\x01\x00"            /* rta type */
13597 #else
13598 		.key    = "\x00\x08"		/* rta length */
13599 			  "\x00\x01"            /* rta type */
13600 #endif
13601 			  "\x00\x00\x00\x10"	/* enc key length */
13602 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13603 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13604 			  "\x22\x33\x44\x55"
13605 			  "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13606 			  "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13607 		.klen   = 8 + 20 + 16,
13608 		.iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13609 			  "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13610 		.assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01",
13611 		.alen   = 8,
13612 		.input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
13613 			  "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13614 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13615 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
13616 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13617 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
13618 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13619 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
13620 			  "\x01\x02\x03\x04\x05\x06\x07\x08"
13621 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
13622 		.ilen   = 80,
13623 		.result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
13624 			  "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13625 			  "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13626 			  "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13627 			  "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13628 			  "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13629 			  "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13630 			  "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13631 			  "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13632 			  "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13633 			  "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
13634 			  "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
13635 			  "\x85\xe1\x59\xf7",
13636 		.rlen   = 80 + 20,
13637        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13638 #ifdef __LITTLE_ENDIAN
13639 		.key    = "\x08\x00"            /* rta length */
13640 			  "\x01\x00"		/* rta type */
13641 #else
13642 		.key    = "\x00\x08"		/* rta length */
13643 			  "\x00\x01"            /* rta type */
13644 #endif
13645 			  "\x00\x00\x00\x18"	/* enc key length */
13646 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13647 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13648 			  "\x22\x33\x44\x55"
13649 			  "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13650 			  "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13651 			  "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13652 		.klen   = 8 + 20 + 24,
13653 		.iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13654 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13655 		.input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13656 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13657 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13658 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13659 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13660 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13661 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13662 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13663 		.ilen   = 64,
13664 		.result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13665 			  "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13666 			  "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13667 			  "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13668 			  "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13669 			  "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13670 			  "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13671 			  "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13672 			  "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
13673 			  "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
13674 			  "\x47\x4c\xfc\x36",
13675 		.rlen   = 64 + 20,
13676 	}, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13677 #ifdef __LITTLE_ENDIAN
13678 		.key    = "\x08\x00"		/* rta length */
13679 			  "\x01\x00"		/* rta type */
13680 #else
13681 		.key    = "\x00\x08"		/* rta length */
13682 			  "\x00\x01"            /* rta type */
13683 #endif
13684 			  "\x00\x00\x00\x20"	/* enc key length */
13685 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13686 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13687 			  "\x22\x33\x44\x55"
13688 			  "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13689 			  "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13690 			  "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13691 			  "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13692 		.klen   = 8 + 20 + 32,
13693 		.iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13694 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13695 		.input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13696 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13697 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13698 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13699 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13700 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13701 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13702 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13703 		.ilen   = 64,
13704 		.result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13705 			  "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13706 			  "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13707 			  "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13708 			  "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13709 			  "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13710 			  "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13711 			  "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13712 			  "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
13713 			  "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
13714 			  "\x51\xee\xd6\x4e",
13715 		.rlen   = 64 + 20,
13716 	},
13717 };
13718 
13719 static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_template[] = {
13720 	{ /* RFC 3602 Case 1 */
13721 #ifdef __LITTLE_ENDIAN
13722 		.key    = "\x08\x00"		/* rta length */
13723 			  "\x01\x00"		/* rta type */
13724 #else
13725 		.key    = "\x00\x08"		/* rta length */
13726 			  "\x00\x01"		/* rta type */
13727 #endif
13728 			  "\x00\x00\x00\x10"	/* enc key length */
13729 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13730 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13731 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13732 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13733 			  "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13734 			  "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13735 		.klen   = 8 + 32 + 16,
13736 		.iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13737 			  "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13738 		.input  = "Single block msg",
13739 		.ilen   = 16,
13740 		.result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13741 			  "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13742 			  "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
13743 			  "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
13744 			  "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
13745 			  "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
13746 		.rlen   = 16 + 32,
13747 	}, { /* RFC 3602 Case 2 */
13748 #ifdef __LITTLE_ENDIAN
13749 		.key    = "\x08\x00"		/* rta length */
13750 			  "\x01\x00"		/* rta type */
13751 #else
13752 		.key    = "\x00\x08"		/* rta length */
13753 			  "\x00\x01"		/* rta type */
13754 #endif
13755 			  "\x00\x00\x00\x10"	/* enc key length */
13756 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
13757 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13758 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
13759 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13760 			  "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13761 			  "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13762 		.klen   = 8 + 32 + 16,
13763 		.iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13764 			  "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13765 		.input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13766 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13767 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
13768 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13769 		.ilen   = 32,
13770 		.result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13771 			  "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13772 			  "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13773 			  "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13774 			  "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
13775 			  "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
13776 			  "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
13777 			  "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
13778 		.rlen   = 32 + 32,
13779 	}, { /* RFC 3602 Case 3 */
13780 #ifdef __LITTLE_ENDIAN
13781 		.key    = "\x08\x00"		/* rta length */
13782 			  "\x01\x00"            /* rta type */
13783 #else
13784 		.key    = "\x00\x08"		/* rta length */
13785 			  "\x00\x01"		/* rta type */
13786 #endif
13787 			  "\x00\x00\x00\x10"	/* enc key length */
13788 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13789 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13790 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
13791 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13792 			  "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
13793 			  "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
13794 		.klen   = 8 + 32 + 16,
13795 		.iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13796 			  "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
13797 		.input  = "This is a 48-byte message (exactly 3 AES blocks)",
13798 		.ilen   = 48,
13799 		.result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
13800 			  "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
13801 			  "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
13802 			  "\x50\x69\x39\x27\x67\x72\xf8\xd5"
13803 			  "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
13804 			  "\x85\x79\x69\x5d\x83\xba\x26\x84"
13805 			  "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
13806 			  "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
13807 			  "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
13808 			  "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
13809 		.rlen   = 48 + 32,
13810 	}, { /* RFC 3602 Case 4 */
13811 #ifdef __LITTLE_ENDIAN
13812 		.key    = "\x08\x00"		/* rta length */
13813 			  "\x01\x00"		/* rta type */
13814 #else
13815 		.key    = "\x00\x08"		/* rta length */
13816 			  "\x00\x01"            /* rta type */
13817 #endif
13818 			  "\x00\x00\x00\x10"	/* enc key length */
13819 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13820 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13821 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
13822 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13823 			  "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
13824 			  "\xbc\x46\x90\x3d\xba\x29\x03\x49",
13825 		.klen   = 8 + 32 + 16,
13826 		.iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13827 			  "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
13828 		.input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13829 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13830 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13831 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13832 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13833 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13834 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13835 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
13836 		.ilen   = 64,
13837 		.result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
13838 			  "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
13839 			  "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
13840 			  "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
13841 			  "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
13842 			  "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
13843 			  "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
13844 			  "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
13845 			  "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
13846 			  "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
13847 			  "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
13848 			  "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
13849 		.rlen   = 64 + 32,
13850 	}, { /* RFC 3602 Case 5 */
13851 #ifdef __LITTLE_ENDIAN
13852 		.key    = "\x08\x00"		/* rta length */
13853 			  "\x01\x00"            /* rta type */
13854 #else
13855 		.key    = "\x00\x08"		/* rta length */
13856 			  "\x00\x01"            /* rta type */
13857 #endif
13858 			  "\x00\x00\x00\x10"	/* enc key length */
13859 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13860 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13861 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
13862 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13863 			  "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13864 			  "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13865 		.klen   = 8 + 32 + 16,
13866 		.iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13867 			  "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13868 		.assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01",
13869 		.alen   = 8,
13870 		.input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
13871 			  "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13872 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13873 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
13874 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13875 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
13876 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13877 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
13878 			  "\x01\x02\x03\x04\x05\x06\x07\x08"
13879 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
13880 		.ilen   = 80,
13881 		.result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
13882 			  "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13883 			  "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13884 			  "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13885 			  "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13886 			  "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13887 			  "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13888 			  "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13889 			  "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13890 			  "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13891 			  "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
13892 			  "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
13893 			  "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
13894 			  "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
13895 		.rlen   = 80 + 32,
13896        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13897 #ifdef __LITTLE_ENDIAN
13898 		.key    = "\x08\x00"            /* rta length */
13899 			  "\x01\x00"		/* rta type */
13900 #else
13901 		.key    = "\x00\x08"		/* rta length */
13902 			  "\x00\x01"            /* rta type */
13903 #endif
13904 			  "\x00\x00\x00\x18"	/* enc key length */
13905 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13906 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13907 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
13908 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13909 			  "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13910 			  "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13911 			  "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13912 		.klen   = 8 + 32 + 24,
13913 		.iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13914 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13915 		.input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13916 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13917 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13918 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13919 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13920 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13921 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13922 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13923 		.ilen   = 64,
13924 		.result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13925 			  "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13926 			  "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13927 			  "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13928 			  "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13929 			  "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13930 			  "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13931 			  "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13932 			  "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
13933 			  "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
13934 			  "\xca\x71\x85\x93\xf7\x85\x55\x8b"
13935 			  "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
13936 		.rlen   = 64 + 32,
13937 	}, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13938 #ifdef __LITTLE_ENDIAN
13939 		.key    = "\x08\x00"		/* rta length */
13940 			  "\x01\x00"		/* rta type */
13941 #else
13942 		.key    = "\x00\x08"		/* rta length */
13943 			  "\x00\x01"            /* rta type */
13944 #endif
13945 			  "\x00\x00\x00\x20"	/* enc key length */
13946 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
13947 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13948 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
13949 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13950 			  "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13951 			  "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13952 			  "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13953 			  "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13954 		.klen   = 8 + 32 + 32,
13955 		.iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13956 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13957 		.input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13958 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13959 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13960 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13961 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13962 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13963 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13964 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13965 		.ilen   = 64,
13966 		.result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13967 			  "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13968 			  "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13969 			  "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13970 			  "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13971 			  "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13972 			  "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13973 			  "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13974 			  "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
13975 			  "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
13976 			  "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
13977 			  "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
13978 		.rlen   = 64 + 32,
13979 	},
13980 };
13981 
13982 static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_template[] = {
13983 	{ /* RFC 3602 Case 1 */
13984 #ifdef __LITTLE_ENDIAN
13985 		.key    = "\x08\x00"		/* rta length */
13986 			  "\x01\x00"		/* rta type */
13987 #else
13988 		.key    = "\x00\x08"		/* rta length */
13989 			  "\x00\x01"		/* rta type */
13990 #endif
13991 			  "\x00\x00\x00\x10"	/* enc key length */
13992 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13993 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13994 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13995 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13996 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13997 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13998 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
13999 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
14000 			  "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
14001 			  "\x51\x2e\x03\xd5\x34\x12\x00\x06",
14002 		.klen   = 8 + 64 + 16,
14003 		.iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
14004 			  "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
14005 		.input  = "Single block msg",
14006 		.ilen   = 16,
14007 		.result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
14008 			  "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
14009 			  "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
14010 			  "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
14011 			  "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
14012 			  "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
14013 			  "\xec\xbd\x50\x08\x07\x64\x1a\x49"
14014 			  "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
14015 			  "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
14016 			  "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
14017 		.rlen   = 16 + 64,
14018 	}, { /* RFC 3602 Case 2 */
14019 #ifdef __LITTLE_ENDIAN
14020 		.key    = "\x08\x00"		/* rta length */
14021 			  "\x01\x00"		/* rta type */
14022 #else
14023 		.key    = "\x00\x08"		/* rta length */
14024 			  "\x00\x01"		/* rta type */
14025 #endif
14026 			  "\x00\x00\x00\x10"	/* enc key length */
14027 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
14028 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14029 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
14030 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14031 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
14032 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14033 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
14034 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14035 			  "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
14036 			  "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
14037 		.klen   = 8 + 64 + 16,
14038 		.iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
14039 			  "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
14040 		.input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14041 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14042 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
14043 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14044 		.ilen   = 32,
14045 		.result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
14046 			  "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
14047 			  "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
14048 			  "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
14049 			  "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
14050 			  "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
14051 			  "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
14052 			  "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
14053 			  "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
14054 			  "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
14055 			  "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
14056 			  "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
14057 		.rlen   = 32 + 64,
14058 	}, { /* RFC 3602 Case 3 */
14059 #ifdef __LITTLE_ENDIAN
14060 		.key    = "\x08\x00"		/* rta length */
14061 			  "\x01\x00"            /* rta type */
14062 #else
14063 		.key    = "\x00\x08"		/* rta length */
14064 			  "\x00\x01"		/* rta type */
14065 #endif
14066 			  "\x00\x00\x00\x10"	/* enc key length */
14067 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
14068 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14069 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
14070 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14071 			  "\x33\x44\x55\x66\x77\x88\x99\xaa"
14072 			  "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14073 			  "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14074 			  "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14075 			  "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
14076 			  "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
14077 		.klen   = 8 + 64 + 16,
14078 		.iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
14079 			  "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
14080 		.input  = "This is a 48-byte message (exactly 3 AES blocks)",
14081 		.ilen   = 48,
14082 		.result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
14083 			  "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
14084 			  "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
14085 			  "\x50\x69\x39\x27\x67\x72\xf8\xd5"
14086 			  "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
14087 			  "\x85\x79\x69\x5d\x83\xba\x26\x84"
14088 			  "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
14089 			  "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
14090 			  "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
14091 			  "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
14092 			  "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
14093 			  "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
14094 			  "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
14095 			  "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
14096 		.rlen   = 48 + 64,
14097 	}, { /* RFC 3602 Case 4 */
14098 #ifdef __LITTLE_ENDIAN
14099 		.key    = "\x08\x00"		/* rta length */
14100 			  "\x01\x00"		/* rta type */
14101 #else
14102 		.key    = "\x00\x08"		/* rta length */
14103 			  "\x00\x01"            /* rta type */
14104 #endif
14105 			  "\x00\x00\x00\x10"	/* enc key length */
14106 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
14107 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14108 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
14109 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14110 			  "\x33\x44\x55\x66\x77\x88\x99\xaa"
14111 			  "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14112 			  "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14113 			  "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14114 			  "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
14115 			  "\xbc\x46\x90\x3d\xba\x29\x03\x49",
14116 		.klen   = 8 + 64 + 16,
14117 		.iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
14118 			  "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
14119 		.input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14120 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14121 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14122 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14123 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14124 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14125 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14126 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
14127 		.ilen   = 64,
14128 		.result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
14129 			  "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
14130 			  "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
14131 			  "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
14132 			  "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
14133 			  "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
14134 			  "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
14135 			  "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
14136 			  "\x82\xcd\x42\x28\x21\x20\x15\xcc"
14137 			  "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
14138 			  "\x61\x32\x82\x85\xcf\x27\xed\xb4"
14139 			  "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
14140 			  "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
14141 			  "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
14142 			  "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
14143 			  "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
14144 		.rlen   = 64 + 64,
14145 	}, { /* RFC 3602 Case 5 */
14146 #ifdef __LITTLE_ENDIAN
14147 		.key    = "\x08\x00"		/* rta length */
14148 			  "\x01\x00"            /* rta type */
14149 #else
14150 		.key    = "\x00\x08"		/* rta length */
14151 			  "\x00\x01"            /* rta type */
14152 #endif
14153 			  "\x00\x00\x00\x10"	/* enc key length */
14154 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
14155 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14156 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
14157 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14158 			  "\x33\x44\x55\x66\x77\x88\x99\xaa"
14159 			  "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14160 			  "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14161 			  "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14162 			  "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
14163 			  "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
14164 		.klen   = 8 + 64 + 16,
14165 		.iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
14166 			  "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
14167 		.assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01",
14168 		.alen   = 8,
14169 		.input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
14170 			  "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
14171 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14172 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
14173 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14174 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
14175 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14176 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
14177 			  "\x01\x02\x03\x04\x05\x06\x07\x08"
14178 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
14179 		.ilen   = 80,
14180 		.result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
14181 			  "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
14182 			  "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
14183 			  "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
14184 			  "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
14185 			  "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
14186 			  "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
14187 			  "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
14188 			  "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
14189 			  "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
14190 			  "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
14191 			  "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
14192 			  "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
14193 			  "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
14194 			  "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
14195 			  "\x92\x26\xc1\x76\x20\x11\xeb\xba"
14196 			  "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
14197 			  "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
14198 		.rlen   = 80 + 64,
14199        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
14200 #ifdef __LITTLE_ENDIAN
14201 		.key    = "\x08\x00"            /* rta length */
14202 			  "\x01\x00"		/* rta type */
14203 #else
14204 		.key    = "\x00\x08"		/* rta length */
14205 			  "\x00\x01"            /* rta type */
14206 #endif
14207 			  "\x00\x00\x00\x18"	/* enc key length */
14208 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
14209 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14210 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
14211 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14212 			  "\x33\x44\x55\x66\x77\x88\x99\xaa"
14213 			  "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14214 			  "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14215 			  "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14216 			  "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14217 			  "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14218 			  "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14219 		.klen   = 8 + 64 + 24,
14220 		.iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
14221 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14222 		.input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14223 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14224 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14225 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14226 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14227 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14228 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14229 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14230 		.ilen   = 64,
14231 		.result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
14232 			  "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14233 			  "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
14234 			  "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
14235 			  "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
14236 			  "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
14237 			  "\x08\xb0\xe2\x79\x88\x59\x88\x81"
14238 			  "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
14239 			  "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
14240 			  "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
14241 			  "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
14242 			  "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
14243 			  "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
14244 			  "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
14245 			  "\x8d\x43\x98\xa7\x94\x16\x07\x02"
14246 			  "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
14247 		.rlen   = 64 + 64,
14248 	}, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
14249 #ifdef __LITTLE_ENDIAN
14250 		.key    = "\x08\x00"		/* rta length */
14251 			  "\x01\x00"		/* rta type */
14252 #else
14253 		.key    = "\x00\x08"		/* rta length */
14254 			  "\x00\x01"            /* rta type */
14255 #endif
14256 			  "\x00\x00\x00\x20"	/* enc key length */
14257 			  "\x11\x22\x33\x44\x55\x66\x77\x88"
14258 			  "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14259 			  "\x22\x33\x44\x55\x66\x77\x88\x99"
14260 			  "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14261 			  "\x33\x44\x55\x66\x77\x88\x99\xaa"
14262 			  "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14263 			  "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14264 			  "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14265 			  "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14266 			  "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14267 			  "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14268 			  "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14269 		.klen   = 8 + 64 + 32,
14270 		.iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
14271 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14272 		.input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14273 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14274 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14275 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14276 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14277 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14278 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14279 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14280 		.ilen   = 64,
14281 		.result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
14282 			  "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14283 			  "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14284 			  "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14285 			  "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14286 			  "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14287 			  "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14288 			  "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
14289 			  "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
14290 			  "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
14291 			  "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
14292 			  "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
14293 			  "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
14294 			  "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
14295 			  "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
14296 			  "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
14297 		.rlen   = 64 + 64,
14298 	},
14299 };
14300 
14301 static struct cipher_testvec aes_lrw_enc_tv_template[] = {
14302 	/* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
14303 	{ /* LRW-32-AES 1 */
14304 		.key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
14305 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
14306 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
14307 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
14308 		.klen   = 32,
14309 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14310 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14311 		.input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14312 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14313 		.ilen   = 16,
14314 		.result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
14315 			  "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
14316 		.rlen   = 16,
14317 	}, { /* LRW-32-AES 2 */
14318 		.key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
14319 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
14320 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
14321 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
14322 		.klen   = 32,
14323 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14324 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
14325 		.input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14326 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14327 		.ilen   = 16,
14328 		.result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
14329 			  "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
14330 		.rlen   = 16,
14331 	}, { /* LRW-32-AES 3 */
14332 		.key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
14333 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
14334 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
14335 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
14336 		.klen   = 32,
14337 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14338 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
14339 		.input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14340 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14341 		.ilen   = 16,
14342 		.result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
14343 			  "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
14344 		.rlen   = 16,
14345 	}, { /* LRW-32-AES 4 */
14346 		.key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
14347 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
14348 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
14349 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
14350 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
14351 		.klen   = 40,
14352 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14353 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14354 		.input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14355 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14356 		.ilen   = 16,
14357 		.result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
14358 			  "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
14359 		.rlen   = 16,
14360 	}, { /* LRW-32-AES 5 */
14361 		.key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
14362 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
14363 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
14364 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
14365 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
14366 		.klen   = 40,
14367 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14368 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
14369 		.input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14370 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14371 		.ilen   = 16,
14372 		.result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
14373 			  "\xc8\x60\x48\x02\x87\xe3\x34\x06",
14374 		.rlen   = 16,
14375 	}, { /* LRW-32-AES 6 */
14376 		.key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14377 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14378 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14379 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14380 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14381 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14382 		.klen   = 48,
14383 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14384 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14385 		.input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14386 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14387 		.ilen   = 16,
14388 		.result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
14389 			  "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
14390 		.rlen   = 16,
14391 	}, { /* LRW-32-AES 7 */
14392 		.key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
14393 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
14394 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
14395 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
14396 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
14397 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
14398 		.klen   = 48,
14399 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14400 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
14401 		.input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14402 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14403 		.ilen   = 16,
14404 		.result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
14405 			  "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
14406 		.rlen   = 16,
14407 	}, {
14408 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
14409 		.key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14410 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14411 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14412 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14413 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14414 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14415 		.klen   = 48,
14416 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14417 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14418 		.input  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14419 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14420 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14421 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14422 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14423 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14424 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14425 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14426 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14427 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14428 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14429 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14430 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14431 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14432 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14433 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14434 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14435 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14436 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14437 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14438 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14439 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14440 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14441 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14442 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14443 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14444 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14445 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14446 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14447 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14448 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14449 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14450 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14451 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14452 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14453 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14454 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14455 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14456 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14457 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14458 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14459 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14460 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14461 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14462 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14463 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14464 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14465 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14466 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14467 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14468 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14469 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14470 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14471 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14472 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14473 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14474 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14475 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14476 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14477 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14478 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14479 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14480 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14481 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14482 		.ilen   = 512,
14483 		.result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
14484 			  "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
14485 			  "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
14486 			  "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
14487 			  "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
14488 			  "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
14489 			  "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
14490 			  "\xe8\x58\x46\x97\x39\x51\x07\xde"
14491 			  "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
14492 			  "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
14493 			  "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
14494 			  "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
14495 			  "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
14496 			  "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
14497 			  "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
14498 			  "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
14499 			  "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
14500 			  "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
14501 			  "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
14502 			  "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
14503 			  "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
14504 			  "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
14505 			  "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
14506 			  "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
14507 			  "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
14508 			  "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
14509 			  "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
14510 			  "\x41\x30\x58\xc5\x62\x74\x52\x1d"
14511 			  "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
14512 			  "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
14513 			  "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
14514 			  "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
14515 			  "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
14516 			  "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
14517 			  "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
14518 			  "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
14519 			  "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
14520 			  "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
14521 			  "\xb8\x79\x78\x97\x94\xff\x72\x13"
14522 			  "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
14523 			  "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
14524 			  "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
14525 			  "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
14526 			  "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
14527 			  "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
14528 			  "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
14529 			  "\x1e\x86\x53\x11\x53\x94\x00\xee"
14530 			  "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
14531 			  "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
14532 			  "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
14533 			  "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
14534 			  "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
14535 			  "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
14536 			  "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
14537 			  "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
14538 			  "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
14539 			  "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
14540 			  "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
14541 			  "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
14542 			  "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
14543 			  "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
14544 			  "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
14545 			  "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
14546 			  "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
14547 		.rlen   = 512,
14548 		.also_non_np = 1,
14549 		.np	= 2,
14550 		.tap	= { 512 - 16, 16 },
14551 	}
14552 };
14553 
14554 static struct cipher_testvec aes_lrw_dec_tv_template[] = {
14555 	/* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
14556 	/* same as enc vectors with input and result reversed */
14557 	{ /* LRW-32-AES 1 */
14558 		.key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
14559 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
14560 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
14561 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
14562 		.klen   = 32,
14563 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14564 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14565 		.input  = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
14566 			  "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
14567 		.ilen   = 16,
14568 		.result = "\x30\x31\x32\x33\x34\x35\x36\x37"
14569 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14570 		.rlen   = 16,
14571 	}, { /* LRW-32-AES 2 */
14572 		.key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
14573 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
14574 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
14575 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
14576 		.klen   = 32,
14577 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14578 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
14579 		.input  = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
14580 			  "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
14581 		.ilen   = 16,
14582 		.result  = "\x30\x31\x32\x33\x34\x35\x36\x37"
14583 			   "\x38\x39\x41\x42\x43\x44\x45\x46",
14584 		.rlen   = 16,
14585 	}, { /* LRW-32-AES 3 */
14586 		.key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
14587 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
14588 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
14589 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
14590 		.klen   = 32,
14591 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14592 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
14593 		.input  = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
14594 			  "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
14595 		.ilen   = 16,
14596 		.result = "\x30\x31\x32\x33\x34\x35\x36\x37"
14597 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14598 		.rlen   = 16,
14599 	}, { /* LRW-32-AES 4 */
14600 		.key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
14601 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
14602 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
14603 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
14604 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
14605 		.klen   = 40,
14606 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14607 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14608 		.input  = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
14609 			  "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
14610 		.ilen   = 16,
14611 		.result = "\x30\x31\x32\x33\x34\x35\x36\x37"
14612 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14613 		.rlen   = 16,
14614 	}, { /* LRW-32-AES 5 */
14615 		.key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
14616 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
14617 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
14618 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
14619 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
14620 		.klen   = 40,
14621 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14622 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
14623 		.input  = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
14624 			  "\xc8\x60\x48\x02\x87\xe3\x34\x06",
14625 		.ilen   = 16,
14626 		.result = "\x30\x31\x32\x33\x34\x35\x36\x37"
14627 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14628 		.rlen   = 16,
14629 	}, { /* LRW-32-AES 6 */
14630 		.key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14631 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14632 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14633 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14634 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14635 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14636 		.klen   = 48,
14637 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14638 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14639 		.input  = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
14640 			  "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
14641 		.ilen   = 16,
14642 		.result = "\x30\x31\x32\x33\x34\x35\x36\x37"
14643 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14644 		.rlen   = 16,
14645 	}, { /* LRW-32-AES 7 */
14646 		.key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
14647 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
14648 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
14649 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
14650 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
14651 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
14652 		.klen   = 48,
14653 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14654 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
14655 		.input  = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
14656 			  "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
14657 		.ilen   = 16,
14658 		.result = "\x30\x31\x32\x33\x34\x35\x36\x37"
14659 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
14660 		.rlen   = 16,
14661 	}, {
14662 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
14663 		.key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14664 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14665 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14666 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14667 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14668 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14669 		.klen   = 48,
14670 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14671 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
14672 		.input	= "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
14673 			  "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
14674 			  "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
14675 			  "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
14676 			  "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
14677 			  "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
14678 			  "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
14679 			  "\xe8\x58\x46\x97\x39\x51\x07\xde"
14680 			  "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
14681 			  "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
14682 			  "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
14683 			  "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
14684 			  "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
14685 			  "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
14686 			  "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
14687 			  "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
14688 			  "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
14689 			  "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
14690 			  "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
14691 			  "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
14692 			  "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
14693 			  "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
14694 			  "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
14695 			  "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
14696 			  "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
14697 			  "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
14698 			  "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
14699 			  "\x41\x30\x58\xc5\x62\x74\x52\x1d"
14700 			  "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
14701 			  "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
14702 			  "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
14703 			  "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
14704 			  "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
14705 			  "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
14706 			  "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
14707 			  "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
14708 			  "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
14709 			  "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
14710 			  "\xb8\x79\x78\x97\x94\xff\x72\x13"
14711 			  "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
14712 			  "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
14713 			  "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
14714 			  "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
14715 			  "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
14716 			  "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
14717 			  "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
14718 			  "\x1e\x86\x53\x11\x53\x94\x00\xee"
14719 			  "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
14720 			  "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
14721 			  "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
14722 			  "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
14723 			  "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
14724 			  "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
14725 			  "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
14726 			  "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
14727 			  "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
14728 			  "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
14729 			  "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
14730 			  "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
14731 			  "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
14732 			  "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
14733 			  "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
14734 			  "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
14735 			  "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
14736 		.ilen   = 512,
14737 		.result	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14738 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14739 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14740 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14741 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14742 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14743 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14744 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14745 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14746 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14747 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14748 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14749 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14750 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14751 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14752 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14753 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14754 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14755 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14756 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14757 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14758 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14759 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14760 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14761 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14762 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14763 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14764 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14765 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14766 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14767 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14768 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14769 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14770 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14771 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14772 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14773 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14774 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14775 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14776 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14777 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14778 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14779 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14780 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14781 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14782 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14783 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14784 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14785 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14786 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14787 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14788 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14789 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14790 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14791 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14792 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14793 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14794 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14795 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14796 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14797 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14798 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14799 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14800 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14801 		.rlen   = 512,
14802 		.also_non_np = 1,
14803 		.np	= 2,
14804 		.tap	= { 512 - 16, 16 },
14805 	}
14806 };
14807 
14808 static struct cipher_testvec aes_xts_enc_tv_template[] = {
14809 	/* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
14810 	{ /* XTS-AES 1 */
14811 		.key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
14812 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
14813 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
14814 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
14815 		.klen   = 32,
14816 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14817 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
14818 		.input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
14819 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
14820 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
14821 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
14822 		.ilen   = 32,
14823 		.result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
14824 			  "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
14825 			  "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
14826 			  "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
14827 		.rlen   = 32,
14828 	}, { /* XTS-AES 2 */
14829 		.key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
14830 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
14831 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
14832 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
14833 		.klen   = 32,
14834 		.iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
14835 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
14836 		.input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
14837 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
14838 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
14839 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
14840 		.ilen   = 32,
14841 		.result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
14842 			  "\x39\x33\x40\x38\xac\xef\x83\x8b"
14843 			  "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
14844 			  "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
14845 		.rlen   = 32,
14846 	}, { /* XTS-AES 3 */
14847 		.key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
14848 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
14849 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
14850 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
14851 		.klen   = 32,
14852 		.iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
14853 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
14854 		.input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
14855 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
14856 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
14857 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
14858 		.ilen   = 32,
14859 		.result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
14860 			  "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
14861 			  "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
14862 			  "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
14863 		.rlen   = 32,
14864 	}, { /* XTS-AES 4 */
14865 		.key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
14866 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
14867 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
14868 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
14869 		.klen   = 32,
14870 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14871 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
14872 		.input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14873 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14874 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
14875 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14876 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
14877 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14878 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
14879 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14880 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
14881 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14882 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
14883 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14884 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
14885 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14886 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
14887 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14888 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
14889 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14890 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
14891 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14892 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14893 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14894 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14895 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14896 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14897 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14898 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14899 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14900 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14901 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14902 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14903 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14904 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
14905 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14906 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
14907 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14908 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
14909 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14910 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
14911 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14912 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
14913 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14914 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
14915 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14916 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
14917 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14918 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
14919 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14920 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
14921 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14922 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
14923 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14924 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14925 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14926 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14927 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14928 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14929 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14930 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14931 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14932 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14933 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14934 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14935 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14936 		.ilen   = 512,
14937 		.result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
14938 			  "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
14939 			  "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
14940 			  "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
14941 			  "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
14942 			  "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
14943 			  "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
14944 			  "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
14945 			  "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
14946 			  "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
14947 			  "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
14948 			  "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
14949 			  "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
14950 			  "\x22\x97\x61\x46\xae\x20\xce\x84"
14951 			  "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
14952 			  "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
14953 			  "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
14954 			  "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
14955 			  "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
14956 			  "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
14957 			  "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
14958 			  "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
14959 			  "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
14960 			  "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
14961 			  "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
14962 			  "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
14963 			  "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
14964 			  "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
14965 			  "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
14966 			  "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
14967 			  "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
14968 			  "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
14969 			  "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
14970 			  "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
14971 			  "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
14972 			  "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
14973 			  "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
14974 			  "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
14975 			  "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
14976 			  "\x55\xef\x52\x97\xca\x67\xe9\xf3"
14977 			  "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
14978 			  "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
14979 			  "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
14980 			  "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
14981 			  "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
14982 			  "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
14983 			  "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
14984 			  "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
14985 			  "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
14986 			  "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
14987 			  "\x18\x84\x69\x77\xae\x11\x9f\x7a"
14988 			  "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
14989 			  "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
14990 			  "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
14991 			  "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
14992 			  "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
14993 			  "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
14994 			  "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
14995 			  "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
14996 			  "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
14997 			  "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
14998 			  "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
14999 			  "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
15000 			  "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
15001 		.rlen   = 512,
15002 	}, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
15003 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
15004 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
15005 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
15006 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
15007 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
15008 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
15009 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
15010 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
15011 		.klen	= 64,
15012 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
15013 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
15014 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
15015 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15016 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
15017 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15018 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
15019 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15020 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
15021 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15022 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
15023 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15024 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
15025 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15026 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
15027 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15028 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
15029 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15030 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
15031 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15032 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
15033 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15034 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15035 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15036 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15037 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15038 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15039 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15040 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15041 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15042 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15043 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15044 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15045 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15046 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
15047 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15048 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
15049 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15050 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
15051 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15052 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
15053 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15054 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
15055 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15056 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
15057 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15058 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
15059 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15060 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
15061 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15062 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
15063 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15064 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
15065 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15066 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15067 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15068 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15069 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15070 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15071 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15072 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15073 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15074 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15075 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15076 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15077 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15078 		.ilen	= 512,
15079 		.result	= "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
15080 			  "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
15081 			  "\xea\x00\x80\x3f\x5e\x48\x23\x57"
15082 			  "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
15083 			  "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
15084 			  "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
15085 			  "\x68\x0a\x86\xac\x35\xad\xfc\x33"
15086 			  "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
15087 			  "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
15088 			  "\xb1\x08\xfd\x10\x98\xba\xec\x70"
15089 			  "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
15090 			  "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
15091 			  "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
15092 			  "\xae\xba\x12\x29\x61\xd0\x3a\x75"
15093 			  "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
15094 			  "\x00\x02\x08\x87\x89\x14\x29\xca"
15095 			  "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
15096 			  "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
15097 			  "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
15098 			  "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
15099 			  "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
15100 			  "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
15101 			  "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
15102 			  "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
15103 			  "\x93\xec\x05\xc5\x2e\x04\x93\xef"
15104 			  "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
15105 			  "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
15106 			  "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
15107 			  "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
15108 			  "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
15109 			  "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
15110 			  "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
15111 			  "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
15112 			  "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
15113 			  "\xbc\x48\x14\x57\x77\x8f\x61\x60"
15114 			  "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
15115 			  "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
15116 			  "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
15117 			  "\xf4\xc3\x33\xec\x44\x23\x88\x51"
15118 			  "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
15119 			  "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
15120 			  "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
15121 			  "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
15122 			  "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
15123 			  "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
15124 			  "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
15125 			  "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
15126 			  "\x92\x5f\xed\xc4\xae\x74\xff\xac"
15127 			  "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
15128 			  "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
15129 			  "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
15130 			  "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
15131 			  "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
15132 			  "\x94\x30\x54\xff\x84\x01\x14\x93"
15133 			  "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
15134 			  "\x53\x76\x44\x1a\x77\xed\x43\x85"
15135 			  "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
15136 			  "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
15137 			  "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
15138 			  "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
15139 			  "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
15140 			  "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
15141 			  "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
15142 			  "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
15143 		.rlen	= 512,
15144 		.also_non_np = 1,
15145 		.np	= 2,
15146 		.tap	= { 512 - 16, 16 },
15147 	}
15148 };
15149 
15150 static struct cipher_testvec aes_xts_dec_tv_template[] = {
15151 	/* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
15152 	{ /* XTS-AES 1 */
15153 		.key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
15154 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
15155 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
15156 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
15157 		.klen   = 32,
15158 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
15159 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
15160 		.input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
15161 			 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
15162 			 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
15163 			 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
15164 		.ilen   = 32,
15165 		.result  = "\x00\x00\x00\x00\x00\x00\x00\x00"
15166 			   "\x00\x00\x00\x00\x00\x00\x00\x00"
15167 			   "\x00\x00\x00\x00\x00\x00\x00\x00"
15168 			   "\x00\x00\x00\x00\x00\x00\x00\x00",
15169 		.rlen   = 32,
15170 	}, { /* XTS-AES 2 */
15171 		.key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
15172 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
15173 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
15174 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
15175 		.klen   = 32,
15176 		.iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
15177 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
15178 		.input  = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
15179 			  "\x39\x33\x40\x38\xac\xef\x83\x8b"
15180 			  "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
15181 			  "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
15182 		.ilen   = 32,
15183 		.result = "\x44\x44\x44\x44\x44\x44\x44\x44"
15184 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
15185 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
15186 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
15187 		.rlen   = 32,
15188 	}, { /* XTS-AES 3 */
15189 		.key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
15190 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
15191 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
15192 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
15193 		.klen   = 32,
15194 		.iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
15195 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
15196 		.input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
15197 			  "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
15198 			  "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
15199 			  "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
15200 		.ilen   = 32,
15201 		.result  = "\x44\x44\x44\x44\x44\x44\x44\x44"
15202 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
15203 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
15204 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
15205 		.rlen   = 32,
15206 	}, { /* XTS-AES 4 */
15207 		.key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
15208 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
15209 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
15210 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
15211 		.klen   = 32,
15212 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
15213 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
15214 		.input  = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
15215 			  "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
15216 			  "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
15217 			  "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
15218 			  "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
15219 			  "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
15220 			  "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
15221 			  "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
15222 			  "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
15223 			  "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
15224 			  "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
15225 			  "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
15226 			  "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
15227 			  "\x22\x97\x61\x46\xae\x20\xce\x84"
15228 			  "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
15229 			  "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
15230 			  "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
15231 			  "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
15232 			  "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
15233 			  "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
15234 			  "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
15235 			  "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
15236 			  "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
15237 			  "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
15238 			  "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
15239 			  "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
15240 			  "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
15241 			  "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
15242 			  "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
15243 			  "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
15244 			  "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
15245 			  "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
15246 			  "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
15247 			  "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
15248 			  "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
15249 			  "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
15250 			  "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
15251 			  "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
15252 			  "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
15253 			  "\x55\xef\x52\x97\xca\x67\xe9\xf3"
15254 			  "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
15255 			  "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
15256 			  "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
15257 			  "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
15258 			  "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
15259 			  "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
15260 			  "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
15261 			  "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
15262 			  "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
15263 			  "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
15264 			  "\x18\x84\x69\x77\xae\x11\x9f\x7a"
15265 			  "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
15266 			  "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
15267 			  "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
15268 			  "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
15269 			  "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
15270 			  "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
15271 			  "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
15272 			  "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
15273 			  "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
15274 			  "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
15275 			  "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
15276 			  "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
15277 			  "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
15278 		.ilen   = 512,
15279 		.result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15280 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15281 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
15282 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15283 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
15284 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15285 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
15286 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15287 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
15288 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15289 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
15290 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15291 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
15292 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15293 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
15294 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15295 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
15296 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15297 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
15298 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15299 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15300 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15301 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15302 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15303 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15304 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15305 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15306 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15307 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15308 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15309 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15310 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15311 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
15312 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15313 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
15314 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15315 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
15316 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15317 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
15318 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15319 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
15320 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15321 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
15322 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15323 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
15324 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15325 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
15326 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15327 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
15328 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15329 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
15330 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15331 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15332 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15333 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15334 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15335 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15336 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15337 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15338 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15339 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15340 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15341 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15342 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15343 		.rlen   = 512,
15344 	}, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
15345 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
15346 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
15347 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
15348 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
15349 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
15350 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
15351 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
15352 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
15353 		.klen	= 64,
15354 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
15355 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
15356 		.input	= "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
15357 			  "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
15358 			  "\xea\x00\x80\x3f\x5e\x48\x23\x57"
15359 			  "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
15360 			  "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
15361 			  "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
15362 			  "\x68\x0a\x86\xac\x35\xad\xfc\x33"
15363 			  "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
15364 			  "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
15365 			  "\xb1\x08\xfd\x10\x98\xba\xec\x70"
15366 			  "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
15367 			  "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
15368 			  "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
15369 			  "\xae\xba\x12\x29\x61\xd0\x3a\x75"
15370 			  "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
15371 			  "\x00\x02\x08\x87\x89\x14\x29\xca"
15372 			  "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
15373 			  "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
15374 			  "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
15375 			  "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
15376 			  "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
15377 			  "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
15378 			  "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
15379 			  "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
15380 			  "\x93\xec\x05\xc5\x2e\x04\x93\xef"
15381 			  "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
15382 			  "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
15383 			  "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
15384 			  "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
15385 			  "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
15386 			  "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
15387 			  "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
15388 			  "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
15389 			  "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
15390 			  "\xbc\x48\x14\x57\x77\x8f\x61\x60"
15391 			  "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
15392 			  "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
15393 			  "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
15394 			  "\xf4\xc3\x33\xec\x44\x23\x88\x51"
15395 			  "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
15396 			  "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
15397 			  "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
15398 			  "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
15399 			  "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
15400 			  "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
15401 			  "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
15402 			  "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
15403 			  "\x92\x5f\xed\xc4\xae\x74\xff\xac"
15404 			  "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
15405 			  "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
15406 			  "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
15407 			  "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
15408 			  "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
15409 			  "\x94\x30\x54\xff\x84\x01\x14\x93"
15410 			  "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
15411 			  "\x53\x76\x44\x1a\x77\xed\x43\x85"
15412 			  "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
15413 			  "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
15414 			  "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
15415 			  "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
15416 			  "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
15417 			  "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
15418 			  "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
15419 			  "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
15420 		.ilen	= 512,
15421 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
15422 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15423 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
15424 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15425 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
15426 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15427 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
15428 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15429 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
15430 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15431 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
15432 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15433 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
15434 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15435 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
15436 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15437 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
15438 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15439 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
15440 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15441 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15442 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15443 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15444 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15445 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15446 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15447 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15448 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15449 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15450 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15451 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15452 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15453 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
15454 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15455 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
15456 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15457 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
15458 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15459 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
15460 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15461 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
15462 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15463 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
15464 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15465 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
15466 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15467 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
15468 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15469 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
15470 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15471 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
15472 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15473 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15474 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15475 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15476 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15477 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15478 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15479 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15480 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15481 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15482 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15483 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15484 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15485 		.rlen	= 512,
15486 		.also_non_np = 1,
15487 		.np	= 2,
15488 		.tap	= { 512 - 16, 16 },
15489 	}
15490 };
15491 
15492 
15493 static struct cipher_testvec aes_ctr_enc_tv_template[] = {
15494 	{ /* From NIST Special Publication 800-38A, Appendix F.5 */
15495 		.key	= "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15496 			  "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15497 		.klen	= 16,
15498 		.iv	= "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15499 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15500 		.input	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15501 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15502 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15503 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15504 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15505 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15506 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15507 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15508 		.ilen	= 64,
15509 		.result	= "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
15510 			  "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
15511 			  "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
15512 			  "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
15513 			  "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
15514 			  "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
15515 			  "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
15516 			  "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
15517 		.rlen	= 64,
15518 	}, {
15519 		.key	= "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15520 			  "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15521 			  "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15522 		.klen	= 24,
15523 		.iv	= "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15524 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15525 		.input	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15526 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15527 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15528 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15529 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15530 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15531 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15532 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15533 		.ilen	= 64,
15534 		.result	= "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
15535 			  "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
15536 			  "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
15537 			  "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
15538 			  "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
15539 			  "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
15540 			  "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
15541 			  "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
15542 		.rlen	= 64,
15543 	}, {
15544 		.key	= "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15545 			  "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15546 			  "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15547 			  "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15548 		.klen	= 32,
15549 		.iv	= "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15550 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15551 		.input	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15552 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15553 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15554 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15555 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15556 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15557 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15558 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15559 		.ilen	= 64,
15560 		.result	= "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
15561 			  "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
15562 			  "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
15563 			  "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
15564 			  "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
15565 			  "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
15566 			  "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
15567 			  "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
15568 		.rlen	= 64,
15569 	}, { /* Generated with Crypto++ */
15570 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15571 			  "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15572 			  "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15573 			  "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15574 		.klen	= 32,
15575 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
15576 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
15577 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15578 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15579 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15580 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15581 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15582 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15583 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15584 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15585 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15586 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15587 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15588 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15589 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15590 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15591 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15592 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15593 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15594 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15595 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15596 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15597 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15598 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15599 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15600 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15601 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15602 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15603 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15604 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15605 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15606 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15607 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15608 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15609 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15610 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15611 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15612 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15613 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15614 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15615 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15616 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15617 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15618 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15619 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15620 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15621 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15622 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15623 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15624 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15625 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15626 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15627 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15628 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15629 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15630 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15631 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15632 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15633 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15634 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15635 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15636 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15637 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15638 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15639 		.ilen	= 496,
15640 		.result	= "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
15641 			  "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
15642 			  "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
15643 			  "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
15644 			  "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
15645 			  "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
15646 			  "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
15647 			  "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
15648 			  "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
15649 			  "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
15650 			  "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
15651 			  "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
15652 			  "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
15653 			  "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
15654 			  "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
15655 			  "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
15656 			  "\x34\x4B\x31\x69\x84\x66\x96\x44"
15657 			  "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
15658 			  "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
15659 			  "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
15660 			  "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
15661 			  "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
15662 			  "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
15663 			  "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
15664 			  "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
15665 			  "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
15666 			  "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
15667 			  "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
15668 			  "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
15669 			  "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
15670 			  "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
15671 			  "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
15672 			  "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
15673 			  "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
15674 			  "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
15675 			  "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
15676 			  "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
15677 			  "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
15678 			  "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
15679 			  "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
15680 			  "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
15681 			  "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
15682 			  "\x85\x99\x22\xE8\x91\x38\x70\x83"
15683 			  "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
15684 			  "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
15685 			  "\x2F\x69\xEE\x84\x36\x44\x76\x98"
15686 			  "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
15687 			  "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
15688 			  "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
15689 			  "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
15690 			  "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
15691 			  "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
15692 			  "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
15693 			  "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
15694 			  "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
15695 			  "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
15696 			  "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
15697 			  "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
15698 			  "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
15699 			  "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
15700 			  "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
15701 			  "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
15702 		.rlen	= 496,
15703 		.also_non_np = 1,
15704 		.np	= 2,
15705 		.tap	= { 496 - 16, 16 },
15706 	}, { /* Generated with Crypto++ */
15707 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15708 			  "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15709 			  "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15710 			  "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15711 		.klen	= 32,
15712 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15713 			  "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15714 		.input	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15715 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15716 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15717 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15718 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15719 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15720 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15721 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15722 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15723 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15724 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15725 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15726 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15727 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15728 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15729 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15730 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15731 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15732 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15733 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15734 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15735 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15736 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15737 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15738 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15739 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15740 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15741 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15742 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15743 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15744 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15745 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15746 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15747 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15748 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15749 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15750 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15751 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15752 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15753 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15754 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15755 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15756 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15757 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15758 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15759 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15760 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15761 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15762 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15763 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15764 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15765 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15766 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15767 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15768 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15769 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15770 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15771 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15772 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15773 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15774 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15775 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
15776 			  "\x7B\xE4\x4D",
15777 		.ilen	= 499,
15778 		.result	= "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
15779 			  "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
15780 			  "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
15781 			  "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
15782 			  "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
15783 			  "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
15784 			  "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
15785 			  "\x75\xDE\x71\x86\x3C\x98\x23\x44"
15786 			  "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
15787 			  "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
15788 			  "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
15789 			  "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
15790 			  "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
15791 			  "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
15792 			  "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
15793 			  "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
15794 			  "\xA8\x28\x69\x65\x31\xE1\x45\x83"
15795 			  "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
15796 			  "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
15797 			  "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
15798 			  "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
15799 			  "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
15800 			  "\x45\x18\x18\x74\x19\xAD\x71\x01"
15801 			  "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
15802 			  "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
15803 			  "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
15804 			  "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
15805 			  "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
15806 			  "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
15807 			  "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
15808 			  "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
15809 			  "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
15810 			  "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
15811 			  "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
15812 			  "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
15813 			  "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
15814 			  "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
15815 			  "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
15816 			  "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
15817 			  "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
15818 			  "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
15819 			  "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
15820 			  "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
15821 			  "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
15822 			  "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
15823 			  "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
15824 			  "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
15825 			  "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
15826 			  "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
15827 			  "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
15828 			  "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
15829 			  "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
15830 			  "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
15831 			  "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
15832 			  "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
15833 			  "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
15834 			  "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
15835 			  "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
15836 			  "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
15837 			  "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
15838 			  "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
15839 			  "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
15840 			  "\xFB\xF2\x3F",
15841 		.rlen	= 499,
15842 		.also_non_np = 1,
15843 		.np	= 2,
15844 		.tap	= { 499 - 16, 16 },
15845 	},
15846 };
15847 
15848 static struct cipher_testvec aes_ctr_dec_tv_template[] = {
15849 	{ /* From NIST Special Publication 800-38A, Appendix F.5 */
15850 		.key	= "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15851 			  "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15852 		.klen	= 16,
15853 		.iv	= "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15854 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15855 		.input	= "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
15856 			  "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
15857 			  "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
15858 			  "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
15859 			  "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
15860 			  "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
15861 			  "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
15862 			  "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
15863 		.ilen	= 64,
15864 		.result	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15865 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15866 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15867 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15868 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15869 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15870 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15871 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15872 		.rlen	= 64,
15873 	}, {
15874 		.key	= "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15875 			  "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15876 			  "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15877 		.klen	= 24,
15878 		.iv	= "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15879 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15880 		.input	= "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
15881 			  "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
15882 			  "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
15883 			  "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
15884 			  "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
15885 			  "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
15886 			  "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
15887 			  "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
15888 		.ilen	= 64,
15889 		.result	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15890 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15891 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15892 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15893 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15894 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15895 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15896 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15897 		.rlen	= 64,
15898 	}, {
15899 		.key	= "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15900 			  "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15901 			  "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15902 			  "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15903 		.klen	= 32,
15904 		.iv	= "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15905 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15906 		.input	= "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
15907 			  "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
15908 			  "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
15909 			  "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
15910 			  "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
15911 			  "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
15912 			  "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
15913 			  "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
15914 		.ilen	= 64,
15915 		.result	= "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15916 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15917 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15918 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15919 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15920 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15921 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15922 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15923 		.rlen	= 64,
15924 	}, { /* Generated with Crypto++ */
15925 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15926 			  "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15927 			  "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15928 			  "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15929 		.klen	= 32,
15930 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
15931 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
15932 		.input	= "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
15933 			  "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
15934 			  "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
15935 			  "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
15936 			  "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
15937 			  "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
15938 			  "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
15939 			  "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
15940 			  "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
15941 			  "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
15942 			  "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
15943 			  "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
15944 			  "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
15945 			  "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
15946 			  "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
15947 			  "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
15948 			  "\x34\x4B\x31\x69\x84\x66\x96\x44"
15949 			  "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
15950 			  "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
15951 			  "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
15952 			  "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
15953 			  "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
15954 			  "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
15955 			  "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
15956 			  "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
15957 			  "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
15958 			  "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
15959 			  "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
15960 			  "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
15961 			  "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
15962 			  "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
15963 			  "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
15964 			  "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
15965 			  "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
15966 			  "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
15967 			  "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
15968 			  "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
15969 			  "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
15970 			  "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
15971 			  "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
15972 			  "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
15973 			  "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
15974 			  "\x85\x99\x22\xE8\x91\x38\x70\x83"
15975 			  "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
15976 			  "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
15977 			  "\x2F\x69\xEE\x84\x36\x44\x76\x98"
15978 			  "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
15979 			  "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
15980 			  "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
15981 			  "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
15982 			  "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
15983 			  "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
15984 			  "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
15985 			  "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
15986 			  "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
15987 			  "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
15988 			  "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
15989 			  "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
15990 			  "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
15991 			  "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
15992 			  "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
15993 			  "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
15994 		.ilen	= 496,
15995 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15996 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15997 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15998 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15999 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
16000 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
16001 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
16002 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
16003 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
16004 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
16005 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
16006 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
16007 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
16008 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
16009 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
16010 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
16011 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
16012 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
16013 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
16014 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
16015 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
16016 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
16017 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
16018 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
16019 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
16020 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
16021 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
16022 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
16023 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
16024 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
16025 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
16026 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
16027 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
16028 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
16029 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
16030 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
16031 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
16032 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
16033 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
16034 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
16035 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
16036 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
16037 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
16038 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
16039 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
16040 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
16041 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
16042 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
16043 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
16044 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
16045 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
16046 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
16047 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
16048 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
16049 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
16050 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
16051 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
16052 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
16053 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
16054 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
16055 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
16056 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
16057 		.rlen	= 496,
16058 		.also_non_np = 1,
16059 		.np	= 2,
16060 		.tap	= { 496 - 16, 16 },
16061 	}, { /* Generated with Crypto++ */
16062 		.key	= "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
16063 			  "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
16064 			  "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
16065 			  "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
16066 		.klen	= 32,
16067 		.iv	= "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
16068 			  "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
16069 		.input	= "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
16070 			  "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
16071 			  "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
16072 			  "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
16073 			  "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
16074 			  "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
16075 			  "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
16076 			  "\x75\xDE\x71\x86\x3C\x98\x23\x44"
16077 			  "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
16078 			  "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
16079 			  "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
16080 			  "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
16081 			  "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
16082 			  "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
16083 			  "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
16084 			  "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
16085 			  "\xA8\x28\x69\x65\x31\xE1\x45\x83"
16086 			  "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
16087 			  "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
16088 			  "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
16089 			  "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
16090 			  "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
16091 			  "\x45\x18\x18\x74\x19\xAD\x71\x01"
16092 			  "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
16093 			  "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
16094 			  "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
16095 			  "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
16096 			  "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
16097 			  "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
16098 			  "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
16099 			  "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
16100 			  "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
16101 			  "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
16102 			  "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
16103 			  "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
16104 			  "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
16105 			  "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
16106 			  "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
16107 			  "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
16108 			  "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
16109 			  "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
16110 			  "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
16111 			  "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
16112 			  "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
16113 			  "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
16114 			  "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
16115 			  "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
16116 			  "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
16117 			  "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
16118 			  "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
16119 			  "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
16120 			  "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
16121 			  "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
16122 			  "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
16123 			  "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
16124 			  "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
16125 			  "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
16126 			  "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
16127 			  "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
16128 			  "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
16129 			  "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
16130 			  "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
16131 			  "\xFB\xF2\x3F",
16132 		.ilen	= 499,
16133 		.result	= "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
16134 			  "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
16135 			  "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
16136 			  "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
16137 			  "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
16138 			  "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
16139 			  "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
16140 			  "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
16141 			  "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
16142 			  "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
16143 			  "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
16144 			  "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
16145 			  "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
16146 			  "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
16147 			  "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
16148 			  "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
16149 			  "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
16150 			  "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
16151 			  "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
16152 			  "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
16153 			  "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
16154 			  "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
16155 			  "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
16156 			  "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
16157 			  "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
16158 			  "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
16159 			  "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
16160 			  "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
16161 			  "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
16162 			  "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
16163 			  "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
16164 			  "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
16165 			  "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
16166 			  "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
16167 			  "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
16168 			  "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
16169 			  "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
16170 			  "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
16171 			  "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
16172 			  "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
16173 			  "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
16174 			  "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
16175 			  "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
16176 			  "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
16177 			  "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
16178 			  "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
16179 			  "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
16180 			  "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
16181 			  "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
16182 			  "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
16183 			  "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
16184 			  "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
16185 			  "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
16186 			  "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
16187 			  "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
16188 			  "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
16189 			  "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
16190 			  "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
16191 			  "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
16192 			  "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
16193 			  "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
16194 			  "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
16195 			  "\x7B\xE4\x4D",
16196 		.rlen	= 499,
16197 		.also_non_np = 1,
16198 		.np	= 2,
16199 		.tap	= { 499 - 16, 16 },
16200 	},
16201 };
16202 
16203 static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
16204 	{ /* From RFC 3686 */
16205 		.key	= "\xae\x68\x52\xf8\x12\x10\x67\xcc"
16206 			  "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
16207 			  "\x00\x00\x00\x30",
16208 		.klen	= 20,
16209 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00",
16210 		.input	= "Single block msg",
16211 		.ilen	= 16,
16212 		.result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
16213 			  "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
16214 		.rlen	= 16,
16215 	}, {
16216 		.key	= "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
16217 			  "\x43\xd6\xce\x1f\x32\x53\x91\x63"
16218 			  "\x00\x6c\xb6\xdb",
16219 		.klen	= 20,
16220 		.iv	= "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
16221 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
16222 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16223 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
16224 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16225 		.ilen	= 32,
16226 		.result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
16227 			  "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
16228 			  "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
16229 			  "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
16230 		.rlen	= 32,
16231 	}, {
16232 		.key	= "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
16233 			  "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
16234 			  "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
16235 			  "\x00\x00\x00\x48",
16236 		.klen	= 28,
16237 		.iv	= "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
16238 		.input	= "Single block msg",
16239 		.ilen	= 16,
16240 		.result	= "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
16241 			  "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
16242 		.rlen	= 16,
16243 	}, {
16244 		.key	= "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
16245 			  "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
16246 			  "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
16247 			  "\x00\x96\xb0\x3b",
16248 		.klen	= 28,
16249 		.iv	= "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
16250 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
16251 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16252 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
16253 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16254 		.ilen	= 32,
16255 		.result	= "\x45\x32\x43\xfc\x60\x9b\x23\x32"
16256 			  "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
16257 			  "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
16258 			  "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
16259 		.rlen	= 32,
16260 	}, {
16261 		.key	= "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
16262 			  "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
16263 			  "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
16264 			  "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
16265 			  "\x00\x00\x00\x60",
16266 		.klen	= 36,
16267 		.iv	= "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
16268 		.input	= "Single block msg",
16269 		.ilen	= 16,
16270 		.result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
16271 			  "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
16272 		.rlen	= 16,
16273 	}, {
16274 		.key	= "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
16275 			  "\x07\x96\x36\x58\x79\xef\xf8\x86"
16276 			  "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
16277 			  "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
16278 			  "\x00\xfa\xac\x24",
16279 		.klen	= 36,
16280 		.iv	= "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
16281 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
16282 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16283 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
16284 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16285 		.ilen	= 32,
16286 		.result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
16287 			  "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
16288 			  "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
16289 			  "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
16290 		.rlen	= 32,
16291 	}, {
16292 	// generated using Crypto++
16293 		.key = "\x00\x01\x02\x03\x04\x05\x06\x07"
16294 			"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16295 			"\x10\x11\x12\x13\x14\x15\x16\x17"
16296 			"\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16297 			"\x00\x00\x00\x00",
16298 		.klen = 32 + 4,
16299 		.iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
16300 		.input =
16301 			"\x00\x01\x02\x03\x04\x05\x06\x07"
16302 			"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16303 			"\x10\x11\x12\x13\x14\x15\x16\x17"
16304 			"\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16305 			"\x20\x21\x22\x23\x24\x25\x26\x27"
16306 			"\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16307 			"\x30\x31\x32\x33\x34\x35\x36\x37"
16308 			"\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16309 			"\x40\x41\x42\x43\x44\x45\x46\x47"
16310 			"\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16311 			"\x50\x51\x52\x53\x54\x55\x56\x57"
16312 			"\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16313 			"\x60\x61\x62\x63\x64\x65\x66\x67"
16314 			"\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
16315 			"\x70\x71\x72\x73\x74\x75\x76\x77"
16316 			"\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
16317 			"\x80\x81\x82\x83\x84\x85\x86\x87"
16318 			"\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
16319 			"\x90\x91\x92\x93\x94\x95\x96\x97"
16320 			"\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
16321 			"\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16322 			"\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16323 			"\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16324 			"\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16325 			"\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16326 			"\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16327 			"\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16328 			"\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
16329 			"\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
16330 			"\xe8\xe9\xea\xeb\xec\xed\xee\xef"
16331 			"\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
16332 			"\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
16333 			"\x00\x03\x06\x09\x0c\x0f\x12\x15"
16334 			"\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
16335 			"\x30\x33\x36\x39\x3c\x3f\x42\x45"
16336 			"\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
16337 			"\x60\x63\x66\x69\x6c\x6f\x72\x75"
16338 			"\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
16339 			"\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
16340 			"\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
16341 			"\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
16342 			"\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
16343 			"\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
16344 			"\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
16345 			"\x20\x23\x26\x29\x2c\x2f\x32\x35"
16346 			"\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
16347 			"\x50\x53\x56\x59\x5c\x5f\x62\x65"
16348 			"\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
16349 			"\x80\x83\x86\x89\x8c\x8f\x92\x95"
16350 			"\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
16351 			"\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
16352 			"\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
16353 			"\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
16354 			"\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
16355 			"\x10\x13\x16\x19\x1c\x1f\x22\x25"
16356 			"\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
16357 			"\x40\x43\x46\x49\x4c\x4f\x52\x55"
16358 			"\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
16359 			"\x70\x73\x76\x79\x7c\x7f\x82\x85"
16360 			"\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
16361 			"\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
16362 			"\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
16363 			"\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
16364 			"\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
16365 			"\x00\x05\x0a\x0f\x14\x19\x1e\x23"
16366 			"\x28\x2d\x32\x37\x3c\x41\x46\x4b"
16367 			"\x50\x55\x5a\x5f\x64\x69\x6e\x73"
16368 			"\x78\x7d\x82\x87\x8c\x91\x96\x9b"
16369 			"\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
16370 			"\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
16371 			"\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
16372 			"\x18\x1d\x22\x27\x2c\x31\x36\x3b"
16373 			"\x40\x45\x4a\x4f\x54\x59\x5e\x63"
16374 			"\x68\x6d\x72\x77\x7c\x81\x86\x8b"
16375 			"\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
16376 			"\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
16377 			"\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
16378 			"\x08\x0d\x12\x17\x1c\x21\x26\x2b"
16379 			"\x30\x35\x3a\x3f\x44\x49\x4e\x53"
16380 			"\x58\x5d\x62\x67\x6c\x71\x76\x7b"
16381 			"\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
16382 			"\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
16383 			"\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
16384 			"\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
16385 			"\x20\x25\x2a\x2f\x34\x39\x3e\x43"
16386 			"\x48\x4d\x52\x57\x5c\x61\x66\x6b"
16387 			"\x70\x75\x7a\x7f\x84\x89\x8e\x93"
16388 			"\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
16389 			"\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
16390 			"\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
16391 			"\x10\x15\x1a\x1f\x24\x29\x2e\x33"
16392 			"\x38\x3d\x42\x47\x4c\x51\x56\x5b"
16393 			"\x60\x65\x6a\x6f\x74\x79\x7e\x83"
16394 			"\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
16395 			"\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
16396 			"\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
16397 			"\x00\x07\x0e\x15\x1c\x23\x2a\x31"
16398 			"\x38\x3f\x46\x4d\x54\x5b\x62\x69"
16399 			"\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
16400 			"\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
16401 			"\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
16402 			"\x18\x1f\x26\x2d\x34\x3b\x42\x49"
16403 			"\x50\x57\x5e\x65\x6c\x73\x7a\x81"
16404 			"\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
16405 			"\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
16406 			"\xf8\xff\x06\x0d\x14\x1b\x22\x29"
16407 			"\x30\x37\x3e\x45\x4c\x53\x5a\x61"
16408 			"\x68\x6f\x76\x7d\x84\x8b\x92\x99"
16409 			"\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
16410 			"\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
16411 			"\x10\x17\x1e\x25\x2c\x33\x3a\x41"
16412 			"\x48\x4f\x56\x5d\x64\x6b\x72\x79"
16413 			"\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
16414 			"\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
16415 			"\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
16416 			"\x28\x2f\x36\x3d\x44\x4b\x52\x59"
16417 			"\x60\x67\x6e\x75\x7c\x83\x8a\x91"
16418 			"\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
16419 			"\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
16420 			"\x08\x0f\x16\x1d\x24\x2b\x32\x39"
16421 			"\x40\x47\x4e\x55\x5c\x63\x6a\x71"
16422 			"\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
16423 			"\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
16424 			"\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
16425 			"\x20\x27\x2e\x35\x3c\x43\x4a\x51"
16426 			"\x58\x5f\x66\x6d\x74\x7b\x82\x89"
16427 			"\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
16428 			"\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
16429 			"\x00\x09\x12\x1b\x24\x2d\x36\x3f"
16430 			"\x48\x51\x5a\x63\x6c\x75\x7e\x87"
16431 			"\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
16432 			"\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
16433 			"\x20\x29\x32\x3b\x44\x4d\x56\x5f"
16434 			"\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
16435 			"\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
16436 			"\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
16437 			"\x40\x49\x52\x5b\x64\x6d\x76\x7f"
16438 			"\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
16439 			"\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
16440 			"\x18\x21\x2a\x33\x3c\x45\x4e\x57"
16441 			"\x60\x69\x72\x7b\x84\x8d\x96\x9f"
16442 			"\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
16443 			"\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
16444 			"\x38\x41\x4a\x53\x5c\x65\x6e\x77"
16445 			"\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
16446 			"\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
16447 			"\x10\x19\x22\x2b\x34\x3d\x46\x4f"
16448 			"\x58\x61\x6a\x73\x7c\x85\x8e\x97"
16449 			"\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
16450 			"\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
16451 			"\x30\x39\x42\x4b\x54\x5d\x66\x6f"
16452 			"\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
16453 			"\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
16454 			"\x08\x11\x1a\x23\x2c\x35\x3e\x47"
16455 			"\x50\x59\x62\x6b\x74\x7d\x86\x8f"
16456 			"\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
16457 			"\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
16458 			"\x28\x31\x3a\x43\x4c\x55\x5e\x67"
16459 			"\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
16460 			"\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
16461 			"\x00\x0b\x16\x21\x2c\x37\x42\x4d"
16462 			"\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
16463 			"\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
16464 			"\x08\x13\x1e\x29\x34\x3f\x4a\x55"
16465 			"\x60\x6b\x76\x81\x8c\x97\xa2\xad"
16466 			"\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
16467 			"\x10\x1b\x26\x31\x3c\x47\x52\x5d"
16468 			"\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
16469 			"\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
16470 			"\x18\x23\x2e\x39\x44\x4f\x5a\x65"
16471 			"\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
16472 			"\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
16473 			"\x20\x2b\x36\x41\x4c\x57\x62\x6d"
16474 			"\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
16475 			"\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
16476 			"\x28\x33\x3e\x49\x54\x5f\x6a\x75"
16477 			"\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
16478 			"\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
16479 			"\x30\x3b\x46\x51\x5c\x67\x72\x7d"
16480 			"\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
16481 			"\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
16482 			"\x38\x43\x4e\x59\x64\x6f\x7a\x85"
16483 			"\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
16484 			"\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
16485 			"\x40\x4b\x56\x61\x6c\x77\x82\x8d"
16486 			"\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
16487 			"\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
16488 			"\x48\x53\x5e\x69\x74\x7f\x8a\x95"
16489 			"\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
16490 			"\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
16491 			"\x50\x5b\x66\x71\x7c\x87\x92\x9d"
16492 			"\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
16493 			"\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
16494 			"\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
16495 			"\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
16496 			"\x38\x45\x52\x5f\x6c\x79\x86\x93"
16497 			"\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
16498 			"\x08\x15\x22\x2f\x3c\x49\x56\x63"
16499 			"\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
16500 			"\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
16501 			"\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
16502 			"\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
16503 			"\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
16504 			"\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
16505 			"\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
16506 			"\x48\x55\x62\x6f\x7c\x89\x96\xa3"
16507 			"\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
16508 			"\x18\x25\x32\x3f\x4c\x59\x66\x73"
16509 			"\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
16510 			"\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
16511 			"\x50\x5d\x6a\x77\x84\x91\x9e\xab"
16512 			"\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
16513 			"\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
16514 			"\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
16515 			"\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
16516 			"\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
16517 			"\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
16518 			"\x28\x35\x42\x4f\x5c\x69\x76\x83"
16519 			"\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
16520 			"\xf8\x05\x12\x1f\x2c\x39\x46\x53"
16521 			"\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
16522 			"\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
16523 			"\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
16524 			"\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
16525 			"\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
16526 			"\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
16527 			"\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
16528 			"\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
16529 			"\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
16530 			"\x58\x67\x76\x85\x94\xa3\xb2\xc1"
16531 			"\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
16532 			"\x48\x57\x66\x75\x84\x93\xa2\xb1"
16533 			"\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
16534 			"\x38\x47\x56\x65\x74\x83\x92\xa1"
16535 			"\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
16536 			"\x28\x37\x46\x55\x64\x73\x82\x91"
16537 			"\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
16538 			"\x18\x27\x36\x45\x54\x63\x72\x81"
16539 			"\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
16540 			"\x08\x17\x26\x35\x44\x53\x62\x71"
16541 			"\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
16542 			"\xf8\x07\x16\x25\x34\x43\x52\x61"
16543 			"\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
16544 			"\xe8\xf7\x06\x15\x24\x33\x42\x51"
16545 			"\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
16546 			"\xd8\xe7\xf6\x05\x14\x23\x32\x41"
16547 			"\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
16548 			"\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
16549 			"\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
16550 			"\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
16551 			"\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
16552 			"\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
16553 			"\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
16554 			"\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
16555 			"\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
16556 			"\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
16557 			"\x00\x11\x22\x33\x44\x55\x66\x77"
16558 			"\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
16559 			"\x10\x21\x32\x43\x54\x65\x76\x87"
16560 			"\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
16561 			"\x20\x31\x42\x53\x64\x75\x86\x97"
16562 			"\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
16563 			"\x30\x41\x52\x63\x74\x85\x96\xa7"
16564 			"\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
16565 			"\x40\x51\x62\x73\x84\x95\xa6\xb7"
16566 			"\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
16567 			"\x50\x61\x72\x83\x94\xa5\xb6\xc7"
16568 			"\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
16569 			"\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
16570 			"\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
16571 			"\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
16572 			"\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
16573 			"\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
16574 			"\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
16575 			"\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
16576 			"\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
16577 			"\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
16578 			"\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
16579 			"\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
16580 			"\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
16581 			"\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
16582 			"\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
16583 			"\xd0\xe1\xf2\x03\x14\x25\x36\x47"
16584 			"\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
16585 			"\xe0\xf1\x02\x13\x24\x35\x46\x57"
16586 			"\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
16587 			"\xf0\x01\x12\x23\x34\x45\x56\x67"
16588 			"\x78\x89\x9a\xab\xbc\xcd\xde\xef"
16589 			"\x00\x13\x26\x39\x4c\x5f\x72\x85"
16590 			"\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
16591 			"\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
16592 			"\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
16593 			"\x60\x73\x86\x99\xac\xbf\xd2\xe5"
16594 			"\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
16595 			"\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
16596 			"\x28\x3b\x4e\x61\x74\x87\x9a\xad"
16597 			"\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
16598 			"\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
16599 			"\xf0\x03\x16\x29\x3c\x4f\x62\x75"
16600 			"\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
16601 			"\x20\x33\x46\x59\x6c\x7f\x92\xa5"
16602 			"\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
16603 			"\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
16604 			"\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
16605 			"\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
16606 			"\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
16607 			"\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
16608 			"\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
16609 			"\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
16610 			"\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
16611 			"\x10\x23\x36\x49\x5c\x6f\x82\x95"
16612 			"\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
16613 			"\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
16614 			"\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
16615 			"\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
16616 			"\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
16617 			"\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
16618 			"\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
16619 			"\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
16620 			"\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
16621 			"\x00\x15\x2a\x3f\x54\x69\x7e\x93"
16622 			"\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
16623 			"\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
16624 			"\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
16625 			"\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
16626 			"\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
16627 			"\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
16628 			"\x98\xad\xc2\xd7\xec\x01\x16\x2b"
16629 			"\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
16630 			"\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
16631 			"\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
16632 			"\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
16633 			"\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
16634 			"\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
16635 			"\x30\x45\x5a\x6f\x84\x99\xae\xc3"
16636 			"\xd8\xed\x02\x17\x2c\x41\x56\x6b"
16637 			"\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
16638 			"\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
16639 			"\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
16640 			"\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
16641 			"\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
16642 			"\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
16643 			"\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
16644 			"\x18\x2d\x42\x57\x6c\x81\x96\xab"
16645 			"\xc0\xd5\xea\xff\x14\x29\x3e\x53"
16646 			"\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
16647 			"\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
16648 			"\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
16649 			"\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
16650 			"\x08\x1d\x32\x47\x5c\x71\x86\x9b"
16651 			"\xb0\xc5\xda\xef\x04\x19\x2e\x43"
16652 			"\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
16653 			"\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
16654 			"\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
16655 			"\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
16656 			"\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
16657 			"\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
16658 			"\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
16659 			"\x50\x67\x7e\x95\xac\xc3\xda\xf1"
16660 			"\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
16661 			"\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
16662 			"\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
16663 			"\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
16664 			"\xe8\xff\x16\x2d\x44\x5b\x72\x89"
16665 			"\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
16666 			"\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
16667 			"\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
16668 			"\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
16669 			"\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
16670 			"\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
16671 			"\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
16672 			"\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
16673 			"\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
16674 			"\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
16675 			"\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
16676 			"\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
16677 			"\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
16678 			"\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
16679 			"\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
16680 			"\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
16681 			"\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
16682 			"\xd8\xef\x06\x1d\x34\x4b\x62\x79"
16683 			"\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
16684 			"\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
16685 			"\x00\x19\x32\x4b\x64\x7d\x96\xaf"
16686 			"\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
16687 			"\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
16688 			"\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
16689 			"\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
16690 			"\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
16691 			"\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
16692 			"\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
16693 			"\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
16694 			"\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
16695 			"\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
16696 			"\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
16697 			"\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
16698 			"\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
16699 			"\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
16700 			"\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
16701 			"\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
16702 			"\x48\x61\x7a\x93\xac\xc5\xde\xf7"
16703 			"\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
16704 			"\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
16705 			"\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
16706 			"\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
16707 			"\x30\x49\x62\x7b\x94\xad\xc6\xdf"
16708 			"\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
16709 			"\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
16710 			"\x88\xa1\xba\xd3\xec\x05\x1e\x37"
16711 			"\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
16712 			"\x18\x31\x4a\x63\x7c\x95\xae\xc7"
16713 			"\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
16714 			"\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
16715 			"\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
16716 			"\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
16717 			"\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
16718 			"\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
16719 			"\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
16720 			"\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
16721 			"\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
16722 			"\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
16723 			"\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
16724 			"\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
16725 			"\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
16726 			"\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
16727 			"\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
16728 			"\x48\x63\x7e\x99\xb4\xcf\xea\x05"
16729 			"\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
16730 			"\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
16731 			"\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
16732 			"\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
16733 			"\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
16734 			"\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
16735 			"\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
16736 			"\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
16737 			"\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
16738 			"\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
16739 			"\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
16740 			"\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
16741 			"\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
16742 			"\x18\x33\x4e\x69\x84\x9f\xba\xd5"
16743 			"\xf0\x0b\x26\x41\x5c\x77\x92\xad"
16744 			"\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
16745 			"\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
16746 			"\x78\x93\xae\xc9\xe4\xff\x1a\x35"
16747 			"\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
16748 			"\x28\x43\x5e\x79\x94\xaf\xca\xe5"
16749 			"\x00\x1d\x3a\x57\x74\x91\xae\xcb"
16750 			"\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
16751 			"\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
16752 			"\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
16753 			"\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
16754 			"\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
16755 			"\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
16756 			"\x58\x75\x92\xaf\xcc\xe9\x06\x23"
16757 			"\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
16758 			"\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
16759 			"\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
16760 			"\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
16761 			"\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
16762 			"\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
16763 			"\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
16764 			"\x98\xb5\xd2\xef\x0c\x29\x46\x63"
16765 			"\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
16766 			"\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
16767 			"\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
16768 			"\x38\x55\x72\x8f\xac\xc9\xe6\x03"
16769 			"\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
16770 			"\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
16771 			"\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
16772 			"\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
16773 			"\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
16774 			"\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
16775 			"\x90\xad\xca\xe7\x04\x21\x3e\x5b"
16776 			"\x78\x95\xb2\xcf\xec\x09\x26\x43"
16777 			"\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
16778 			"\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
16779 			"\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
16780 			"\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
16781 			"\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
16782 			"\xf8\x17\x36\x55\x74\x93\xb2\xd1"
16783 			"\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
16784 			"\xe8\x07\x26\x45\x64\x83\xa2\xc1"
16785 			"\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
16786 			"\xd8\xf7\x16\x35\x54\x73\x92\xb1"
16787 			"\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
16788 			"\xc8\xe7\x06\x25\x44\x63\x82\xa1"
16789 			"\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
16790 			"\xb8\xd7\xf6\x15\x34\x53\x72\x91"
16791 			"\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
16792 			"\xa8\xc7\xe6\x05\x24\x43\x62\x81"
16793 			"\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
16794 			"\x98\xb7\xd6\xf5\x14\x33\x52\x71"
16795 			"\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
16796 			"\x88\xa7\xc6\xe5\x04\x23\x42\x61"
16797 			"\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
16798 			"\x78\x97\xb6\xd5\xf4\x13\x32\x51"
16799 			"\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
16800 			"\x68\x87\xa6\xc5\xe4\x03\x22\x41"
16801 			"\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
16802 			"\x58\x77\x96\xb5\xd4\xf3\x12\x31"
16803 			"\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
16804 			"\x48\x67\x86\xa5\xc4\xe3\x02\x21"
16805 			"\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
16806 			"\x38\x57\x76\x95\xb4\xd3\xf2\x11"
16807 			"\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
16808 			"\x28\x47\x66\x85\xa4\xc3\xe2\x01"
16809 			"\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
16810 			"\x18\x37\x56\x75\x94\xb3\xd2\xf1"
16811 			"\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
16812 			"\x08\x27\x46\x65\x84\xa3\xc2\xe1"
16813 			"\x00\x21\x42\x63",
16814 		.ilen = 4100,
16815 		.result =
16816 			"\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
16817 			"\xae\xff\x91\x3a\x44\xcf\x38\x32"
16818 			"\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
16819 			"\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
16820 			"\xf2\x62\x74\x70\x0c\xa4\x46\x08"
16821 			"\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
16822 			"\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
16823 			"\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
16824 			"\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
16825 			"\x18\xff\x75\x6d\x06\x2d\x00\xab"
16826 			"\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
16827 			"\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
16828 			"\x3d\x74\x54\xfa\x44\xcd\x23\x26"
16829 			"\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
16830 			"\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
16831 			"\x61\x00\x1c\x4f\xff\x59\xc4\x22"
16832 			"\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
16833 			"\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
16834 			"\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
16835 			"\x84\xff\x42\x60\xdc\x3a\x18\xa5"
16836 			"\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
16837 			"\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
16838 			"\x8f\xd3\x76\x96\xad\x49\x6d\x38"
16839 			"\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
16840 			"\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
16841 			"\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
16842 			"\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
16843 			"\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
16844 			"\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
16845 			"\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
16846 			"\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
16847 			"\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
16848 			"\x78\x6b\x01\xc9\xc7\x83\xba\x21"
16849 			"\x6a\x25\x15\x33\x4e\x45\x08\xec"
16850 			"\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
16851 			"\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
16852 			"\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
16853 			"\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
16854 			"\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
16855 			"\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
16856 			"\xc8\x53\x07\xaf\x80\x84\xec\xfd"
16857 			"\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
16858 			"\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
16859 			"\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
16860 			"\x06\x51\x48\x4e\xf6\x59\x87\xd2"
16861 			"\x04\x02\xef\xd3\x44\xde\x76\x31"
16862 			"\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
16863 			"\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
16864 			"\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
16865 			"\x65\x83\xd0\x3b\xe3\x30\xea\x94"
16866 			"\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
16867 			"\xb4\x01\xab\x36\x2c\x77\x13\xaf"
16868 			"\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
16869 			"\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
16870 			"\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
16871 			"\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
16872 			"\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
16873 			"\x93\x97\xc6\x48\x45\x1d\x9f\x83"
16874 			"\xdf\x4b\x40\x3e\x42\x25\x87\x80"
16875 			"\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
16876 			"\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
16877 			"\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
16878 			"\x32\x03\xed\xf0\x50\x1c\x56\x39"
16879 			"\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
16880 			"\x53\xfc\x2a\x38\x23\x15\x75\xcd"
16881 			"\x45\xe5\x5a\x82\x55\xba\x21\xfa"
16882 			"\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
16883 			"\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
16884 			"\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
16885 			"\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
16886 			"\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
16887 			"\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
16888 			"\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
16889 			"\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
16890 			"\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
16891 			"\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
16892 			"\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
16893 			"\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
16894 			"\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
16895 			"\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
16896 			"\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
16897 			"\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
16898 			"\x69\x3a\x29\x23\xac\x86\x32\xa5"
16899 			"\x48\x9c\x9e\xf3\x47\x77\x81\x70"
16900 			"\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
16901 			"\x59\x6a\xd3\x50\x59\x43\x59\xde"
16902 			"\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
16903 			"\x18\x34\x0d\x1a\x63\x33\xed\x10"
16904 			"\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
16905 			"\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
16906 			"\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
16907 			"\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
16908 			"\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
16909 			"\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
16910 			"\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
16911 			"\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
16912 			"\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
16913 			"\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
16914 			"\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
16915 			"\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
16916 			"\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
16917 			"\xe8\x99\x57\x8c\x11\xed\x66\xd9"
16918 			"\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
16919 			"\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
16920 			"\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
16921 			"\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
16922 			"\x64\x76\x38\x49\x4d\xfe\x30\x6d"
16923 			"\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
16924 			"\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
16925 			"\x28\xa2\x82\x1f\x61\x69\xad\xc1"
16926 			"\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
16927 			"\x51\xb5\x17\x7f\x12\x69\x8c\x24"
16928 			"\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
16929 			"\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
16930 			"\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
16931 			"\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
16932 			"\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
16933 			"\x4d\x29\x77\x53\x35\x6a\x00\x8d"
16934 			"\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
16935 			"\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
16936 			"\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
16937 			"\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
16938 			"\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
16939 			"\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
16940 			"\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
16941 			"\x26\x39\x83\x94\xef\x27\xd8\x53"
16942 			"\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
16943 			"\x43\x7c\x95\x0a\x53\xef\x66\xda"
16944 			"\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
16945 			"\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
16946 			"\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
16947 			"\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
16948 			"\x88\xee\x73\xcf\x66\x2f\x52\x56"
16949 			"\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
16950 			"\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
16951 			"\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
16952 			"\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
16953 			"\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
16954 			"\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
16955 			"\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
16956 			"\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
16957 			"\xba\x61\x34\x38\x7c\xda\x48\x3e"
16958 			"\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
16959 			"\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
16960 			"\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
16961 			"\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
16962 			"\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
16963 			"\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
16964 			"\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
16965 			"\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
16966 			"\x35\x12\xe3\x36\x28\x27\x36\x58"
16967 			"\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
16968 			"\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
16969 			"\x2b\x9f\x96\x00\x86\x60\xf0\x21"
16970 			"\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
16971 			"\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
16972 			"\x9d\x62\x79\x58\x52\xe6\x65\xb7"
16973 			"\xab\x55\x67\x9c\x89\x7c\x03\xb0"
16974 			"\x73\x59\xc5\x81\xf5\x18\x17\x5c"
16975 			"\x89\xf3\x78\x35\x44\x62\x78\x72"
16976 			"\xd0\x96\xeb\x31\xe7\x87\x77\x14"
16977 			"\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
16978 			"\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
16979 			"\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
16980 			"\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
16981 			"\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
16982 			"\xfb\x79\x2e\x04\x2d\x50\x28\x83"
16983 			"\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
16984 			"\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
16985 			"\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
16986 			"\xd2\x49\x77\x81\x6d\x90\x70\xae"
16987 			"\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
16988 			"\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
16989 			"\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
16990 			"\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
16991 			"\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
16992 			"\x45\x42\x27\x75\x50\xe5\xee\xb8"
16993 			"\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
16994 			"\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
16995 			"\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
16996 			"\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
16997 			"\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
16998 			"\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
16999 			"\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
17000 			"\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
17001 			"\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
17002 			"\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
17003 			"\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
17004 			"\xa9\x21\x2b\x92\x94\x87\x62\x57"
17005 			"\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
17006 			"\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
17007 			"\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
17008 			"\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
17009 			"\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
17010 			"\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
17011 			"\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
17012 			"\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
17013 			"\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
17014 			"\x69\x34\x78\x61\x24\x21\x9c\x8a"
17015 			"\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
17016 			"\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
17017 			"\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
17018 			"\x8a\x59\x94\x3c\xcf\x36\x27\x82"
17019 			"\xc2\x45\xee\x58\xcd\x88\xb4\xec"
17020 			"\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
17021 			"\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
17022 			"\xb1\x95\x28\x86\x20\xe9\x17\x49"
17023 			"\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
17024 			"\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
17025 			"\xdb\x7c\x73\x10\xb9\xba\x89\x76"
17026 			"\x54\xae\x7d\x71\xb3\x93\xf6\x32"
17027 			"\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
17028 			"\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
17029 			"\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
17030 			"\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
17031 			"\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
17032 			"\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
17033 			"\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
17034 			"\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
17035 			"\x79\x00\xa8\x6c\x29\xd9\x18\x24"
17036 			"\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
17037 			"\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
17038 			"\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
17039 			"\x26\x2c\x39\x52\x89\x98\xe7\x2c"
17040 			"\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
17041 			"\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
17042 			"\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
17043 			"\x32\x4d\xed\xab\xfa\x98\x14\x4e"
17044 			"\xc3\x15\x45\x53\x61\xc4\x93\xbd"
17045 			"\x90\xf4\x99\x95\x4c\xe6\x76\x92"
17046 			"\x29\x90\x46\x30\x92\x69\x7d\x13"
17047 			"\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
17048 			"\x63\x40\x36\x5f\x09\xe2\x78\xf8"
17049 			"\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
17050 			"\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
17051 			"\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
17052 			"\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
17053 			"\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
17054 			"\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
17055 			"\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
17056 			"\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
17057 			"\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
17058 			"\x05\xc4\xa6\x96\xec\x05\x98\x4f"
17059 			"\x96\x67\x57\x1f\x20\x86\x1b\x2d"
17060 			"\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
17061 			"\x88\x26\x2c\x67\x02\x4b\x52\xd0"
17062 			"\x83\x7a\x43\x1f\xc0\x71\x15\x25"
17063 			"\x77\x65\x08\x60\x11\x76\x4c\x8d"
17064 			"\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
17065 			"\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
17066 			"\x03\xd1\x24\x95\xec\x6d\xab\x38"
17067 			"\x72\xce\xe2\x8b\x33\xd7\x51\x09"
17068 			"\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
17069 			"\x84\xdc\x73\x73\x2d\x1b\x11\x98"
17070 			"\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
17071 			"\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
17072 			"\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
17073 			"\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
17074 			"\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
17075 			"\x62\x8f\x7a\x73\x32\xab\xc8\x18"
17076 			"\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
17077 			"\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
17078 			"\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
17079 			"\xde\x39\xa4\x01\x72\x63\xf3\xd1"
17080 			"\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
17081 			"\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
17082 			"\x16\xf7\xcd\x92\x9a\x99\x30\x14"
17083 			"\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
17084 			"\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
17085 			"\xe5\x79\x81\x73\xcd\x43\x59\x68"
17086 			"\x73\x02\x3b\x78\x21\x72\x43\x00"
17087 			"\x49\x17\xf7\x00\xaf\x68\x24\x53"
17088 			"\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
17089 			"\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
17090 			"\x11\x94\x13\x69\x51\x09\x28\xde"
17091 			"\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
17092 			"\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
17093 			"\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
17094 			"\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
17095 			"\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
17096 			"\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
17097 			"\x62\x03\x43\xf1\x87\xb4\xb0\x85"
17098 			"\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
17099 			"\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
17100 			"\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
17101 			"\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
17102 			"\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
17103 			"\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
17104 			"\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
17105 			"\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
17106 			"\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
17107 			"\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
17108 			"\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
17109 			"\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
17110 			"\x69\xdc\xab\x24\x57\x60\x47\xc1"
17111 			"\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
17112 			"\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
17113 			"\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
17114 			"\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
17115 			"\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
17116 			"\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
17117 			"\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
17118 			"\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
17119 			"\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
17120 			"\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
17121 			"\x63\x19\x3d\xd5\xec\x1b\x77\x69"
17122 			"\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
17123 			"\x85\x62\x82\x70\x18\xe2\x9a\x78"
17124 			"\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
17125 			"\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
17126 			"\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
17127 			"\x35\xf3\x61\x06\x72\x84\xc4\x32"
17128 			"\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
17129 			"\x04\xc2\xde\x57\x64\x60\x8d\xcf"
17130 			"\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
17131 			"\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
17132 			"\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
17133 			"\xb3\x71\xa0\xde\xca\x96\xf1\x78"
17134 			"\x49\xa2\x99\x81\x80\x5c\x01\xf5"
17135 			"\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
17136 			"\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
17137 			"\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
17138 			"\x4f\x73\x38\x09\x75\x64\x48\xe0"
17139 			"\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
17140 			"\xfe\x16\x26\x62\x49\x74\xf4\xb0"
17141 			"\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
17142 			"\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
17143 			"\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
17144 			"\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
17145 			"\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
17146 			"\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
17147 			"\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
17148 			"\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
17149 			"\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
17150 			"\xef\xa0\x54\xe4\x5e\x16\x53\x81"
17151 			"\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
17152 			"\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
17153 			"\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
17154 			"\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
17155 			"\x53\x5d\x86\xd6\xde\x65\xca\xe3"
17156 			"\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
17157 			"\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
17158 			"\x37\x7a\x93\x7a\x50\x11\x9f\x96"
17159 			"\x86\x25\xfd\xac\xdc\xbe\x18\x93"
17160 			"\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
17161 			"\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
17162 			"\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
17163 			"\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
17164 			"\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
17165 			"\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
17166 			"\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
17167 			"\xce\x4d\x5f\x18\x60\xce\x87\x22"
17168 			"\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
17169 			"\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
17170 			"\x32\xd8\xaf\x1e\x07\x77\x51\x96"
17171 			"\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
17172 			"\xea\x17\x0b\x10\xd2\x3f\x28\x25"
17173 			"\x4f\x05\x77\x02\x14\x69\xf0\x2c"
17174 			"\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
17175 			"\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
17176 			"\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
17177 			"\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
17178 			"\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
17179 			"\x64\xc0\x64\xda\xb1\xae\xdd\x60"
17180 			"\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
17181 			"\x92\x61\xd0\x48\x81\xed\x5e\x1d"
17182 			"\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
17183 			"\x7f\x83\x73\xb6\x70\x18\x65\x3e"
17184 			"\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
17185 			"\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
17186 			"\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
17187 			"\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
17188 			"\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
17189 			"\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
17190 			"\xa7\x22\xec\xe2\x7e\x29\x09\x53"
17191 			"\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
17192 			"\xce\x54\xf9\x18\x58\xb5\xff\x44"
17193 			"\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
17194 			"\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
17195 			"\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
17196 			"\xff\xfd\xb0\x21\x6e\x57\x05\x75"
17197 			"\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
17198 			"\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
17199 			"\x80\x8c\xc8\x78\x40\x24\x4b\x89"
17200 			"\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
17201 			"\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
17202 			"\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
17203 			"\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
17204 			"\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
17205 			"\x0c\xd6\x04\x14\xde\x51\x74\x75"
17206 			"\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
17207 			"\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
17208 			"\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
17209 			"\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
17210 			"\x75\x46\x65\x4e\x07\x34\x37\xa3"
17211 			"\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
17212 			"\x69\x24\x0e\x38\x67\x43\x8c\xde"
17213 			"\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
17214 			"\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
17215 			"\x64\xb1\xdb\xee\x00\x50\x77\xe1"
17216 			"\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
17217 			"\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
17218 			"\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
17219 			"\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
17220 			"\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
17221 			"\x91\x7d\x62\x64\x96\x72\xde\xfc"
17222 			"\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
17223 			"\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
17224 			"\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
17225 			"\x98\x81\x84\x4f\x15\x5c\x76\xe7"
17226 			"\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
17227 			"\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
17228 			"\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
17229 			"\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
17230 			"\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
17231 			"\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
17232 			"\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
17233 			"\xb1\xb2\x52\x94\x75\x2c\x29\x59"
17234 			"\x06\xc2\x25\xe8\x71\x65\x4e\xed"
17235 			"\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
17236 			"\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
17237 			"\xe0\x50\x40\x96\x35\x63\xe4\x0b"
17238 			"\x76\xbd\xa4\x65\x00\x1b\x57\x88"
17239 			"\xae\xed\x39\x88\x42\x11\x3c\xed"
17240 			"\x85\x67\x7d\xb9\x68\x82\xe9\x43"
17241 			"\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
17242 			"\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
17243 			"\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
17244 			"\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
17245 			"\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
17246 			"\xce\x20\x56\x32\xc6\xc5\x99\x1f"
17247 			"\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
17248 			"\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
17249 			"\x66\xf8\x3d\x18\x74\x70\x66\x7a"
17250 			"\x34\x17\xde\xba\x47\xf1\x06\x18"
17251 			"\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
17252 			"\xe0\x3b\x78\x62\x66\xc9\x10\xea"
17253 			"\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
17254 			"\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
17255 			"\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
17256 			"\x63\x4f\x20\x0c\x07\x17\x33\x5e"
17257 			"\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
17258 			"\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
17259 			"\x58\xef\x15\xa9\x83\xd9\x46\xb1"
17260 			"\x42\xaa\xf5\x02\x6c\xce\x92\x06"
17261 			"\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
17262 			"\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
17263 			"\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
17264 			"\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
17265 			"\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
17266 			"\xb6\x67\xc7\x77\xed\x23\xef\x4c"
17267 			"\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
17268 			"\x34\x37\x08\xab\xd9\x1f\x09\xb1"
17269 			"\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
17270 			"\x2c\x56\x39\x79\x0f\x69\x44\x75"
17271 			"\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
17272 			"\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
17273 			"\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
17274 			"\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
17275 			"\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
17276 			"\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
17277 			"\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
17278 			"\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
17279 			"\x63\x9b\xce\x61\x24\x79\xc0\x70"
17280 			"\x52\xd0\xb6\xd4\x28\x95\x24\x87"
17281 			"\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
17282 			"\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
17283 			"\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
17284 			"\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
17285 			"\x74\x56\x58\x40\x02\x37\x52\x2c"
17286 			"\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
17287 			"\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
17288 			"\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
17289 			"\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
17290 			"\x24\x90\xec\x58\xd2\x09\xc7\x2d"
17291 			"\xed\x38\x80\x36\x72\x43\x27\x49"
17292 			"\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
17293 			"\x7d\xb6\x82\x37\x86\x92\x86\x3e"
17294 			"\x08\xb2\x28\x5a\x55\x44\x24\x7d"
17295 			"\x40\x48\x8a\xb6\x89\x58\x08\xa0"
17296 			"\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
17297 			"\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
17298 			"\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
17299 			"\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
17300 			"\x14\x32\x45\x05\xe0\xdb\x9f\x75"
17301 			"\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
17302 			"\x12\xee\x30\xfe\xd8\x30\xef\x34"
17303 			"\x50\xab\x46\x30\x98\x2f\xb7\xc0"
17304 			"\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
17305 			"\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
17306 			"\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
17307 			"\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
17308 			"\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
17309 			"\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
17310 			"\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
17311 			"\x02\x9d\x27\x1f\xef\x85\x05\x8d"
17312 			"\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
17313 			"\xa1\x75\xa0\xd8\x06\x47\x14\xef"
17314 			"\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
17315 			"\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
17316 			"\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
17317 			"\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
17318 			"\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
17319 			"\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
17320 			"\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
17321 			"\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
17322 			"\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
17323 			"\x44\x12\xfb\x73\x77\xd4\x13\x39"
17324 			"\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
17325 			"\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
17326 			"\x41\x01\x18\x5d\x5d\x07\x97\xa6"
17327 			"\x4b\xef\x31\x18\xea\xac\xb1\x84"
17328 			"\x21\xed\xda\x86",
17329 		.rlen = 4100,
17330 		.np	= 2,
17331 		.tap	= { 4064, 36 },
17332 	},
17333 };
17334 
17335 static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
17336 	{ /* From RFC 3686 */
17337 		.key	= "\xae\x68\x52\xf8\x12\x10\x67\xcc"
17338 			  "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
17339 			  "\x00\x00\x00\x30",
17340 		.klen	= 20,
17341 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00",
17342 		.input	= "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
17343 			  "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
17344 		.ilen	= 16,
17345 		.result	= "Single block msg",
17346 		.rlen	= 16,
17347 	}, {
17348 		.key	= "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
17349 			  "\x43\xd6\xce\x1f\x32\x53\x91\x63"
17350 			  "\x00\x6c\xb6\xdb",
17351 		.klen	= 20,
17352 		.iv	= "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
17353 		.input	= "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
17354 			  "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
17355 			  "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
17356 			  "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
17357 		.ilen	= 32,
17358 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
17359 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17360 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
17361 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
17362 		.rlen	= 32,
17363 	}, {
17364 		.key	= "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
17365 			  "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
17366 			  "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
17367 			  "\x00\x00\x00\x48",
17368 		.klen	= 28,
17369 		.iv	= "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
17370 		.input	= "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
17371 			  "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
17372 		.ilen	= 16,
17373 		.result	= "Single block msg",
17374 		.rlen	= 16,
17375 	}, {
17376 		.key	= "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
17377 			  "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
17378 			  "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
17379 			  "\x00\x96\xb0\x3b",
17380 		.klen	= 28,
17381 		.iv	= "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
17382 		.input	= "\x45\x32\x43\xfc\x60\x9b\x23\x32"
17383 			  "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
17384 			  "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
17385 			  "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
17386 		.ilen	= 32,
17387 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
17388 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17389 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
17390 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
17391 		.rlen	= 32,
17392 	}, {
17393 		.key	= "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
17394 			  "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
17395 			  "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
17396 			  "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
17397 			  "\x00\x00\x00\x60",
17398 		.klen	= 36,
17399 		.iv	= "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
17400 		.input	= "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
17401 			  "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
17402 		.ilen	= 16,
17403 		.result	= "Single block msg",
17404 		.rlen	= 16,
17405 	}, {
17406 		.key	= "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
17407 			  "\x07\x96\x36\x58\x79\xef\xf8\x86"
17408 			  "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
17409 			  "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
17410 			  "\x00\xfa\xac\x24",
17411 		.klen	= 36,
17412 		.iv	= "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
17413 		.input	= "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
17414 			  "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
17415 			  "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
17416 			  "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
17417 		.ilen	= 32,
17418 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
17419 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17420 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
17421 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
17422 		.rlen	= 32,
17423 	},
17424 };
17425 
17426 static struct cipher_testvec aes_ofb_enc_tv_template[] = {
17427 	 /* From NIST Special Publication 800-38A, Appendix F.5 */
17428 	{
17429 		.key	= "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
17430 			  "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
17431 		.klen	= 16,
17432 		.iv	= "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
17433 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17434 		.input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17435 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17436 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17437 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17438 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17439 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17440 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17441 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17442 		.ilen	= 64,
17443 		.result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
17444 			  "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
17445 			  "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
17446 			  "\x3c\x52\xda\xc5\x4e\xd8\x25"
17447 			  "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
17448 			  "\x44\xf7\xa8\x22\x60\xed\xcc"
17449 			  "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
17450 			  "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
17451 		.rlen	= 64,
17452 	}
17453 };
17454 
17455 static struct cipher_testvec aes_ofb_dec_tv_template[] = {
17456 	 /* From NIST Special Publication 800-38A, Appendix F.5 */
17457 	{
17458 		.key	= "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
17459 			  "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
17460 		.klen	= 16,
17461 		.iv	= "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
17462 			  "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17463 		.input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
17464 			  "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
17465 			  "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
17466 			  "\x3c\x52\xda\xc5\x4e\xd8\x25"
17467 			  "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
17468 			  "\x44\xf7\xa8\x22\x60\xed\xcc"
17469 			  "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
17470 			  "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
17471 		.ilen	= 64,
17472 		.result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17473 			  "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17474 			  "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17475 			  "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17476 			  "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17477 			  "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17478 			  "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17479 			  "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17480 		.rlen	= 64,
17481 	}
17482 };
17483 
17484 static struct aead_testvec aes_gcm_enc_tv_template[] = {
17485 	{ /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
17486 		.key    = zeroed_string,
17487 		.klen	= 16,
17488 		.result	= "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
17489 			  "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
17490 		.rlen	= 16,
17491 	}, {
17492 		.key    = zeroed_string,
17493 		.klen	= 16,
17494 		.input  = zeroed_string,
17495 		.ilen	= 16,
17496 		.result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
17497 			  "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
17498 			  "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
17499 			  "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
17500 		.rlen	= 32,
17501 	}, {
17502 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17503 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17504 		.klen	= 16,
17505 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17506 			  "\xde\xca\xf8\x88",
17507 		.input	= "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17508 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17509 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17510 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17511 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17512 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17513 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17514 			  "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
17515 		.ilen	= 64,
17516 		.result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
17517 			  "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
17518 			  "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
17519 			  "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
17520 			  "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
17521 			  "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
17522 			  "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
17523 			  "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
17524 			  "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
17525 			  "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
17526 		.rlen	= 80,
17527 	}, {
17528 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17529 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17530 		.klen	= 16,
17531 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17532 			  "\xde\xca\xf8\x88",
17533 		.input	= "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17534 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17535 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17536 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17537 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17538 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17539 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17540 			  "\xba\x63\x7b\x39",
17541 		.ilen	= 60,
17542 		.assoc	= "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17543 			  "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17544 			  "\xab\xad\xda\xd2",
17545 		.alen	= 20,
17546 		.result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
17547 			  "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
17548 			  "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
17549 			  "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
17550 			  "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
17551 			  "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
17552 			  "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
17553 			  "\x3d\x58\xe0\x91"
17554 			  "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
17555 			  "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
17556 		.rlen	= 76,
17557 	}, {
17558 		.key    = zeroed_string,
17559 		.klen	= 24,
17560 		.result	= "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
17561 			  "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
17562 		.rlen	= 16,
17563 	}, {
17564 		.key    = zeroed_string,
17565 		.klen	= 24,
17566 		.input  = zeroed_string,
17567 		.ilen	= 16,
17568 		.result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
17569 			  "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
17570 			  "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
17571 			  "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
17572 		.rlen	= 32,
17573 	}, {
17574 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17575 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17576 			  "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17577 		.klen	= 24,
17578 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17579 			  "\xde\xca\xf8\x88",
17580 		.input	= "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17581 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17582 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17583 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17584 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17585 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17586 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17587 			  "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
17588 		.ilen	= 64,
17589 		.result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
17590 			  "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17591 			  "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17592 			  "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17593 			  "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17594 			  "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17595 			  "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17596 			  "\xcc\xda\x27\x10\xac\xad\xe2\x56"
17597 			  "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
17598 			  "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
17599 		.rlen	= 80,
17600 	}, {
17601 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17602 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17603 			  "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17604 		.klen	= 24,
17605 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17606 			  "\xde\xca\xf8\x88",
17607 		.input	= "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17608 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17609 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17610 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17611 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17612 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17613 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17614 			  "\xba\x63\x7b\x39",
17615 		.ilen	= 60,
17616 		.assoc	= "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17617 			  "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17618 			  "\xab\xad\xda\xd2",
17619 		.alen	= 20,
17620 		.result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
17621 			  "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17622 			  "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17623 			  "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17624 			  "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17625 			  "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17626 			  "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17627 			  "\xcc\xda\x27\x10"
17628 			  "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
17629 			  "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
17630 		.rlen	= 76,
17631 		.np	= 2,
17632 		.tap	= { 32, 28 },
17633 		.anp	= 2,
17634 		.atap	= { 8, 12 }
17635 	}, {
17636 		.key    = zeroed_string,
17637 		.klen	= 32,
17638 		.result	= "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
17639 			  "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
17640 		.rlen	= 16,
17641 	}
17642 };
17643 
17644 static struct aead_testvec aes_gcm_dec_tv_template[] = {
17645 	{ /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
17646 		.key    = zeroed_string,
17647 		.klen	= 32,
17648 		.input	= "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
17649 			  "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
17650 			  "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
17651 			  "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
17652 		.ilen	= 32,
17653 		.result  = zeroed_string,
17654 		.rlen	= 16,
17655 	}, {
17656 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17657 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17658 			  "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17659 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17660 		.klen	= 32,
17661 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17662 			  "\xde\xca\xf8\x88",
17663 		.input	= "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
17664 			  "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
17665 			  "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
17666 			  "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
17667 			  "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
17668 			  "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
17669 			  "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
17670 			  "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
17671 			  "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
17672 			  "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
17673 		.ilen	= 80,
17674 		.result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17675 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17676 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17677 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17678 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17679 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17680 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17681 			  "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
17682 		.rlen	= 64,
17683 	}, {
17684 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17685 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17686 			  "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17687 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17688 		.klen	= 32,
17689 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17690 			  "\xde\xca\xf8\x88",
17691 		.input	= "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
17692 			  "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
17693 			  "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
17694 			  "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
17695 			  "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
17696 			  "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
17697 			  "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
17698 			  "\xbc\xc9\xf6\x62"
17699 			  "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
17700 			  "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
17701 		.ilen	= 76,
17702 		.assoc	= "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17703 			  "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17704 			  "\xab\xad\xda\xd2",
17705 		.alen	= 20,
17706 		.result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17707 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17708 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17709 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17710 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17711 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17712 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17713 			  "\xba\x63\x7b\x39",
17714 		.rlen	= 60,
17715 		.np     = 2,
17716 		.tap    = { 48, 28 },
17717 		.anp	= 3,
17718 		.atap	= { 8, 8, 4 }
17719 	}, {
17720 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17721 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17722 		.klen	= 16,
17723 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17724 			  "\xde\xca\xf8\x88",
17725 		.input	= "\x42\x83\x1e\xc2\x21\x77\x74\x24"
17726 			  "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
17727 			  "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
17728 			  "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
17729 			  "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
17730 			  "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
17731 			  "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
17732 			  "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
17733 			  "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
17734 			  "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
17735 		.ilen	= 80,
17736 		.result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17737 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17738 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17739 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17740 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17741 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17742 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17743 			  "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
17744 		.rlen	= 64,
17745 	}, {
17746 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17747 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17748 		.klen	= 16,
17749 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17750 			  "\xde\xca\xf8\x88",
17751 		.input	= "\x42\x83\x1e\xc2\x21\x77\x74\x24"
17752 			  "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
17753 			  "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
17754 			  "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
17755 			  "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
17756 			  "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
17757 			  "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
17758 			  "\x3d\x58\xe0\x91"
17759 			  "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
17760 			  "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
17761 		.ilen	= 76,
17762 		.assoc	= "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17763 			  "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17764 			  "\xab\xad\xda\xd2",
17765 		.alen	= 20,
17766 		.result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17767 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17768 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17769 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17770 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17771 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17772 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17773 			  "\xba\x63\x7b\x39",
17774 		.rlen	= 60,
17775 	}, {
17776 		.key    = zeroed_string,
17777 		.klen	= 24,
17778 		.input	= "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
17779 			  "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
17780 			  "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
17781 			  "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
17782 		.ilen	= 32,
17783 		.result  = zeroed_string,
17784 		.rlen	= 16,
17785 	}, {
17786 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17787 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17788 			  "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17789 		.klen	= 24,
17790 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17791 			  "\xde\xca\xf8\x88",
17792 		.input	= "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
17793 			  "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17794 			  "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17795 			  "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17796 			  "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17797 			  "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17798 			  "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17799 			  "\xcc\xda\x27\x10\xac\xad\xe2\x56"
17800 			  "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
17801 			  "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
17802 		.ilen	= 80,
17803 		.result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17804 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17805 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17806 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17807 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17808 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17809 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17810 			  "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
17811 		.rlen	= 64,
17812 	}, {
17813 		.key	= "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17814 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17815 			  "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17816 		.klen	= 24,
17817 		.iv	= "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17818 			  "\xde\xca\xf8\x88",
17819 		.input	= "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
17820 			  "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17821 			  "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17822 			  "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17823 			  "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17824 			  "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17825 			  "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17826 			  "\xcc\xda\x27\x10"
17827 			  "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
17828 			  "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
17829 		.ilen	= 76,
17830 		.assoc	= "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17831 			  "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17832 			  "\xab\xad\xda\xd2",
17833 		.alen	= 20,
17834 		.result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17835 			  "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17836 			  "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17837 			  "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17838 			  "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17839 			  "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17840 			  "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17841 			  "\xba\x63\x7b\x39",
17842 		.rlen	= 60,
17843 	}
17844 };
17845 
17846 static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
17847         { /* Generated using Crypto++ */
17848 		.key    = zeroed_string,
17849 		.klen	= 20,
17850                 .iv     = zeroed_string,
17851                 .input  = zeroed_string,
17852                 .ilen   = 16,
17853                 .assoc  = zeroed_string,
17854                 .alen   = 8,
17855 		.result	= "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
17856                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
17857                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
17858                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
17859 		.rlen	= 32,
17860         },{
17861 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17862 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17863                           "\x00\x00\x00\x00",
17864 		.klen	= 20,
17865                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01"
17866                           "\x00\x00\x00\x00",
17867                 .input  = zeroed_string,
17868                 .ilen   = 16,
17869                 .assoc  = zeroed_string,
17870                 .alen   = 8,
17871 		.result	= "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
17872                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
17873                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
17874                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
17875 		.rlen	= 32,
17876 
17877         }, {
17878 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17879 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17880                           "\x00\x00\x00\x00",
17881 		.klen	= 20,
17882                 .iv     = zeroed_string,
17883                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17884                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17885                 .ilen   = 16,
17886                 .assoc  = zeroed_string,
17887                 .alen   = 8,
17888 		.result	= "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
17889                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17890                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
17891                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
17892 		.rlen	= 32,
17893         }, {
17894 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17895 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17896                           "\x00\x00\x00\x00",
17897 		.klen	= 20,
17898                 .iv     = zeroed_string,
17899                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17900                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17901                 .ilen   = 16,
17902                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01",
17903                 .alen   = 8,
17904 		.result	= "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
17905                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17906                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
17907                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
17908 		.rlen	= 32,
17909         }, {
17910 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17911 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17912                           "\x00\x00\x00\x00",
17913 		.klen	= 20,
17914                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01"
17915                           "\x00\x00\x00\x00",
17916                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17917                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17918                 .ilen   = 16,
17919                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01",
17920                 .alen   = 8,
17921 		.result	= "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
17922                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17923                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
17924                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
17925 		.rlen	= 32,
17926         }, {
17927 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17928 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17929                           "\x00\x00\x00\x00",
17930 		.klen	= 20,
17931                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01"
17932                           "\x00\x00\x00\x00",
17933                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17934                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17935                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17936                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17937                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17938                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17939                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17940                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17941                 .ilen   = 64,
17942                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01",
17943                 .alen   = 8,
17944 		.result	= "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
17945                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17946                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
17947                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
17948                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
17949                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
17950                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
17951                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
17952                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
17953                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
17954 		.rlen	= 80,
17955         }, {
17956 		.key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
17957 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17958                           "\x00\x00\x00\x00",
17959 		.klen	= 20,
17960                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef"
17961                           "\x00\x00\x00\x00",
17962                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
17963                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17964                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17965                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17966                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17967                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17968                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17969                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17970                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17971                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17972                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17973                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17974                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17975                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17976                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17977                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17978                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17979                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17980                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17981                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17982                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17983                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17984                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17985                           "\xff\xff\xff\xff\xff\xff\xff\xff",
17986                 .ilen   = 192,
17987                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
17988                           "\xaa\xaa\xaa\xaa",
17989                 .alen   = 12,
17990 		.result	= "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
17991 			  "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
17992 			  "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
17993 			  "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
17994 			  "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
17995 			  "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
17996 			  "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
17997 			  "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
17998 			  "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
17999 			  "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
18000 			  "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
18001 			  "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
18002 			  "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
18003 			  "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
18004 			  "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
18005 			  "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
18006 			  "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
18007 			  "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
18008 			  "\x7E\x13\x06\x82\x08\x17\xA4\x35"
18009 			  "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
18010 			  "\xA3\x05\x38\x95\x20\x1A\x47\x04"
18011 			  "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
18012 			  "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
18013 			  "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
18014 			  "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
18015 			  "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
18016 		.rlen	= 208,
18017 	}
18018 };
18019 
18020 static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
18021         { /* Generated using Crypto++ */
18022 		.key    = zeroed_string,
18023 		.klen	= 20,
18024                 .iv     = zeroed_string,
18025 		.input	= "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
18026                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
18027                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
18028                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
18029 		.ilen	= 32,
18030                 .assoc  = zeroed_string,
18031                 .alen   = 8,
18032                 .result = zeroed_string,
18033                 .rlen   = 16,
18034 
18035         },{
18036 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18037 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18038                           "\x00\x00\x00\x00",
18039 		.klen	= 20,
18040                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01"
18041                           "\x00\x00\x00\x00",
18042 		.input	= "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
18043                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
18044                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
18045                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
18046 		.ilen	= 32,
18047                 .assoc  = zeroed_string,
18048                 .alen   = 8,
18049                 .result = zeroed_string,
18050                 .rlen   = 16,
18051         }, {
18052 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18053 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18054                           "\x00\x00\x00\x00",
18055 		.klen	= 20,
18056                 .iv     = zeroed_string,
18057 		.input	= "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
18058                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
18059                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
18060                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
18061 		.ilen	= 32,
18062                 .assoc  = zeroed_string,
18063                 .alen   = 8,
18064                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18065                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18066                 .rlen   = 16,
18067         }, {
18068 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18069 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18070                           "\x00\x00\x00\x00",
18071 		.klen	= 20,
18072                 .iv     = zeroed_string,
18073 		.input	= "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
18074                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
18075                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
18076                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
18077 		.ilen	= 32,
18078                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01",
18079                 .alen   = 8,
18080                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18081                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18082                 .rlen   = 16,
18083 
18084         }, {
18085 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18086 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18087                           "\x00\x00\x00\x00",
18088 		.klen	= 20,
18089                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01"
18090                           "\x00\x00\x00\x00",
18091 		.input	= "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
18092                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
18093                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
18094                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
18095 		.ilen	= 32,
18096                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01",
18097                 .alen   = 8,
18098                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18099                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18100                 .rlen   = 16,
18101         }, {
18102 		.key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18103 			  "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18104                           "\x00\x00\x00\x00",
18105 		.klen	= 20,
18106                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01"
18107                           "\x00\x00\x00\x00",
18108 		.input	= "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
18109                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
18110                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
18111                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
18112                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
18113                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
18114                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
18115                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
18116                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
18117                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
18118 		.ilen	= 80,
18119                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01",
18120                 .alen   = 8,
18121                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18122                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18123                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18124                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18125                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18126                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18127                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18128                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18129                 .rlen   = 64,
18130         }, {
18131 		.key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
18132 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18133                           "\x00\x00\x00\x00",
18134 		.klen	= 20,
18135                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef"
18136                           "\x00\x00\x00\x00",
18137 		.input	= "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
18138 			  "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
18139 			  "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
18140 			  "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
18141 			  "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
18142 			  "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
18143 			  "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
18144 			  "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
18145 			  "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
18146 			  "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
18147 			  "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
18148 			  "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
18149 			  "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
18150 			  "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
18151 			  "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
18152 			  "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
18153 			  "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
18154 			  "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
18155 			  "\x7E\x13\x06\x82\x08\x17\xA4\x35"
18156 			  "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
18157 			  "\xA3\x05\x38\x95\x20\x1A\x47\x04"
18158 			  "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
18159 			  "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
18160 			  "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
18161 			  "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
18162 			  "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
18163 		.ilen	= 208,
18164                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18165                           "\xaa\xaa\xaa\xaa",
18166                 .alen   = 12,
18167                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
18168                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18169                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18170                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18171                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18172                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18173                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18174                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18175                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18176                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18177                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18178                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18179                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18180                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18181                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18182                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18183                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18184                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18185                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18186                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18187                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18188                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18189                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18190                           "\xff\xff\xff\xff\xff\xff\xff\xff",
18191                 .rlen   = 192,
18192 
18193 	}
18194 };
18195 
18196 static struct aead_testvec aes_ccm_enc_tv_template[] = {
18197 	{ /* From RFC 3610 */
18198 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18199 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18200 		.klen	= 16,
18201 		.iv	= "\x01\x00\x00\x00\x03\x02\x01\x00"
18202 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18203 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07",
18204 		.alen	= 8,
18205 		.input	= "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18206 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
18207 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e",
18208 		.ilen	= 23,
18209 		.result	= "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
18210 			  "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
18211 			  "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
18212 			  "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
18213 		.rlen	= 31,
18214 	}, {
18215 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18216 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18217 		.klen	= 16,
18218 		.iv	= "\x01\x00\x00\x00\x07\x06\x05\x04"
18219 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18220 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07"
18221 			  "\x08\x09\x0a\x0b",
18222 		.alen	= 12,
18223 		.input	= "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18224 			  "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18225 			  "\x1c\x1d\x1e\x1f",
18226 		.ilen	= 20,
18227 		.result	= "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
18228 			  "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
18229 			  "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
18230 			  "\x7d\x9c\x2d\x93",
18231 		.rlen	= 28,
18232 	}, {
18233 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18234 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18235 		.klen	= 16,
18236 		.iv	= "\x01\x00\x00\x00\x0b\x0a\x09\x08"
18237 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18238 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07",
18239 		.alen	= 8,
18240 		.input	= "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18241 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
18242 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18243 			  "\x20",
18244 		.ilen	= 25,
18245 		.result	= "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
18246 			  "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
18247 			  "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
18248 			  "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
18249 			  "\x7e\x5f\x4e",
18250 		.rlen	= 35,
18251 	}, {
18252 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18253 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18254 		.klen	= 16,
18255 		.iv	= "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
18256 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18257 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07"
18258 			  "\x08\x09\x0a\x0b",
18259 		.alen	= 12,
18260 		.input	= "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18261 			  "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18262 			  "\x1c\x1d\x1e",
18263 		.ilen	= 19,
18264 		.result	= "\x07\x34\x25\x94\x15\x77\x85\x15"
18265 			  "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
18266 			  "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
18267 			  "\x4d\x99\x99\x88\xdd",
18268 		.rlen	= 29,
18269 	}, {
18270 		.key	= "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18271 			  "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18272 		.klen	= 16,
18273 		.iv	= "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
18274 			  "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18275 		.assoc	= "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
18276 		.alen	= 8,
18277 		.input	= "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
18278 			  "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
18279 			  "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
18280 		.ilen	= 24,
18281 		.result	= "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
18282 			  "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
18283 			  "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
18284 			  "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
18285 		.rlen	= 32,
18286 	}, {
18287 		.key	= "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18288 			  "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18289 		.klen	= 16,
18290 		.iv	= "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
18291 			  "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18292 		.assoc	= "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
18293 			  "\x20\xea\x60\xc0",
18294 		.alen	= 12,
18295 		.input	= "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
18296 			  "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
18297 			  "\x3a\x80\x3b\xa8\x7f",
18298 		.ilen	= 21,
18299 		.result	= "\x00\x97\x69\xec\xab\xdf\x48\x62"
18300 			  "\x55\x94\xc5\x92\x51\xe6\x03\x57"
18301 			  "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
18302 			  "\x5a\xe0\x70\x45\x51",
18303 		.rlen	= 29,
18304 	}, {
18305 		.key	= "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18306 			  "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18307 		.klen	= 16,
18308 		.iv	= "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
18309 			  "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18310 		.assoc	= "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
18311 		.alen	= 8,
18312 		.input	= "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
18313 			  "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
18314 			  "\x98\x09\xd6\x7d\xbe\xdd\x18",
18315 		.ilen	= 23,
18316 		.result	= "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
18317 			  "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
18318 			  "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
18319 			  "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
18320 			  "\xba",
18321 		.rlen	= 33,
18322 	},
18323 };
18324 
18325 static struct aead_testvec aes_ccm_dec_tv_template[] = {
18326 	{ /* From RFC 3610 */
18327 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18328 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18329 		.klen	= 16,
18330 		.iv	= "\x01\x00\x00\x00\x03\x02\x01\x00"
18331 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18332 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07",
18333 		.alen	= 8,
18334 		.input	= "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
18335 			  "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
18336 			  "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
18337 			  "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
18338 		.ilen	= 31,
18339 		.result	= "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18340 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
18341 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e",
18342 		.rlen	= 23,
18343 	}, {
18344 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18345 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18346 		.klen	= 16,
18347 		.iv	= "\x01\x00\x00\x00\x07\x06\x05\x04"
18348 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18349 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07"
18350 			  "\x08\x09\x0a\x0b",
18351 		.alen	= 12,
18352 		.input	= "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
18353 			  "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
18354 			  "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
18355 			  "\x7d\x9c\x2d\x93",
18356 		.ilen	= 28,
18357 		.result	= "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18358 			  "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18359 			  "\x1c\x1d\x1e\x1f",
18360 		.rlen	= 20,
18361 	}, {
18362 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18363 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18364 		.klen	= 16,
18365 		.iv	= "\x01\x00\x00\x00\x0b\x0a\x09\x08"
18366 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18367 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07",
18368 		.alen	= 8,
18369 		.input	= "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
18370 			  "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
18371 			  "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
18372 			  "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
18373 			  "\x7e\x5f\x4e",
18374 		.ilen	= 35,
18375 		.result	= "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18376 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
18377 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18378 			  "\x20",
18379 		.rlen	= 25,
18380 	}, {
18381 		.key	= "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18382 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18383 		.klen	= 16,
18384 		.iv	= "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
18385 			  "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18386 		.assoc	= "\x00\x01\x02\x03\x04\x05\x06\x07"
18387 			  "\x08\x09\x0a\x0b",
18388 		.alen	= 12,
18389 		.input	= "\x07\x34\x25\x94\x15\x77\x85\x15"
18390 			  "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
18391 			  "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
18392 			  "\x4d\x99\x99\x88\xdd",
18393 		.ilen	= 29,
18394 		.result	= "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18395 			  "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18396 			  "\x1c\x1d\x1e",
18397 		.rlen	= 19,
18398 	}, {
18399 		.key	= "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18400 			  "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18401 		.klen	= 16,
18402 		.iv	= "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
18403 			  "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18404 		.assoc	= "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
18405 		.alen	= 8,
18406 		.input	= "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
18407 			  "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
18408 			  "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
18409 			  "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
18410 		.ilen	= 32,
18411 		.result	= "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
18412 			  "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
18413 			  "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
18414 		.rlen	= 24,
18415 	}, {
18416 		.key	= "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18417 			  "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18418 		.klen	= 16,
18419 		.iv	= "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
18420 			  "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18421 		.assoc	= "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
18422 			  "\x20\xea\x60\xc0",
18423 		.alen	= 12,
18424 		.input	= "\x00\x97\x69\xec\xab\xdf\x48\x62"
18425 			  "\x55\x94\xc5\x92\x51\xe6\x03\x57"
18426 			  "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
18427 			  "\x5a\xe0\x70\x45\x51",
18428 		.ilen	= 29,
18429 		.result	= "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
18430 			  "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
18431 			  "\x3a\x80\x3b\xa8\x7f",
18432 		.rlen	= 21,
18433 	}, {
18434 		.key	= "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18435 			  "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18436 		.klen	= 16,
18437 		.iv	= "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
18438 			  "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18439 		.assoc	= "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
18440 		.alen	= 8,
18441 		.input	= "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
18442 			  "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
18443 			  "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
18444 			  "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
18445 			  "\xba",
18446 		.ilen	= 33,
18447 		.result	= "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
18448 			  "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
18449 			  "\x98\x09\xd6\x7d\xbe\xdd\x18",
18450 		.rlen	= 23,
18451 	},
18452 };
18453 
18454 /*
18455  * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
18456  * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
18457  * Special Publication 800-38C's test vectors also use nonce lengths our
18458  * implementation doesn't support. The following are taken from fips cavs
18459  * fax files on hand at Red Hat.
18460  *
18461  * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
18462  * part of the nonce which combine w/the iv, but need to be input this way.
18463  */
18464 static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
18465 	{
18466 		.key	= "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
18467 			  "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
18468 			  "\x96\xac\x59",
18469 		.klen	= 19,
18470 		.iv	= "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
18471 		.alen	= 0,
18472 		.input	= "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
18473 			  "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
18474 			  "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
18475 			  "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
18476 		.ilen	= 32,
18477 		.result	= "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
18478 			  "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
18479 			  "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
18480 			  "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
18481 			  "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
18482 			  "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
18483 		.rlen	= 48,
18484 	}, {
18485 		.key	= "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
18486 			  "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
18487 			  "\x4f\xa3\x19",
18488 		.klen	= 19,
18489 		.iv	= "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
18490 		.assoc	= "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
18491 			  "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
18492 			  "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
18493 			  "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
18494 		.alen	= 32,
18495 		.input	= "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
18496 			  "\xa9\x28\x63\xba\x12\xa3\x14\x85"
18497 			  "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
18498 			  "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
18499 		.ilen	= 32,
18500 		.result	= "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
18501 			  "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
18502 			  "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
18503 			  "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
18504 			  "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
18505 			  "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
18506 		.rlen	= 48,
18507 	}, {
18508 		.key	= "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
18509 			  "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
18510 			  "\x53\x14\x73\x66\x8d\x88\xf6\x80"
18511 			  "\xa0\x20\x35",
18512 		.klen	= 27,
18513 		.iv	= "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
18514 		.assoc	= "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
18515 			  "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
18516 			  "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
18517 			  "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
18518 		.alen	= 32,
18519 		.ilen	= 0,
18520 		.result	= "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
18521 			  "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
18522 		.rlen	= 16,
18523 	}, {
18524 		.key	= "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
18525 			  "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
18526 			  "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
18527 			  "\xd6\x3c\x8c",
18528 		.klen	= 27,
18529 		.iv	= "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
18530 		.assoc	= "\x02\x65\x78\x3c\xe9\x21\x30\x91"
18531 			  "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
18532 			  "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
18533 			  "\xe3\x00\x73\x69\x84\x69\x87\x79",
18534 		.alen	= 32,
18535 		.input	= "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
18536 			  "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
18537 			  "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
18538 			  "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
18539 		.ilen	= 32,
18540 		.result	= "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
18541 			  "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
18542 			  "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
18543 			  "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
18544 			  "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
18545 			  "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
18546 		.rlen	= 48,
18547 	}, {
18548 		.key	= "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
18549 			  "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
18550 			  "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
18551 			  "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
18552 			  "\x1e\x29\x91",
18553 		.klen	= 35,
18554 		.iv	= "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
18555 		.assoc	= "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
18556 			  "\x78\x2b\x94\x02\x29\x0f\x42\x27"
18557 			  "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
18558 			  "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
18559 		.alen	= 32,
18560 		.input	= "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
18561 			  "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
18562 			  "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
18563 			  "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
18564 		.ilen	= 32,
18565 		.result	= "\x19\xb8\x61\x33\x45\x2b\x43\x96"
18566 			  "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
18567 			  "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
18568 			  "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
18569 			  "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
18570 		.rlen	= 40,
18571 	}, {
18572 		.key	= "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
18573 			  "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
18574 			  "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
18575 			  "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
18576 			  "\xf9\xd9\x4e",
18577 		.klen	= 35,
18578 		.iv	= "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
18579 		.assoc	= "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
18580 			  "\x13\x02\x01\x0c\x83\x4c\x96\x35"
18581 			  "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
18582 			  "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
18583 		.alen	= 32,
18584 		.input	= "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
18585 			  "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
18586 			  "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
18587 			  "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
18588 		.ilen	= 32,
18589 		.result	= "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
18590 			  "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
18591 			  "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
18592 			  "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
18593 			  "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
18594 			  "\x7b\x72\x8a\xf7",
18595 		.rlen	= 44,
18596 	}, {
18597 		.key	= "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
18598 			  "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
18599 			  "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
18600 			  "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
18601 			  "\x24\xa7\x8b",
18602 		.klen	= 35,
18603 		.iv	= "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
18604 		.assoc	= "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
18605 			  "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
18606 			  "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
18607 			  "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
18608 		.alen	= 32,
18609 		.input	= "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
18610 			  "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
18611 			  "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
18612 			  "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
18613 		.ilen	= 32,
18614 		.result	= "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
18615 			  "\xef\xbb\x80\x21\x04\x6c\x58\x09"
18616 			  "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
18617 			  "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
18618 			  "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
18619 			  "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
18620 		.rlen	= 48,
18621 	},
18622 };
18623 
18624 static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
18625 	{
18626 		.key	= "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
18627 			  "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
18628 			  "\xc6\xfb\x7d",
18629 		.klen	= 19,
18630 		.iv	= "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
18631 		.alen	= 0,
18632 		.input	= "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
18633 		.ilen	= 8,
18634 		.result	= "\x00",
18635 		.rlen	= 0,
18636 		.novrfy	= 1,
18637 	}, {
18638 		.key	= "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
18639 			  "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
18640 			  "\xaf\x94\x87",
18641 		.klen	= 19,
18642 		.iv	= "\x78\x35\x82\x81\x7f\x88\x94\x68",
18643 		.alen	= 0,
18644 		.input	= "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
18645 		.ilen	= 8,
18646 		.result	= "\x00",
18647 		.rlen	= 0,
18648 	}, {
18649 		.key	= "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
18650 			  "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
18651 			  "\xc6\xfb\x7d",
18652 		.klen	= 19,
18653 		.iv	= "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
18654 		.assoc	= "\xf3\x94\x87\x78\x35\x82\x81\x7f"
18655 			  "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
18656 			  "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
18657 			  "\xd8\x94\x99\x91\x81\x54\x62\x57",
18658 		.alen	= 32,
18659 		.input	= "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
18660 			  "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
18661 			  "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
18662 			  "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
18663 			  "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
18664 			  "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
18665 		.ilen	= 48,
18666 		.result	= "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
18667 			  "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
18668 			  "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
18669 			  "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
18670 		.rlen	= 32,
18671 		.novrfy	= 1,
18672 	}, {
18673 		.key	= "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
18674 			  "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
18675 			  "\x05\xe0\xc9",
18676 		.klen	= 19,
18677 		.iv	= "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
18678 		.assoc	= "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
18679 			  "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
18680 			  "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
18681 			  "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
18682 		.alen	= 32,
18683 		.input	= "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
18684 			  "\xad\x83\x52\x6d\x71\x03\x25\x1c"
18685 			  "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
18686 			  "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
18687 			  "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
18688 			  "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
18689 		.ilen	= 48,
18690 		.result	= "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
18691 			  "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
18692 			  "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
18693 			  "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
18694 		.rlen	= 32,
18695 	}, {
18696 		.key	= "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18697 			  "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18698 			  "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
18699 			  "\xee\x49\x83",
18700 		.klen	= 27,
18701 		.iv	= "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
18702 		.assoc	= "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18703 			  "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18704 			  "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18705 			  "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18706 		.alen	= 32,
18707 		.input	= "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
18708 		.ilen	= 8,
18709 		.result	= "\x00",
18710 		.rlen	= 0,
18711 	}, {
18712 		.key	= "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18713 			  "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18714 			  "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
18715 			  "\xee\x49\x83",
18716 		.klen	= 27,
18717 		.iv	= "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
18718 		.assoc	= "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18719 			  "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18720 			  "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18721 			  "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18722 		.alen	= 32,
18723 		.input	= "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
18724 			  "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
18725 			  "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
18726 			  "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
18727 			  "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
18728 		.ilen	= 40,
18729 		.result	= "\x85\x34\x66\x42\xc8\x92\x0f\x36"
18730 			  "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
18731 			  "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
18732 			  "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
18733 		.rlen	= 32,
18734 	}, {
18735 		.key	= "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18736 			  "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18737 			  "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
18738 			  "\xd1\xfc\x57",
18739 		.klen	= 27,
18740 		.iv	= "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
18741 		.assoc	= "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
18742 			  "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
18743 			  "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
18744 			  "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
18745 		.alen	= 32,
18746 		.input	= "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
18747 			  "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
18748 			  "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
18749 			  "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
18750 			  "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
18751 			  "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
18752 		.ilen	= 48,
18753 		.result	= "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
18754 			  "\x99\x2a\xa8\xca\x04\x25\x45\x90"
18755 			  "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
18756 			  "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
18757 		.rlen	= 32,
18758 		.novrfy	= 1,
18759 	}, {
18760 		.key	= "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
18761 			  "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
18762 			  "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
18763 			  "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
18764 			  "\xee\x49\x83",
18765 		.klen	= 35,
18766 		.iv	= "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
18767 		.alen	= 0,
18768 		.input	= "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
18769 		.ilen	= 8,
18770 		.result	= "\x00",
18771 		.rlen	= 0,
18772 	}, {
18773 		.key	= "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18774 			  "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18775 			  "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
18776 			  "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
18777 			  "\x85\x34\x66",
18778 		.klen	= 35,
18779 		.iv	= "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
18780 		.alen	= 0,
18781 		.input	= "\x48\x01\x5e\x02\x24\x04\x66\x47"
18782 			  "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
18783 			  "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
18784 			  "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
18785 			  "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
18786 			  "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
18787 		.ilen	= 48,
18788 		.result	= "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
18789 			  "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
18790 			  "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
18791 			  "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
18792 		.rlen	= 32,
18793 		.novrfy	= 1,
18794 	}, {
18795 		.key	= "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18796 			  "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18797 			  "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
18798 			  "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
18799 			  "\xcf\x76\x3f",
18800 		.klen	= 35,
18801 		.iv	= "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
18802 		.assoc	= "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
18803 			  "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
18804 			  "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
18805 			  "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
18806 		.alen	= 32,
18807 		.input	= "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
18808 			  "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
18809 			  "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
18810 			  "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
18811 			  "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
18812 			  "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
18813 		.ilen	= 48,
18814 		.result	= "\xc2\x54\xc8\xde\x78\x87\x77\x40"
18815 			  "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
18816 			  "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
18817 			  "\x04\x49\x3b\x19\x93\x57\x25\x5d",
18818 		.rlen	= 32,
18819 	},
18820 };
18821 
18822 /*
18823  * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
18824  * test vectors, taken from Appendix B.2.9 and B.2.10:
18825  *     http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
18826  * Only AES-128 is supported at this time.
18827  */
18828 #define ANSI_CPRNG_AES_TEST_VECTORS	6
18829 
18830 static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
18831 	{
18832 		.key	= "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
18833 			  "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
18834 		.klen	= 16,
18835 		.dt	= "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
18836 			  "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
18837 		.dtlen	= 16,
18838 		.v	= "\x80\x00\x00\x00\x00\x00\x00\x00"
18839 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
18840 		.vlen	= 16,
18841 		.result	= "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
18842 			  "\x84\x79\x66\x85\xc1\x2f\x76\x41",
18843 		.rlen	= 16,
18844 		.loops	= 1,
18845 	}, {
18846 		.key	= "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
18847 			  "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
18848 		.klen	= 16,
18849 		.dt	= "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
18850 			  "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
18851 		.dtlen	= 16,
18852 		.v	= "\xc0\x00\x00\x00\x00\x00\x00\x00"
18853 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
18854 		.vlen	= 16,
18855 		.result	= "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
18856 			  "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
18857 		.rlen	= 16,
18858 		.loops	= 1,
18859 	}, {
18860 		.key	= "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
18861 			  "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
18862 		.klen	= 16,
18863 		.dt	= "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
18864 			  "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
18865 		.dtlen	= 16,
18866 		.v	= "\xe0\x00\x00\x00\x00\x00\x00\x00"
18867 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
18868 		.vlen	= 16,
18869 		.result	= "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
18870 			  "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
18871 		.rlen	= 16,
18872 		.loops	= 1,
18873 	}, {
18874 		.key	= "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
18875 			  "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
18876 		.klen	= 16,
18877 		.dt	= "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
18878 			  "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
18879 		.dtlen	= 16,
18880 		.v	= "\xf0\x00\x00\x00\x00\x00\x00\x00"
18881 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
18882 		.vlen	= 16,
18883 		.result	= "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
18884 			  "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
18885 		.rlen	= 16,
18886 		.loops	= 1,
18887 	}, {
18888 		.key	= "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
18889 			  "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
18890 		.klen	= 16,
18891 		.dt	= "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
18892 			  "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
18893 		.dtlen	= 16,
18894 		.v	= "\xf8\x00\x00\x00\x00\x00\x00\x00"
18895 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
18896 		.vlen	= 16,
18897 		.result	= "\x05\x25\x92\x46\x61\x79\xd2\xcb"
18898 			  "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
18899 		.rlen	= 16,
18900 		.loops	= 1,
18901 	}, {	/* Monte Carlo Test */
18902 		.key	= "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
18903 			  "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
18904 		.klen	= 16,
18905 		.dt	= "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
18906 			  "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
18907 		.dtlen	= 16,
18908 		.v	= "\x57\x2c\x8e\x76\x87\x26\x47\x97"
18909 			  "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
18910 		.vlen	= 16,
18911 		.result	= "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
18912 			  "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
18913 		.rlen	= 16,
18914 		.loops	= 10000,
18915 	},
18916 };
18917 
18918 /* Cast5 test vectors from RFC 2144 */
18919 #define CAST5_ENC_TEST_VECTORS		4
18920 #define CAST5_DEC_TEST_VECTORS		4
18921 #define CAST5_CBC_ENC_TEST_VECTORS	1
18922 #define CAST5_CBC_DEC_TEST_VECTORS	1
18923 #define CAST5_CTR_ENC_TEST_VECTORS	2
18924 #define CAST5_CTR_DEC_TEST_VECTORS	2
18925 
18926 static struct cipher_testvec cast5_enc_tv_template[] = {
18927 	{
18928 		.key	= "\x01\x23\x45\x67\x12\x34\x56\x78"
18929 			  "\x23\x45\x67\x89\x34\x56\x78\x9a",
18930 		.klen	= 16,
18931 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
18932 		.ilen	= 8,
18933 		.result	= "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
18934 		.rlen	= 8,
18935 	}, {
18936 		.key	= "\x01\x23\x45\x67\x12\x34\x56\x78"
18937 			  "\x23\x45",
18938 		.klen	= 10,
18939 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
18940 		.ilen	= 8,
18941 		.result	= "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
18942 		.rlen	= 8,
18943 	}, {
18944 		.key	= "\x01\x23\x45\x67\x12",
18945 		.klen	= 5,
18946 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
18947 		.ilen	= 8,
18948 		.result	= "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
18949 		.rlen	= 8,
18950 	}, { /* Generated from TF test vectors */
18951 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
18952 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
18953 		.klen	= 16,
18954 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
18955 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
18956 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
18957 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
18958 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
18959 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
18960 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
18961 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
18962 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
18963 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
18964 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
18965 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
18966 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
18967 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
18968 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
18969 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
18970 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
18971 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
18972 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
18973 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
18974 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
18975 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
18976 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
18977 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
18978 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
18979 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
18980 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
18981 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
18982 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
18983 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
18984 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
18985 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
18986 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
18987 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
18988 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
18989 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
18990 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
18991 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
18992 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
18993 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
18994 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
18995 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
18996 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
18997 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
18998 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
18999 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
19000 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
19001 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
19002 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
19003 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
19004 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
19005 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
19006 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
19007 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
19008 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
19009 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
19010 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
19011 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
19012 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
19013 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
19014 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
19015 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
19016 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
19017 		.ilen	= 496,
19018 		.result	= "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
19019 			  "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
19020 			  "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
19021 			  "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
19022 			  "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
19023 			  "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
19024 			  "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
19025 			  "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
19026 			  "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
19027 			  "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
19028 			  "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
19029 			  "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
19030 			  "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
19031 			  "\xED\x34\x35\x78\x6B\x91\xC9\x32"
19032 			  "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
19033 			  "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
19034 			  "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
19035 			  "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
19036 			  "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
19037 			  "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
19038 			  "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
19039 			  "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
19040 			  "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
19041 			  "\x78\x75\x37\x55\xC1\xF5\x90\x40"
19042 			  "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
19043 			  "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
19044 			  "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
19045 			  "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
19046 			  "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
19047 			  "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
19048 			  "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
19049 			  "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
19050 			  "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
19051 			  "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
19052 			  "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
19053 			  "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
19054 			  "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
19055 			  "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
19056 			  "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
19057 			  "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
19058 			  "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
19059 			  "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
19060 			  "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
19061 			  "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
19062 			  "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
19063 			  "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
19064 			  "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
19065 			  "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
19066 			  "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
19067 			  "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
19068 			  "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
19069 			  "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
19070 			  "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
19071 			  "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
19072 			  "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
19073 			  "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
19074 			  "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
19075 			  "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
19076 			  "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
19077 			  "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
19078 			  "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
19079 			  "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
19080 		.rlen	= 496,
19081 		.also_non_np = 1,
19082 		.np	= 2,
19083 		.tap	= { 496 - 16, 16 },
19084 	},
19085 };
19086 
19087 static struct cipher_testvec cast5_dec_tv_template[] = {
19088 	{
19089 		.key	= "\x01\x23\x45\x67\x12\x34\x56\x78"
19090 			  "\x23\x45\x67\x89\x34\x56\x78\x9a",
19091 		.klen	= 16,
19092 		.input	= "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
19093 		.ilen	= 8,
19094 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19095 		.rlen	= 8,
19096 	}, {
19097 		.key	= "\x01\x23\x45\x67\x12\x34\x56\x78"
19098 			  "\x23\x45",
19099 		.klen	= 10,
19100 		.input	= "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
19101 		.ilen	= 8,
19102 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19103 		.rlen	= 8,
19104 	}, {
19105 		.key	= "\x01\x23\x45\x67\x12",
19106 		.klen	= 5,
19107 		.input	= "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
19108 		.ilen	= 8,
19109 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19110 		.rlen	= 8,
19111 	}, { /* Generated from TF test vectors */
19112 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
19113 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
19114 		.klen	= 16,
19115 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
19116 		.input	= "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
19117 			  "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
19118 			  "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
19119 			  "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
19120 			  "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
19121 			  "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
19122 			  "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
19123 			  "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
19124 			  "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
19125 			  "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
19126 			  "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
19127 			  "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
19128 			  "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
19129 			  "\xED\x34\x35\x78\x6B\x91\xC9\x32"
19130 			  "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
19131 			  "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
19132 			  "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
19133 			  "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
19134 			  "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
19135 			  "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
19136 			  "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
19137 			  "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
19138 			  "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
19139 			  "\x78\x75\x37\x55\xC1\xF5\x90\x40"
19140 			  "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
19141 			  "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
19142 			  "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
19143 			  "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
19144 			  "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
19145 			  "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
19146 			  "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
19147 			  "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
19148 			  "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
19149 			  "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
19150 			  "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
19151 			  "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
19152 			  "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
19153 			  "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
19154 			  "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
19155 			  "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
19156 			  "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
19157 			  "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
19158 			  "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
19159 			  "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
19160 			  "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
19161 			  "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
19162 			  "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
19163 			  "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
19164 			  "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
19165 			  "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
19166 			  "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
19167 			  "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
19168 			  "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
19169 			  "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
19170 			  "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
19171 			  "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
19172 			  "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
19173 			  "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
19174 			  "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
19175 			  "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
19176 			  "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
19177 			  "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
19178 		.ilen	= 496,
19179 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
19180 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
19181 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
19182 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
19183 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
19184 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
19185 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
19186 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
19187 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
19188 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
19189 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
19190 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
19191 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
19192 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
19193 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
19194 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
19195 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
19196 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
19197 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
19198 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
19199 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
19200 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
19201 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
19202 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
19203 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
19204 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
19205 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
19206 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
19207 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
19208 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
19209 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
19210 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
19211 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
19212 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
19213 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
19214 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
19215 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
19216 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
19217 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
19218 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
19219 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
19220 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
19221 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
19222 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
19223 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
19224 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
19225 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
19226 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
19227 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
19228 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
19229 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
19230 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
19231 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
19232 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
19233 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
19234 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
19235 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
19236 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
19237 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
19238 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
19239 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
19240 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
19241 		.rlen	= 496,
19242 		.also_non_np = 1,
19243 		.np	= 2,
19244 		.tap	= { 496 - 16, 16 },
19245 	},
19246 };
19247 
19248 static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
19249 	{ /* Generated from TF test vectors */
19250 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
19251 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
19252 		.klen	= 16,
19253 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
19254 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
19255 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
19256 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
19257 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
19258 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
19259 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
19260 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
19261 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
19262 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
19263 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
19264 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
19265 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
19266 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
19267 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
19268 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
19269 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
19270 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
19271 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
19272 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
19273 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
19274 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
19275 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
19276 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
19277 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
19278 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
19279 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
19280 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
19281 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
19282 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
19283 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
19284 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
19285 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
19286 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
19287 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
19288 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
19289 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
19290 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
19291 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
19292 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
19293 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
19294 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
19295 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
19296 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
19297 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
19298 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
19299 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
19300 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
19301 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
19302 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
19303 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
19304 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
19305 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
19306 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
19307 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
19308 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
19309 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
19310 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
19311 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
19312 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
19313 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
19314 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
19315 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
19316 		.ilen	= 496,
19317 		.result	= "\x05\x28\xCE\x61\x90\x80\xE1\x78"
19318 			  "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
19319 			  "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
19320 			  "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
19321 			  "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
19322 			  "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
19323 			  "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
19324 			  "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
19325 			  "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
19326 			  "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
19327 			  "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
19328 			  "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
19329 			  "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
19330 			  "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
19331 			  "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
19332 			  "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
19333 			  "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
19334 			  "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
19335 			  "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
19336 			  "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
19337 			  "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
19338 			  "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
19339 			  "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
19340 			  "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
19341 			  "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
19342 			  "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
19343 			  "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
19344 			  "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
19345 			  "\x90\x12\x37\x49\x27\x98\x69\x18"
19346 			  "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
19347 			  "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
19348 			  "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
19349 			  "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
19350 			  "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
19351 			  "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
19352 			  "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
19353 			  "\x03\x55\x0E\x02\x41\x4A\x45\x06"
19354 			  "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
19355 			  "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
19356 			  "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
19357 			  "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
19358 			  "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
19359 			  "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
19360 			  "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
19361 			  "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
19362 			  "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
19363 			  "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
19364 			  "\x11\xB4\x18\x17\x1A\x65\x92\x56"
19365 			  "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
19366 			  "\x1A\x01\x22\x45\x17\x62\x52\x6C"
19367 			  "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
19368 			  "\x32\x66\x6F\x23\x7F\x94\x36\x88"
19369 			  "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
19370 			  "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
19371 			  "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
19372 			  "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
19373 			  "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
19374 			  "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
19375 			  "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
19376 			  "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
19377 			  "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
19378 			  "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
19379 		.rlen	= 496,
19380 		.also_non_np = 1,
19381 		.np	= 2,
19382 		.tap	= { 496 - 16, 16 },
19383 	},
19384 };
19385 
19386 static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
19387 	{ /* Generated from TF test vectors */
19388 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
19389 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
19390 		.klen	= 16,
19391 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
19392 		.input	= "\x05\x28\xCE\x61\x90\x80\xE1\x78"
19393 			  "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
19394 			  "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
19395 			  "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
19396 			  "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
19397 			  "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
19398 			  "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
19399 			  "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
19400 			  "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
19401 			  "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
19402 			  "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
19403 			  "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
19404 			  "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
19405 			  "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
19406 			  "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
19407 			  "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
19408 			  "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
19409 			  "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
19410 			  "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
19411 			  "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
19412 			  "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
19413 			  "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
19414 			  "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
19415 			  "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
19416 			  "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
19417 			  "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
19418 			  "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
19419 			  "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
19420 			  "\x90\x12\x37\x49\x27\x98\x69\x18"
19421 			  "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
19422 			  "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
19423 			  "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
19424 			  "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
19425 			  "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
19426 			  "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
19427 			  "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
19428 			  "\x03\x55\x0E\x02\x41\x4A\x45\x06"
19429 			  "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
19430 			  "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
19431 			  "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
19432 			  "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
19433 			  "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
19434 			  "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
19435 			  "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
19436 			  "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
19437 			  "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
19438 			  "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
19439 			  "\x11\xB4\x18\x17\x1A\x65\x92\x56"
19440 			  "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
19441 			  "\x1A\x01\x22\x45\x17\x62\x52\x6C"
19442 			  "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
19443 			  "\x32\x66\x6F\x23\x7F\x94\x36\x88"
19444 			  "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
19445 			  "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
19446 			  "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
19447 			  "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
19448 			  "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
19449 			  "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
19450 			  "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
19451 			  "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
19452 			  "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
19453 			  "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
19454 		.ilen	= 496,
19455 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
19456 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
19457 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
19458 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
19459 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
19460 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
19461 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
19462 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
19463 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
19464 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
19465 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
19466 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
19467 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
19468 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
19469 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
19470 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
19471 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
19472 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
19473 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
19474 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
19475 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
19476 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
19477 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
19478 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
19479 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
19480 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
19481 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
19482 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
19483 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
19484 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
19485 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
19486 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
19487 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
19488 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
19489 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
19490 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
19491 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
19492 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
19493 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
19494 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
19495 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
19496 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
19497 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
19498 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
19499 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
19500 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
19501 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
19502 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
19503 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
19504 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
19505 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
19506 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
19507 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
19508 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
19509 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
19510 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
19511 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
19512 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
19513 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
19514 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
19515 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
19516 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
19517 		.rlen	= 496,
19518 		.also_non_np = 1,
19519 		.np	= 2,
19520 		.tap	= { 496 - 16, 16 },
19521 	},
19522 };
19523 
19524 static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
19525 	{ /* Generated from TF test vectors */
19526 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
19527 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
19528 		.klen	= 16,
19529 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
19530 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
19531 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
19532 			  "\x3A",
19533 		.ilen	= 17,
19534 		.result	= "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
19535 			  "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
19536 			  "\x0C",
19537 		.rlen	= 17,
19538 	}, { /* Generated from TF test vectors */
19539 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
19540 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
19541 		.klen	= 16,
19542 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
19543 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
19544 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
19545 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
19546 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
19547 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
19548 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
19549 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
19550 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
19551 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
19552 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
19553 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
19554 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
19555 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
19556 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
19557 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
19558 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
19559 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
19560 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
19561 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
19562 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
19563 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
19564 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
19565 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
19566 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
19567 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
19568 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
19569 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
19570 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
19571 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
19572 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
19573 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
19574 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
19575 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
19576 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
19577 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
19578 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
19579 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
19580 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
19581 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
19582 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
19583 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
19584 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
19585 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
19586 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
19587 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
19588 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
19589 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
19590 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
19591 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
19592 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
19593 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
19594 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
19595 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
19596 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
19597 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
19598 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
19599 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
19600 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
19601 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
19602 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
19603 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
19604 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
19605 		.ilen	= 496,
19606 		.result	= "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
19607 			  "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
19608 			  "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
19609 			  "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
19610 			  "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
19611 			  "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
19612 			  "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
19613 			  "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
19614 			  "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
19615 			  "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
19616 			  "\x88\x18\x52\x56\x48\x58\xD1\x6B"
19617 			  "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
19618 			  "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
19619 			  "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
19620 			  "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
19621 			  "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
19622 			  "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
19623 			  "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
19624 			  "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
19625 			  "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
19626 			  "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
19627 			  "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
19628 			  "\x44\x67\x90\x20\xAC\x41\xDF\x43"
19629 			  "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
19630 			  "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
19631 			  "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
19632 			  "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
19633 			  "\xAE\x59\x0F\x07\x88\x79\x53\x26"
19634 			  "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
19635 			  "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
19636 			  "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
19637 			  "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
19638 			  "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
19639 			  "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
19640 			  "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
19641 			  "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
19642 			  "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
19643 			  "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
19644 			  "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
19645 			  "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
19646 			  "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
19647 			  "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
19648 			  "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
19649 			  "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
19650 			  "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
19651 			  "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
19652 			  "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
19653 			  "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
19654 			  "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
19655 			  "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
19656 			  "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
19657 			  "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
19658 			  "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
19659 			  "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
19660 			  "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
19661 			  "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
19662 			  "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
19663 			  "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
19664 			  "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
19665 			  "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
19666 			  "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
19667 			  "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
19668 		.rlen	= 496,
19669 		.also_non_np = 1,
19670 		.np	= 2,
19671 		.tap	= { 496 - 16, 16 },
19672 	},
19673 };
19674 
19675 static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
19676 	{ /* Generated from TF test vectors */
19677 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
19678 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
19679 		.klen	= 16,
19680 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
19681 		.input	= "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
19682 			  "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
19683 			  "\x0C",
19684 		.ilen	= 17,
19685 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
19686 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
19687 			  "\x3A",
19688 		.rlen	= 17,
19689 	}, { /* Generated from TF test vectors */
19690 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
19691 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
19692 		.klen	= 16,
19693 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
19694 		.input	= "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
19695 			  "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
19696 			  "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
19697 			  "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
19698 			  "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
19699 			  "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
19700 			  "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
19701 			  "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
19702 			  "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
19703 			  "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
19704 			  "\x88\x18\x52\x56\x48\x58\xD1\x6B"
19705 			  "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
19706 			  "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
19707 			  "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
19708 			  "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
19709 			  "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
19710 			  "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
19711 			  "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
19712 			  "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
19713 			  "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
19714 			  "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
19715 			  "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
19716 			  "\x44\x67\x90\x20\xAC\x41\xDF\x43"
19717 			  "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
19718 			  "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
19719 			  "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
19720 			  "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
19721 			  "\xAE\x59\x0F\x07\x88\x79\x53\x26"
19722 			  "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
19723 			  "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
19724 			  "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
19725 			  "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
19726 			  "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
19727 			  "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
19728 			  "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
19729 			  "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
19730 			  "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
19731 			  "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
19732 			  "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
19733 			  "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
19734 			  "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
19735 			  "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
19736 			  "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
19737 			  "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
19738 			  "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
19739 			  "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
19740 			  "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
19741 			  "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
19742 			  "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
19743 			  "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
19744 			  "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
19745 			  "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
19746 			  "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
19747 			  "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
19748 			  "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
19749 			  "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
19750 			  "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
19751 			  "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
19752 			  "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
19753 			  "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
19754 			  "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
19755 			  "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
19756 		.ilen	= 496,
19757 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
19758 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
19759 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
19760 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
19761 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
19762 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
19763 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
19764 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
19765 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
19766 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
19767 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
19768 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
19769 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
19770 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
19771 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
19772 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
19773 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
19774 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
19775 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
19776 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
19777 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
19778 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
19779 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
19780 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
19781 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
19782 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
19783 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
19784 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
19785 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
19786 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
19787 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
19788 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
19789 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
19790 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
19791 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
19792 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
19793 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
19794 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
19795 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
19796 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
19797 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
19798 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
19799 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
19800 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
19801 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
19802 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
19803 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
19804 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
19805 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
19806 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
19807 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
19808 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
19809 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
19810 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
19811 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
19812 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
19813 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
19814 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
19815 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
19816 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
19817 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
19818 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
19819 		.rlen	= 496,
19820 		.also_non_np = 1,
19821 		.np	= 2,
19822 		.tap	= { 496 - 16, 16 },
19823 	},
19824 };
19825 
19826 /*
19827  * ARC4 test vectors from OpenSSL
19828  */
19829 #define ARC4_ENC_TEST_VECTORS	7
19830 #define ARC4_DEC_TEST_VECTORS	7
19831 
19832 static struct cipher_testvec arc4_enc_tv_template[] = {
19833 	{
19834 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19835 		.klen	= 8,
19836 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19837 		.ilen	= 8,
19838 		.result	= "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
19839 		.rlen	= 8,
19840 	}, {
19841 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19842 		.klen	= 8,
19843 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00",
19844 		.ilen	= 8,
19845 		.result	= "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
19846 		.rlen	= 8,
19847 	}, {
19848 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00",
19849 		.klen	= 8,
19850 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00",
19851 		.ilen	= 8,
19852 		.result	= "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
19853 		.rlen	= 8,
19854 	}, {
19855 		.key	= "\xef\x01\x23\x45",
19856 		.klen	= 4,
19857 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
19858 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
19859 			  "\x00\x00\x00\x00",
19860 		.ilen	= 20,
19861 		.result	= "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
19862 			  "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
19863 			  "\x36\xb6\x78\x58",
19864 		.rlen	= 20,
19865 	}, {
19866 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19867 		.klen	= 8,
19868 		.input	= "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
19869 			  "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
19870 			  "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
19871 			  "\x12\x34\x56\x78",
19872 		.ilen	= 28,
19873 		.result	= "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
19874 			  "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
19875 			  "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
19876 			  "\x40\x01\x1e\xcf",
19877 		.rlen	= 28,
19878 	}, {
19879 		.key	= "\xef\x01\x23\x45",
19880 		.klen	= 4,
19881 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
19882 			  "\x00\x00",
19883 		.ilen	= 10,
19884 		.result	= "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
19885 			  "\xbd\x61",
19886 		.rlen	= 10,
19887 	}, {
19888 		.key	= "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
19889 			"\x00\x00\x00\x00\x00\x00\x00\x00",
19890 		.klen	= 16,
19891 		.input	= "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
19892 		.ilen	= 8,
19893 		.result	= "\x69\x72\x36\x59\x1B\x52\x42\xB1",
19894 		.rlen	= 8,
19895 	},
19896 };
19897 
19898 static struct cipher_testvec arc4_dec_tv_template[] = {
19899 	{
19900 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19901 		.klen	= 8,
19902 		.input	= "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
19903 		.ilen	= 8,
19904 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19905 		.rlen	= 8,
19906 	}, {
19907 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19908 		.klen	= 8,
19909 		.input	= "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
19910 		.ilen	= 8,
19911 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00",
19912 		.rlen	= 8,
19913 	}, {
19914 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00",
19915 		.klen	= 8,
19916 		.input	= "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
19917 		.ilen	= 8,
19918 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00",
19919 		.rlen	= 8,
19920 	}, {
19921 		.key	= "\xef\x01\x23\x45",
19922 		.klen	= 4,
19923 		.input	= "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
19924 			  "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
19925 			  "\x36\xb6\x78\x58",
19926 		.ilen	= 20,
19927 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00"
19928 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
19929 			  "\x00\x00\x00\x00",
19930 		.rlen	= 20,
19931 	}, {
19932 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef",
19933 		.klen	= 8,
19934 		.input	= "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
19935 			  "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
19936 			  "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
19937 			  "\x40\x01\x1e\xcf",
19938 		.ilen	= 28,
19939 		.result	= "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
19940 			  "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
19941 			  "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
19942 			  "\x12\x34\x56\x78",
19943 		.rlen	= 28,
19944 	}, {
19945 		.key	= "\xef\x01\x23\x45",
19946 		.klen	= 4,
19947 		.input	= "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
19948 			  "\xbd\x61",
19949 		.ilen	= 10,
19950 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00"
19951 			  "\x00\x00",
19952 		.rlen	= 10,
19953 	}, {
19954 		.key	= "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
19955 			"\x00\x00\x00\x00\x00\x00\x00\x00",
19956 		.klen	= 16,
19957 		.input	= "\x69\x72\x36\x59\x1B\x52\x42\xB1",
19958 		.ilen	= 8,
19959 		.result	= "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
19960 		.rlen	= 8,
19961 	},
19962 };
19963 
19964 /*
19965  * TEA test vectors
19966  */
19967 #define TEA_ENC_TEST_VECTORS	4
19968 #define TEA_DEC_TEST_VECTORS	4
19969 
19970 static struct cipher_testvec tea_enc_tv_template[] = {
19971 	{
19972 		.key    = zeroed_string,
19973 		.klen	= 16,
19974 		.input  = zeroed_string,
19975 		.ilen	= 8,
19976 		.result	= "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
19977 		.rlen	= 8,
19978 	}, {
19979 		.key	= "\x2b\x02\x05\x68\x06\x14\x49\x76"
19980 			  "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
19981 		.klen	= 16,
19982 		.input	= "\x74\x65\x73\x74\x20\x6d\x65\x2e",
19983 		.ilen	= 8,
19984 		.result	= "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
19985 		.rlen	= 8,
19986 	}, {
19987 		.key	= "\x09\x65\x43\x11\x66\x44\x39\x25"
19988 			  "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
19989 		.klen	= 16,
19990 		.input	= "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
19991 			  "\x65\x73\x74\x5f\x76\x65\x63\x74",
19992 		.ilen	= 16,
19993 		.result	= "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
19994 			  "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
19995 		.rlen	= 16,
19996 	}, {
19997 		.key	= "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
19998 			  "\x5d\x04\x16\x36\x15\x72\x63\x2f",
19999 		.klen	= 16,
20000 		.input	= "\x54\x65\x61\x20\x69\x73\x20\x67"
20001 			  "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
20002 			  "\x79\x6f\x75\x21\x21\x21\x20\x72"
20003 			  "\x65\x61\x6c\x6c\x79\x21\x21\x21",
20004 		.ilen	= 32,
20005 		.result	= "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
20006 			  "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
20007 			  "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
20008 			  "\x07\x89\x73\xc2\x45\x92\xc6\x90",
20009 		.rlen	= 32,
20010 	}
20011 };
20012 
20013 static struct cipher_testvec tea_dec_tv_template[] = {
20014 	{
20015 		.key    = zeroed_string,
20016 		.klen	= 16,
20017 		.input	= "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
20018 		.ilen	= 8,
20019 		.result = zeroed_string,
20020 		.rlen	= 8,
20021 	}, {
20022 		.key	= "\x2b\x02\x05\x68\x06\x14\x49\x76"
20023 			  "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
20024 		.klen	= 16,
20025 		.input	= "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
20026 		.ilen	= 8,
20027 		.result	= "\x74\x65\x73\x74\x20\x6d\x65\x2e",
20028 		.rlen	= 8,
20029 	}, {
20030 		.key	= "\x09\x65\x43\x11\x66\x44\x39\x25"
20031 			  "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
20032 		.klen	= 16,
20033 		.input	= "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
20034 			  "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
20035 		.ilen   = 16,
20036 		.result	= "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
20037 			  "\x65\x73\x74\x5f\x76\x65\x63\x74",
20038 		.rlen	= 16,
20039 	}, {
20040 		.key	= "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
20041 			  "\x5d\x04\x16\x36\x15\x72\x63\x2f",
20042 		.klen	= 16,
20043 		.input	= "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
20044 			  "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
20045 			  "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
20046 			  "\x07\x89\x73\xc2\x45\x92\xc6\x90",
20047 		.ilen	= 32,
20048 		.result	= "\x54\x65\x61\x20\x69\x73\x20\x67"
20049 			  "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
20050 			  "\x79\x6f\x75\x21\x21\x21\x20\x72"
20051 			  "\x65\x61\x6c\x6c\x79\x21\x21\x21",
20052 		.rlen	= 32,
20053 	}
20054 };
20055 
20056 /*
20057  * XTEA test vectors
20058  */
20059 #define XTEA_ENC_TEST_VECTORS	4
20060 #define XTEA_DEC_TEST_VECTORS	4
20061 
20062 static struct cipher_testvec xtea_enc_tv_template[] = {
20063 	{
20064 		.key    = zeroed_string,
20065 		.klen	= 16,
20066 		.input  = zeroed_string,
20067 		.ilen	= 8,
20068 		.result	= "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
20069 		.rlen	= 8,
20070 	}, {
20071 		.key	= "\x2b\x02\x05\x68\x06\x14\x49\x76"
20072 			  "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
20073 		.klen	= 16,
20074 		.input	= "\x74\x65\x73\x74\x20\x6d\x65\x2e",
20075 		.ilen	= 8,
20076 		.result	= "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
20077 		.rlen	= 8,
20078 	}, {
20079 		.key	= "\x09\x65\x43\x11\x66\x44\x39\x25"
20080 			  "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
20081 		.klen	= 16,
20082 		.input	= "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
20083 			  "\x65\x73\x74\x5f\x76\x65\x63\x74",
20084 		.ilen	= 16,
20085 		.result	= "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
20086 			  "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
20087 		.rlen	= 16,
20088 	}, {
20089 		.key	= "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
20090 			  "\x5d\x04\x16\x36\x15\x72\x63\x2f",
20091 		.klen	= 16,
20092 		.input	= "\x54\x65\x61\x20\x69\x73\x20\x67"
20093 			  "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
20094 			  "\x79\x6f\x75\x21\x21\x21\x20\x72"
20095 			  "\x65\x61\x6c\x6c\x79\x21\x21\x21",
20096 		.ilen	= 32,
20097 		.result	= "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
20098 			  "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
20099 			  "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
20100 			  "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
20101 		.rlen	= 32,
20102 	}
20103 };
20104 
20105 static struct cipher_testvec xtea_dec_tv_template[] = {
20106 	{
20107 		.key    = zeroed_string,
20108 		.klen	= 16,
20109 		.input	= "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
20110 		.ilen	= 8,
20111 		.result = zeroed_string,
20112 		.rlen	= 8,
20113 	}, {
20114 		.key	= "\x2b\x02\x05\x68\x06\x14\x49\x76"
20115 			  "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
20116 		.klen	= 16,
20117 		.input	= "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
20118 		.ilen	= 8,
20119 		.result	= "\x74\x65\x73\x74\x20\x6d\x65\x2e",
20120 		.rlen	= 8,
20121 	}, {
20122 		.key	= "\x09\x65\x43\x11\x66\x44\x39\x25"
20123 			  "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
20124 		.klen	= 16,
20125 		.input	= "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
20126 			  "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
20127 		.ilen	= 16,
20128 		.result	= "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
20129 			  "\x65\x73\x74\x5f\x76\x65\x63\x74",
20130 		.rlen	= 16,
20131 	}, {
20132 		.key	= "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
20133 			  "\x5d\x04\x16\x36\x15\x72\x63\x2f",
20134 		.klen	= 16,
20135 		.input	= "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
20136 			  "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
20137 			  "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
20138 			  "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
20139 		.ilen	= 32,
20140 		.result	= "\x54\x65\x61\x20\x69\x73\x20\x67"
20141 			  "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
20142 			  "\x79\x6f\x75\x21\x21\x21\x20\x72"
20143 			  "\x65\x61\x6c\x6c\x79\x21\x21\x21",
20144 		.rlen	= 32,
20145 	}
20146 };
20147 
20148 /*
20149  * KHAZAD test vectors.
20150  */
20151 #define KHAZAD_ENC_TEST_VECTORS 5
20152 #define KHAZAD_DEC_TEST_VECTORS 5
20153 
20154 static struct cipher_testvec khazad_enc_tv_template[] = {
20155 	{
20156 		.key	= "\x80\x00\x00\x00\x00\x00\x00\x00"
20157 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
20158 		.klen	= 16,
20159 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20160 		.ilen	= 8,
20161 		.result	= "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
20162 		.rlen	= 8,
20163 	}, {
20164 		.key	= "\x38\x38\x38\x38\x38\x38\x38\x38"
20165 			  "\x38\x38\x38\x38\x38\x38\x38\x38",
20166 		.klen	= 16,
20167 		.input	= "\x38\x38\x38\x38\x38\x38\x38\x38",
20168 		.ilen	= 8,
20169 		.result	= "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
20170 		.rlen	= 8,
20171 	}, {
20172 		.key	= "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
20173 			"\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
20174 		.klen	= 16,
20175 		.input	= "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
20176 		.ilen	= 8,
20177 		.result	= "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
20178 		.rlen	= 8,
20179 	}, {
20180 		.key	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
20181 			"\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20182 		.klen	= 16,
20183 		.input	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20184 		.ilen	= 8,
20185 		.result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
20186 		.rlen	= 8,
20187 	}, {
20188 		.key	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
20189 			"\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20190 		.klen	= 16,
20191 		.input	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
20192 			"\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20193 		.ilen	= 16,
20194 		.result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
20195 			"\x04\x74\xf5\x70\x50\x16\xd3\xb8",
20196 		.rlen	= 16,
20197 	},
20198 };
20199 
20200 static struct cipher_testvec khazad_dec_tv_template[] = {
20201 	{
20202 		.key	= "\x80\x00\x00\x00\x00\x00\x00\x00"
20203 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
20204 		.klen	= 16,
20205 		.input	= "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
20206 		.ilen	= 8,
20207 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20208 		.rlen	= 8,
20209 	}, {
20210 		.key	= "\x38\x38\x38\x38\x38\x38\x38\x38"
20211 			  "\x38\x38\x38\x38\x38\x38\x38\x38",
20212 		.klen	= 16,
20213 		.input	= "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
20214 		.ilen	= 8,
20215 		.result	= "\x38\x38\x38\x38\x38\x38\x38\x38",
20216 		.rlen	= 8,
20217 	}, {
20218 		.key	= "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
20219 			"\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
20220 		.klen	= 16,
20221 		.input	= "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
20222 		.ilen	= 8,
20223 		.result	= "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
20224 		.rlen	= 8,
20225 	}, {
20226 		.key	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
20227 			"\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20228 		.klen	= 16,
20229 		.input  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
20230 		.ilen	= 8,
20231 		.result	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20232 		.rlen	= 8,
20233 	}, {
20234 		.key	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
20235 			"\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20236 		.klen	= 16,
20237 		.input  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
20238 			"\x04\x74\xf5\x70\x50\x16\xd3\xb8",
20239 		.ilen	= 16,
20240 		.result	= "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
20241 			"\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
20242 		.rlen	= 16,
20243 	},
20244 };
20245 
20246 /*
20247  * Anubis test vectors.
20248  */
20249 
20250 #define ANUBIS_ENC_TEST_VECTORS			5
20251 #define ANUBIS_DEC_TEST_VECTORS			5
20252 #define ANUBIS_CBC_ENC_TEST_VECTORS		2
20253 #define ANUBIS_CBC_DEC_TEST_VECTORS		2
20254 
20255 static struct cipher_testvec anubis_enc_tv_template[] = {
20256 	{
20257 		.key	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20258 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20259 		.klen	= 16,
20260 		.input	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20261 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20262 		.ilen	= 16,
20263 		.result	= "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
20264 			  "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
20265 		.rlen	= 16,
20266 	}, {
20267 
20268 		.key	= "\x03\x03\x03\x03\x03\x03\x03\x03"
20269 			  "\x03\x03\x03\x03\x03\x03\x03\x03"
20270 			  "\x03\x03\x03\x03",
20271 		.klen	= 20,
20272 		.input	= "\x03\x03\x03\x03\x03\x03\x03\x03"
20273 			  "\x03\x03\x03\x03\x03\x03\x03\x03",
20274 		.ilen	= 16,
20275 		.result	= "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
20276 			  "\x87\x41\x6f\x82\x0a\x98\x64\xae",
20277 		.rlen	= 16,
20278 	}, {
20279 		.key	= "\x24\x24\x24\x24\x24\x24\x24\x24"
20280 			  "\x24\x24\x24\x24\x24\x24\x24\x24"
20281 			  "\x24\x24\x24\x24\x24\x24\x24\x24"
20282 			  "\x24\x24\x24\x24",
20283 		.klen	= 28,
20284 		.input	= "\x24\x24\x24\x24\x24\x24\x24\x24"
20285 			  "\x24\x24\x24\x24\x24\x24\x24\x24",
20286 		.ilen	= 16,
20287 		.result	= "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
20288 			  "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
20289 		.rlen	= 16,
20290 	}, {
20291 		.key	= "\x25\x25\x25\x25\x25\x25\x25\x25"
20292 			  "\x25\x25\x25\x25\x25\x25\x25\x25"
20293 			  "\x25\x25\x25\x25\x25\x25\x25\x25"
20294 			  "\x25\x25\x25\x25\x25\x25\x25\x25",
20295 		.klen	= 32,
20296 		.input	= "\x25\x25\x25\x25\x25\x25\x25\x25"
20297 			  "\x25\x25\x25\x25\x25\x25\x25\x25",
20298 		.ilen	= 16,
20299 		.result	= "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
20300 			"\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
20301 		.rlen	= 16,
20302 	}, {
20303 		.key	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20304 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20305 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20306 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20307 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20308 		.klen	= 40,
20309 		.input	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20310 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20311 		.ilen	= 16,
20312 		.result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
20313 			  "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
20314 		.rlen	= 16,
20315 	},
20316 };
20317 
20318 static struct cipher_testvec anubis_dec_tv_template[] = {
20319 	{
20320 		.key	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20321 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20322 		.klen	= 16,
20323 		.input	= "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
20324 			  "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
20325 		.ilen	= 16,
20326 		.result	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20327 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20328 		.rlen	= 16,
20329 	}, {
20330 
20331 		.key	= "\x03\x03\x03\x03\x03\x03\x03\x03"
20332 			  "\x03\x03\x03\x03\x03\x03\x03\x03"
20333 			  "\x03\x03\x03\x03",
20334 		.klen	= 20,
20335 		.input	= "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
20336 			  "\x87\x41\x6f\x82\x0a\x98\x64\xae",
20337 		.ilen	= 16,
20338 		.result	= "\x03\x03\x03\x03\x03\x03\x03\x03"
20339 			  "\x03\x03\x03\x03\x03\x03\x03\x03",
20340 		.rlen	= 16,
20341 	}, {
20342 		.key	= "\x24\x24\x24\x24\x24\x24\x24\x24"
20343 			  "\x24\x24\x24\x24\x24\x24\x24\x24"
20344 			  "\x24\x24\x24\x24\x24\x24\x24\x24"
20345 			  "\x24\x24\x24\x24",
20346 		.klen	= 28,
20347 		.input	= "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
20348 			  "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
20349 		.ilen	= 16,
20350 		.result	= "\x24\x24\x24\x24\x24\x24\x24\x24"
20351 			  "\x24\x24\x24\x24\x24\x24\x24\x24",
20352 		.rlen	= 16,
20353 	}, {
20354 		.key	= "\x25\x25\x25\x25\x25\x25\x25\x25"
20355 			  "\x25\x25\x25\x25\x25\x25\x25\x25"
20356 			  "\x25\x25\x25\x25\x25\x25\x25\x25"
20357 			  "\x25\x25\x25\x25\x25\x25\x25\x25",
20358 		.klen	= 32,
20359 		.input	= "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
20360 			"\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
20361 		.ilen	= 16,
20362 		.result	= "\x25\x25\x25\x25\x25\x25\x25\x25"
20363 			  "\x25\x25\x25\x25\x25\x25\x25\x25",
20364 		.rlen	= 16,
20365 	}, {
20366 		.key	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20367 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20368 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20369 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20370 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20371 		.input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
20372 			 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
20373 		.klen	= 40,
20374 		.ilen	= 16,
20375 		.result	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20376 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20377 		.rlen	= 16,
20378 	},
20379 };
20380 
20381 static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
20382 	{
20383 		.key	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20384 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20385 		.klen	= 16,
20386 		.input	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20387 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20388 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20389 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20390 		.ilen	= 32,
20391 		.result	= "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
20392 			  "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
20393 			  "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
20394 			  "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
20395 		.rlen	= 32,
20396 	}, {
20397 		.key	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20398 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20399 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20400 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20401 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20402 		.klen	= 40,
20403 		.input	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20404 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20405 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20406 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20407 		.ilen	= 32,
20408 		.result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
20409 			  "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
20410 			  "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
20411 			  "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
20412 		.rlen	= 32,
20413 	},
20414 };
20415 
20416 static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
20417 	{
20418 		.key	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20419 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20420 		.klen	= 16,
20421 		.input	= "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
20422 			  "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
20423 			  "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
20424 			  "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
20425 		.ilen	= 32,
20426 		.result	= "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20427 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20428 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
20429 			  "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
20430 		.rlen	= 32,
20431 	}, {
20432 		.key	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20433 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20434 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20435 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20436 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20437 		.klen	= 40,
20438 		.input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
20439 			  "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
20440 			  "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
20441 			  "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
20442 		.ilen	= 32,
20443 		.result	= "\x35\x35\x35\x35\x35\x35\x35\x35"
20444 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20445 			  "\x35\x35\x35\x35\x35\x35\x35\x35"
20446 			  "\x35\x35\x35\x35\x35\x35\x35\x35",
20447 		.rlen	= 32,
20448 	},
20449 };
20450 
20451 /*
20452  * XETA test vectors
20453  */
20454 #define XETA_ENC_TEST_VECTORS	4
20455 #define XETA_DEC_TEST_VECTORS	4
20456 
20457 static struct cipher_testvec xeta_enc_tv_template[] = {
20458 	{
20459 		.key    = zeroed_string,
20460 		.klen	= 16,
20461 		.input  = zeroed_string,
20462 		.ilen	= 8,
20463 		.result	= "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
20464 		.rlen	= 8,
20465 	}, {
20466 		.key	= "\x2b\x02\x05\x68\x06\x14\x49\x76"
20467 			  "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
20468 		.klen	= 16,
20469 		.input	= "\x74\x65\x73\x74\x20\x6d\x65\x2e",
20470 		.ilen	= 8,
20471 		.result	= "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
20472 		.rlen	= 8,
20473 	}, {
20474 		.key	= "\x09\x65\x43\x11\x66\x44\x39\x25"
20475 			  "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
20476 		.klen	= 16,
20477 		.input	= "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
20478 			  "\x65\x73\x74\x5f\x76\x65\x63\x74",
20479 		.ilen	= 16,
20480 		.result	= "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
20481 			  "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
20482 		.rlen	= 16,
20483 	}, {
20484 		.key	= "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
20485 			  "\x5d\x04\x16\x36\x15\x72\x63\x2f",
20486 		.klen	= 16,
20487 		.input	= "\x54\x65\x61\x20\x69\x73\x20\x67"
20488 			  "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
20489 			  "\x79\x6f\x75\x21\x21\x21\x20\x72"
20490 			  "\x65\x61\x6c\x6c\x79\x21\x21\x21",
20491 		.ilen	= 32,
20492 		.result	= "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
20493 			  "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
20494 			  "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
20495 			  "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
20496 		.rlen	= 32,
20497 	}
20498 };
20499 
20500 static struct cipher_testvec xeta_dec_tv_template[] = {
20501 	{
20502 		.key    = zeroed_string,
20503 		.klen	= 16,
20504 		.input	= "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
20505 		.ilen	= 8,
20506 		.result = zeroed_string,
20507 		.rlen	= 8,
20508 	}, {
20509 		.key	= "\x2b\x02\x05\x68\x06\x14\x49\x76"
20510 			  "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
20511 		.klen	= 16,
20512 		.input	= "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
20513 		.ilen	= 8,
20514 		.result	= "\x74\x65\x73\x74\x20\x6d\x65\x2e",
20515 		.rlen	= 8,
20516 	}, {
20517 		.key	= "\x09\x65\x43\x11\x66\x44\x39\x25"
20518 			  "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
20519 		.klen	= 16,
20520 		.input	= "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
20521 			  "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
20522 		.ilen	= 16,
20523 		.result	= "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
20524 			  "\x65\x73\x74\x5f\x76\x65\x63\x74",
20525 		.rlen	= 16,
20526 	}, {
20527 		.key	= "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
20528 			  "\x5d\x04\x16\x36\x15\x72\x63\x2f",
20529 		.klen	= 16,
20530 		.input	= "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
20531 			  "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
20532 			  "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
20533 			  "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
20534 		.ilen	= 32,
20535 		.result	= "\x54\x65\x61\x20\x69\x73\x20\x67"
20536 			  "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
20537 			  "\x79\x6f\x75\x21\x21\x21\x20\x72"
20538 			  "\x65\x61\x6c\x6c\x79\x21\x21\x21",
20539 		.rlen	= 32,
20540 	}
20541 };
20542 
20543 /*
20544  * FCrypt test vectors
20545  */
20546 #define FCRYPT_ENC_TEST_VECTORS	ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
20547 #define FCRYPT_DEC_TEST_VECTORS	ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
20548 
20549 static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
20550 	{ /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
20551 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20552 		.klen	= 8,
20553 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20554 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20555 		.ilen	= 8,
20556 		.result	= "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
20557 		.rlen	= 8,
20558 	}, {
20559 		.key	= "\x11\x44\x77\xAA\xDD\x00\x33\x66",
20560 		.klen	= 8,
20561 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20562 		.input	= "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
20563 		.ilen	= 8,
20564 		.result	= "\xD8\xED\x78\x74\x77\xEC\x06\x80",
20565 		.rlen	= 8,
20566 	}, { /* From Arla */
20567 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
20568 		.klen	= 8,
20569 		.iv	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20570 		.input	= "The quick brown fox jumps over the lazy dogs.\0\0",
20571 		.ilen	= 48,
20572 		.result	= "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
20573 			  "\xee\xac\x98\x62\x44\x51\xe4\x84"
20574 			  "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
20575 			  "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
20576 			  "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
20577 			  "\xf8\x91\x3c\xac\x44\x22\x92\xef",
20578 		.rlen	= 48,
20579 	}, {
20580 		.key	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20581 		.klen	= 8,
20582 		.iv	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
20583 		.input	= "The quick brown fox jumps over the lazy dogs.\0\0",
20584 		.ilen	= 48,
20585 		.result	= "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
20586 			  "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
20587 			  "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
20588 			  "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
20589 			  "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
20590 			  "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
20591 		.rlen	= 48,
20592 	}, { /* split-page version */
20593 		.key	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20594 		.klen	= 8,
20595 		.iv	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
20596 		.input	= "The quick brown fox jumps over the lazy dogs.\0\0",
20597 		.ilen	= 48,
20598 		.result	= "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
20599 			  "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
20600 			  "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
20601 			  "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
20602 			  "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
20603 			  "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
20604 		.rlen	= 48,
20605 		.np	= 2,
20606 		.tap	= { 20, 28 },
20607 	}
20608 };
20609 
20610 static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
20611 	{ /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
20612 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20613 		.klen	= 8,
20614 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20615 		.input	= "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
20616 		.ilen	= 8,
20617 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20618 		.rlen	= 8,
20619 	}, {
20620 		.key	= "\x11\x44\x77\xAA\xDD\x00\x33\x66",
20621 		.klen	= 8,
20622 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00",
20623 		.input	= "\xD8\xED\x78\x74\x77\xEC\x06\x80",
20624 		.ilen	= 8,
20625 		.result	= "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
20626 		.rlen	= 8,
20627 	}, { /* From Arla */
20628 		.key	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
20629 		.klen	= 8,
20630 		.iv	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20631 		.input	= "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
20632 			  "\xee\xac\x98\x62\x44\x51\xe4\x84"
20633 			  "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
20634 			  "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
20635 			  "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
20636 			  "\xf8\x91\x3c\xac\x44\x22\x92\xef",
20637 		.ilen	= 48,
20638 		.result	= "The quick brown fox jumps over the lazy dogs.\0\0",
20639 		.rlen	= 48,
20640 	}, {
20641 		.key	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20642 		.klen	= 8,
20643 		.iv	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
20644 		.input	= "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
20645 			  "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
20646 			  "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
20647 			  "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
20648 			  "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
20649 			  "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
20650 		.ilen	= 48,
20651 		.result	= "The quick brown fox jumps over the lazy dogs.\0\0",
20652 		.rlen	= 48,
20653 	}, { /* split-page version */
20654 		.key	= "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20655 		.klen	= 8,
20656 		.iv	= "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
20657 		.input	= "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
20658 			  "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
20659 			  "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
20660 			  "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
20661 			  "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
20662 			  "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
20663 		.ilen	= 48,
20664 		.result	= "The quick brown fox jumps over the lazy dogs.\0\0",
20665 		.rlen	= 48,
20666 		.np	= 2,
20667 		.tap	= { 20, 28 },
20668 	}
20669 };
20670 
20671 /*
20672  * CAMELLIA test vectors.
20673  */
20674 #define CAMELLIA_ENC_TEST_VECTORS 4
20675 #define CAMELLIA_DEC_TEST_VECTORS 4
20676 #define CAMELLIA_CBC_ENC_TEST_VECTORS 3
20677 #define CAMELLIA_CBC_DEC_TEST_VECTORS 3
20678 #define CAMELLIA_CTR_ENC_TEST_VECTORS 2
20679 #define CAMELLIA_CTR_DEC_TEST_VECTORS 2
20680 #define CAMELLIA_LRW_ENC_TEST_VECTORS 8
20681 #define CAMELLIA_LRW_DEC_TEST_VECTORS 8
20682 #define CAMELLIA_XTS_ENC_TEST_VECTORS 5
20683 #define CAMELLIA_XTS_DEC_TEST_VECTORS 5
20684 
20685 static struct cipher_testvec camellia_enc_tv_template[] = {
20686 	{
20687 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20688 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20689 		.klen	= 16,
20690 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20691 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20692 		.ilen	= 16,
20693 		.result	= "\x67\x67\x31\x38\x54\x96\x69\x73"
20694 			  "\x08\x57\x06\x56\x48\xea\xbe\x43",
20695 		.rlen	= 16,
20696 	}, {
20697 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20698 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
20699 			  "\x00\x11\x22\x33\x44\x55\x66\x77",
20700 		.klen	= 24,
20701 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20702 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20703 		.ilen	= 16,
20704 		.result	= "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
20705 			  "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
20706 		.rlen	= 16,
20707 	}, {
20708 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20709 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
20710 			  "\x00\x11\x22\x33\x44\x55\x66\x77"
20711 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
20712 		.klen	= 32,
20713 		.input	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20714 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20715 		.ilen	= 16,
20716 		.result	= "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
20717 			  "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
20718 		.rlen	= 16,
20719 	}, { /* Generated with Crypto++ */
20720 		.key	= "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
20721 			  "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
20722 			  "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
20723 			  "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
20724 		.klen	= 32,
20725 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
20726 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
20727 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
20728 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
20729 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
20730 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
20731 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
20732 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
20733 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
20734 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
20735 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
20736 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
20737 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
20738 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
20739 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
20740 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
20741 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
20742 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
20743 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
20744 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
20745 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
20746 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
20747 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
20748 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
20749 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
20750 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
20751 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
20752 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
20753 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
20754 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
20755 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
20756 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
20757 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
20758 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
20759 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
20760 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
20761 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
20762 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
20763 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
20764 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
20765 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
20766 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
20767 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
20768 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
20769 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
20770 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
20771 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
20772 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
20773 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
20774 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
20775 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
20776 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
20777 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
20778 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
20779 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
20780 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
20781 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
20782 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
20783 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
20784 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
20785 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
20786 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
20787 		.ilen	= 496,
20788 		.result	= "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
20789 			  "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
20790 			  "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
20791 			  "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
20792 			  "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
20793 			  "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
20794 			  "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
20795 			  "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
20796 			  "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
20797 			  "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
20798 			  "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
20799 			  "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
20800 			  "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
20801 			  "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
20802 			  "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
20803 			  "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
20804 			  "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
20805 			  "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
20806 			  "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
20807 			  "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
20808 			  "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
20809 			  "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
20810 			  "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
20811 			  "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
20812 			  "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
20813 			  "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
20814 			  "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
20815 			  "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
20816 			  "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
20817 			  "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
20818 			  "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
20819 			  "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
20820 			  "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
20821 			  "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
20822 			  "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
20823 			  "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
20824 			  "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
20825 			  "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
20826 			  "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
20827 			  "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
20828 			  "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
20829 			  "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
20830 			  "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
20831 			  "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
20832 			  "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
20833 			  "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
20834 			  "\x83\x06\xAB\x82\x99\x01\x16\x1A"
20835 			  "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
20836 			  "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
20837 			  "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
20838 			  "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
20839 			  "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
20840 			  "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
20841 			  "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
20842 			  "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
20843 			  "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
20844 			  "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
20845 			  "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
20846 			  "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
20847 			  "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
20848 			  "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
20849 			  "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB",
20850 		.rlen	= 496,
20851 		.also_non_np = 1,
20852 		.np	= 2,
20853 		.tap	= { 496 - 16, 16 },
20854 	},
20855 };
20856 
20857 static struct cipher_testvec camellia_dec_tv_template[] = {
20858 	{
20859 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20860 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20861 		.klen	= 16,
20862 		.input	= "\x67\x67\x31\x38\x54\x96\x69\x73"
20863 			  "\x08\x57\x06\x56\x48\xea\xbe\x43",
20864 		.ilen	= 16,
20865 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20866 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20867 		.rlen	= 16,
20868 	}, {
20869 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20870 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
20871 			  "\x00\x11\x22\x33\x44\x55\x66\x77",
20872 		.klen	= 24,
20873 		.input	= "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
20874 			  "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
20875 		.ilen	= 16,
20876 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20877 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20878 		.rlen	= 16,
20879 	}, {
20880 		.key	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20881 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10"
20882 			  "\x00\x11\x22\x33\x44\x55\x66\x77"
20883 			  "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
20884 		.klen	= 32,
20885 		.input	= "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
20886 			  "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
20887 		.ilen	= 16,
20888 		.result	= "\x01\x23\x45\x67\x89\xab\xcd\xef"
20889 			  "\xfe\xdc\xba\x98\x76\x54\x32\x10",
20890 		.rlen	= 16,
20891 	}, { /* Generated with Crypto++ */
20892 		.key	= "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
20893 			  "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
20894 			  "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
20895 			  "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
20896 		.klen	= 32,
20897 		.input	= "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
20898 			  "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
20899 			  "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
20900 			  "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
20901 			  "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
20902 			  "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
20903 			  "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
20904 			  "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
20905 			  "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
20906 			  "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
20907 			  "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
20908 			  "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
20909 			  "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
20910 			  "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
20911 			  "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
20912 			  "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
20913 			  "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
20914 			  "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
20915 			  "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
20916 			  "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
20917 			  "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
20918 			  "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
20919 			  "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
20920 			  "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
20921 			  "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
20922 			  "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
20923 			  "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
20924 			  "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
20925 			  "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
20926 			  "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
20927 			  "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
20928 			  "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
20929 			  "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
20930 			  "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
20931 			  "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
20932 			  "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
20933 			  "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
20934 			  "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
20935 			  "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
20936 			  "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
20937 			  "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
20938 			  "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
20939 			  "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
20940 			  "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
20941 			  "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
20942 			  "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
20943 			  "\x83\x06\xAB\x82\x99\x01\x16\x1A"
20944 			  "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
20945 			  "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
20946 			  "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
20947 			  "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
20948 			  "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
20949 			  "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
20950 			  "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
20951 			  "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
20952 			  "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
20953 			  "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
20954 			  "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
20955 			  "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
20956 			  "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
20957 			  "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
20958 			  "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB",
20959 		.ilen	= 496,
20960 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
20961 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
20962 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
20963 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
20964 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
20965 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
20966 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
20967 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
20968 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
20969 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
20970 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
20971 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
20972 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
20973 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
20974 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
20975 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
20976 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
20977 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
20978 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
20979 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
20980 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
20981 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
20982 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
20983 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
20984 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
20985 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
20986 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
20987 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
20988 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
20989 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
20990 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
20991 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
20992 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
20993 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
20994 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
20995 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
20996 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
20997 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
20998 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
20999 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21000 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21001 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21002 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21003 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21004 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21005 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21006 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21007 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21008 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21009 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21010 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21011 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21012 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21013 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21014 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21015 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21016 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21017 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21018 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21019 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21020 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21021 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21022 		.rlen	= 496,
21023 		.also_non_np = 1,
21024 		.np	= 2,
21025 		.tap	= { 496 - 16, 16 },
21026 	},
21027 };
21028 
21029 static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
21030 	{
21031 		.key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
21032 			  "\x51\x2e\x03\xd5\x34\x12\x00\x06",
21033 		.klen   = 16,
21034 		.iv	= "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
21035 			  "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
21036 		.input	= "Single block msg",
21037 		.ilen   = 16,
21038 		.result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
21039 			  "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
21040 		.rlen   = 16,
21041 	}, {
21042 		.key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
21043 			  "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
21044 		.klen   = 16,
21045 		.iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
21046 			  "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
21047 		.input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
21048 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
21049 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
21050 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
21051 		.ilen   = 32,
21052 		.result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
21053 			  "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
21054 			  "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
21055 			  "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
21056 		.rlen   = 32,
21057 	}, { /* Generated with Crypto++ */
21058 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21059 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21060 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21061 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21062 		.klen	= 32,
21063 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
21064 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
21065 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21066 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21067 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21068 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21069 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21070 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21071 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21072 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21073 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21074 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21075 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21076 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21077 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21078 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21079 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21080 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21081 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21082 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21083 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21084 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21085 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21086 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21087 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21088 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21089 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21090 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21091 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21092 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21093 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21094 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21095 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21096 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21097 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21098 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21099 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21100 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21101 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21102 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21103 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21104 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21105 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21106 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21107 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21108 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21109 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21110 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21111 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21112 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21113 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21114 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21115 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21116 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21117 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21118 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21119 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21120 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21121 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21122 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21123 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21124 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21125 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21126 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21127 		.ilen	= 496,
21128 		.result	= "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
21129 			  "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
21130 			  "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
21131 			  "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
21132 			  "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
21133 			  "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
21134 			  "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
21135 			  "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
21136 			  "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
21137 			  "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
21138 			  "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
21139 			  "\x37\x49\x88\xA4\xEF\x91\x21\x47"
21140 			  "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
21141 			  "\x28\x90\x77\x46\xD8\xD2\x35\x16"
21142 			  "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
21143 			  "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
21144 			  "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
21145 			  "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
21146 			  "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
21147 			  "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
21148 			  "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
21149 			  "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
21150 			  "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
21151 			  "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
21152 			  "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
21153 			  "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
21154 			  "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
21155 			  "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
21156 			  "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
21157 			  "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
21158 			  "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
21159 			  "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
21160 			  "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
21161 			  "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
21162 			  "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
21163 			  "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
21164 			  "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
21165 			  "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
21166 			  "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
21167 			  "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
21168 			  "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
21169 			  "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
21170 			  "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
21171 			  "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
21172 			  "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
21173 			  "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
21174 			  "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
21175 			  "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
21176 			  "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
21177 			  "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
21178 			  "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
21179 			  "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
21180 			  "\x38\xB8\x48\x36\x66\x4E\x20\x43"
21181 			  "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
21182 			  "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
21183 			  "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
21184 			  "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
21185 			  "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
21186 			  "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
21187 			  "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
21188 			  "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
21189 			  "\x5F\x74\x8C\x86\x5B\x71\xD0\x20",
21190 		.rlen	= 496,
21191 		.also_non_np = 1,
21192 		.np	= 2,
21193 		.tap	= { 496 - 16, 16 },
21194 	},
21195 };
21196 
21197 static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
21198 	{
21199 		.key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
21200 			  "\x51\x2e\x03\xd5\x34\x12\x00\x06",
21201 		.klen   = 16,
21202 		.iv	= "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
21203 			  "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
21204 		.input	= "\xea\x32\x12\x76\x3b\x50\x10\xe7"
21205 			  "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
21206 		.ilen   = 16,
21207 		.result = "Single block msg",
21208 		.rlen   = 16,
21209 	}, {
21210 		.key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
21211 			  "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
21212 		.klen   = 16,
21213 		.iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
21214 			  "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
21215 		.input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
21216 			  "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
21217 			  "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
21218 			  "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
21219 		.ilen   = 32,
21220 		.result = "\x00\x01\x02\x03\x04\x05\x06\x07"
21221 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
21222 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
21223 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
21224 		.rlen   = 32,
21225 	}, { /* Generated with Crypto++ */
21226 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21227 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21228 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21229 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21230 		.klen	= 32,
21231 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
21232 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
21233 		.input	= "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
21234 			  "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
21235 			  "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
21236 			  "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
21237 			  "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
21238 			  "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
21239 			  "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
21240 			  "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
21241 			  "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
21242 			  "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
21243 			  "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
21244 			  "\x37\x49\x88\xA4\xEF\x91\x21\x47"
21245 			  "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
21246 			  "\x28\x90\x77\x46\xD8\xD2\x35\x16"
21247 			  "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
21248 			  "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
21249 			  "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
21250 			  "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
21251 			  "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
21252 			  "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
21253 			  "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
21254 			  "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
21255 			  "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
21256 			  "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
21257 			  "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
21258 			  "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
21259 			  "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
21260 			  "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
21261 			  "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
21262 			  "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
21263 			  "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
21264 			  "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
21265 			  "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
21266 			  "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
21267 			  "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
21268 			  "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
21269 			  "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
21270 			  "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
21271 			  "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
21272 			  "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
21273 			  "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
21274 			  "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
21275 			  "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
21276 			  "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
21277 			  "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
21278 			  "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
21279 			  "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
21280 			  "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
21281 			  "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
21282 			  "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
21283 			  "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
21284 			  "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
21285 			  "\x38\xB8\x48\x36\x66\x4E\x20\x43"
21286 			  "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
21287 			  "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
21288 			  "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
21289 			  "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
21290 			  "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
21291 			  "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
21292 			  "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
21293 			  "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
21294 			  "\x5F\x74\x8C\x86\x5B\x71\xD0\x20",
21295 		.ilen	= 496,
21296 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21297 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21298 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21299 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21300 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21301 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21302 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21303 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21304 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21305 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21306 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21307 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21308 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21309 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21310 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21311 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21312 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21313 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21314 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21315 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21316 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21317 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21318 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21319 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21320 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21321 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21322 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21323 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21324 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21325 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21326 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21327 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21328 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21329 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21330 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21331 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21332 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21333 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21334 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21335 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21336 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21337 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21338 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21339 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21340 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21341 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21342 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21343 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21344 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21345 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21346 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21347 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21348 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21349 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21350 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21351 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21352 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21353 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21354 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21355 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21356 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21357 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21358 		.rlen	= 496,
21359 		.also_non_np = 1,
21360 		.np	= 2,
21361 		.tap	= { 496 - 16, 16 },
21362 	},
21363 };
21364 
21365 static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
21366 	{ /* Generated with Crypto++ */
21367 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21368 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21369 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21370 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21371 		.klen	= 32,
21372 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
21373 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
21374 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21375 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21376 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21377 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21378 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21379 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21380 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21381 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21382 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21383 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21384 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21385 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21386 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21387 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21388 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21389 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21390 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21391 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21392 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21393 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21394 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21395 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21396 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21397 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21398 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21399 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21400 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21401 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21402 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21403 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21404 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21405 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21406 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21407 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21408 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21409 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21410 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21411 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21412 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21413 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21414 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21415 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21416 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21417 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21418 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21419 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21420 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21421 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21422 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21423 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21424 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21425 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21426 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21427 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21428 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21429 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21430 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21431 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21432 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21433 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21434 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21435 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21436 		.ilen	= 496,
21437 		.result	= "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
21438 			  "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
21439 			  "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
21440 			  "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
21441 			  "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
21442 			  "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
21443 			  "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
21444 			  "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
21445 			  "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
21446 			  "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
21447 			  "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
21448 			  "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
21449 			  "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
21450 			  "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
21451 			  "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
21452 			  "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
21453 			  "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
21454 			  "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
21455 			  "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
21456 			  "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
21457 			  "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
21458 			  "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
21459 			  "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
21460 			  "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
21461 			  "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
21462 			  "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
21463 			  "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
21464 			  "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
21465 			  "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
21466 			  "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
21467 			  "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
21468 			  "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
21469 			  "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
21470 			  "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
21471 			  "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
21472 			  "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
21473 			  "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
21474 			  "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
21475 			  "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
21476 			  "\x79\xA2\x99\x28\x93\x1B\x00\x57"
21477 			  "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
21478 			  "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
21479 			  "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
21480 			  "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
21481 			  "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
21482 			  "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
21483 			  "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
21484 			  "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
21485 			  "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
21486 			  "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
21487 			  "\x76\x44\x45\xF3\x24\x11\x57\x98"
21488 			  "\x9A\x86\xB4\x12\x80\x28\x86\x20"
21489 			  "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
21490 			  "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
21491 			  "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
21492 			  "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
21493 			  "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
21494 			  "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
21495 			  "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
21496 			  "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
21497 			  "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
21498 			  "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
21499 		.rlen	= 496,
21500 	}, { /* Generated with Crypto++ */
21501 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21502 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21503 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21504 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21505 		.klen	= 32,
21506 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
21507 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
21508 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21509 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21510 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21511 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21512 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21513 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21514 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21515 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21516 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21517 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21518 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21519 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21520 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21521 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21522 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21523 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21524 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21525 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21526 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21527 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21528 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21529 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21530 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21531 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21532 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21533 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21534 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21535 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21536 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21537 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21538 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21539 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21540 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21541 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21542 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21543 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21544 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21545 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21546 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21547 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21548 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21549 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21550 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21551 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21552 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21553 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21554 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21555 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21556 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21557 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21558 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21559 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21560 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21561 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21562 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21563 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21564 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21565 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21566 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21567 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21568 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21569 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
21570 			  "\x2B\xC2\x59",
21571 		.ilen	= 499,
21572 		.result	= "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
21573 			  "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
21574 			  "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
21575 			  "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
21576 			  "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
21577 			  "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
21578 			  "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
21579 			  "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
21580 			  "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
21581 			  "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
21582 			  "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
21583 			  "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
21584 			  "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
21585 			  "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
21586 			  "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
21587 			  "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
21588 			  "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
21589 			  "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
21590 			  "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
21591 			  "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
21592 			  "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
21593 			  "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
21594 			  "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
21595 			  "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
21596 			  "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
21597 			  "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
21598 			  "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
21599 			  "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
21600 			  "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
21601 			  "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
21602 			  "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
21603 			  "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
21604 			  "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
21605 			  "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
21606 			  "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
21607 			  "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
21608 			  "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
21609 			  "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
21610 			  "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
21611 			  "\x79\xA2\x99\x28\x93\x1B\x00\x57"
21612 			  "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
21613 			  "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
21614 			  "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
21615 			  "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
21616 			  "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
21617 			  "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
21618 			  "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
21619 			  "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
21620 			  "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
21621 			  "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
21622 			  "\x76\x44\x45\xF3\x24\x11\x57\x98"
21623 			  "\x9A\x86\xB4\x12\x80\x28\x86\x20"
21624 			  "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
21625 			  "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
21626 			  "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
21627 			  "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
21628 			  "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
21629 			  "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
21630 			  "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
21631 			  "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
21632 			  "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
21633 			  "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
21634 			  "\x93\x11\x1C",
21635 		.rlen	= 499,
21636 		.also_non_np = 1,
21637 		.np	= 2,
21638 		.tap	= { 499 - 16, 16 },
21639 	}, { /* Generated with Crypto++ */
21640 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21641 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21642 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21643 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21644 		.klen	= 32,
21645 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
21646 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
21647 		.input	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21648 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21649 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21650 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21651 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21652 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21653 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21654 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21655 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21656 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21657 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21658 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21659 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21660 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21661 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21662 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21663 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21664 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21665 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21666 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21667 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21668 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21669 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21670 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21671 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21672 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21673 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21674 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21675 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21676 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21677 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21678 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21679 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21680 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21681 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21682 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21683 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21684 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21685 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21686 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21687 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21688 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21689 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21690 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21691 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21692 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21693 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21694 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21695 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21696 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21697 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21698 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21699 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21700 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21701 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21702 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21703 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21704 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21705 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21706 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21707 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21708 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21709 		.ilen	= 496,
21710 		.result	= "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
21711 			  "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
21712 			  "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
21713 			  "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
21714 			  "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
21715 			  "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
21716 			  "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
21717 			  "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
21718 			  "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
21719 			  "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
21720 			  "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
21721 			  "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
21722 			  "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
21723 			  "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
21724 			  "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
21725 			  "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
21726 			  "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
21727 			  "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
21728 			  "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
21729 			  "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
21730 			  "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
21731 			  "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
21732 			  "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
21733 			  "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
21734 			  "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
21735 			  "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
21736 			  "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
21737 			  "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
21738 			  "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
21739 			  "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
21740 			  "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
21741 			  "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
21742 			  "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
21743 			  "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
21744 			  "\x93\x78\x86\x05\x69\x46\xD0\xC5"
21745 			  "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
21746 			  "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
21747 			  "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
21748 			  "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
21749 			  "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
21750 			  "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
21751 			  "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
21752 			  "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
21753 			  "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
21754 			  "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
21755 			  "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
21756 			  "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
21757 			  "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
21758 			  "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
21759 			  "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
21760 			  "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
21761 			  "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
21762 			  "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
21763 			  "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
21764 			  "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
21765 			  "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
21766 			  "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
21767 			  "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
21768 			  "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
21769 			  "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
21770 			  "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
21771 			  "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C",
21772 		.rlen	= 496,
21773 	},
21774 };
21775 
21776 static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
21777 	{ /* Generated with Crypto++ */
21778 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21779 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21780 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21781 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21782 		.klen	= 32,
21783 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
21784 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
21785 		.input	= "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
21786 			  "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
21787 			  "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
21788 			  "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
21789 			  "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
21790 			  "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
21791 			  "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
21792 			  "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
21793 			  "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
21794 			  "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
21795 			  "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
21796 			  "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
21797 			  "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
21798 			  "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
21799 			  "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
21800 			  "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
21801 			  "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
21802 			  "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
21803 			  "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
21804 			  "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
21805 			  "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
21806 			  "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
21807 			  "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
21808 			  "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
21809 			  "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
21810 			  "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
21811 			  "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
21812 			  "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
21813 			  "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
21814 			  "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
21815 			  "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
21816 			  "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
21817 			  "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
21818 			  "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
21819 			  "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
21820 			  "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
21821 			  "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
21822 			  "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
21823 			  "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
21824 			  "\x79\xA2\x99\x28\x93\x1B\x00\x57"
21825 			  "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
21826 			  "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
21827 			  "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
21828 			  "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
21829 			  "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
21830 			  "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
21831 			  "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
21832 			  "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
21833 			  "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
21834 			  "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
21835 			  "\x76\x44\x45\xF3\x24\x11\x57\x98"
21836 			  "\x9A\x86\xB4\x12\x80\x28\x86\x20"
21837 			  "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
21838 			  "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
21839 			  "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
21840 			  "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
21841 			  "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
21842 			  "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
21843 			  "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
21844 			  "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
21845 			  "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
21846 			  "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
21847 		.ilen	= 496,
21848 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21849 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21850 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21851 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21852 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21853 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21854 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21855 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21856 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21857 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21858 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21859 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21860 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21861 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21862 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21863 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21864 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21865 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21866 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21867 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21868 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21869 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21870 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21871 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21872 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21873 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21874 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21875 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21876 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21877 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21878 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21879 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21880 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21881 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21882 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21883 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21884 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21885 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21886 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21887 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21888 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21889 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21890 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21891 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21892 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21893 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21894 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21895 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21896 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21897 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21898 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21899 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21900 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21901 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21902 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21903 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21904 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21905 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21906 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21907 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21908 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21909 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
21910 		.rlen	= 496,
21911 	}, { /* Generated with Crypto++ */
21912 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21913 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21914 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21915 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21916 		.klen	= 32,
21917 		.iv	= "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
21918 			  "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
21919 		.input	= "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
21920 			  "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
21921 			  "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
21922 			  "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
21923 			  "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
21924 			  "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
21925 			  "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
21926 			  "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
21927 			  "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
21928 			  "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
21929 			  "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
21930 			  "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
21931 			  "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
21932 			  "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
21933 			  "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
21934 			  "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
21935 			  "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
21936 			  "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
21937 			  "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
21938 			  "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
21939 			  "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
21940 			  "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
21941 			  "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
21942 			  "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
21943 			  "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
21944 			  "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
21945 			  "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
21946 			  "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
21947 			  "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
21948 			  "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
21949 			  "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
21950 			  "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
21951 			  "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
21952 			  "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
21953 			  "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
21954 			  "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
21955 			  "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
21956 			  "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
21957 			  "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
21958 			  "\x79\xA2\x99\x28\x93\x1B\x00\x57"
21959 			  "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
21960 			  "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
21961 			  "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
21962 			  "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
21963 			  "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
21964 			  "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
21965 			  "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
21966 			  "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
21967 			  "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
21968 			  "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
21969 			  "\x76\x44\x45\xF3\x24\x11\x57\x98"
21970 			  "\x9A\x86\xB4\x12\x80\x28\x86\x20"
21971 			  "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
21972 			  "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
21973 			  "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
21974 			  "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
21975 			  "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
21976 			  "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
21977 			  "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
21978 			  "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
21979 			  "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
21980 			  "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
21981 			  "\x93\x11\x1C",
21982 		.ilen	= 499,
21983 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
21984 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21985 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21986 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21987 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21988 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21989 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21990 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21991 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21992 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21993 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21994 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21995 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21996 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21997 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21998 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21999 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22000 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22001 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22002 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22003 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22004 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22005 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22006 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22007 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22008 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22009 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22010 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22011 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22012 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22013 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22014 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22015 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22016 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22017 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22018 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22019 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22020 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22021 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22022 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22023 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22024 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22025 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22026 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22027 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22028 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22029 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22030 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22031 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22032 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22033 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22034 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22035 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22036 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22037 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22038 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22039 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22040 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22041 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22042 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22043 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22044 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
22045 			  "\x2B\xC2\x59",
22046 		.rlen	= 499,
22047 		.also_non_np = 1,
22048 		.np	= 2,
22049 		.tap	= { 499 - 16, 16 },
22050 	}, { /* Generated with Crypto++ */
22051 		.key	= "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
22052 			  "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
22053 			  "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
22054 			  "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
22055 		.klen	= 32,
22056 		.iv	= "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
22057 			  "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
22058 		.input	= "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
22059 			  "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
22060 			  "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
22061 			  "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
22062 			  "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
22063 			  "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
22064 			  "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
22065 			  "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
22066 			  "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
22067 			  "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
22068 			  "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
22069 			  "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
22070 			  "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
22071 			  "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
22072 			  "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
22073 			  "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
22074 			  "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
22075 			  "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
22076 			  "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
22077 			  "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
22078 			  "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
22079 			  "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
22080 			  "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
22081 			  "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
22082 			  "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
22083 			  "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
22084 			  "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
22085 			  "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
22086 			  "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
22087 			  "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
22088 			  "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
22089 			  "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
22090 			  "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
22091 			  "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
22092 			  "\x93\x78\x86\x05\x69\x46\xD0\xC5"
22093 			  "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
22094 			  "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
22095 			  "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
22096 			  "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
22097 			  "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
22098 			  "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
22099 			  "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
22100 			  "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
22101 			  "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
22102 			  "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
22103 			  "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
22104 			  "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
22105 			  "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
22106 			  "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
22107 			  "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
22108 			  "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
22109 			  "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
22110 			  "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
22111 			  "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
22112 			  "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
22113 			  "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
22114 			  "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
22115 			  "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
22116 			  "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
22117 			  "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
22118 			  "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
22119 			  "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C",
22120 		.ilen	= 496,
22121 		.result	= "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
22122 			  "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22123 			  "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22124 			  "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22125 			  "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22126 			  "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22127 			  "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22128 			  "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22129 			  "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22130 			  "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22131 			  "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22132 			  "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22133 			  "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22134 			  "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22135 			  "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22136 			  "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22137 			  "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22138 			  "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22139 			  "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22140 			  "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22141 			  "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22142 			  "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22143 			  "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22144 			  "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22145 			  "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22146 			  "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22147 			  "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22148 			  "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22149 			  "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22150 			  "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22151 			  "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22152 			  "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22153 			  "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22154 			  "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22155 			  "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22156 			  "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22157 			  "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22158 			  "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22159 			  "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22160 			  "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22161 			  "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22162 			  "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22163 			  "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22164 			  "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22165 			  "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22166 			  "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22167 			  "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22168 			  "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22169 			  "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22170 			  "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22171 			  "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22172 			  "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22173 			  "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22174 			  "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22175 			  "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22176 			  "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22177 			  "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22178 			  "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22179 			  "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22180 			  "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22181 			  "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22182 			  "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
22183 		.rlen	= 496,
22184 	},
22185 };
22186 
22187 static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
22188 	/* Generated from AES-LRW test vectors */
22189 	{
22190 		.key	= "\x45\x62\xac\x25\xf8\x28\x17\x6d"
22191 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
22192 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
22193 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
22194 		.klen	= 32,
22195 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22196 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22197 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22198 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22199 		.ilen	= 16,
22200 		.result	= "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
22201 			  "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
22202 		.rlen	= 16,
22203 	}, {
22204 		.key	= "\x59\x70\x47\x14\xf5\x57\x47\x8c"
22205 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
22206 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
22207 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
22208 		.klen	= 32,
22209 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22210 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
22211 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22212 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22213 		.ilen	= 16,
22214 		.result	= "\x73\x09\xb7\x50\xb6\x77\x30\x50"
22215 			  "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
22216 		.rlen	= 16,
22217 	}, {
22218 		.key	= "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
22219 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
22220 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
22221 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
22222 		.klen	= 32,
22223 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22224 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
22225 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22226 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22227 		.ilen	= 16,
22228 		.result	= "\x90\xae\x83\xe0\x22\xb9\x60\x91"
22229 			  "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
22230 		.rlen	= 16,
22231 	}, {
22232 		.key	= "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
22233 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
22234 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
22235 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
22236 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
22237 		.klen	= 40,
22238 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22239 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22240 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22241 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22242 		.ilen	= 16,
22243 		.result	= "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
22244 			  "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
22245 		.rlen	= 16,
22246 	}, {
22247 		.key	= "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
22248 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
22249 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
22250 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
22251 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
22252 		.klen	= 40,
22253 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22254 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
22255 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22256 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22257 		.ilen	= 16,
22258 		.result	= "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
22259 			  "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
22260 		.rlen	= 16,
22261 	}, {
22262 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
22263 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
22264 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
22265 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
22266 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
22267 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
22268 		.klen	= 48,
22269 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22270 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22271 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22272 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22273 		.ilen	= 16,
22274 		.result	= "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
22275 			  "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
22276 		.rlen	= 16,
22277 	}, {
22278 		.key	= "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
22279 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
22280 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
22281 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
22282 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
22283 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
22284 		.klen	= 48,
22285 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22286 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
22287 		.input	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22288 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22289 		.ilen	= 16,
22290 		.result	= "\x04\xab\x28\x37\x31\x7a\x26\xab"
22291 			  "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
22292 		.rlen	= 16,
22293 	}, {
22294 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
22295 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
22296 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
22297 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
22298 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
22299 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
22300 		.klen	= 48,
22301 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22302 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22303 		.input	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
22304 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
22305 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
22306 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
22307 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
22308 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
22309 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
22310 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
22311 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
22312 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
22313 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
22314 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
22315 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
22316 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
22317 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
22318 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
22319 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
22320 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
22321 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
22322 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
22323 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
22324 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
22325 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
22326 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
22327 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
22328 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
22329 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
22330 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
22331 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
22332 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
22333 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
22334 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
22335 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
22336 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
22337 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
22338 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
22339 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
22340 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
22341 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
22342 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
22343 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
22344 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
22345 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
22346 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
22347 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
22348 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
22349 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
22350 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
22351 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
22352 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
22353 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
22354 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
22355 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
22356 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
22357 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
22358 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
22359 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
22360 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
22361 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
22362 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
22363 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
22364 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
22365 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
22366 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
22367 		.ilen	= 512,
22368 		.result	= "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
22369 			  "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
22370 			  "\x67\x76\xac\x2c\xd2\x63\x18\x93"
22371 			  "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
22372 			  "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
22373 			  "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
22374 			  "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
22375 			  "\x62\xdd\x78\x81\xea\x1d\xef\x04"
22376 			  "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
22377 			  "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
22378 			  "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
22379 			  "\x40\x41\x69\xaa\x71\xc0\x37\xec"
22380 			  "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
22381 			  "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
22382 			  "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
22383 			  "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
22384 			  "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
22385 			  "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
22386 			  "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
22387 			  "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
22388 			  "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
22389 			  "\x42\x08\x40\x82\x06\x1c\x2d\x55"
22390 			  "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
22391 			  "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
22392 			  "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
22393 			  "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
22394 			  "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
22395 			  "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
22396 			  "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
22397 			  "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
22398 			  "\xed\x14\xa9\x57\x19\x63\x40\x04"
22399 			  "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
22400 			  "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
22401 			  "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
22402 			  "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
22403 			  "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
22404 			  "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
22405 			  "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
22406 			  "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
22407 			  "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
22408 			  "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
22409 			  "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
22410 			  "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
22411 			  "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
22412 			  "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
22413 			  "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
22414 			  "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
22415 			  "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
22416 			  "\x35\xa5\x83\x04\x84\x01\x99\x56"
22417 			  "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
22418 			  "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
22419 			  "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
22420 			  "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
22421 			  "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
22422 			  "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
22423 			  "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
22424 			  "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
22425 			  "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
22426 			  "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
22427 			  "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
22428 			  "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
22429 			  "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
22430 			  "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
22431 			  "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
22432 		.rlen	= 512,
22433 		.also_non_np = 1,
22434 		.np	= 2,
22435 		.tap	= { 512 - 16, 16 },
22436 	},
22437 };
22438 
22439 static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
22440 	/* Generated from AES-LRW test vectors */
22441 	/* same as enc vectors with input and result reversed */
22442 	{
22443 		.key	= "\x45\x62\xac\x25\xf8\x28\x17\x6d"
22444 			  "\x4c\x26\x84\x14\xb5\x68\x01\x85"
22445 			  "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
22446 			  "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
22447 		.klen	= 32,
22448 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22449 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22450 		.input	= "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
22451 			  "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
22452 		.ilen	= 16,
22453 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22454 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22455 		.rlen	= 16,
22456 	}, {
22457 		.key	= "\x59\x70\x47\x14\xf5\x57\x47\x8c"
22458 			  "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
22459 			  "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
22460 			  "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
22461 		.klen	= 32,
22462 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22463 			  "\x00\x00\x00\x00\x00\x00\x00\x02",
22464 		.input	= "\x73\x09\xb7\x50\xb6\x77\x30\x50"
22465 			  "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
22466 		.ilen	= 16,
22467 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22468 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22469 		.rlen	= 16,
22470 	}, {
22471 		.key	= "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
22472 			  "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
22473 			  "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
22474 			  "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
22475 		.klen	= 32,
22476 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22477 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
22478 		.input	= "\x90\xae\x83\xe0\x22\xb9\x60\x91"
22479 			  "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
22480 		.ilen	= 16,
22481 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22482 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22483 		.rlen	= 16,
22484 	}, {
22485 		.key	= "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
22486 			  "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
22487 			  "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
22488 			  "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
22489 			  "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
22490 		.klen	= 40,
22491 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22492 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22493 		.input	= "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
22494 			  "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
22495 		.ilen	= 16,
22496 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22497 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22498 		.rlen	= 16,
22499 	}, {
22500 		.key	= "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
22501 			  "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
22502 			  "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
22503 			  "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
22504 			  "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
22505 		.klen	= 40,
22506 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22507 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
22508 		.input	= "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
22509 			  "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
22510 		.ilen	= 16,
22511 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22512 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22513 		.rlen	= 16,
22514 	}, {
22515 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
22516 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
22517 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
22518 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
22519 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
22520 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
22521 		.klen	= 48,
22522 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22523 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22524 		.input	= "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
22525 			  "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
22526 		.ilen	= 16,
22527 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22528 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22529 		.rlen	= 16,
22530 	}, {
22531 		.key	= "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
22532 			  "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
22533 			  "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
22534 			  "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
22535 			  "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
22536 			  "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
22537 		.klen	= 48,
22538 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22539 			  "\x00\x00\x00\x02\x00\x00\x00\x00",
22540 		.input	= "\x04\xab\x28\x37\x31\x7a\x26\xab"
22541 			  "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
22542 		.ilen	= 16,
22543 		.result	= "\x30\x31\x32\x33\x34\x35\x36\x37"
22544 			  "\x38\x39\x41\x42\x43\x44\x45\x46",
22545 		.rlen	= 16,
22546 	}, {
22547 		.key	= "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
22548 			  "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
22549 			  "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
22550 			  "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
22551 			  "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
22552 			  "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
22553 		.klen	= 48,
22554 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22555 			  "\x00\x00\x00\x00\x00\x00\x00\x01",
22556 		.input	= "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
22557 			  "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
22558 			  "\x67\x76\xac\x2c\xd2\x63\x18\x93"
22559 			  "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
22560 			  "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
22561 			  "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
22562 			  "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
22563 			  "\x62\xdd\x78\x81\xea\x1d\xef\x04"
22564 			  "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
22565 			  "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
22566 			  "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
22567 			  "\x40\x41\x69\xaa\x71\xc0\x37\xec"
22568 			  "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
22569 			  "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
22570 			  "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
22571 			  "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
22572 			  "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
22573 			  "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
22574 			  "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
22575 			  "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
22576 			  "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
22577 			  "\x42\x08\x40\x82\x06\x1c\x2d\x55"
22578 			  "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
22579 			  "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
22580 			  "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
22581 			  "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
22582 			  "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
22583 			  "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
22584 			  "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
22585 			  "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
22586 			  "\xed\x14\xa9\x57\x19\x63\x40\x04"
22587 			  "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
22588 			  "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
22589 			  "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
22590 			  "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
22591 			  "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
22592 			  "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
22593 			  "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
22594 			  "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
22595 			  "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
22596 			  "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
22597 			  "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
22598 			  "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
22599 			  "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
22600 			  "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
22601 			  "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
22602 			  "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
22603 			  "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
22604 			  "\x35\xa5\x83\x04\x84\x01\x99\x56"
22605 			  "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
22606 			  "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
22607 			  "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
22608 			  "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
22609 			  "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
22610 			  "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
22611 			  "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
22612 			  "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
22613 			  "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
22614 			  "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
22615 			  "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
22616 			  "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
22617 			  "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
22618 			  "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
22619 			  "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
22620 		.ilen	= 512,
22621 		.result	= "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
22622 			  "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
22623 			  "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
22624 			  "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
22625 			  "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
22626 			  "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
22627 			  "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
22628 			  "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
22629 			  "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
22630 			  "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
22631 			  "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
22632 			  "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
22633 			  "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
22634 			  "\x4c\x96\x12\xed\x7c\x92\x03\x01"
22635 			  "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
22636 			  "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
22637 			  "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
22638 			  "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
22639 			  "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
22640 			  "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
22641 			  "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
22642 			  "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
22643 			  "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
22644 			  "\x76\x12\x73\x44\x1a\x56\xd7\x72"
22645 			  "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
22646 			  "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
22647 			  "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
22648 			  "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
22649 			  "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
22650 			  "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
22651 			  "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
22652 			  "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
22653 			  "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
22654 			  "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
22655 			  "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
22656 			  "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
22657 			  "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
22658 			  "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
22659 			  "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
22660 			  "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
22661 			  "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
22662 			  "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
22663 			  "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
22664 			  "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
22665 			  "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
22666 			  "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
22667 			  "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
22668 			  "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
22669 			  "\x62\x73\x65\xfd\x46\x63\x25\x3d"
22670 			  "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
22671 			  "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
22672 			  "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
22673 			  "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
22674 			  "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
22675 			  "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
22676 			  "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
22677 			  "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
22678 			  "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
22679 			  "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
22680 			  "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
22681 			  "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
22682 			  "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
22683 			  "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
22684 			  "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
22685 		.rlen	= 512,
22686 		.also_non_np = 1,
22687 		.np	= 2,
22688 		.tap	= { 512 - 16, 16 },
22689 	},
22690 };
22691 
22692 static struct cipher_testvec camellia_xts_enc_tv_template[] = {
22693 	/* Generated from AES-XTS test vectors */
22694 	{
22695 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22696 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
22697 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
22698 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
22699 		.klen	= 32,
22700 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22701 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
22702 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22703 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
22704 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
22705 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
22706 		.ilen	= 32,
22707 		.result	= "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
22708 			  "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
22709 			  "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
22710 			  "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
22711 		.rlen	= 32,
22712 	}, {
22713 		.key	= "\x11\x11\x11\x11\x11\x11\x11\x11"
22714 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
22715 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
22716 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
22717 		.klen	= 32,
22718 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
22719 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
22720 		.input	= "\x44\x44\x44\x44\x44\x44\x44\x44"
22721 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
22722 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
22723 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
22724 		.ilen	= 32,
22725 		.result	= "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
22726 			  "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
22727 			  "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
22728 			  "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
22729 		.rlen	= 32,
22730 	}, {
22731 		.key	= "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
22732 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
22733 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
22734 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
22735 		.klen	= 32,
22736 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
22737 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
22738 		.input	= "\x44\x44\x44\x44\x44\x44\x44\x44"
22739 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
22740 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
22741 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
22742 		.ilen	= 32,
22743 		.result	= "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
22744 			  "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
22745 			  "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
22746 			  "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
22747 		.rlen	= 32,
22748 	}, {
22749 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
22750 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
22751 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
22752 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
22753 		.klen	= 32,
22754 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
22755 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
22756 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
22757 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22758 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
22759 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22760 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
22761 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
22762 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
22763 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
22764 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
22765 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
22766 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
22767 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
22768 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
22769 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
22770 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
22771 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
22772 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
22773 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
22774 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
22775 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
22776 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
22777 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
22778 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
22779 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
22780 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22781 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
22782 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
22783 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
22784 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
22785 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
22786 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
22787 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
22788 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
22789 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22790 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
22791 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22792 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
22793 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
22794 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
22795 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
22796 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
22797 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
22798 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
22799 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
22800 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
22801 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
22802 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
22803 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
22804 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
22805 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
22806 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
22807 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
22808 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
22809 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
22810 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
22811 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
22812 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22813 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
22814 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
22815 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
22816 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
22817 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
22818 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
22819 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
22820 		.ilen	= 512,
22821 		.result	= "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
22822 			  "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
22823 			  "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
22824 			  "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
22825 			  "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
22826 			  "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
22827 			  "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
22828 			  "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
22829 			  "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
22830 			  "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
22831 			  "\x08\xda\x76\x00\x65\xcf\x7b\x31"
22832 			  "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
22833 			  "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
22834 			  "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
22835 			  "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
22836 			  "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
22837 			  "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
22838 			  "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
22839 			  "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
22840 			  "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
22841 			  "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
22842 			  "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
22843 			  "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
22844 			  "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
22845 			  "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
22846 			  "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
22847 			  "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
22848 			  "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
22849 			  "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
22850 			  "\x16\x31\xb2\x47\x91\x67\xaa\x28"
22851 			  "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
22852 			  "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
22853 			  "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
22854 			  "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
22855 			  "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
22856 			  "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
22857 			  "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
22858 			  "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
22859 			  "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
22860 			  "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
22861 			  "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
22862 			  "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
22863 			  "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
22864 			  "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
22865 			  "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
22866 			  "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
22867 			  "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
22868 			  "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
22869 			  "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
22870 			  "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
22871 			  "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
22872 			  "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
22873 			  "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
22874 			  "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
22875 			  "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
22876 			  "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
22877 			  "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
22878 			  "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
22879 			  "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
22880 			  "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
22881 			  "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
22882 			  "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
22883 			  "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
22884 			  "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
22885 		.rlen	= 512,
22886 	}, {
22887 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
22888 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
22889 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
22890 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
22891 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
22892 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
22893 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
22894 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
22895 		.klen	= 64,
22896 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
22897 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
22898 		.input	= "\x00\x01\x02\x03\x04\x05\x06\x07"
22899 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22900 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
22901 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22902 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
22903 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
22904 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
22905 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
22906 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
22907 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
22908 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
22909 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
22910 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
22911 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
22912 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
22913 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
22914 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
22915 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
22916 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
22917 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
22918 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
22919 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
22920 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
22921 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
22922 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22923 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
22924 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
22925 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
22926 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
22927 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
22928 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
22929 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
22930 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
22931 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22932 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
22933 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22934 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
22935 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
22936 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
22937 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
22938 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
22939 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
22940 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
22941 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
22942 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
22943 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
22944 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
22945 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
22946 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
22947 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
22948 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
22949 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
22950 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
22951 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
22952 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
22953 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
22954 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22955 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
22956 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
22957 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
22958 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
22959 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
22960 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
22961 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
22962 		.ilen	= 512,
22963 		.result	= "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
22964 			  "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
22965 			  "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
22966 			  "\xf1\x74\xac\x96\x05\x7b\x32\xca"
22967 			  "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
22968 			  "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
22969 			  "\x97\x07\x82\xf0\x07\x12\x38\x0a"
22970 			  "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
22971 			  "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
22972 			  "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
22973 			  "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
22974 			  "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
22975 			  "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
22976 			  "\x41\x82\x0c\x45\x39\x35\xa8\x75"
22977 			  "\x03\x29\x01\x84\x8c\xab\x48\xbe"
22978 			  "\x11\x56\x22\x67\xb7\x67\x1a\x09"
22979 			  "\xa1\x72\x25\x41\x3c\x39\x65\x80"
22980 			  "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
22981 			  "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
22982 			  "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
22983 			  "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
22984 			  "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
22985 			  "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
22986 			  "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
22987 			  "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
22988 			  "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
22989 			  "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
22990 			  "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
22991 			  "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
22992 			  "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
22993 			  "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
22994 			  "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
22995 			  "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
22996 			  "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
22997 			  "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
22998 			  "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
22999 			  "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
23000 			  "\xef\x38\x52\x18\x0e\x29\x7e\xef"
23001 			  "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
23002 			  "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
23003 			  "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
23004 			  "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
23005 			  "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
23006 			  "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
23007 			  "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
23008 			  "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
23009 			  "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
23010 			  "\x21\x17\xf8\x59\x15\x24\x64\x22"
23011 			  "\x57\x48\x80\xd5\x3d\x92\x30\x07"
23012 			  "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
23013 			  "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
23014 			  "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
23015 			  "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
23016 			  "\x6b\x84\xf3\x00\xba\x52\x05\x02"
23017 			  "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
23018 			  "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
23019 			  "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
23020 			  "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
23021 			  "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
23022 			  "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
23023 			  "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
23024 			  "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
23025 			  "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
23026 			  "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
23027 		.rlen	= 512,
23028 		.also_non_np = 1,
23029 		.np	= 2,
23030 		.tap	= { 512 - 16, 16 },
23031 	},
23032 };
23033 
23034 static struct cipher_testvec camellia_xts_dec_tv_template[] = {
23035 	/* Generated from AES-XTS test vectors */
23036 	/* same as enc vectors with input and result reversed */
23037 	{
23038 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23039 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
23040 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
23041 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
23042 		.klen	= 32,
23043 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23044 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
23045 		.input	= "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
23046 			  "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
23047 			  "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
23048 			  "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
23049 		.ilen	= 32,
23050 		.result	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23051 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
23052 			  "\x00\x00\x00\x00\x00\x00\x00\x00"
23053 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
23054 		.rlen	= 32,
23055 	}, {
23056 		.key	= "\x11\x11\x11\x11\x11\x11\x11\x11"
23057 			  "\x11\x11\x11\x11\x11\x11\x11\x11"
23058 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
23059 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
23060 		.klen	= 32,
23061 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
23062 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
23063 		.input	= "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
23064 			  "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
23065 			  "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
23066 			  "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
23067 		.ilen	= 32,
23068 		.result	= "\x44\x44\x44\x44\x44\x44\x44\x44"
23069 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
23070 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
23071 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
23072 		.rlen	= 32,
23073 	}, {
23074 		.key	= "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
23075 			  "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
23076 			  "\x22\x22\x22\x22\x22\x22\x22\x22"
23077 			  "\x22\x22\x22\x22\x22\x22\x22\x22",
23078 		.klen	= 32,
23079 		.iv	= "\x33\x33\x33\x33\x33\x00\x00\x00"
23080 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
23081 		.input	= "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
23082 			  "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
23083 			  "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
23084 			  "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
23085 		.ilen	= 32,
23086 		.result	= "\x44\x44\x44\x44\x44\x44\x44\x44"
23087 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
23088 			  "\x44\x44\x44\x44\x44\x44\x44\x44"
23089 			  "\x44\x44\x44\x44\x44\x44\x44\x44",
23090 		.rlen	= 32,
23091 	}, {
23092 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
23093 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
23094 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
23095 			  "\x23\x84\x62\x64\x33\x83\x27\x95",
23096 		.klen	= 32,
23097 		.iv	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23098 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
23099 		.input	= "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
23100 			  "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
23101 			  "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
23102 			  "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
23103 			  "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
23104 			  "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
23105 			  "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
23106 			  "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
23107 			  "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
23108 			  "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
23109 			  "\x08\xda\x76\x00\x65\xcf\x7b\x31"
23110 			  "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
23111 			  "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
23112 			  "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
23113 			  "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
23114 			  "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
23115 			  "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
23116 			  "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
23117 			  "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
23118 			  "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
23119 			  "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
23120 			  "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
23121 			  "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
23122 			  "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
23123 			  "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
23124 			  "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
23125 			  "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
23126 			  "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
23127 			  "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
23128 			  "\x16\x31\xb2\x47\x91\x67\xaa\x28"
23129 			  "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
23130 			  "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
23131 			  "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
23132 			  "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
23133 			  "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
23134 			  "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
23135 			  "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
23136 			  "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
23137 			  "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
23138 			  "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
23139 			  "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
23140 			  "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
23141 			  "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
23142 			  "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
23143 			  "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
23144 			  "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
23145 			  "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
23146 			  "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
23147 			  "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
23148 			  "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
23149 			  "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
23150 			  "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
23151 			  "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
23152 			  "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
23153 			  "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
23154 			  "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
23155 			  "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
23156 			  "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
23157 			  "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
23158 			  "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
23159 			  "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
23160 			  "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
23161 			  "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
23162 			  "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
23163 		.ilen	= 512,
23164 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
23165 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23166 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
23167 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23168 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
23169 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23170 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
23171 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23172 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
23173 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23174 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
23175 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23176 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
23177 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23178 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
23179 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23180 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
23181 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23182 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
23183 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23184 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23185 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23186 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23187 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23188 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23189 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23190 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23191 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23192 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23193 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23194 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23195 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
23196 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
23197 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23198 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
23199 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23200 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
23201 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23202 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
23203 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23204 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
23205 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23206 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
23207 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23208 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
23209 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23210 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
23211 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23212 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
23213 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23214 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
23215 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23216 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23217 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23218 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23219 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23220 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23221 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23222 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23223 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23224 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23225 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23226 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23227 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
23228 		.rlen	= 512,
23229 	}, {
23230 		.key	= "\x27\x18\x28\x18\x28\x45\x90\x45"
23231 			  "\x23\x53\x60\x28\x74\x71\x35\x26"
23232 			  "\x62\x49\x77\x57\x24\x70\x93\x69"
23233 			  "\x99\x59\x57\x49\x66\x96\x76\x27"
23234 			  "\x31\x41\x59\x26\x53\x58\x97\x93"
23235 			  "\x23\x84\x62\x64\x33\x83\x27\x95"
23236 			  "\x02\x88\x41\x97\x16\x93\x99\x37"
23237 			  "\x51\x05\x82\x09\x74\x94\x45\x92",
23238 		.klen	= 64,
23239 		.iv	= "\xff\x00\x00\x00\x00\x00\x00\x00"
23240 			  "\x00\x00\x00\x00\x00\x00\x00\x00",
23241 		.input	= "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
23242 			  "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
23243 			  "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
23244 			  "\xf1\x74\xac\x96\x05\x7b\x32\xca"
23245 			  "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
23246 			  "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
23247 			  "\x97\x07\x82\xf0\x07\x12\x38\x0a"
23248 			  "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
23249 			  "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
23250 			  "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
23251 			  "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
23252 			  "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
23253 			  "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
23254 			  "\x41\x82\x0c\x45\x39\x35\xa8\x75"
23255 			  "\x03\x29\x01\x84\x8c\xab\x48\xbe"
23256 			  "\x11\x56\x22\x67\xb7\x67\x1a\x09"
23257 			  "\xa1\x72\x25\x41\x3c\x39\x65\x80"
23258 			  "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
23259 			  "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
23260 			  "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
23261 			  "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
23262 			  "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
23263 			  "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
23264 			  "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
23265 			  "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
23266 			  "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
23267 			  "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
23268 			  "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
23269 			  "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
23270 			  "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
23271 			  "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
23272 			  "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
23273 			  "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
23274 			  "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
23275 			  "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
23276 			  "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
23277 			  "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
23278 			  "\xef\x38\x52\x18\x0e\x29\x7e\xef"
23279 			  "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
23280 			  "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
23281 			  "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
23282 			  "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
23283 			  "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
23284 			  "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
23285 			  "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
23286 			  "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
23287 			  "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
23288 			  "\x21\x17\xf8\x59\x15\x24\x64\x22"
23289 			  "\x57\x48\x80\xd5\x3d\x92\x30\x07"
23290 			  "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
23291 			  "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
23292 			  "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
23293 			  "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
23294 			  "\x6b\x84\xf3\x00\xba\x52\x05\x02"
23295 			  "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
23296 			  "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
23297 			  "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
23298 			  "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
23299 			  "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
23300 			  "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
23301 			  "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
23302 			  "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
23303 			  "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
23304 			  "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
23305 		.ilen	= 512,
23306 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
23307 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23308 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
23309 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23310 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
23311 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23312 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
23313 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23314 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
23315 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23316 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
23317 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23318 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
23319 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23320 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
23321 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23322 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
23323 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23324 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
23325 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23326 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23327 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23328 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23329 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23330 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23331 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23332 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23333 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23334 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23335 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23336 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23337 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
23338 			  "\x00\x01\x02\x03\x04\x05\x06\x07"
23339 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23340 			  "\x10\x11\x12\x13\x14\x15\x16\x17"
23341 			  "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23342 			  "\x20\x21\x22\x23\x24\x25\x26\x27"
23343 			  "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23344 			  "\x30\x31\x32\x33\x34\x35\x36\x37"
23345 			  "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23346 			  "\x40\x41\x42\x43\x44\x45\x46\x47"
23347 			  "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23348 			  "\x50\x51\x52\x53\x54\x55\x56\x57"
23349 			  "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23350 			  "\x60\x61\x62\x63\x64\x65\x66\x67"
23351 			  "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23352 			  "\x70\x71\x72\x73\x74\x75\x76\x77"
23353 			  "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23354 			  "\x80\x81\x82\x83\x84\x85\x86\x87"
23355 			  "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23356 			  "\x90\x91\x92\x93\x94\x95\x96\x97"
23357 			  "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23358 			  "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23359 			  "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23360 			  "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23361 			  "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23362 			  "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23363 			  "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23364 			  "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23365 			  "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23366 			  "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23367 			  "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23368 			  "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23369 			  "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
23370 		.rlen	= 512,
23371 		.also_non_np = 1,
23372 		.np	= 2,
23373 		.tap	= { 512 - 16, 16 },
23374 	},
23375 };
23376 
23377 /*
23378  * SEED test vectors
23379  */
23380 #define SEED_ENC_TEST_VECTORS	4
23381 #define SEED_DEC_TEST_VECTORS	4
23382 
23383 static struct cipher_testvec seed_enc_tv_template[] = {
23384 	{
23385 		.key    = zeroed_string,
23386 		.klen	= 16,
23387 		.input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
23388 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
23389 		.ilen	= 16,
23390 		.result	= "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
23391 			  "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
23392 		.rlen	= 16,
23393 	}, {
23394 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
23395 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
23396 		.klen	= 16,
23397 		.input	= zeroed_string,
23398 		.ilen	= 16,
23399 		.result	= "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
23400 			  "\x84\x48\x35\x97\xe4\x37\x0f\x43",
23401 		.rlen	= 16,
23402 	}, {
23403 		.key	= "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
23404 			  "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
23405 		.klen	= 16,
23406 		.input	= "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
23407 			  "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
23408 		.ilen	= 16,
23409 		.result	= "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
23410 			  "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
23411 		.rlen	= 16,
23412 	}, {
23413 		.key	= "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
23414 			  "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
23415 		.klen	= 16,
23416 		.input	= "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
23417 			  "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
23418 		.ilen	= 16,
23419 		.result	= "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
23420 			  "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
23421 		.rlen	= 16,
23422 	}
23423 };
23424 
23425 static struct cipher_testvec seed_dec_tv_template[] = {
23426 	{
23427 		.key    = zeroed_string,
23428 		.klen	= 16,
23429 		.input	= "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
23430 			  "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
23431 		.ilen	= 16,
23432 		.result	= "\x00\x01\x02\x03\x04\x05\x06\x07"
23433 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
23434 		.rlen	= 16,
23435 	}, {
23436 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
23437 			  "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
23438 		.klen	= 16,
23439 		.input	= "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
23440 			  "\x84\x48\x35\x97\xe4\x37\x0f\x43",
23441 		.ilen	= 16,
23442 		.result	= zeroed_string,
23443 		.rlen	= 16,
23444 	}, {
23445 		.key	= "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
23446 			  "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
23447 		.klen	= 16,
23448 		.input	= "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
23449 			  "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
23450 		.ilen	= 16,
23451 		.result	= "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
23452 			  "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
23453 		.rlen	= 16,
23454 	}, {
23455 		.key	= "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
23456 			  "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
23457 		.klen	= 16,
23458 		.input	= "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
23459 			  "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
23460 		.ilen	= 16,
23461 		.result	= "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
23462 			  "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
23463 		.rlen	= 16,
23464 	}
23465 };
23466 
23467 #define SALSA20_STREAM_ENC_TEST_VECTORS 5
23468 static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
23469 	/*
23470 	* Testvectors from verified.test-vectors submitted to ECRYPT.
23471 	* They are truncated to size 39, 64, 111, 129 to test a variety
23472 	* of input length.
23473 	*/
23474 	{ /* Set 3, vector 0 */
23475 		.key	= "\x00\x01\x02\x03\x04\x05\x06\x07"
23476 			"\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
23477 		.klen	= 16,
23478 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
23479 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23480 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23481 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23482 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23483 			"\x00\x00\x00\x00\x00\x00\x00",
23484 		.ilen	= 39,
23485 		.result	= "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
23486 			 "\x68\x02\x41\x0C\x68\x86\x88\x89"
23487 			 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
23488 			 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
23489 			 "\x58\x3F\x52\x79\x70\xEB\xC1",
23490 		.rlen	= 39,
23491 	}, { /* Set 5, vector 0 */
23492 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23493 			"\x00\x00\x00\x00\x00\x00\x00\x00",
23494 		.klen	= 16,
23495 		.iv     = "\x80\x00\x00\x00\x00\x00\x00\x00",
23496 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23497 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23498 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23499 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23500 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23501 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23502 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23503 			"\x00\x00\x00\x00\x00\x00\x00\x00",
23504 		.ilen	= 64,
23505 		.result	= "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
23506 			 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
23507 			 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
23508 			 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
23509 			 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
23510 			 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
23511 			 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
23512 			 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
23513 		.rlen	= 64,
23514 	}, { /* Set 3, vector 27 */
23515 		.key	= "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
23516 			"\x23\x24\x25\x26\x27\x28\x29\x2A"
23517 			"\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
23518 			"\x33\x34\x35\x36\x37\x38\x39\x3A",
23519 		.klen	= 32,
23520 		.iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
23521 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23522 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23523 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23524 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23525 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23526 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23527 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23528 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23529 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23530 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23531 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23532 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23533 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23534 			"\x00\x00\x00\x00\x00\x00\x00",
23535 		.ilen	= 111,
23536 		.result	= "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
23537 			 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
23538 			 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
23539 			 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
23540 			 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
23541 			 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
23542 			 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
23543 			 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
23544 			 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
23545 			 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
23546 			 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
23547 			 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
23548 			 "\x95\x46\x45\x54\xE9\x75\x03\x08"
23549 			 "\x44\xAF\xE5\x8A\x81\x12\x09",
23550 		.rlen	= 111,
23551 	}, { /* Set 5, vector 27 */
23552 		.key	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23553 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23554 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23555 			"\x00\x00\x00\x00\x00\x00\x00\x00",
23556 		.klen	= 32,
23557 		.iv     = "\x00\x00\x00\x10\x00\x00\x00\x00",
23558 		.input	= "\x00\x00\x00\x00\x00\x00\x00\x00"
23559 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23560 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23561 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23562 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23563 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23564 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23565 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23566 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23567 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23568 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23569 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23570 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23571 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23572 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23573 			"\x00\x00\x00\x00\x00\x00\x00\x00"
23574 			"\x00",
23575 		.ilen	= 129,
23576 		.result	= "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
23577 			 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
23578 			 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
23579 			 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
23580 			 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
23581 			 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
23582 			 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
23583 			 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
23584 			 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
23585 			 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
23586 			 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
23587 			 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
23588 			 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
23589 			 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
23590 			 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
23591 			 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
23592 			 "\x5A",
23593 		.rlen	= 129,
23594 	}, { /* large test vector generated using Crypto++ */
23595 		.key =  "\x00\x01\x02\x03\x04\x05\x06\x07"
23596 			"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23597 			"\x10\x11\x12\x13\x14\x15\x16\x17"
23598 			"\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
23599 		.klen = 32,
23600 		.iv =	"\x00\x00\x00\x00\x00\x00\x00\x00"
23601 			"\x00\x00\x00\x00\x00\x00\x00\x00",
23602 		.input =
23603 			"\x00\x01\x02\x03\x04\x05\x06\x07"
23604 			"\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23605 			"\x10\x11\x12\x13\x14\x15\x16\x17"
23606 			"\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23607 			"\x20\x21\x22\x23\x24\x25\x26\x27"
23608 			"\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23609 			"\x30\x31\x32\x33\x34\x35\x36\x37"
23610 			"\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23611 			"\x40\x41\x42\x43\x44\x45\x46\x47"
23612 			"\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23613 			"\x50\x51\x52\x53\x54\x55\x56\x57"
23614 			"\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23615 			"\x60\x61\x62\x63\x64\x65\x66\x67"
23616 			"\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23617 			"\x70\x71\x72\x73\x74\x75\x76\x77"
23618 			"\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23619 			"\x80\x81\x82\x83\x84\x85\x86\x87"
23620 			"\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23621 			"\x90\x91\x92\x93\x94\x95\x96\x97"
23622 			"\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23623 			"\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23624 			"\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23625 			"\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23626 			"\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23627 			"\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23628 			"\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23629 			"\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23630 			"\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23631 			"\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23632 			"\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23633 			"\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23634 			"\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
23635 			"\x00\x03\x06\x09\x0c\x0f\x12\x15"
23636 			"\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
23637 			"\x30\x33\x36\x39\x3c\x3f\x42\x45"
23638 			"\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
23639 			"\x60\x63\x66\x69\x6c\x6f\x72\x75"
23640 			"\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
23641 			"\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
23642 			"\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
23643 			"\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
23644 			"\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
23645 			"\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
23646 			"\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
23647 			"\x20\x23\x26\x29\x2c\x2f\x32\x35"
23648 			"\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
23649 			"\x50\x53\x56\x59\x5c\x5f\x62\x65"
23650 			"\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
23651 			"\x80\x83\x86\x89\x8c\x8f\x92\x95"
23652 			"\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
23653 			"\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
23654 			"\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
23655 			"\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
23656 			"\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
23657 			"\x10\x13\x16\x19\x1c\x1f\x22\x25"
23658 			"\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
23659 			"\x40\x43\x46\x49\x4c\x4f\x52\x55"
23660 			"\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
23661 			"\x70\x73\x76\x79\x7c\x7f\x82\x85"
23662 			"\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
23663 			"\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
23664 			"\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
23665 			"\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
23666 			"\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
23667 			"\x00\x05\x0a\x0f\x14\x19\x1e\x23"
23668 			"\x28\x2d\x32\x37\x3c\x41\x46\x4b"
23669 			"\x50\x55\x5a\x5f\x64\x69\x6e\x73"
23670 			"\x78\x7d\x82\x87\x8c\x91\x96\x9b"
23671 			"\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
23672 			"\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
23673 			"\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
23674 			"\x18\x1d\x22\x27\x2c\x31\x36\x3b"
23675 			"\x40\x45\x4a\x4f\x54\x59\x5e\x63"
23676 			"\x68\x6d\x72\x77\x7c\x81\x86\x8b"
23677 			"\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
23678 			"\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
23679 			"\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
23680 			"\x08\x0d\x12\x17\x1c\x21\x26\x2b"
23681 			"\x30\x35\x3a\x3f\x44\x49\x4e\x53"
23682 			"\x58\x5d\x62\x67\x6c\x71\x76\x7b"
23683 			"\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
23684 			"\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
23685 			"\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
23686 			"\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
23687 			"\x20\x25\x2a\x2f\x34\x39\x3e\x43"
23688 			"\x48\x4d\x52\x57\x5c\x61\x66\x6b"
23689 			"\x70\x75\x7a\x7f\x84\x89\x8e\x93"
23690 			"\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
23691 			"\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
23692 			"\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
23693 			"\x10\x15\x1a\x1f\x24\x29\x2e\x33"
23694 			"\x38\x3d\x42\x47\x4c\x51\x56\x5b"
23695 			"\x60\x65\x6a\x6f\x74\x79\x7e\x83"
23696 			"\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
23697 			"\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
23698 			"\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
23699 			"\x00\x07\x0e\x15\x1c\x23\x2a\x31"
23700 			"\x38\x3f\x46\x4d\x54\x5b\x62\x69"
23701 			"\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
23702 			"\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
23703 			"\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
23704 			"\x18\x1f\x26\x2d\x34\x3b\x42\x49"
23705 			"\x50\x57\x5e\x65\x6c\x73\x7a\x81"
23706 			"\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
23707 			"\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
23708 			"\xf8\xff\x06\x0d\x14\x1b\x22\x29"
23709 			"\x30\x37\x3e\x45\x4c\x53\x5a\x61"
23710 			"\x68\x6f\x76\x7d\x84\x8b\x92\x99"
23711 			"\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
23712 			"\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
23713 			"\x10\x17\x1e\x25\x2c\x33\x3a\x41"
23714 			"\x48\x4f\x56\x5d\x64\x6b\x72\x79"
23715 			"\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
23716 			"\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
23717 			"\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
23718 			"\x28\x2f\x36\x3d\x44\x4b\x52\x59"
23719 			"\x60\x67\x6e\x75\x7c\x83\x8a\x91"
23720 			"\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
23721 			"\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
23722 			"\x08\x0f\x16\x1d\x24\x2b\x32\x39"
23723 			"\x40\x47\x4e\x55\x5c\x63\x6a\x71"
23724 			"\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
23725 			"\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
23726 			"\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
23727 			"\x20\x27\x2e\x35\x3c\x43\x4a\x51"
23728 			"\x58\x5f\x66\x6d\x74\x7b\x82\x89"
23729 			"\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
23730 			"\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
23731 			"\x00\x09\x12\x1b\x24\x2d\x36\x3f"
23732 			"\x48\x51\x5a\x63\x6c\x75\x7e\x87"
23733 			"\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
23734 			"\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
23735 			"\x20\x29\x32\x3b\x44\x4d\x56\x5f"
23736 			"\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
23737 			"\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
23738 			"\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
23739 			"\x40\x49\x52\x5b\x64\x6d\x76\x7f"
23740 			"\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
23741 			"\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
23742 			"\x18\x21\x2a\x33\x3c\x45\x4e\x57"
23743 			"\x60\x69\x72\x7b\x84\x8d\x96\x9f"
23744 			"\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
23745 			"\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
23746 			"\x38\x41\x4a\x53\x5c\x65\x6e\x77"
23747 			"\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
23748 			"\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
23749 			"\x10\x19\x22\x2b\x34\x3d\x46\x4f"
23750 			"\x58\x61\x6a\x73\x7c\x85\x8e\x97"
23751 			"\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
23752 			"\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
23753 			"\x30\x39\x42\x4b\x54\x5d\x66\x6f"
23754 			"\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
23755 			"\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
23756 			"\x08\x11\x1a\x23\x2c\x35\x3e\x47"
23757 			"\x50\x59\x62\x6b\x74\x7d\x86\x8f"
23758 			"\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
23759 			"\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
23760 			"\x28\x31\x3a\x43\x4c\x55\x5e\x67"
23761 			"\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
23762 			"\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
23763 			"\x00\x0b\x16\x21\x2c\x37\x42\x4d"
23764 			"\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
23765 			"\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
23766 			"\x08\x13\x1e\x29\x34\x3f\x4a\x55"
23767 			"\x60\x6b\x76\x81\x8c\x97\xa2\xad"
23768 			"\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
23769 			"\x10\x1b\x26\x31\x3c\x47\x52\x5d"
23770 			"\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
23771 			"\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
23772 			"\x18\x23\x2e\x39\x44\x4f\x5a\x65"
23773 			"\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
23774 			"\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
23775 			"\x20\x2b\x36\x41\x4c\x57\x62\x6d"
23776 			"\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
23777 			"\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
23778 			"\x28\x33\x3e\x49\x54\x5f\x6a\x75"
23779 			"\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
23780 			"\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
23781 			"\x30\x3b\x46\x51\x5c\x67\x72\x7d"
23782 			"\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
23783 			"\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
23784 			"\x38\x43\x4e\x59\x64\x6f\x7a\x85"
23785 			"\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
23786 			"\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
23787 			"\x40\x4b\x56\x61\x6c\x77\x82\x8d"
23788 			"\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
23789 			"\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
23790 			"\x48\x53\x5e\x69\x74\x7f\x8a\x95"
23791 			"\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
23792 			"\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
23793 			"\x50\x5b\x66\x71\x7c\x87\x92\x9d"
23794 			"\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
23795 			"\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
23796 			"\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
23797 			"\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
23798 			"\x38\x45\x52\x5f\x6c\x79\x86\x93"
23799 			"\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
23800 			"\x08\x15\x22\x2f\x3c\x49\x56\x63"
23801 			"\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
23802 			"\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
23803 			"\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
23804 			"\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
23805 			"\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
23806 			"\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
23807 			"\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
23808 			"\x48\x55\x62\x6f\x7c\x89\x96\xa3"
23809 			"\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
23810 			"\x18\x25\x32\x3f\x4c\x59\x66\x73"
23811 			"\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
23812 			"\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
23813 			"\x50\x5d\x6a\x77\x84\x91\x9e\xab"
23814 			"\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
23815 			"\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
23816 			"\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
23817 			"\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
23818 			"\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
23819 			"\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
23820 			"\x28\x35\x42\x4f\x5c\x69\x76\x83"
23821 			"\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
23822 			"\xf8\x05\x12\x1f\x2c\x39\x46\x53"
23823 			"\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
23824 			"\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
23825 			"\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
23826 			"\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
23827 			"\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
23828 			"\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
23829 			"\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
23830 			"\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
23831 			"\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
23832 			"\x58\x67\x76\x85\x94\xa3\xb2\xc1"
23833 			"\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
23834 			"\x48\x57\x66\x75\x84\x93\xa2\xb1"
23835 			"\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
23836 			"\x38\x47\x56\x65\x74\x83\x92\xa1"
23837 			"\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
23838 			"\x28\x37\x46\x55\x64\x73\x82\x91"
23839 			"\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
23840 			"\x18\x27\x36\x45\x54\x63\x72\x81"
23841 			"\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
23842 			"\x08\x17\x26\x35\x44\x53\x62\x71"
23843 			"\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
23844 			"\xf8\x07\x16\x25\x34\x43\x52\x61"
23845 			"\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
23846 			"\xe8\xf7\x06\x15\x24\x33\x42\x51"
23847 			"\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
23848 			"\xd8\xe7\xf6\x05\x14\x23\x32\x41"
23849 			"\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
23850 			"\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
23851 			"\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
23852 			"\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
23853 			"\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
23854 			"\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
23855 			"\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
23856 			"\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
23857 			"\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
23858 			"\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
23859 			"\x00\x11\x22\x33\x44\x55\x66\x77"
23860 			"\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
23861 			"\x10\x21\x32\x43\x54\x65\x76\x87"
23862 			"\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
23863 			"\x20\x31\x42\x53\x64\x75\x86\x97"
23864 			"\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
23865 			"\x30\x41\x52\x63\x74\x85\x96\xa7"
23866 			"\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
23867 			"\x40\x51\x62\x73\x84\x95\xa6\xb7"
23868 			"\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
23869 			"\x50\x61\x72\x83\x94\xa5\xb6\xc7"
23870 			"\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
23871 			"\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
23872 			"\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
23873 			"\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
23874 			"\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
23875 			"\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
23876 			"\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
23877 			"\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
23878 			"\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
23879 			"\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
23880 			"\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
23881 			"\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
23882 			"\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
23883 			"\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
23884 			"\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
23885 			"\xd0\xe1\xf2\x03\x14\x25\x36\x47"
23886 			"\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
23887 			"\xe0\xf1\x02\x13\x24\x35\x46\x57"
23888 			"\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
23889 			"\xf0\x01\x12\x23\x34\x45\x56\x67"
23890 			"\x78\x89\x9a\xab\xbc\xcd\xde\xef"
23891 			"\x00\x13\x26\x39\x4c\x5f\x72\x85"
23892 			"\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
23893 			"\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
23894 			"\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
23895 			"\x60\x73\x86\x99\xac\xbf\xd2\xe5"
23896 			"\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
23897 			"\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
23898 			"\x28\x3b\x4e\x61\x74\x87\x9a\xad"
23899 			"\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
23900 			"\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
23901 			"\xf0\x03\x16\x29\x3c\x4f\x62\x75"
23902 			"\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
23903 			"\x20\x33\x46\x59\x6c\x7f\x92\xa5"
23904 			"\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
23905 			"\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
23906 			"\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
23907 			"\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
23908 			"\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
23909 			"\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
23910 			"\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
23911 			"\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
23912 			"\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
23913 			"\x10\x23\x36\x49\x5c\x6f\x82\x95"
23914 			"\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
23915 			"\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
23916 			"\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
23917 			"\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
23918 			"\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
23919 			"\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
23920 			"\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
23921 			"\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
23922 			"\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
23923 			"\x00\x15\x2a\x3f\x54\x69\x7e\x93"
23924 			"\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
23925 			"\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
23926 			"\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
23927 			"\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
23928 			"\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
23929 			"\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
23930 			"\x98\xad\xc2\xd7\xec\x01\x16\x2b"
23931 			"\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
23932 			"\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
23933 			"\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
23934 			"\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
23935 			"\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
23936 			"\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
23937 			"\x30\x45\x5a\x6f\x84\x99\xae\xc3"
23938 			"\xd8\xed\x02\x17\x2c\x41\x56\x6b"
23939 			"\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
23940 			"\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
23941 			"\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
23942 			"\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
23943 			"\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
23944 			"\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
23945 			"\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
23946 			"\x18\x2d\x42\x57\x6c\x81\x96\xab"
23947 			"\xc0\xd5\xea\xff\x14\x29\x3e\x53"
23948 			"\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
23949 			"\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
23950 			"\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
23951 			"\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
23952 			"\x08\x1d\x32\x47\x5c\x71\x86\x9b"
23953 			"\xb0\xc5\xda\xef\x04\x19\x2e\x43"
23954 			"\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
23955 			"\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
23956 			"\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
23957 			"\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
23958 			"\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
23959 			"\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
23960 			"\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
23961 			"\x50\x67\x7e\x95\xac\xc3\xda\xf1"
23962 			"\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
23963 			"\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
23964 			"\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
23965 			"\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
23966 			"\xe8\xff\x16\x2d\x44\x5b\x72\x89"
23967 			"\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
23968 			"\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
23969 			"\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
23970 			"\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
23971 			"\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
23972 			"\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
23973 			"\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
23974 			"\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
23975 			"\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
23976 			"\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
23977 			"\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
23978 			"\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
23979 			"\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
23980 			"\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
23981 			"\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
23982 			"\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
23983 			"\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
23984 			"\xd8\xef\x06\x1d\x34\x4b\x62\x79"
23985 			"\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
23986 			"\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
23987 			"\x00\x19\x32\x4b\x64\x7d\x96\xaf"
23988 			"\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
23989 			"\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
23990 			"\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
23991 			"\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
23992 			"\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
23993 			"\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
23994 			"\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
23995 			"\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
23996 			"\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
23997 			"\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
23998 			"\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
23999 			"\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
24000 			"\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
24001 			"\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
24002 			"\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
24003 			"\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
24004 			"\x48\x61\x7a\x93\xac\xc5\xde\xf7"
24005 			"\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
24006 			"\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
24007 			"\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
24008 			"\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
24009 			"\x30\x49\x62\x7b\x94\xad\xc6\xdf"
24010 			"\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
24011 			"\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
24012 			"\x88\xa1\xba\xd3\xec\x05\x1e\x37"
24013 			"\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
24014 			"\x18\x31\x4a\x63\x7c\x95\xae\xc7"
24015 			"\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
24016 			"\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
24017 			"\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
24018 			"\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
24019 			"\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
24020 			"\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
24021 			"\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
24022 			"\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
24023 			"\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
24024 			"\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
24025 			"\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
24026 			"\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
24027 			"\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
24028 			"\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
24029 			"\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
24030 			"\x48\x63\x7e\x99\xb4\xcf\xea\x05"
24031 			"\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
24032 			"\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
24033 			"\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
24034 			"\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
24035 			"\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
24036 			"\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
24037 			"\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
24038 			"\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
24039 			"\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
24040 			"\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
24041 			"\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
24042 			"\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
24043 			"\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
24044 			"\x18\x33\x4e\x69\x84\x9f\xba\xd5"
24045 			"\xf0\x0b\x26\x41\x5c\x77\x92\xad"
24046 			"\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
24047 			"\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
24048 			"\x78\x93\xae\xc9\xe4\xff\x1a\x35"
24049 			"\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
24050 			"\x28\x43\x5e\x79\x94\xaf\xca\xe5"
24051 			"\x00\x1d\x3a\x57\x74\x91\xae\xcb"
24052 			"\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
24053 			"\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
24054 			"\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
24055 			"\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
24056 			"\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
24057 			"\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
24058 			"\x58\x75\x92\xaf\xcc\xe9\x06\x23"
24059 			"\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
24060 			"\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
24061 			"\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
24062 			"\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
24063 			"\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
24064 			"\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
24065 			"\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
24066 			"\x98\xb5\xd2\xef\x0c\x29\x46\x63"
24067 			"\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
24068 			"\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
24069 			"\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
24070 			"\x38\x55\x72\x8f\xac\xc9\xe6\x03"
24071 			"\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
24072 			"\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
24073 			"\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
24074 			"\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
24075 			"\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
24076 			"\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
24077 			"\x90\xad\xca\xe7\x04\x21\x3e\x5b"
24078 			"\x78\x95\xb2\xcf\xec\x09\x26\x43"
24079 			"\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
24080 			"\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
24081 			"\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
24082 			"\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
24083 			"\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
24084 			"\xf8\x17\x36\x55\x74\x93\xb2\xd1"
24085 			"\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
24086 			"\xe8\x07\x26\x45\x64\x83\xa2\xc1"
24087 			"\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
24088 			"\xd8\xf7\x16\x35\x54\x73\x92\xb1"
24089 			"\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
24090 			"\xc8\xe7\x06\x25\x44\x63\x82\xa1"
24091 			"\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
24092 			"\xb8\xd7\xf6\x15\x34\x53\x72\x91"
24093 			"\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
24094 			"\xa8\xc7\xe6\x05\x24\x43\x62\x81"
24095 			"\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
24096 			"\x98\xb7\xd6\xf5\x14\x33\x52\x71"
24097 			"\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
24098 			"\x88\xa7\xc6\xe5\x04\x23\x42\x61"
24099 			"\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
24100 			"\x78\x97\xb6\xd5\xf4\x13\x32\x51"
24101 			"\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
24102 			"\x68\x87\xa6\xc5\xe4\x03\x22\x41"
24103 			"\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
24104 			"\x58\x77\x96\xb5\xd4\xf3\x12\x31"
24105 			"\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
24106 			"\x48\x67\x86\xa5\xc4\xe3\x02\x21"
24107 			"\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
24108 			"\x38\x57\x76\x95\xb4\xd3\xf2\x11"
24109 			"\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
24110 			"\x28\x47\x66\x85\xa4\xc3\xe2\x01"
24111 			"\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
24112 			"\x18\x37\x56\x75\x94\xb3\xd2\xf1"
24113 			"\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
24114 			"\x08\x27\x46\x65\x84\xa3\xc2\xe1"
24115 			"\x00\x21\x42\x63",
24116 		.ilen = 4100,
24117 		.result =
24118 			"\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
24119 			"\x4c\x13\xf2\x77\x18\x60\x65\x5e"
24120 			"\x29\x01\xce\x98\x55\x53\xf9\x0c"
24121 			"\x2a\x08\xd5\x09\xb3\x57\x55\x56"
24122 			"\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
24123 			"\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
24124 			"\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
24125 			"\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
24126 			"\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
24127 			"\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
24128 			"\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
24129 			"\xbb\xde\x56\x86\xab\x65\x21\x30"
24130 			"\x00\x84\x65\x24\xa5\x7d\x85\xb4"
24131 			"\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
24132 			"\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
24133 			"\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
24134 			"\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
24135 			"\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
24136 			"\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
24137 			"\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
24138 			"\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
24139 			"\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
24140 			"\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
24141 			"\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
24142 			"\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
24143 			"\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
24144 			"\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
24145 			"\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
24146 			"\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
24147 			"\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
24148 			"\x45\xff\x3f\xce\x55\xf6\x95\x10"
24149 			"\x08\x77\x10\x43\xc6\xf3\x09\xe5"
24150 			"\x68\xe7\x3c\xad\x00\x52\x45\x0d"
24151 			"\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
24152 			"\xe6\x25\xae\x98\x12\x8e\x19\x9c"
24153 			"\x81\x68\xb1\x11\xf6\x69\xda\xe3"
24154 			"\x62\x08\x18\x7a\x25\x49\x28\xac"
24155 			"\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
24156 			"\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
24157 			"\x98\xf3\x02\x68\x55\x03\x7f\x8a"
24158 			"\xe5\x94\x0c\x32\x5c\x07\x82\x63"
24159 			"\xaf\x6f\x91\x40\x84\x8e\x52\x25"
24160 			"\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
24161 			"\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
24162 			"\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
24163 			"\x15\x47\xc7\x50\x40\x6d\x91\xc5"
24164 			"\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
24165 			"\x33\xee\x14\x19\x22\x52\x89\xa7"
24166 			"\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
24167 			"\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
24168 			"\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
24169 			"\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
24170 			"\xca\x88\x63\x3d\x02\x58\x6b\xa9"
24171 			"\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
24172 			"\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
24173 			"\x04\x07\x08\x52\xe6\xc0\xda\x93"
24174 			"\x74\x7d\x93\x99\x5d\x78\x68\xa6"
24175 			"\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
24176 			"\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
24177 			"\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
24178 			"\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
24179 			"\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
24180 			"\x54\x26\x72\x9e\x61\xfa\x86\xcf"
24181 			"\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
24182 			"\x5a\x90\xae\x75\x0a\x74\x18\x89"
24183 			"\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
24184 			"\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
24185 			"\xe8\xfe\x63\x95\x80\x07\xb4\x26"
24186 			"\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
24187 			"\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
24188 			"\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
24189 			"\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
24190 			"\x33\xe6\x69\xf4\x45\x25\x86\x3a"
24191 			"\x22\x94\x4f\x00\x23\x6a\x44\xc2"
24192 			"\x49\x97\x33\xab\x36\x14\x0a\x70"
24193 			"\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
24194 			"\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
24195 			"\x94\xf4\x41\x49\xba\x5f\x7b\x07"
24196 			"\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
24197 			"\xc2\x2e\x37\x40\x49\xc3\x38\x16"
24198 			"\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
24199 			"\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
24200 			"\x47\x13\x28\x73\x3c\xbb\x00\x90"
24201 			"\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
24202 			"\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
24203 			"\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
24204 			"\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
24205 			"\xad\x04\x07\xae\x22\x90\x4a\x93"
24206 			"\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
24207 			"\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
24208 			"\x2a\x3d\x45\xfe\x03\x61\x10\x85"
24209 			"\x17\x69\xa6\x78\xcc\x6c\x87\x49"
24210 			"\x53\xf9\x80\x10\xde\x80\xa2\x41"
24211 			"\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
24212 			"\x00\x71\x51\x06\xa7\xbd\xfb\xef"
24213 			"\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
24214 			"\x66\xb0\x49\x23\xc4\x47\x10\x0e"
24215 			"\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
24216 			"\xde\xff\x07\x44\xdd\x56\x1b\xad"
24217 			"\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
24218 			"\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
24219 			"\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
24220 			"\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
24221 			"\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
24222 			"\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
24223 			"\x07\x37\x91\x9f\xfd\x67\x50\x3a"
24224 			"\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
24225 			"\xf9\xe5\x39\xa3\x31\xac\x07\x36"
24226 			"\x23\xf8\x66\x18\x14\x28\x34\x0f"
24227 			"\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
24228 			"\x01\x41\xb2\x75\x8d\xcb\x96\x85"
24229 			"\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
24230 			"\x44\x1f\xc0\x14\x22\x75\x61\xe8"
24231 			"\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
24232 			"\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
24233 			"\x57\x50\xdb\x17\x41\x65\x4d\xa3"
24234 			"\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
24235 			"\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
24236 			"\x13\x3b\xfa\x29\xda\x9e\x54\x64"
24237 			"\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
24238 			"\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
24239 			"\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
24240 			"\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
24241 			"\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
24242 			"\xca\x8e\x61\x87\xde\xad\x80\xd2"
24243 			"\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
24244 			"\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
24245 			"\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
24246 			"\x97\x8a\x19\x89\x44\x40\xc0\xa6"
24247 			"\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
24248 			"\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
24249 			"\x28\x99\xad\x2c\x76\xa3\x78\xc2"
24250 			"\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
24251 			"\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
24252 			"\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
24253 			"\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
24254 			"\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
24255 			"\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
24256 			"\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
24257 			"\x13\x36\x79\x80\x53\xe8\xd3\xa6"
24258 			"\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
24259 			"\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
24260 			"\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
24261 			"\xac\x26\x80\x14\x1d\xc8\x3a\x35"
24262 			"\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
24263 			"\x35\x58\x79\x8e\x0f\x66\xea\xaf"
24264 			"\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
24265 			"\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
24266 			"\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
24267 			"\x54\xda\x24\x6a\xc4\x41\x65\x46"
24268 			"\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
24269 			"\x2c\x91\xa7\xee\xc4\x81\x07\x86"
24270 			"\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
24271 			"\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
24272 			"\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
24273 			"\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
24274 			"\xbd\x43\xea\x15\x23\x7f\xb9\xac"
24275 			"\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
24276 			"\xf3\x19\x31\xbb\x4a\x74\x84\x17"
24277 			"\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
24278 			"\x80\x38\x15\x52\xcb\x6f\xea\xe5"
24279 			"\x73\x9c\xd9\x24\x69\xc6\x95\x32"
24280 			"\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
24281 			"\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
24282 			"\x31\xdd\x93\x75\x78\x8a\x2c\x94"
24283 			"\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
24284 			"\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
24285 			"\xef\xcc\xa7\xec\xab\x43\x09\x18"
24286 			"\xd3\xab\x68\xd1\x07\x99\x44\x47"
24287 			"\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
24288 			"\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
24289 			"\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
24290 			"\x02\x7c\x86\x54\xbc\x88\xaf\x75"
24291 			"\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
24292 			"\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
24293 			"\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
24294 			"\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
24295 			"\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
24296 			"\x71\x6e\x9f\x58\x15\x67\x72\x87"
24297 			"\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
24298 			"\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
24299 			"\xba\x41\x54\xac\xf0\xfc\x59\x12"
24300 			"\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
24301 			"\x62\x8d\x83\x2c\x03\xbe\x05\x76"
24302 			"\x2e\x53\x49\x97\x94\x33\xae\x40"
24303 			"\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
24304 			"\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
24305 			"\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
24306 			"\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
24307 			"\xce\x87\xad\xcc\x72\x05\x00\x29"
24308 			"\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
24309 			"\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
24310 			"\x5c\x50\x79\x2a\x56\x56\x71\x8c"
24311 			"\xac\xc0\x79\x50\x69\xca\x59\x32"
24312 			"\x65\xf2\x54\xe4\x52\x38\x76\xd1"
24313 			"\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
24314 			"\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
24315 			"\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
24316 			"\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
24317 			"\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
24318 			"\x05\x68\x6b\xab\xe3\x41\x49\xed"
24319 			"\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
24320 			"\x59\xc9\x26\x8b\xef\x30\x4c\x88"
24321 			"\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
24322 			"\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
24323 			"\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
24324 			"\xc0\x12\x23\x5f\x5a\x78\x86\x43"
24325 			"\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
24326 			"\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
24327 			"\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
24328 			"\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
24329 			"\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
24330 			"\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
24331 			"\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
24332 			"\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
24333 			"\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
24334 			"\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
24335 			"\xaf\xf1\x85\x75\x7d\x03\x61\x68"
24336 			"\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
24337 			"\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
24338 			"\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
24339 			"\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
24340 			"\x85\x75\xe6\x43\xf6\x87\x08\x68"
24341 			"\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
24342 			"\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
24343 			"\x33\x47\x80\x45\x56\xa3\xa7\xd7"
24344 			"\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
24345 			"\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
24346 			"\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
24347 			"\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
24348 			"\xaf\x55\xeb\x22\xac\x93\x68\x32"
24349 			"\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
24350 			"\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
24351 			"\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
24352 			"\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
24353 			"\x78\xf1\x2d\x50\x12\x77\xa8\x60"
24354 			"\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
24355 			"\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
24356 			"\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
24357 			"\x11\x16\x8f\xa2\xec\x47\xbe\xac"
24358 			"\x56\x01\x26\x56\xb1\x8c\xb2\x10"
24359 			"\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
24360 			"\x63\xf1\x69\x20\x4f\x13\x12\x1f"
24361 			"\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
24362 			"\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
24363 			"\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
24364 			"\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
24365 			"\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
24366 			"\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
24367 			"\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
24368 			"\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
24369 			"\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
24370 			"\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
24371 			"\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
24372 			"\x38\x55\xab\x33\x26\xef\x9f\x43"
24373 			"\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
24374 			"\x58\x09\x09\x1b\xc3\x65\x46\x46"
24375 			"\x1d\xa7\x94\x18\x23\x50\x2c\xca"
24376 			"\x2c\x55\x19\x97\x01\x9d\x93\x3b"
24377 			"\x63\x86\xf2\x03\x67\x45\xd2\x72"
24378 			"\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
24379 			"\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
24380 			"\x2b\x82\x39\xbd\x69\x54\xed\x62"
24381 			"\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
24382 			"\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
24383 			"\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
24384 			"\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
24385 			"\x98\x65\x85\xd1\x93\x53\xd3\x7b"
24386 			"\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
24387 			"\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
24388 			"\x84\x74\x15\x65\xb7\xf7\x51\xaf"
24389 			"\x55\xad\xa4\xd1\x22\x54\x70\x94"
24390 			"\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
24391 			"\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
24392 			"\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
24393 			"\x62\x36\x43\xb2\x82\x15\x75\x50"
24394 			"\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
24395 			"\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
24396 			"\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
24397 			"\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
24398 			"\x83\xcb\x72\xd0\x33\x79\x00\x2d"
24399 			"\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
24400 			"\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
24401 			"\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
24402 			"\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
24403 			"\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
24404 			"\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
24405 			"\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
24406 			"\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
24407 			"\xe9\xfd\x59\x14\x36\x49\x40\x6d"
24408 			"\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
24409 			"\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
24410 			"\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
24411 			"\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
24412 			"\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
24413 			"\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
24414 			"\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
24415 			"\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
24416 			"\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
24417 			"\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
24418 			"\x29\x06\x9d\xa4\x51\x3a\x10\x63"
24419 			"\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
24420 			"\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
24421 			"\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
24422 			"\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
24423 			"\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
24424 			"\x37\xa9\x64\x08\x4d\x94\x5a\x88"
24425 			"\xca\x35\xce\x81\x02\xe3\x1f\x1b"
24426 			"\x89\x1a\x77\x85\xe3\x41\x6d\x32"
24427 			"\x42\x19\x23\x7d\xc8\x73\xee\x25"
24428 			"\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
24429 			"\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
24430 			"\x82\x36\x6a\x0c\x46\x22\x15\xe9"
24431 			"\xff\x72\x41\x91\x91\x7d\x3a\xb7"
24432 			"\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
24433 			"\x67\x15\x20\x11\xd6\xb2\x55\x7b"
24434 			"\xdb\x87\xee\xef\x55\x89\x2a\x59"
24435 			"\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
24436 			"\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
24437 			"\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
24438 			"\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
24439 			"\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
24440 			"\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
24441 			"\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
24442 			"\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
24443 			"\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
24444 			"\xae\xab\x86\x09\x89\xc9\xc2\x40"
24445 			"\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
24446 			"\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
24447 			"\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
24448 			"\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
24449 			"\xe3\xb1\x18\x45\x67\xf9\x22\x38"
24450 			"\x95\xd9\x34\x34\x86\xc6\x41\x94"
24451 			"\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
24452 			"\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
24453 			"\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
24454 			"\x09\x90\x0c\xa2\x65\x0c\xad\x74"
24455 			"\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
24456 			"\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
24457 			"\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
24458 			"\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
24459 			"\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
24460 			"\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
24461 			"\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
24462 			"\xa7\x33\x34\x86\xca\xe4\x96\x23"
24463 			"\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
24464 			"\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
24465 			"\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
24466 			"\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
24467 			"\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
24468 			"\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
24469 			"\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
24470 			"\xde\x59\xec\x71\xeb\x89\xbb\xd0"
24471 			"\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
24472 			"\xc3\x1c\xa1\x10\x77\x53\x98\xef"
24473 			"\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
24474 			"\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
24475 			"\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
24476 			"\x68\xc8\x7f\x51\x22\x42\xef\x49"
24477 			"\xa4\x55\xb6\x36\xac\x09\xc7\x31"
24478 			"\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
24479 			"\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
24480 			"\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
24481 			"\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
24482 			"\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
24483 			"\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
24484 			"\x73\x2e\x71\x79\x16\x06\x63\x28"
24485 			"\x09\x15\xd8\x89\x38\x38\x3d\xb5"
24486 			"\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
24487 			"\xc8\xca\xef\xf9\x27\xd8\x07\x86"
24488 			"\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
24489 			"\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
24490 			"\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
24491 			"\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
24492 			"\x87\x26\xec\x61\x2c\xb4\x0f\x89"
24493 			"\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
24494 			"\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
24495 			"\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
24496 			"\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
24497 			"\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
24498 			"\x94\x98\xe4\x12\x93\x4c\x92\xe0"
24499 			"\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
24500 			"\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
24501 			"\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
24502 			"\x19\x07\xaf\x90\x62\x5c\x68\x98"
24503 			"\x48\x16\x11\x02\x9d\xee\xb4\x9b"
24504 			"\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
24505 			"\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
24506 			"\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
24507 			"\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
24508 			"\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
24509 			"\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
24510 			"\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
24511 			"\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
24512 			"\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
24513 			"\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
24514 			"\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
24515 			"\xef\x2f\xce\x72\xe5\x24\x60\xc1"
24516 			"\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
24517 			"\x21\x33\x44\xfe\x7f\x35\x32\x93"
24518 			"\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
24519 			"\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
24520 			"\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
24521 			"\x64\xf0\x48\xe5\x57\x99\xee\x75"
24522 			"\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
24523 			"\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
24524 			"\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
24525 			"\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
24526 			"\x58\xa0\x58\x7d\x33\xe0\x22\x39"
24527 			"\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
24528 			"\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
24529 			"\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
24530 			"\x0c\x32\x4b\xb5\x49\x28\xab\x85"
24531 			"\x2f\x8e\x01\x36\x38\x52\xd0\xba"
24532 			"\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
24533 			"\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
24534 			"\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
24535 			"\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
24536 			"\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
24537 			"\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
24538 			"\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
24539 			"\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
24540 			"\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
24541 			"\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
24542 			"\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
24543 			"\x81\xe1\x86\x89\x3e\x56\x10\x3c"
24544 			"\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
24545 			"\x53\xec\xa7\x89\xee\xc8\x56\xb5"
24546 			"\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
24547 			"\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
24548 			"\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
24549 			"\x56\xf5\x4e\x01\x35\x27\x45\x77"
24550 			"\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
24551 			"\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
24552 			"\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
24553 			"\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
24554 			"\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
24555 			"\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
24556 			"\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
24557 			"\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
24558 			"\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
24559 			"\x23\xab\x23\x3c\xb2\x10\xa0\x53"
24560 			"\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
24561 			"\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
24562 			"\x0f\xd2\x98\x88\x81\x8b\x45\x67"
24563 			"\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
24564 			"\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
24565 			"\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
24566 			"\x87\x8f\x03\x21\x28\x95\x0c\x89"
24567 			"\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
24568 			"\x2f\x57\x6e\x18\x42\x19\x54\x0c"
24569 			"\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
24570 			"\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
24571 			"\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
24572 			"\x1b\x31\x05\xe1\x06\x92\xe7\xda"
24573 			"\x85\x73\x78\x45\x20\x7f\xae\x13"
24574 			"\x7c\x33\x06\x22\xf4\x83\xf9\x35"
24575 			"\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
24576 			"\xce\x8a\xba\xda\xbe\x28\x08\xf7"
24577 			"\xe2\x14\x8c\x71\xea\x72\xf9\x33"
24578 			"\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
24579 			"\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
24580 			"\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
24581 			"\x14\x1f\x6c\x68\x98\x39\x89\x7a"
24582 			"\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
24583 			"\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
24584 			"\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
24585 			"\x80\x99\xae\xbc\xca\xae\x0f\x2f"
24586 			"\x65\x43\x34\x8e\x7e\xac\xd3\x93"
24587 			"\x2f\xac\x6d\x14\x3d\x02\x07\x70"
24588 			"\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
24589 			"\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
24590 			"\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
24591 			"\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
24592 			"\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
24593 			"\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
24594 			"\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
24595 			"\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
24596 			"\x14\x89\x5e\x70\x5a\x99\x92\xcd"
24597 			"\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
24598 			"\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
24599 			"\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
24600 			"\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
24601 			"\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
24602 			"\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
24603 			"\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
24604 			"\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
24605 			"\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
24606 			"\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
24607 			"\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
24608 			"\x30\xbc\x22\x81\x7d\x93\x12\xe4"
24609 			"\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
24610 			"\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
24611 			"\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
24612 			"\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
24613 			"\x6e\x12\x17\x72\x63\x57\xc7\xba"
24614 			"\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
24615 			"\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
24616 			"\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
24617 			"\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
24618 			"\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
24619 			"\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
24620 			"\x0c\x24\x43\x31\x40\x57\xf1\x72"
24621 			"\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
24622 			"\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
24623 			"\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
24624 			"\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
24625 			"\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
24626 			"\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
24627 			"\x28\x72\x23\xa0\xc2\xad\xad\x1c"
24628 			"\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
24629 			"\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
24630 			"\xaf\xdf\x11\x95",
24631 		.rlen	= 4100,
24632 		.np	= 2,
24633 		.tap	= { 4064, 36 },
24634 	},
24635 };
24636 
24637 /*
24638  * CTS (Cipher Text Stealing) mode tests
24639  */
24640 #define CTS_MODE_ENC_TEST_VECTORS 6
24641 #define CTS_MODE_DEC_TEST_VECTORS 6
24642 static struct cipher_testvec cts_mode_enc_tv_template[] = {
24643 	{ /* from rfc3962 */
24644 		.klen	= 16,
24645 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24646 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24647 		.ilen	= 17,
24648 		.input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24649 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24650 			  "\x20",
24651 		.rlen	= 17,
24652 		.result	= "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
24653 			  "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
24654 			  "\x97",
24655 	}, {
24656 		.klen	= 16,
24657 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24658 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24659 		.ilen   = 31,
24660 		.input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24661 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24662 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24663 			  "\x20\x47\x61\x75\x27\x73\x20",
24664 		.rlen   = 31,
24665 		.result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
24666 			  "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
24667 			  "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24668 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
24669 	}, {
24670 		.klen	= 16,
24671 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24672 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24673 		.ilen   = 32,
24674 		.input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24675 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24676 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24677 			  "\x20\x47\x61\x75\x27\x73\x20\x43",
24678 		.rlen   = 32,
24679 		.result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24680 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
24681 			  "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24682 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
24683 	}, {
24684 		.klen	= 16,
24685 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24686 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24687 		.ilen   = 47,
24688 		.input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24689 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24690 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24691 			  "\x20\x47\x61\x75\x27\x73\x20\x43"
24692 			  "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
24693 			  "\x70\x6c\x65\x61\x73\x65\x2c",
24694 		.rlen   = 47,
24695 		.result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24696 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
24697 			  "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
24698 			  "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
24699 			  "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24700 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
24701 	}, {
24702 		.klen	= 16,
24703 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24704 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24705 		.ilen   = 48,
24706 		.input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24707 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24708 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24709 			  "\x20\x47\x61\x75\x27\x73\x20\x43"
24710 			  "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
24711 			  "\x70\x6c\x65\x61\x73\x65\x2c\x20",
24712 		.rlen   = 48,
24713 		.result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24714 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
24715 			  "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
24716 			  "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
24717 			  "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24718 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
24719 	}, {
24720 		.klen	= 16,
24721 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24722 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24723 		.ilen   = 64,
24724 		.input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24725 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24726 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24727 			  "\x20\x47\x61\x75\x27\x73\x20\x43"
24728 			  "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
24729 			  "\x70\x6c\x65\x61\x73\x65\x2c\x20"
24730 			  "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
24731 			  "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
24732 		.rlen   = 64,
24733 		.result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24734 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
24735 			  "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24736 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
24737 			  "\x48\x07\xef\xe8\x36\xee\x89\xa5"
24738 			  "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
24739 			  "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
24740 			  "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
24741 	}
24742 };
24743 
24744 static struct cipher_testvec cts_mode_dec_tv_template[] = {
24745 	{ /* from rfc3962 */
24746 		.klen	= 16,
24747 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24748 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24749 		.rlen	= 17,
24750 		.result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24751 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24752 			  "\x20",
24753 		.ilen	= 17,
24754 		.input	= "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
24755 			  "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
24756 			  "\x97",
24757 	}, {
24758 		.klen	= 16,
24759 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24760 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24761 		.rlen   = 31,
24762 		.result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24763 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24764 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24765 			  "\x20\x47\x61\x75\x27\x73\x20",
24766 		.ilen   = 31,
24767 		.input  = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
24768 			  "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
24769 			  "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24770 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
24771 	}, {
24772 		.klen	= 16,
24773 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24774 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24775 		.rlen   = 32,
24776 		.result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24777 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24778 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24779 			  "\x20\x47\x61\x75\x27\x73\x20\x43",
24780 		.ilen   = 32,
24781 		.input  = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24782 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
24783 			  "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24784 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
24785 	}, {
24786 		.klen	= 16,
24787 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24788 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24789 		.rlen   = 47,
24790 		.result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24791 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24792 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24793 			  "\x20\x47\x61\x75\x27\x73\x20\x43"
24794 			  "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
24795 			  "\x70\x6c\x65\x61\x73\x65\x2c",
24796 		.ilen   = 47,
24797 		.input  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24798 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
24799 			  "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
24800 			  "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
24801 			  "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24802 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
24803 	}, {
24804 		.klen	= 16,
24805 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24806 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24807 		.rlen   = 48,
24808 		.result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24809 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24810 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24811 			  "\x20\x47\x61\x75\x27\x73\x20\x43"
24812 			  "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
24813 			  "\x70\x6c\x65\x61\x73\x65\x2c\x20",
24814 		.ilen   = 48,
24815 		.input  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24816 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
24817 			  "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
24818 			  "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
24819 			  "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24820 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
24821 	}, {
24822 		.klen	= 16,
24823 		.key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
24824 			  "\x74\x65\x72\x69\x79\x61\x6b\x69",
24825 		.rlen   = 64,
24826 		.result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
24827 			  "\x6c\x69\x6b\x65\x20\x74\x68\x65"
24828 			  "\x20\x47\x65\x6e\x65\x72\x61\x6c"
24829 			  "\x20\x47\x61\x75\x27\x73\x20\x43"
24830 			  "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
24831 			  "\x70\x6c\x65\x61\x73\x65\x2c\x20"
24832 			  "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
24833 			  "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
24834 		.ilen   = 64,
24835 		.input  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
24836 			  "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
24837 			  "\x39\x31\x25\x23\xa7\x86\x62\xd5"
24838 			  "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
24839 			  "\x48\x07\xef\xe8\x36\xee\x89\xa5"
24840 			  "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
24841 			  "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
24842 			  "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
24843 	}
24844 };
24845 
24846 /*
24847  * Compression stuff.
24848  */
24849 #define COMP_BUF_SIZE           512
24850 
24851 struct comp_testvec {
24852 	int inlen, outlen;
24853 	char input[COMP_BUF_SIZE];
24854 	char output[COMP_BUF_SIZE];
24855 };
24856 
24857 struct pcomp_testvec {
24858 	void *params;
24859 	unsigned int paramsize;
24860 	int inlen, outlen;
24861 	char input[COMP_BUF_SIZE];
24862 	char output[COMP_BUF_SIZE];
24863 };
24864 
24865 /*
24866  * Deflate test vectors (null-terminated strings).
24867  * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
24868  */
24869 
24870 #define DEFLATE_COMP_TEST_VECTORS 2
24871 #define DEFLATE_DECOMP_TEST_VECTORS 2
24872 
24873 static struct comp_testvec deflate_comp_tv_template[] = {
24874 	{
24875 		.inlen	= 70,
24876 		.outlen	= 38,
24877 		.input	= "Join us now and share the software "
24878 			"Join us now and share the software ",
24879 		.output	= "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
24880 			  "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
24881 			  "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
24882 			  "\x48\x55\x28\xce\x4f\x2b\x29\x07"
24883 			  "\x71\xbc\x08\x2b\x01\x00",
24884 	}, {
24885 		.inlen	= 191,
24886 		.outlen	= 122,
24887 		.input	= "This document describes a compression method based on the DEFLATE"
24888 			"compression algorithm.  This document defines the application of "
24889 			"the DEFLATE algorithm to the IP Payload Compression Protocol.",
24890 		.output	= "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
24891 			  "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
24892 			  "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
24893 			  "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
24894 			  "\x68\x12\x51\xae\x76\x67\xd6\x27"
24895 			  "\x19\x88\x1a\xde\x85\xab\x21\xf2"
24896 			  "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
24897 			  "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
24898 			  "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
24899 			  "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
24900 			  "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
24901 			  "\x52\x37\xed\x0e\x52\x6b\x59\x02"
24902 			  "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
24903 			  "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
24904 			  "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
24905 			  "\xfa\x02",
24906 	},
24907 };
24908 
24909 static struct comp_testvec deflate_decomp_tv_template[] = {
24910 	{
24911 		.inlen	= 122,
24912 		.outlen	= 191,
24913 		.input	= "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
24914 			  "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
24915 			  "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
24916 			  "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
24917 			  "\x68\x12\x51\xae\x76\x67\xd6\x27"
24918 			  "\x19\x88\x1a\xde\x85\xab\x21\xf2"
24919 			  "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
24920 			  "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
24921 			  "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
24922 			  "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
24923 			  "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
24924 			  "\x52\x37\xed\x0e\x52\x6b\x59\x02"
24925 			  "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
24926 			  "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
24927 			  "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
24928 			  "\xfa\x02",
24929 		.output	= "This document describes a compression method based on the DEFLATE"
24930 			"compression algorithm.  This document defines the application of "
24931 			"the DEFLATE algorithm to the IP Payload Compression Protocol.",
24932 	}, {
24933 		.inlen	= 38,
24934 		.outlen	= 70,
24935 		.input	= "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
24936 			  "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
24937 			  "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
24938 			  "\x48\x55\x28\xce\x4f\x2b\x29\x07"
24939 			  "\x71\xbc\x08\x2b\x01\x00",
24940 		.output	= "Join us now and share the software "
24941 			"Join us now and share the software ",
24942 	},
24943 };
24944 
24945 #define ZLIB_COMP_TEST_VECTORS 2
24946 #define ZLIB_DECOMP_TEST_VECTORS 2
24947 
24948 static const struct {
24949 	struct nlattr nla;
24950 	int val;
24951 } deflate_comp_params[] = {
24952 	{
24953 		.nla = {
24954 			.nla_len	= NLA_HDRLEN + sizeof(int),
24955 			.nla_type	= ZLIB_COMP_LEVEL,
24956 		},
24957 		.val			= Z_DEFAULT_COMPRESSION,
24958 	}, {
24959 		.nla = {
24960 			.nla_len	= NLA_HDRLEN + sizeof(int),
24961 			.nla_type	= ZLIB_COMP_METHOD,
24962 		},
24963 		.val			= Z_DEFLATED,
24964 	}, {
24965 		.nla = {
24966 			.nla_len	= NLA_HDRLEN + sizeof(int),
24967 			.nla_type	= ZLIB_COMP_WINDOWBITS,
24968 		},
24969 		.val			= -11,
24970 	}, {
24971 		.nla = {
24972 			.nla_len	= NLA_HDRLEN + sizeof(int),
24973 			.nla_type	= ZLIB_COMP_MEMLEVEL,
24974 		},
24975 		.val			= MAX_MEM_LEVEL,
24976 	}, {
24977 		.nla = {
24978 			.nla_len	= NLA_HDRLEN + sizeof(int),
24979 			.nla_type	= ZLIB_COMP_STRATEGY,
24980 		},
24981 		.val			= Z_DEFAULT_STRATEGY,
24982 	}
24983 };
24984 
24985 static const struct {
24986 	struct nlattr nla;
24987 	int val;
24988 } deflate_decomp_params[] = {
24989 	{
24990 		.nla = {
24991 			.nla_len	= NLA_HDRLEN + sizeof(int),
24992 			.nla_type	= ZLIB_DECOMP_WINDOWBITS,
24993 		},
24994 		.val			= -11,
24995 	}
24996 };
24997 
24998 static struct pcomp_testvec zlib_comp_tv_template[] = {
24999 	{
25000 		.params = &deflate_comp_params,
25001 		.paramsize = sizeof(deflate_comp_params),
25002 		.inlen	= 70,
25003 		.outlen	= 38,
25004 		.input	= "Join us now and share the software "
25005 			"Join us now and share the software ",
25006 		.output	= "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
25007 			  "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
25008 			  "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
25009 			  "\x48\x55\x28\xce\x4f\x2b\x29\x07"
25010 			  "\x71\xbc\x08\x2b\x01\x00",
25011 	}, {
25012 		.params = &deflate_comp_params,
25013 		.paramsize = sizeof(deflate_comp_params),
25014 		.inlen	= 191,
25015 		.outlen	= 122,
25016 		.input	= "This document describes a compression method based on the DEFLATE"
25017 			"compression algorithm.  This document defines the application of "
25018 			"the DEFLATE algorithm to the IP Payload Compression Protocol.",
25019 		.output	= "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
25020 			  "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
25021 			  "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
25022 			  "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
25023 			  "\x68\x12\x51\xae\x76\x67\xd6\x27"
25024 			  "\x19\x88\x1a\xde\x85\xab\x21\xf2"
25025 			  "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
25026 			  "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
25027 			  "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
25028 			  "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
25029 			  "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
25030 			  "\x52\x37\xed\x0e\x52\x6b\x59\x02"
25031 			  "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
25032 			  "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
25033 			  "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
25034 			  "\xfa\x02",
25035 	},
25036 };
25037 
25038 static struct pcomp_testvec zlib_decomp_tv_template[] = {
25039 	{
25040 		.params = &deflate_decomp_params,
25041 		.paramsize = sizeof(deflate_decomp_params),
25042 		.inlen	= 122,
25043 		.outlen	= 191,
25044 		.input	= "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
25045 			  "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
25046 			  "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
25047 			  "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
25048 			  "\x68\x12\x51\xae\x76\x67\xd6\x27"
25049 			  "\x19\x88\x1a\xde\x85\xab\x21\xf2"
25050 			  "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
25051 			  "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
25052 			  "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
25053 			  "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
25054 			  "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
25055 			  "\x52\x37\xed\x0e\x52\x6b\x59\x02"
25056 			  "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
25057 			  "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
25058 			  "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
25059 			  "\xfa\x02",
25060 		.output	= "This document describes a compression method based on the DEFLATE"
25061 			"compression algorithm.  This document defines the application of "
25062 			"the DEFLATE algorithm to the IP Payload Compression Protocol.",
25063 	}, {
25064 		.params = &deflate_decomp_params,
25065 		.paramsize = sizeof(deflate_decomp_params),
25066 		.inlen	= 38,
25067 		.outlen	= 70,
25068 		.input	= "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
25069 			  "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
25070 			  "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
25071 			  "\x48\x55\x28\xce\x4f\x2b\x29\x07"
25072 			  "\x71\xbc\x08\x2b\x01\x00",
25073 		.output	= "Join us now and share the software "
25074 			"Join us now and share the software ",
25075 	},
25076 };
25077 
25078 /*
25079  * LZO test vectors (null-terminated strings).
25080  */
25081 #define LZO_COMP_TEST_VECTORS 2
25082 #define LZO_DECOMP_TEST_VECTORS 2
25083 
25084 static struct comp_testvec lzo_comp_tv_template[] = {
25085 	{
25086 		.inlen	= 70,
25087 		.outlen	= 46,
25088 		.input	= "Join us now and share the software "
25089 			"Join us now and share the software ",
25090 		.output	= "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
25091 			"\x73\x20\x6e\x6f\x77\x20\x61\x6e"
25092 			"\x64\x20\x73\x68\x61\x72\x65\x20"
25093 			"\x74\x68\x65\x20\x73\x6f\x66\x74"
25094 			"\x77\x70\x01\x01\x4a\x6f\x69\x6e"
25095 			"\x3d\x88\x00\x11\x00\x00",
25096 	}, {
25097 		.inlen	= 159,
25098 		.outlen	= 133,
25099 		.input	= "This document describes a compression method based on the LZO "
25100 			"compression algorithm.  This document defines the application of "
25101 			"the LZO algorithm used in UBIFS.",
25102 		.output	= "\x00\x2b\x54\x68\x69\x73\x20\x64"
25103 			  "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
25104 			  "\x64\x65\x73\x63\x72\x69\x62\x65"
25105 			  "\x73\x20\x61\x20\x63\x6f\x6d\x70"
25106 			  "\x72\x65\x73\x73\x69\x6f\x6e\x20"
25107 			  "\x6d\x65\x74\x68\x6f\x64\x20\x62"
25108 			  "\x61\x73\x65\x64\x20\x6f\x6e\x20"
25109 			  "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
25110 			  "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
25111 			  "\x69\x74\x68\x6d\x2e\x20\x20\x54"
25112 			  "\x68\x69\x73\x2a\x54\x01\x02\x66"
25113 			  "\x69\x6e\x65\x73\x94\x06\x05\x61"
25114 			  "\x70\x70\x6c\x69\x63\x61\x74\x76"
25115 			  "\x0a\x6f\x66\x88\x02\x60\x09\x27"
25116 			  "\xf0\x00\x0c\x20\x75\x73\x65\x64"
25117 			  "\x20\x69\x6e\x20\x55\x42\x49\x46"
25118 			  "\x53\x2e\x11\x00\x00",
25119 	},
25120 };
25121 
25122 static struct comp_testvec lzo_decomp_tv_template[] = {
25123 	{
25124 		.inlen	= 133,
25125 		.outlen	= 159,
25126 		.input	= "\x00\x2b\x54\x68\x69\x73\x20\x64"
25127 			  "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
25128 			  "\x64\x65\x73\x63\x72\x69\x62\x65"
25129 			  "\x73\x20\x61\x20\x63\x6f\x6d\x70"
25130 			  "\x72\x65\x73\x73\x69\x6f\x6e\x20"
25131 			  "\x6d\x65\x74\x68\x6f\x64\x20\x62"
25132 			  "\x61\x73\x65\x64\x20\x6f\x6e\x20"
25133 			  "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
25134 			  "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
25135 			  "\x69\x74\x68\x6d\x2e\x20\x20\x54"
25136 			  "\x68\x69\x73\x2a\x54\x01\x02\x66"
25137 			  "\x69\x6e\x65\x73\x94\x06\x05\x61"
25138 			  "\x70\x70\x6c\x69\x63\x61\x74\x76"
25139 			  "\x0a\x6f\x66\x88\x02\x60\x09\x27"
25140 			  "\xf0\x00\x0c\x20\x75\x73\x65\x64"
25141 			  "\x20\x69\x6e\x20\x55\x42\x49\x46"
25142 			  "\x53\x2e\x11\x00\x00",
25143 		.output	= "This document describes a compression method based on the LZO "
25144 			"compression algorithm.  This document defines the application of "
25145 			"the LZO algorithm used in UBIFS.",
25146 	}, {
25147 		.inlen	= 46,
25148 		.outlen	= 70,
25149 		.input	= "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
25150 			  "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
25151 			  "\x64\x20\x73\x68\x61\x72\x65\x20"
25152 			  "\x74\x68\x65\x20\x73\x6f\x66\x74"
25153 			  "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
25154 			  "\x3d\x88\x00\x11\x00\x00",
25155 		.output	= "Join us now and share the software "
25156 			"Join us now and share the software ",
25157 	},
25158 };
25159 
25160 /*
25161  * Michael MIC test vectors from IEEE 802.11i
25162  */
25163 #define MICHAEL_MIC_TEST_VECTORS 6
25164 
25165 static struct hash_testvec michael_mic_tv_template[] = {
25166 	{
25167 		.key = "\x00\x00\x00\x00\x00\x00\x00\x00",
25168 		.ksize = 8,
25169 		.plaintext = zeroed_string,
25170 		.psize = 0,
25171 		.digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
25172 	},
25173 	{
25174 		.key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
25175 		.ksize = 8,
25176 		.plaintext = "M",
25177 		.psize = 1,
25178 		.digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
25179 	},
25180 	{
25181 		.key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
25182 		.ksize = 8,
25183 		.plaintext = "Mi",
25184 		.psize = 2,
25185 		.digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
25186 	},
25187 	{
25188 		.key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
25189 		.ksize = 8,
25190 		.plaintext = "Mic",
25191 		.psize = 3,
25192 		.digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
25193 	},
25194 	{
25195 		.key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
25196 		.ksize = 8,
25197 		.plaintext = "Mich",
25198 		.psize = 4,
25199 		.digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
25200 	},
25201 	{
25202 		.key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
25203 		.ksize = 8,
25204 		.plaintext = "Michael",
25205 		.psize = 7,
25206 		.digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
25207 	}
25208 };
25209 
25210 /*
25211  * CRC32C test vectors
25212  */
25213 #define CRC32C_TEST_VECTORS 15
25214 
25215 static struct hash_testvec crc32c_tv_template[] = {
25216 	{
25217 		.psize = 0,
25218 		.digest = "\x00\x00\x00\x00",
25219 	},
25220 	{
25221 		.key = "\x87\xa9\xcb\xed",
25222 		.ksize = 4,
25223 		.psize = 0,
25224 		.digest = "\x78\x56\x34\x12",
25225 	},
25226 	{
25227 		.key = "\xff\xff\xff\xff",
25228 		.ksize = 4,
25229 		.plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
25230 			     "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
25231 			     "\x11\x12\x13\x14\x15\x16\x17\x18"
25232 			     "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
25233 			     "\x21\x22\x23\x24\x25\x26\x27\x28",
25234 		.psize = 40,
25235 		.digest = "\x7f\x15\x2c\x0e",
25236 	},
25237 	{
25238 		.key = "\xff\xff\xff\xff",
25239 		.ksize = 4,
25240 		.plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
25241 			     "\x31\x32\x33\x34\x35\x36\x37\x38"
25242 			     "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
25243 			     "\x41\x42\x43\x44\x45\x46\x47\x48"
25244 			     "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
25245 		.psize = 40,
25246 		.digest = "\xf6\xeb\x80\xe9",
25247 	},
25248 	{
25249 		.key = "\xff\xff\xff\xff",
25250 		.ksize = 4,
25251 		.plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
25252 			     "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
25253 			     "\x61\x62\x63\x64\x65\x66\x67\x68"
25254 			     "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
25255 			     "\x71\x72\x73\x74\x75\x76\x77\x78",
25256 		.psize = 40,
25257 		.digest = "\xed\xbd\x74\xde",
25258 	},
25259 	{
25260 		.key = "\xff\xff\xff\xff",
25261 		.ksize = 4,
25262 		.plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
25263 			     "\x81\x82\x83\x84\x85\x86\x87\x88"
25264 			     "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
25265 			     "\x91\x92\x93\x94\x95\x96\x97\x98"
25266 			     "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
25267 		.psize = 40,
25268 		.digest = "\x62\xc8\x79\xd5",
25269 	},
25270 	{
25271 		.key = "\xff\xff\xff\xff",
25272 		.ksize = 4,
25273 		.plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
25274 			     "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
25275 			     "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
25276 			     "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
25277 			     "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
25278 		.psize = 40,
25279 		.digest = "\xd0\x9a\x97\xba",
25280 	},
25281 	{
25282 		.key = "\xff\xff\xff\xff",
25283 		.ksize = 4,
25284 		.plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
25285 			     "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
25286 			     "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
25287 			     "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
25288 			     "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
25289 		.psize = 40,
25290 		.digest = "\x13\xd9\x29\x2b",
25291 	},
25292 	{
25293 		.key = "\x80\xea\xd3\xf1",
25294 		.ksize = 4,
25295 		.plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
25296 			     "\x31\x32\x33\x34\x35\x36\x37\x38"
25297 			     "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
25298 			     "\x41\x42\x43\x44\x45\x46\x47\x48"
25299 			     "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
25300 		.psize = 40,
25301 		.digest = "\x0c\xb5\xe2\xa2",
25302 	},
25303 	{
25304 		.key = "\xf3\x4a\x1d\x5d",
25305 		.ksize = 4,
25306 		.plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
25307 			     "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
25308 			     "\x61\x62\x63\x64\x65\x66\x67\x68"
25309 			     "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
25310 			     "\x71\x72\x73\x74\x75\x76\x77\x78",
25311 		.psize = 40,
25312 		.digest = "\xd1\x7f\xfb\xa6",
25313 	},
25314 	{
25315 		.key = "\x2e\x80\x04\x59",
25316 		.ksize = 4,
25317 		.plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
25318 			     "\x81\x82\x83\x84\x85\x86\x87\x88"
25319 			     "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
25320 			     "\x91\x92\x93\x94\x95\x96\x97\x98"
25321 			     "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
25322 		.psize = 40,
25323 		.digest = "\x59\x33\xe6\x7a",
25324 	},
25325 	{
25326 		.key = "\xa6\xcc\x19\x85",
25327 		.ksize = 4,
25328 		.plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
25329 			     "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
25330 			     "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
25331 			     "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
25332 			     "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
25333 		.psize = 40,
25334 		.digest = "\xbe\x03\x01\xd2",
25335 	},
25336 	{
25337 		.key = "\x41\xfc\xfe\x2d",
25338 		.ksize = 4,
25339 		.plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
25340 			     "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
25341 			     "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
25342 			     "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
25343 			     "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
25344 		.psize = 40,
25345 		.digest = "\x75\xd3\xc5\x24",
25346 	},
25347 	{
25348 		.key = "\xff\xff\xff\xff",
25349 		.ksize = 4,
25350 		.plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
25351 			     "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
25352 			     "\x11\x12\x13\x14\x15\x16\x17\x18"
25353 			     "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
25354 			     "\x21\x22\x23\x24\x25\x26\x27\x28"
25355 			     "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
25356 			     "\x31\x32\x33\x34\x35\x36\x37\x38"
25357 			     "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
25358 			     "\x41\x42\x43\x44\x45\x46\x47\x48"
25359 			     "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
25360 			     "\x51\x52\x53\x54\x55\x56\x57\x58"
25361 			     "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
25362 			     "\x61\x62\x63\x64\x65\x66\x67\x68"
25363 			     "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
25364 			     "\x71\x72\x73\x74\x75\x76\x77\x78"
25365 			     "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
25366 			     "\x81\x82\x83\x84\x85\x86\x87\x88"
25367 			     "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
25368 			     "\x91\x92\x93\x94\x95\x96\x97\x98"
25369 			     "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
25370 			     "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
25371 			     "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
25372 			     "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
25373 			     "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
25374 			     "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
25375 			     "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
25376 			     "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
25377 			     "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
25378 			     "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
25379 			     "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
25380 		.psize = 240,
25381 		.digest = "\x75\xd3\xc5\x24",
25382 		.np = 2,
25383 		.tap = { 31, 209 }
25384 	}, {
25385 		.key = "\xff\xff\xff\xff",
25386 		.ksize = 4,
25387 		.plaintext =	"\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
25388 				"\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
25389 				"\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
25390 				"\xa1\x38\xcf\x43\xda\x71\x08\x7c"
25391 				"\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
25392 				"\x85\x1c\x90\x27\xbe\x32\xc9\x60"
25393 				"\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
25394 				"\x46\xdd\x74\x0b\x7f\x16\xad\x21"
25395 				"\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
25396 				"\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
25397 				"\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
25398 				"\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
25399 				"\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
25400 				"\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
25401 				"\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
25402 				"\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
25403 				"\x02\x99\x30\xc7\x3b\xd2\x69\x00"
25404 				"\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
25405 				"\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
25406 				"\x58\xef\x63\xfa\x91\x05\x9c\x33"
25407 				"\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
25408 				"\x19\xb0\x47\xde\x52\xe9\x80\x17"
25409 				"\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
25410 				"\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
25411 				"\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
25412 				"\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
25413 				"\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
25414 				"\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
25415 				"\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
25416 				"\x86\x1d\x91\x28\xbf\x33\xca\x61"
25417 				"\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
25418 				"\x47\xde\x75\x0c\x80\x17\xae\x22"
25419 				"\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
25420 				"\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
25421 				"\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
25422 				"\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
25423 				"\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
25424 				"\xd0\x67\xfe\x72\x09\xa0\x14\xab"
25425 				"\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
25426 				"\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
25427 				"\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
25428 				"\x75\x0c\xa3\x17\xae\x45\xdc\x50"
25429 				"\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
25430 				"\x59\xf0\x64\xfb\x92\x06\x9d\x34"
25431 				"\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
25432 				"\x1a\xb1\x48\xdf\x53\xea\x81\x18"
25433 				"\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
25434 				"\xfe\x95\x09\xa0\x37\xce\x42\xd9"
25435 				"\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
25436 				"\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
25437 				"\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
25438 				"\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
25439 				"\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
25440 				"\x87\x1e\x92\x29\xc0\x34\xcb\x62"
25441 				"\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
25442 				"\x48\xdf\x76\x0d\x81\x18\xaf\x23"
25443 				"\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
25444 				"\x2c\xc3\x37\xce\x65\xfc\x70\x07"
25445 				"\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
25446 				"\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
25447 				"\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
25448 				"\xd1\x68\xff\x73\x0a\xa1\x15\xac"
25449 				"\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
25450 				"\xb5\x29\xc0\x57\xee\x62\xf9\x90"
25451 				"\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
25452 				"\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
25453 				"\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
25454 				"\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
25455 				"\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
25456 				"\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
25457 				"\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
25458 				"\xff\x96\x0a\xa1\x38\xcf\x43\xda"
25459 				"\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
25460 				"\xe3\x57\xee\x85\x1c\x90\x27\xbe"
25461 				"\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
25462 				"\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
25463 				"\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
25464 				"\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
25465 				"\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
25466 				"\x49\xe0\x77\x0e\x82\x19\xb0\x24"
25467 				"\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
25468 				"\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
25469 				"\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
25470 				"\x11\x85\x1c\xb3\x27\xbe\x55\xec"
25471 				"\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
25472 				"\xd2\x69\x00\x74\x0b\xa2\x16\xad"
25473 				"\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
25474 				"\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
25475 				"\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
25476 				"\x77\x0e\xa5\x19\xb0\x47\xde\x52"
25477 				"\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
25478 				"\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
25479 				"\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
25480 				"\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
25481 				"\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
25482 				"\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
25483 				"\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
25484 				"\xe4\x58\xef\x86\x1d\x91\x28\xbf"
25485 				"\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
25486 				"\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
25487 				"\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
25488 				"\x89\x20\x94\x2b\xc2\x36\xcd\x64"
25489 				"\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
25490 				"\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
25491 				"\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
25492 				"\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
25493 				"\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
25494 				"\x12\x86\x1d\xb4\x28\xbf\x56\xed"
25495 				"\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
25496 				"\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
25497 				"\x45\xdc\x50\xe7\x7e\x15\x89\x20"
25498 				"\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
25499 				"\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
25500 				"\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
25501 				"\xea\x81\x18\x8c\x23\xba\x2e\xc5"
25502 				"\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
25503 				"\xce\x42\xd9\x70\x07\x7b\x12\xa9"
25504 				"\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
25505 				"\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
25506 				"\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
25507 				"\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
25508 				"\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
25509 				"\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
25510 				"\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
25511 				"\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
25512 				"\x8a\x21\x95\x2c\xc3\x37\xce\x65"
25513 				"\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
25514 				"\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
25515 				"\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
25516 				"\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
25517 				"\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
25518 				"\x13\x87\x1e\xb5\x29\xc0\x57\xee"
25519 				"\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
25520 				"\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
25521 				"\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
25522 				"\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
25523 				"\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
25524 				"\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
25525 				"\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
25526 				"\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
25527 				"\xcf\x43\xda\x71\x08\x7c\x13\xaa"
25528 				"\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
25529 				"\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
25530 				"\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
25531 				"\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
25532 				"\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
25533 				"\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
25534 				"\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
25535 				"\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
25536 				"\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
25537 				"\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
25538 				"\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
25539 				"\xbe\x55\xec\x60\xf7\x8e\x02\x99"
25540 				"\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
25541 				"\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
25542 				"\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
25543 				"\x63\xfa\x91\x05\x9c\x33\xca\x3e"
25544 				"\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
25545 				"\x47\xde\x52\xe9\x80\x17\x8b\x22"
25546 				"\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
25547 				"\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
25548 				"\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
25549 				"\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
25550 				"\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
25551 				"\xd0\x44\xdb\x72\x09\x7d\x14\xab"
25552 				"\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
25553 				"\x91\x28\xbf\x33\xca\x61\xf8\x6c"
25554 				"\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
25555 				"\x75\x0c\x80\x17\xae\x22\xb9\x50"
25556 				"\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
25557 				"\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
25558 				"\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
25559 				"\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
25560 				"\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
25561 				"\xfe\x72\x09\xa0\x14\xab\x42\xd9"
25562 				"\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
25563 				"\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
25564 				"\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
25565 				"\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
25566 				"\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
25567 				"\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
25568 				"\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
25569 				"\x48\xdf\x53\xea\x81\x18\x8c\x23"
25570 				"\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
25571 				"\x09\xa0\x37\xce\x42\xd9\x70\x07"
25572 				"\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
25573 				"\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
25574 				"\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
25575 				"\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
25576 				"\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
25577 				"\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
25578 				"\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
25579 				"\x76\x0d\x81\x18\xaf\x23\xba\x51"
25580 				"\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
25581 				"\x37\xce\x65\xfc\x70\x07\x9e\x12"
25582 				"\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
25583 				"\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
25584 				"\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
25585 				"\xff\x73\x0a\xa1\x15\xac\x43\xda"
25586 				"\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
25587 				"\xc0\x57\xee\x62\xf9\x90\x04\x9b"
25588 				"\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
25589 				"\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
25590 				"\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
25591 				"\x65\xfc\x93\x07\x9e\x35\xcc\x40"
25592 				"\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
25593 				"\x49\xe0\x54\xeb\x82\x19\x8d\x24"
25594 				"\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
25595 				"\x0a\xa1\x38\xcf\x43\xda\x71\x08"
25596 				"\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
25597 				"\xee\x85\x1c\x90\x27\xbe\x32\xc9"
25598 				"\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
25599 				"\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
25600 				"\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
25601 				"\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
25602 				"\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
25603 				"\x77\x0e\x82\x19\xb0\x24\xbb\x52"
25604 				"\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
25605 				"\x38\xcf\x66\xfd\x71\x08\x9f\x13"
25606 				"\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
25607 				"\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
25608 				"\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
25609 				"\x00\x74\x0b\xa2\x16\xad\x44\xdb"
25610 				"\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
25611 				"\xc1\x58\xef\x63\xfa\x91\x05\x9c"
25612 				"\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
25613 				"\xa5\x19\xb0\x47\xde\x52\xe9\x80"
25614 				"\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
25615 				"\x66\xfd\x94\x08\x9f\x36\xcd\x41"
25616 				"\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
25617 				"\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
25618 				"\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
25619 				"\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
25620 				"\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
25621 				"\xef\x86\x1d\x91\x28\xbf\x33\xca"
25622 				"\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
25623 				"\xd3\x47\xde\x75\x0c\x80\x17\xae"
25624 				"\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
25625 				"\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
25626 				"\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
25627 				"\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
25628 				"\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
25629 				"\x39\xd0\x67\xfe\x72\x09\xa0\x14"
25630 				"\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
25631 				"\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
25632 				"\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
25633 				"\x01\x75\x0c\xa3\x17\xae\x45\xdc"
25634 				"\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
25635 				"\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
25636 				"\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
25637 				"\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
25638 				"\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
25639 				"\x67\xfe\x95\x09\xa0\x37\xce\x42"
25640 				"\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
25641 				"\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
25642 				"\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
25643 		.psize = 2048,
25644 		.digest = "\xec\x26\x4d\x95",
25645 	}
25646 };
25647 
25648 /*
25649  * Blakcifn CRC test vectors
25650  */
25651 #define BFIN_CRC_TEST_VECTORS 6
25652 
25653 static struct hash_testvec bfin_crc_tv_template[] = {
25654 	{
25655 		.psize = 0,
25656 		.digest = "\x00\x00\x00\x00",
25657 	},
25658 	{
25659 		.key = "\x87\xa9\xcb\xed",
25660 		.ksize = 4,
25661 		.psize = 0,
25662 		.digest = "\x87\xa9\xcb\xed",
25663 	},
25664 	{
25665 		.key = "\xff\xff\xff\xff",
25666 		.ksize = 4,
25667 		.plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
25668 			     "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
25669 			     "\x11\x12\x13\x14\x15\x16\x17\x18"
25670 			     "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
25671 			     "\x21\x22\x23\x24\x25\x26\x27\x28",
25672 		.psize = 40,
25673 		.digest = "\x84\x0c\x8d\xa2",
25674 	},
25675 	{
25676 		.key = "\xff\xff\xff\xff",
25677 		.ksize = 4,
25678 		.plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
25679 			     "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
25680 			     "\x11\x12\x13\x14\x15\x16\x17\x18"
25681 			     "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
25682 			     "\x21\x22\x23\x24\x25\x26",
25683 		.psize = 38,
25684 		.digest = "\x8c\x58\xec\xb7",
25685 	},
25686 	{
25687 		.key = "\xff\xff\xff\xff",
25688 		.ksize = 4,
25689 		.plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
25690 			     "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
25691 			     "\x11\x12\x13\x14\x15\x16\x17\x18"
25692 			     "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
25693 			     "\x21\x22\x23\x24\x25\x26\x27",
25694 		.psize = 39,
25695 		.digest = "\xdc\x50\x28\x7b",
25696 	},
25697 	{
25698 		.key = "\xff\xff\xff\xff",
25699 		.ksize = 4,
25700 		.plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
25701 			     "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
25702 			     "\x11\x12\x13\x14\x15\x16\x17\x18"
25703 			     "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
25704 			     "\x21\x22\x23\x24\x25\x26\x27\x28"
25705 			     "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
25706 			     "\x31\x32\x33\x34\x35\x36\x37\x38"
25707 			     "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
25708 			     "\x41\x42\x43\x44\x45\x46\x47\x48"
25709 			     "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
25710 			     "\x51\x52\x53\x54\x55\x56\x57\x58"
25711 			     "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
25712 			     "\x61\x62\x63\x64\x65\x66\x67\x68"
25713 			     "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
25714 			     "\x71\x72\x73\x74\x75\x76\x77\x78"
25715 			     "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
25716 			     "\x81\x82\x83\x84\x85\x86\x87\x88"
25717 			     "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
25718 			     "\x91\x92\x93\x94\x95\x96\x97\x98"
25719 			     "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
25720 			     "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
25721 			     "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
25722 			     "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
25723 			     "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
25724 			     "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
25725 			     "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
25726 			     "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
25727 			     "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
25728 			     "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
25729 			     "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
25730 		.psize = 240,
25731 		.digest = "\x10\x19\x4a\x5c",
25732 		.np = 2,
25733 		.tap = { 31, 209 }
25734 	},
25735 
25736 };
25737 
25738 #endif	/* _CRYPTO_TESTMGR_H */
25739