Merge branch 'acpi-ec' into acpi
[platform/kernel/linux-rpi.git] / crypto / testmgr.h
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
29 #define MAX_DIGEST_SIZE         64
30 #define MAX_TAP                 8
31
32 #define MAX_KEYLEN              160
33 #define MAX_IVLEN               32
34
35 struct hash_testvec {
36         /* only used with keyed hash algorithms */
37         const char *key;
38         const char *plaintext;
39         const char *digest;
40         unsigned char tap[MAX_TAP];
41         unsigned short psize;
42         unsigned char np;
43         unsigned char ksize;
44 };
45
46 /*
47  * cipher_testvec:      structure to describe a cipher test
48  * @key:        A pointer to a key used by the test
49  * @klen:       The length of @key
50  * @iv:         A pointer to the IV used by the test
51  * @input:      A pointer to data used as input
52  * @ilen        The length of data in @input
53  * @result:     A pointer to what the test need to produce
54  * @rlen:       The length of data in @result
55  * @fail:       If set to one, the test need to fail
56  * @wk:         Does the test need CRYPTO_TFM_REQ_WEAK_KEY
57  *              ( e.g. test needs to fail due to a weak key )
58  * @np:         numbers of SG to distribute data in (from 1 to MAX_TAP)
59  * @tap:        How to distribute data in @np SGs
60  * @also_non_np:        if set to 1, the test will be also done without
61  *                      splitting data in @np SGs
62  * @fips_skip:  Skip the test vector in FIPS mode
63  */
64
65 struct cipher_testvec {
66         const char *key;
67         const char *iv;
68         const char *iv_out;
69         const char *input;
70         const char *result;
71         unsigned short tap[MAX_TAP];
72         int np;
73         unsigned char also_non_np;
74         bool fail;
75         unsigned char wk; /* weak key flag */
76         unsigned char klen;
77         unsigned short ilen;
78         unsigned short rlen;
79         bool fips_skip;
80 };
81
82 struct aead_testvec {
83         const char *key;
84         const char *iv;
85         const char *input;
86         const char *assoc;
87         const char *result;
88         unsigned char tap[MAX_TAP];
89         unsigned char atap[MAX_TAP];
90         int np;
91         int anp;
92         bool fail;
93         unsigned char novrfy;   /* ccm dec verification failure expected */
94         unsigned char wk; /* weak key flag */
95         unsigned char klen;
96         unsigned short ilen;
97         unsigned short alen;
98         unsigned short rlen;
99 };
100
101 struct cprng_testvec {
102         const char *key;
103         const char *dt;
104         const char *v;
105         const char *result;
106         unsigned char klen;
107         unsigned short dtlen;
108         unsigned short vlen;
109         unsigned short rlen;
110         unsigned short loops;
111 };
112
113 struct drbg_testvec {
114         const unsigned char *entropy;
115         size_t entropylen;
116         const unsigned char *entpra;
117         const unsigned char *entprb;
118         size_t entprlen;
119         const unsigned char *addtla;
120         const unsigned char *addtlb;
121         size_t addtllen;
122         const unsigned char *pers;
123         size_t perslen;
124         const unsigned char *expected;
125         size_t expectedlen;
126 };
127
128 struct akcipher_testvec {
129         const unsigned char *key;
130         const unsigned char *m;
131         const unsigned char *c;
132         unsigned int key_len;
133         unsigned int m_size;
134         unsigned int c_size;
135         bool public_key_vec;
136         bool siggen_sigver_test;
137 };
138
139 struct kpp_testvec {
140         const unsigned char *secret;
141         const unsigned char *b_secret;
142         const unsigned char *b_public;
143         const unsigned char *expected_a_public;
144         const unsigned char *expected_ss;
145         unsigned short secret_size;
146         unsigned short b_secret_size;
147         unsigned short b_public_size;
148         unsigned short expected_a_public_size;
149         unsigned short expected_ss_size;
150         bool genkey;
151 };
152
153 static const char zeroed_string[48];
154
155 /*
156  * RSA test vectors. Borrowed from openSSL.
157  */
158 static const struct akcipher_testvec rsa_tv_template[] = {
159         {
160 #ifndef CONFIG_CRYPTO_FIPS
161         .key =
162         "\x30\x81\x9A" /* sequence of 154 bytes */
163         "\x02\x01\x01" /* version - integer of 1 byte */
164         "\x02\x41" /* modulus - integer of 65 bytes */
165         "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
166         "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
167         "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
168         "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
169         "\xF5"
170         "\x02\x01\x11" /* public key - integer of 1 byte */
171         "\x02\x40" /* private key - integer of 64 bytes */
172         "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
173         "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
174         "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
175         "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
176         "\x02\x01\x00" /* prime1 - integer of 1 byte */
177         "\x02\x01\x00" /* prime2 - integer of 1 byte */
178         "\x02\x01\x00" /* exponent1 - integer of 1 byte */
179         "\x02\x01\x00" /* exponent2 - integer of 1 byte */
180         "\x02\x01\x00", /* coefficient - integer of 1 byte */
181         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
182         .c =
183         "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
184         "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
185         "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
186         "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
187         .key_len = 157,
188         .m_size = 8,
189         .c_size = 64,
190         }, {
191         .key =
192         "\x30\x82\x01\x1D" /* sequence of 285 bytes */
193         "\x02\x01\x01" /* version - integer of 1 byte */
194         "\x02\x81\x81" /* modulus - integer of 129 bytes */
195         "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
196         "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
197         "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
198         "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
199         "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
200         "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
201         "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
202         "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
203         "\xCB"
204         "\x02\x01\x11" /* public key - integer of 1 byte */
205         "\x02\x81\x81"  /* private key - integer of 129 bytes */
206         "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
207         "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
208         "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
209         "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
210         "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
211         "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
212         "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
213         "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
214         "\xC1"
215         "\x02\x01\x00" /* prime1 - integer of 1 byte */
216         "\x02\x01\x00" /* prime2 - integer of 1 byte */
217         "\x02\x01\x00" /* exponent1 - integer of 1 byte */
218         "\x02\x01\x00" /* exponent2 - integer of 1 byte */
219         "\x02\x01\x00", /* coefficient - integer of 1 byte */
220         .key_len = 289,
221         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
222         .c =
223         "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
224         "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
225         "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
226         "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
227         "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
228         "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
229         "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
230         "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
231         .m_size = 8,
232         .c_size = 128,
233         }, {
234 #endif
235         .key =
236         "\x30\x82\x02\x1F" /* sequence of 543 bytes */
237         "\x02\x01\x01" /* version - integer of 1 byte */
238         "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
239         "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
240         "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
241         "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
242         "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
243         "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
244         "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
245         "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
246         "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
247         "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
248         "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
249         "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
250         "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
251         "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
252         "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
253         "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
254         "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
255         "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
256         "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
257         "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
258         "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
259         "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
260         "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
261         "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
262         "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
263         "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
264         "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
265         "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
266         "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
267         "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
268         "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
269         "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
270         "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
271         "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
272         "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
273         "\x02\x01\x00" /* prime1 - integer of 1 byte */
274         "\x02\x01\x00" /* prime2 - integer of 1 byte */
275         "\x02\x01\x00" /* exponent1 - integer of 1 byte */
276         "\x02\x01\x00" /* exponent2 - integer of 1 byte */
277         "\x02\x01\x00", /* coefficient - integer of 1 byte */
278         .key_len = 547,
279         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
280         .c =
281         "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
282         "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
283         "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
284         "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
285         "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
286         "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
287         "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
288         "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
289         "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
290         "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
291         "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
292         "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
293         "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
294         "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
295         "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
296         "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
297         .m_size = 8,
298         .c_size = 256,
299         }, {
300         .key =
301         "\x30\x82\x01\x09" /* sequence of 265 bytes */
302         "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
303         "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
304         "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
305         "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
306         "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
307         "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
308         "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
309         "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
310         "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
311         "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
312         "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
313         "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
314         "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
315         "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
316         "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
317         "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
318         "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
319         "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
320         .key_len = 269,
321         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
322         .c =
323         "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
324         "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
325         "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
326         "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
327         "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
328         "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
329         "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
330         "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
331         "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
332         "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
333         "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
334         "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
335         "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
336         "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
337         "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
338         "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
339         .m_size = 8,
340         .c_size = 256,
341         .public_key_vec = true,
342 #ifndef CONFIG_CRYPTO_FIPS
343         }, {
344         .key =
345         "\x30\x82\x09\x29" /* sequence of 2345 bytes */
346         "\x02\x01\x00" /* version integer of 1 byte */
347         "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
348         "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
349         "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
350         "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
351         "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
352         "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
353         "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
354         "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
355         "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
356         "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
357         "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
358         "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
359         "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
360         "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
361         "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
362         "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
363         "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
364         "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
365         "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
366         "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
367         "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
368         "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
369         "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
370         "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
371         "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
372         "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
373         "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
374         "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
375         "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
376         "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
377         "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
378         "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
379         "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
380         "\x9D"
381         "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
382         "\x02\x82\x02\x00" /* private key integer of 512 bytes */
383         "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
384         "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
385         "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
386         "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
387         "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
388         "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
389         "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
390         "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
391         "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
392         "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
393         "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
394         "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
395         "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
396         "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
397         "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
398         "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
399         "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
400         "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
401         "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
402         "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
403         "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
404         "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
405         "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
406         "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
407         "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
408         "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
409         "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
410         "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
411         "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
412         "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
413         "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
414         "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
415         "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
416         "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
417         "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
418         "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
419         "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
420         "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
421         "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
422         "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
423         "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
424         "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
425         "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
426         "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
427         "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
428         "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
429         "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
430         "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
431         "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
432         "\xAB"
433         "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
434         "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
435         "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
436         "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
437         "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
438         "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
439         "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
440         "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
441         "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
442         "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
443         "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
444         "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
445         "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
446         "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
447         "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
448         "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
449         "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
450         "\xD7"
451         "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
452         "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
453         "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
454         "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
455         "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
456         "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
457         "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
458         "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
459         "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
460         "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
461         "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
462         "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
463         "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
464         "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
465         "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
466         "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
467         "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
468         "\x6F"
469         "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
470         "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
471         "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
472         "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
473         "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
474         "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
475         "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
476         "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
477         "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
478         "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
479         "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
480         "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
481         "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
482         "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
483         "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
484         "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
485         "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
486         "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
487         "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
488         "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
489         "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
490         "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
491         "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
492         "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
493         "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
494         "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
495         "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
496         "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
497         "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
498         "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
499         "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
500         "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
501         "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
502         "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
503         "\x3D",
504         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
505         .c =
506         "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
507         "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
508         "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
509         "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
510         "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
511         "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
512         "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
513         "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
514         "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
515         "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
516         "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
517         "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
518         "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
519         "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
520         "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
521         "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
522         "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
523         "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
524         "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
525         "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
526         "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
527         "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
528         "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
529         "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
530         "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
531         "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
532         "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
533         "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
534         "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
535         "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
536         "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
537         "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
538         .key_len = 2349,
539         .m_size = 8,
540         .c_size = 512,
541 #endif
542         }
543 };
544
545 /*
546  * PKCS#1 RSA test vectors. Obtained from CAVS testing.
547  */
548 static const struct akcipher_testvec pkcs1pad_rsa_tv_template[] = {
549         {
550         .key =
551         "\x30\x82\x03\x1f\x02\x01\x10\x02\x82\x01\x01\x00\xd7\x1e\x77\x82"
552         "\x8c\x92\x31\xe7\x69\x02\xa2\xd5\x5c\x78\xde\xa2\x0c\x8f\xfe\x28"
553         "\x59\x31\xdf\x40\x9c\x60\x61\x06\xb9\x2f\x62\x40\x80\x76\xcb\x67"
554         "\x4a\xb5\x59\x56\x69\x17\x07\xfa\xf9\x4c\xbd\x6c\x37\x7a\x46\x7d"
555         "\x70\xa7\x67\x22\xb3\x4d\x7a\x94\xc3\xba\x4b\x7c\x4b\xa9\x32\x7c"
556         "\xb7\x38\x95\x45\x64\xa4\x05\xa8\x9f\x12\x7c\x4e\xc6\xc8\x2d\x40"
557         "\x06\x30\xf4\x60\xa6\x91\xbb\x9b\xca\x04\x79\x11\x13\x75\xf0\xae"
558         "\xd3\x51\x89\xc5\x74\xb9\xaa\x3f\xb6\x83\xe4\x78\x6b\xcd\xf9\x5c"
559         "\x4c\x85\xea\x52\x3b\x51\x93\xfc\x14\x6b\x33\x5d\x30\x70\xfa\x50"
560         "\x1b\x1b\x38\x81\x13\x8d\xf7\xa5\x0c\xc0\x8e\xf9\x63\x52\x18\x4e"
561         "\xa9\xf9\xf8\x5c\x5d\xcd\x7a\x0d\xd4\x8e\x7b\xee\x91\x7b\xad\x7d"
562         "\xb4\x92\xd5\xab\x16\x3b\x0a\x8a\xce\x8e\xde\x47\x1a\x17\x01\x86"
563         "\x7b\xab\x99\xf1\x4b\x0c\x3a\x0d\x82\x47\xc1\x91\x8c\xbb\x2e\x22"
564         "\x9e\x49\x63\x6e\x02\xc1\xc9\x3a\x9b\xa5\x22\x1b\x07\x95\xd6\x10"
565         "\x02\x50\xfd\xfd\xd1\x9b\xbe\xab\xc2\xc0\x74\xd7\xec\x00\xfb\x11"
566         "\x71\xcb\x7a\xdc\x81\x79\x9f\x86\x68\x46\x63\x82\x4d\xb7\xf1\xe6"
567         "\x16\x6f\x42\x63\xf4\x94\xa0\xca\x33\xcc\x75\x13\x02\x82\x01\x00"
568         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
569         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
570         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
571         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
572         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
573         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
574         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
575         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
576         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
577         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
578         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
579         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
580         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
581         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
582         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
583         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"
584         "\x02\x82\x01\x00\x62\xb5\x60\x31\x4f\x3f\x66\x16\xc1\x60\xac\x47"
585         "\x2a\xff\x6b\x69\x00\x4a\xb2\x5c\xe1\x50\xb9\x18\x74\xa8\xe4\xdc"
586         "\xa8\xec\xcd\x30\xbb\xc1\xc6\xe3\xc6\xac\x20\x2a\x3e\x5e\x8b\x12"
587         "\xe6\x82\x08\x09\x38\x0b\xab\x7c\xb3\xcc\x9c\xce\x97\x67\xdd\xef"
588         "\x95\x40\x4e\x92\xe2\x44\xe9\x1d\xc1\x14\xfd\xa9\xb1\xdc\x71\x9c"
589         "\x46\x21\xbd\x58\x88\x6e\x22\x15\x56\xc1\xef\xe0\xc9\x8d\xe5\x80"
590         "\x3e\xda\x7e\x93\x0f\x52\xf6\xf5\xc1\x91\x90\x9e\x42\x49\x4f\x8d"
591         "\x9c\xba\x38\x83\xe9\x33\xc2\x50\x4f\xec\xc2\xf0\xa8\xb7\x6e\x28"
592         "\x25\x56\x6b\x62\x67\xfe\x08\xf1\x56\xe5\x6f\x0e\x99\xf1\xe5\x95"
593         "\x7b\xef\xeb\x0a\x2c\x92\x97\x57\x23\x33\x36\x07\xdd\xfb\xae\xf1"
594         "\xb1\xd8\x33\xb7\x96\x71\x42\x36\xc5\xa4\xa9\x19\x4b\x1b\x52\x4c"
595         "\x50\x69\x91\xf0\x0e\xfa\x80\x37\x4b\xb5\xd0\x2f\xb7\x44\x0d\xd4"
596         "\xf8\x39\x8d\xab\x71\x67\x59\x05\x88\x3d\xeb\x48\x48\x33\x88\x4e"
597         "\xfe\xf8\x27\x1b\xd6\x55\x60\x5e\x48\xb7\x6d\x9a\xa8\x37\xf9\x7a"
598         "\xde\x1b\xcd\x5d\x1a\x30\xd4\xe9\x9e\x5b\x3c\x15\xf8\x9c\x1f\xda"
599         "\xd1\x86\x48\x55\xce\x83\xee\x8e\x51\xc7\xde\x32\x12\x47\x7d\x46"
600         "\xb8\x35\xdf\x41\x02\x01\x30\x02\x01\x30\x02\x01\x30\x02\x01\x30"
601         "\x02\x01\x30",
602         .key_len = 804,
603         /*
604          * m is SHA256 hash of following message:
605          * "\x49\x41\xbe\x0a\x0c\xc9\xf6\x35\x51\xe4\x27\x56\x13\x71\x4b\xd0"
606          * "\x36\x92\x84\x89\x1b\xf8\x56\x4a\x72\x61\x14\x69\x4f\x5e\x98\xa5"
607          * "\x80\x5a\x37\x51\x1f\xd8\xf5\xb5\x63\xfc\xf4\xb1\xbb\x4d\x33\xa3"
608          * "\x1e\xb9\x75\x8b\x9c\xda\x7e\x6d\x3a\x77\x85\xf7\xfc\x4e\xe7\x64"
609          * "\x43\x10\x19\xa0\x59\xae\xe0\xad\x4b\xd3\xc4\x45\xf7\xb1\xc2\xc1"
610          * "\x65\x01\x41\x39\x5b\x45\x47\xed\x2b\x51\xed\xe3\xd0\x09\x10\xd2"
611          * "\x39\x6c\x4a\x3f\xe5\xd2\x20\xe6\xb0\x71\x7d\x5b\xed\x26\x60\xf1"
612          * "\xb4\x73\xd1\xdb\x7d\xc4\x19\x91\xee\xf6\x32\x76\xf2\x19\x7d\xb7"
613          */
614         .m =
615         "\x3e\xc8\xa1\x26\x20\x54\x44\x52\x48\x0d\xe5\x66\xf3\xb3\xf5\x04"
616         "\xbe\x10\xa8\x48\x94\x22\x2d\xdd\xba\x7a\xb4\x76\x8d\x79\x98\x89",
617         .m_size = 32,
618         .c =
619         "\xc7\xa3\x98\xeb\x43\xd1\x08\xc2\x3d\x78\x45\x04\x70\xc9\x01\xee"
620         "\xf8\x85\x37\x7c\x0b\xf9\x19\x70\x5c\x45\x7b\x2f\x3a\x0b\xb7\x8b"
621         "\xc4\x0d\x7b\x3a\x64\x0b\x0f\xdb\x78\xa9\x0b\xfd\x8d\x82\xa4\x86"
622         "\x39\xbf\x21\xb8\x84\xc4\xce\x9f\xc2\xe8\xb6\x61\x46\x17\xb9\x4e"
623         "\x0b\x57\x05\xb4\x4f\xf9\x9c\x93\x2d\x9b\xd5\x48\x1d\x80\x12\xef"
624         "\x3a\x77\x7f\xbc\xb5\x8e\x2b\x6b\x7c\xfc\x9f\x8c\x9d\xa2\xc4\x85"
625         "\xb0\x87\xe9\x17\x9b\xb6\x23\x62\xd2\xa9\x9f\x57\xe8\xf7\x04\x45"
626         "\x24\x3a\x45\xeb\xeb\x6a\x08\x8e\xaf\xc8\xa0\x84\xbc\x5d\x13\x38"
627         "\xf5\x17\x8c\xa3\x96\x9b\xa9\x38\x8d\xf0\x35\xad\x32\x8a\x72\x5b"
628         "\xdf\x21\xab\x4b\x0e\xa8\x29\xbb\x61\x54\xbf\x05\xdb\x84\x84\xde"
629         "\xdd\x16\x36\x31\xda\xf3\x42\x6d\x7a\x90\x22\x9b\x11\x29\xa6\xf8"
630         "\x30\x61\xda\xd3\x8b\x54\x1e\x42\xd1\x47\x1d\x6f\xd1\xcd\x42\x0b"
631         "\xd1\xe4\x15\x85\x7e\x08\xd6\x59\x64\x4c\x01\x34\x91\x92\x26\xe8"
632         "\xb0\x25\x8c\xf8\xf4\xfa\x8b\xc9\x31\x33\x76\x72\xfb\x64\x92\x9f"
633         "\xda\x62\x8d\xe1\x2a\x71\x91\x43\x40\x61\x3c\x5a\xbe\x86\xfc\x5b"
634         "\xe6\xf9\xa9\x16\x31\x1f\xaf\x25\x6d\xc2\x4a\x23\x6e\x63\x02\xa2",
635         .c_size = 256,
636         .siggen_sigver_test = true,
637         }
638 };
639
640 static const struct kpp_testvec dh_tv_template[] = {
641         {
642         .secret =
643 #ifdef __LITTLE_ENDIAN
644         "\x01\x00" /* type */
645         "\x11\x02" /* len */
646         "\x00\x01\x00\x00" /* key_size */
647         "\x00\x01\x00\x00" /* p_size */
648         "\x01\x00\x00\x00" /* g_size */
649 #else
650         "\x00\x01" /* type */
651         "\x02\x11" /* len */
652         "\x00\x00\x01\x00" /* key_size */
653         "\x00\x00\x01\x00" /* p_size */
654         "\x00\x00\x00\x01" /* g_size */
655 #endif
656         /* xa */
657         "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
658         "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
659         "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
660         "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
661         "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
662         "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
663         "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
664         "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
665         "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
666         "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
667         "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
668         "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
669         "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
670         "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
671         "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
672         "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
673         /* p */
674         "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
675         "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
676         "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
677         "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
678         "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
679         "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
680         "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
681         "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
682         "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
683         "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
684         "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
685         "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
686         "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
687         "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
688         "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
689         "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
690         /* g */
691         "\x02",
692         .b_public =
693         "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
694         "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
695         "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
696         "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
697         "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
698         "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
699         "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
700         "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
701         "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
702         "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
703         "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
704         "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
705         "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
706         "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
707         "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
708         "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
709         .expected_a_public =
710         "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
711         "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
712         "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
713         "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
714         "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
715         "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
716         "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
717         "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
718         "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
719         "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
720         "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
721         "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
722         "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
723         "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
724         "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
725         "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
726         .expected_ss =
727         "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
728         "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
729         "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
730         "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
731         "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
732         "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
733         "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
734         "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
735         "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
736         "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
737         "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
738         "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
739         "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
740         "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
741         "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
742         "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
743         .secret_size = 529,
744         .b_public_size = 256,
745         .expected_a_public_size = 256,
746         .expected_ss_size = 256,
747         },
748         {
749         .secret =
750 #ifdef __LITTLE_ENDIAN
751         "\x01\x00" /* type */
752         "\x11\x02" /* len */
753         "\x00\x01\x00\x00" /* key_size */
754         "\x00\x01\x00\x00" /* p_size */
755         "\x01\x00\x00\x00" /* g_size */
756 #else
757         "\x00\x01" /* type */
758         "\x02\x11" /* len */
759         "\x00\x00\x01\x00" /* key_size */
760         "\x00\x00\x01\x00" /* p_size */
761         "\x00\x00\x00\x01" /* g_size */
762 #endif
763         /* xa */
764         "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
765         "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
766         "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
767         "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
768         "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
769         "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
770         "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
771         "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
772         "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
773         "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
774         "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
775         "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
776         "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
777         "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
778         "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
779         "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
780         /* p */
781         "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
782         "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
783         "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
784         "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
785         "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
786         "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
787         "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
788         "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
789         "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
790         "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
791         "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
792         "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
793         "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
794         "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
795         "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
796         "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
797         /* g */
798         "\x02",
799         .b_public =
800         "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
801         "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
802         "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
803         "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
804         "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
805         "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
806         "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
807         "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
808         "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
809         "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
810         "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
811         "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
812         "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
813         "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
814         "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
815         "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
816         .expected_a_public =
817         "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
818         "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
819         "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
820         "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
821         "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
822         "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
823         "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
824         "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
825         "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
826         "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
827         "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
828         "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
829         "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
830         "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
831         "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
832         "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
833         .expected_ss =
834         "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
835         "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
836         "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
837         "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
838         "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
839         "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
840         "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
841         "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
842         "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
843         "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
844         "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
845         "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
846         "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
847         "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
848         "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
849         "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
850         .secret_size = 529,
851         .b_public_size = 256,
852         .expected_a_public_size = 256,
853         .expected_ss_size = 256,
854         }
855 };
856
857 static const struct kpp_testvec ecdh_tv_template[] = {
858         {
859 #ifndef CONFIG_CRYPTO_FIPS
860         .secret =
861 #ifdef __LITTLE_ENDIAN
862         "\x02\x00" /* type */
863         "\x20\x00" /* len */
864         "\x01\x00" /* curve_id */
865         "\x18\x00" /* key_size */
866 #else
867         "\x00\x02" /* type */
868         "\x00\x20" /* len */
869         "\x00\x01" /* curve_id */
870         "\x00\x18" /* key_size */
871 #endif
872         "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
873         "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
874         "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
875         .b_public =
876         "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
877         "\x7a\x99\x75\x64\x36\x13\x9a\x94"
878         "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
879         "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
880         "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
881         "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
882         .expected_a_public =
883         "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
884         "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
885         "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
886         "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
887         "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
888         "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
889         .expected_ss =
890         "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
891         "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
892         "\x99\x80\x81\x28\xaf\xc5\x51\x74",
893         .secret_size = 32,
894         .b_public_size = 48,
895         .expected_a_public_size = 48,
896         .expected_ss_size = 24
897         }, {
898 #endif
899         .secret =
900 #ifdef __LITTLE_ENDIAN
901         "\x02\x00" /* type */
902         "\x28\x00" /* len */
903         "\x02\x00" /* curve_id */
904         "\x20\x00" /* key_size */
905 #else
906         "\x00\x02" /* type */
907         "\x00\x28" /* len */
908         "\x00\x02" /* curve_id */
909         "\x00\x20" /* key_size */
910 #endif
911         "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
912         "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
913         "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
914         "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
915         .expected_a_public =
916         "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
917         "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
918         "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
919         "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
920         "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
921         "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
922         "\x6a\x02\x6e\x41\x87\x68\x38\x77"
923         "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
924         .expected_ss =
925         "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
926         "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
927         "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
928         "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
929         .b_public =
930         "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
931         "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
932         "\x29\xb2\x47\x03\x19\xab\xdd\x34"
933         "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
934         "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
935         "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
936         "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
937         "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
938         .secret_size = 40,
939         .b_public_size = 64,
940         .expected_a_public_size = 64,
941         .expected_ss_size = 32
942         }, {
943         .secret =
944 #ifdef __LITTLE_ENDIAN
945         "\x02\x00" /* type */
946         "\x08\x00" /* len */
947         "\x02\x00" /* curve_id */
948         "\x00\x00", /* key_size */
949 #else
950         "\x00\x02" /* type */
951         "\x00\x08" /* len */
952         "\x00\x02" /* curve_id */
953         "\x00\x00", /* key_size */
954 #endif
955         .b_secret =
956 #ifdef __LITTLE_ENDIAN
957         "\x02\x00" /* type */
958         "\x28\x00" /* len */
959         "\x02\x00" /* curve_id */
960         "\x20\x00" /* key_size */
961 #else
962         "\x00\x02" /* type */
963         "\x00\x28" /* len */
964         "\x00\x02" /* curve_id */
965         "\x00\x20" /* key_size */
966 #endif
967         "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
968         "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
969         "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
970         "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
971         .b_public =
972         "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
973         "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
974         "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
975         "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
976         "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
977         "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
978         "\x6a\x02\x6e\x41\x87\x68\x38\x77"
979         "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
980         .secret_size = 8,
981         .b_secret_size = 40,
982         .b_public_size = 64,
983         .expected_a_public_size = 64,
984         .expected_ss_size = 32,
985         .genkey = true,
986         }
987 };
988
989 /*
990  * MD4 test vectors from RFC1320
991  */
992 static const struct hash_testvec md4_tv_template[] = {
993         {
994                 .plaintext = "",
995                 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
996                           "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
997         }, {
998                 .plaintext = "a",
999                 .psize  = 1,
1000                 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
1001                           "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
1002         }, {
1003                 .plaintext = "abc",
1004                 .psize  = 3,
1005                 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
1006                           "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
1007         }, {
1008                 .plaintext = "message digest",
1009                 .psize  = 14,
1010                 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
1011                         "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
1012         }, {
1013                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1014                 .psize  = 26,
1015                 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
1016                           "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
1017                 .np     = 2,
1018                 .tap    = { 13, 13 },
1019         }, {
1020                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1021                 .psize  = 62,
1022                 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
1023                           "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
1024         }, {
1025                 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
1026                            "45678901234567890",
1027                 .psize  = 80,
1028                 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
1029                           "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
1030         },
1031 };
1032
1033 static const struct hash_testvec sha3_224_tv_template[] = {
1034         {
1035                 .plaintext = "",
1036                 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
1037                                 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
1038                                 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
1039                                 "\x5b\x5a\x6b\xc7",
1040         }, {
1041                 .plaintext = "a",
1042                 .psize  = 1,
1043                 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
1044                                 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
1045                                 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
1046                                 "\x48\x2b\x6a\x8b",
1047         }, {
1048                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1049                                 "jklmklmnlmnomnopnopq",
1050                 .psize  = 56,
1051                 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
1052                                 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
1053                                 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
1054                                 "\xd0\xfc\xce\x33",
1055         },
1056 };
1057
1058 static const struct hash_testvec sha3_256_tv_template[] = {
1059         {
1060                 .plaintext = "",
1061                 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
1062                                 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
1063                                 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
1064                                 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
1065         }, {
1066                 .plaintext = "a",
1067                 .psize  = 1,
1068                 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
1069                                 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
1070                                 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
1071                                 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
1072         }, {
1073                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1074                              "jklmklmnlmnomnopnopq",
1075                 .psize  = 56,
1076                 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
1077                                 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
1078                                 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
1079                                 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
1080         },
1081 };
1082
1083
1084 static const struct hash_testvec sha3_384_tv_template[] = {
1085         {
1086                 .plaintext = "",
1087                 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
1088                                 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
1089                                 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
1090                                 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
1091                                 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
1092                                 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
1093         }, {
1094                 .plaintext = "a",
1095                 .psize  = 1,
1096                 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
1097                                 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
1098                                 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
1099                                 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
1100                                 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
1101                                 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
1102         }, {
1103                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1104                              "jklmklmnlmnomnopnopq",
1105                 .psize  = 56,
1106                 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
1107                                 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
1108                                 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
1109                                 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
1110                                 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
1111                                 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
1112         },
1113 };
1114
1115
1116 static const struct hash_testvec sha3_512_tv_template[] = {
1117         {
1118                 .plaintext = "",
1119                 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
1120                                 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
1121                                 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
1122                                 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
1123                                 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
1124                                 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
1125                                 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
1126                                 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
1127         }, {
1128                 .plaintext = "a",
1129                 .psize  = 1,
1130                 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1131                                 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1132                                 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1133                                 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1134                                 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1135                                 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1136                                 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1137                                 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1138         }, {
1139                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1140                              "jklmklmnlmnomnopnopq",
1141                 .psize  = 56,
1142                 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1143                                 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1144                                 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1145                                 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1146                                 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1147                                 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1148                                 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1149                                 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
1150         },
1151 };
1152
1153
1154 /*
1155  * MD5 test vectors from RFC1321
1156  */
1157 static const struct hash_testvec md5_tv_template[] = {
1158         {
1159                 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1160                           "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1161         }, {
1162                 .plaintext = "a",
1163                 .psize  = 1,
1164                 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1165                           "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1166         }, {
1167                 .plaintext = "abc",
1168                 .psize  = 3,
1169                 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1170                           "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1171         }, {
1172                 .plaintext = "message digest",
1173                 .psize  = 14,
1174                 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1175                           "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1176         }, {
1177                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1178                 .psize  = 26,
1179                 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1180                           "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
1181                 .np     = 2,
1182                 .tap    = {13, 13}
1183         }, {
1184                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1185                 .psize  = 62,
1186                 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1187                           "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1188         }, {
1189                 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1190                            "345678901234567890",
1191                 .psize  = 80,
1192                 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1193                           "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1194         }
1195
1196 };
1197
1198 /*
1199  * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1200  */
1201 static const struct hash_testvec rmd128_tv_template[] = {
1202         {
1203                 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1204                           "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1205         }, {
1206                 .plaintext = "a",
1207                 .psize  = 1,
1208                 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1209                           "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1210         }, {
1211                 .plaintext = "abc",
1212                 .psize  = 3,
1213                 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1214                           "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1215         }, {
1216                 .plaintext = "message digest",
1217                 .psize  = 14,
1218                 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1219                           "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1220         }, {
1221                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1222                 .psize  = 26,
1223                 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1224                           "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1225         }, {
1226                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1227                              "fghijklmnopqrstuvwxyz0123456789",
1228                 .psize  = 62,
1229                 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1230                           "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1231         }, {
1232                 .plaintext = "1234567890123456789012345678901234567890"
1233                              "1234567890123456789012345678901234567890",
1234                 .psize  = 80,
1235                 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1236                           "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1237         }, {
1238                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1239                              "hijkijkljklmklmnlmnomnopnopq",
1240                 .psize  = 56,
1241                 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1242                           "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
1243                 .np     = 2,
1244                 .tap    = { 28, 28 },
1245         }, {
1246                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1247                              "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1248                              "lmnopqrsmnopqrstnopqrstu",
1249                 .psize  = 112,
1250                 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1251                           "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1252         }, {
1253                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1254                 .psize  = 32,
1255                 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1256                           "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1257         }
1258 };
1259
1260 /*
1261  * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1262  */
1263 static const struct hash_testvec rmd160_tv_template[] = {
1264         {
1265                 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1266                           "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1267         }, {
1268                 .plaintext = "a",
1269                 .psize  = 1,
1270                 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1271                           "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1272         }, {
1273                 .plaintext = "abc",
1274                 .psize  = 3,
1275                 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1276                           "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1277         }, {
1278                 .plaintext = "message digest",
1279                 .psize  = 14,
1280                 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1281                           "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1282         }, {
1283                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1284                 .psize  = 26,
1285                 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1286                           "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1287         }, {
1288                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1289                              "fghijklmnopqrstuvwxyz0123456789",
1290                 .psize  = 62,
1291                 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
1292                           "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
1293         }, {
1294                 .plaintext = "1234567890123456789012345678901234567890"
1295                              "1234567890123456789012345678901234567890",
1296                 .psize  = 80,
1297                 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
1298                           "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
1299         }, {
1300                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1301                              "hijkijkljklmklmnlmnomnopnopq",
1302                 .psize  = 56,
1303                 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
1304                           "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
1305                 .np     = 2,
1306                 .tap    = { 28, 28 },
1307         }, {
1308                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1309                              "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1310                              "lmnopqrsmnopqrstnopqrstu",
1311                 .psize  = 112,
1312                 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
1313                           "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
1314         }, {
1315                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1316                 .psize  = 32,
1317                 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
1318                           "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
1319         }
1320 };
1321
1322 /*
1323  * RIPEMD-256 test vectors
1324  */
1325 static const struct hash_testvec rmd256_tv_template[] = {
1326         {
1327                 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
1328                           "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
1329                           "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
1330                           "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
1331         }, {
1332                 .plaintext = "a",
1333                 .psize  = 1,
1334                 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
1335                           "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
1336                           "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
1337                           "\xcd\x88\x3a\x91\x34\x69\x29\x25",
1338         }, {
1339                 .plaintext = "abc",
1340                 .psize  = 3,
1341                 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
1342                           "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
1343                           "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
1344                           "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
1345         }, {
1346                 .plaintext = "message digest",
1347                 .psize  = 14,
1348                 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
1349                           "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
1350                           "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
1351                           "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
1352         }, {
1353                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1354                 .psize  = 26,
1355                 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
1356                           "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
1357                           "\x78\x96\x11\x8a\x51\x97\x96\x87"
1358                           "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
1359         }, {
1360                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1361                              "fghijklmnopqrstuvwxyz0123456789",
1362                 .psize  = 62,
1363                 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
1364                           "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
1365                           "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
1366                           "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
1367         }, {
1368                 .plaintext = "1234567890123456789012345678901234567890"
1369                              "1234567890123456789012345678901234567890",
1370                 .psize  = 80,
1371                 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
1372                           "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
1373                           "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
1374                           "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
1375         }, {
1376                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1377                              "hijkijkljklmklmnlmnomnopnopq",
1378                 .psize  = 56,
1379                 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
1380                           "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
1381                           "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
1382                           "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
1383                 .np     = 2,
1384                 .tap    = { 28, 28 },
1385         }
1386 };
1387
1388 /*
1389  * RIPEMD-320 test vectors
1390  */
1391 static const struct hash_testvec rmd320_tv_template[] = {
1392         {
1393                 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
1394                           "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
1395                           "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
1396                           "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
1397         }, {
1398                 .plaintext = "a",
1399                 .psize  = 1,
1400                 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
1401                           "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
1402                           "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
1403                           "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
1404         }, {
1405                 .plaintext = "abc",
1406                 .psize  = 3,
1407                 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
1408                           "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
1409                           "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
1410                           "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
1411         }, {
1412                 .plaintext = "message digest",
1413                 .psize  = 14,
1414                 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
1415                           "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
1416                           "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
1417                           "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
1418         }, {
1419                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1420                 .psize  = 26,
1421                 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
1422                           "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
1423                           "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
1424                           "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
1425         }, {
1426                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1427                              "fghijklmnopqrstuvwxyz0123456789",
1428                 .psize  = 62,
1429                 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
1430                           "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
1431                           "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
1432                           "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
1433         }, {
1434                 .plaintext = "1234567890123456789012345678901234567890"
1435                              "1234567890123456789012345678901234567890",
1436                 .psize  = 80,
1437                 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
1438                           "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
1439                           "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
1440                           "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
1441         }, {
1442                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1443                              "hijkijkljklmklmnlmnomnopnopq",
1444                 .psize  = 56,
1445                 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
1446                           "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
1447                           "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
1448                           "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
1449                 .np     = 2,
1450                 .tap    = { 28, 28 },
1451         }
1452 };
1453
1454 static const struct hash_testvec crct10dif_tv_template[] = {
1455         {
1456                 .plaintext      = "abc",
1457                 .psize          = 3,
1458                 .digest         = (u8 *)(u16 []){ 0x443b },
1459         }, {
1460                 .plaintext      = "1234567890123456789012345678901234567890"
1461                                   "123456789012345678901234567890123456789",
1462                 .psize          = 79,
1463                 .digest         = (u8 *)(u16 []){ 0x4b70 },
1464                 .np             = 2,
1465                 .tap            = { 63, 16 },
1466         }, {
1467                 .plaintext      = "abcdddddddddddddddddddddddddddddddddddddddd"
1468                                   "ddddddddddddd",
1469                 .psize          = 56,
1470                 .digest         = (u8 *)(u16 []){ 0x9ce3 },
1471                 .np             = 8,
1472                 .tap            = { 1, 2, 28, 7, 6, 5, 4, 3 },
1473         }, {
1474                 .plaintext      = "1234567890123456789012345678901234567890"
1475                                   "1234567890123456789012345678901234567890"
1476                                   "1234567890123456789012345678901234567890"
1477                                   "1234567890123456789012345678901234567890"
1478                                   "1234567890123456789012345678901234567890"
1479                                   "1234567890123456789012345678901234567890"
1480                                   "1234567890123456789012345678901234567890"
1481                                   "123456789012345678901234567890123456789",
1482                 .psize          = 319,
1483                 .digest         = (u8 *)(u16 []){ 0x44c6 },
1484         }, {
1485                 .plaintext      = "1234567890123456789012345678901234567890"
1486                                   "1234567890123456789012345678901234567890"
1487                                   "1234567890123456789012345678901234567890"
1488                                   "1234567890123456789012345678901234567890"
1489                                   "1234567890123456789012345678901234567890"
1490                                   "1234567890123456789012345678901234567890"
1491                                   "1234567890123456789012345678901234567890"
1492                                   "123456789012345678901234567890123456789",
1493                 .psize          = 319,
1494                 .digest         = (u8 *)(u16 []){ 0x44c6 },
1495                 .np             = 4,
1496                 .tap            = { 1, 255, 57, 6 },
1497         }
1498 };
1499
1500 /* Example vectors below taken from
1501  * http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
1502  *
1503  * The rest taken from
1504  * https://github.com/adamws/oscca-sm3
1505  */
1506 static const struct hash_testvec sm3_tv_template[] = {
1507         {
1508                 .plaintext = "",
1509                 .psize = 0,
1510                 .digest = (u8 *)(u8 []) {
1511                         0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F,
1512                         0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F,
1513                         0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74,
1514                         0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B }
1515         }, {
1516                 .plaintext = "a",
1517                 .psize = 1,
1518                 .digest = (u8 *)(u8 []) {
1519                         0x62, 0x34, 0x76, 0xAC, 0x18, 0xF6, 0x5A, 0x29,
1520                         0x09, 0xE4, 0x3C, 0x7F, 0xEC, 0x61, 0xB4, 0x9C,
1521                         0x7E, 0x76, 0x4A, 0x91, 0xA1, 0x8C, 0xCB, 0x82,
1522                         0xF1, 0x91, 0x7A, 0x29, 0xC8, 0x6C, 0x5E, 0x88 }
1523         }, {
1524                 /* A.1. Example 1 */
1525                 .plaintext = "abc",
1526                 .psize = 3,
1527                 .digest = (u8 *)(u8 []) {
1528                         0x66, 0xC7, 0xF0, 0xF4, 0x62, 0xEE, 0xED, 0xD9,
1529                         0xD1, 0xF2, 0xD4, 0x6B, 0xDC, 0x10, 0xE4, 0xE2,
1530                         0x41, 0x67, 0xC4, 0x87, 0x5C, 0xF2, 0xF7, 0xA2,
1531                         0x29, 0x7D, 0xA0, 0x2B, 0x8F, 0x4B, 0xA8, 0xE0 }
1532         }, {
1533                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1534                 .psize = 26,
1535                 .digest = (u8 *)(u8 []) {
1536                         0xB8, 0x0F, 0xE9, 0x7A, 0x4D, 0xA2, 0x4A, 0xFC,
1537                         0x27, 0x75, 0x64, 0xF6, 0x6A, 0x35, 0x9E, 0xF4,
1538                         0x40, 0x46, 0x2A, 0xD2, 0x8D, 0xCC, 0x6D, 0x63,
1539                         0xAD, 0xB2, 0x4D, 0x5C, 0x20, 0xA6, 0x15, 0x95 }
1540         }, {
1541                 /* A.1. Example 2 */
1542                 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdab"
1543                              "cdabcdabcdabcdabcd",
1544                 .psize = 64,
1545                 .digest = (u8 *)(u8 []) {
1546                         0xDE, 0xBE, 0x9F, 0xF9, 0x22, 0x75, 0xB8, 0xA1,
1547                         0x38, 0x60, 0x48, 0x89, 0xC1, 0x8E, 0x5A, 0x4D,
1548                         0x6F, 0xDB, 0x70, 0xE5, 0x38, 0x7E, 0x57, 0x65,
1549                         0x29, 0x3D, 0xCB, 0xA3, 0x9C, 0x0C, 0x57, 0x32 }
1550         }, {
1551                 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
1552                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
1553                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
1554                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
1555                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
1556                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
1557                              "abcdabcdabcdabcdabcdabcdabcdabcd",
1558                 .psize = 256,
1559                 .digest = (u8 *)(u8 []) {
1560                         0xB9, 0x65, 0x76, 0x4C, 0x8B, 0xEB, 0xB0, 0x91,
1561                         0xC7, 0x60, 0x2B, 0x74, 0xAF, 0xD3, 0x4E, 0xEF,
1562                         0xB5, 0x31, 0xDC, 0xCB, 0x4E, 0x00, 0x76, 0xD9,
1563                         0xB7, 0xCD, 0x81, 0x31, 0x99, 0xB4, 0x59, 0x71 }
1564         }
1565 };
1566
1567 /*
1568  * SHA1 test vectors  from from FIPS PUB 180-1
1569  * Long vector from CAVS 5.0
1570  */
1571 static const struct hash_testvec sha1_tv_template[] = {
1572         {
1573                 .plaintext = "",
1574                 .psize  = 0,
1575                 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
1576                           "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
1577         }, {
1578                 .plaintext = "abc",
1579                 .psize  = 3,
1580                 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
1581                           "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
1582         }, {
1583                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1584                 .psize  = 56,
1585                 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
1586                           "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
1587                 .np     = 2,
1588                 .tap    = { 28, 28 }
1589         }, {
1590                 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
1591                              "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
1592                              "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
1593                              "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
1594                              "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
1595                              "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
1596                              "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
1597                              "\x72\x28\x26\xc0\x66\x86\x9e\xda"
1598                              "\xcd\x73\xb2\x54\x80\x35\x18\x58"
1599                              "\x13\xe2\x26\x34\xa9\xda\x44\x00"
1600                              "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
1601                              "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
1602                              "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
1603                              "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
1604                              "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
1605                              "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
1606                              "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
1607                              "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
1608                              "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
1609                              "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
1610                              "\x5a\x90\x11",
1611                 .psize  = 163,
1612                 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
1613                           "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
1614                 .np     = 4,
1615                 .tap    = { 63, 64, 31, 5 }
1616         }, {
1617                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1618                 .psize  = 64,
1619                 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
1620                           "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
1621         }, {
1622                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1623                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1624                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1625                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1626                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1627                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1628                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1629                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1630                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1631                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1632                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1633                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1634                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1635                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1636                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1637                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1638                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1639                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1640                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1641                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1642                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1643                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1644                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1645                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1646                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1647                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1648                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1649                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1650                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1651                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1652                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1653                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1654                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1655                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1656                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1657                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1658                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1659                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1660                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1661                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1662                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1663                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1664                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1665                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1666                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1667                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1668                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1669                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1670                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1671                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1672                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1673                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1674                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1675                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1676                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1677                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1678                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1679                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1680                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1681                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1682                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1683                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1684                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1685                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1686                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1687                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1688                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1689                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1690                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1691                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1692                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1693                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1694                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1695                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1696                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1697                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1698                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1699                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1700                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1701                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1702                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1703                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1704                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1705                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1706                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1707                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1708                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1709                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1710                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1711                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1712                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1713                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1714                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1715                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1716                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1717                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1718                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1719                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1720                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1721                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1722                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1723                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1724                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1725                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1726                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1727                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1728                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1729                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1730                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1731                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1732                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1733                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1734                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1735                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1736                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1737                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1738                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1739                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1740                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1741                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1742                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1743                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1744                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1745                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1746                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1747                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1748                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1749                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1750                 .psize     = 1023,
1751                 .digest    = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
1752                              "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
1753                              "\x30\xd6\xc9\x85",
1754         }
1755 };
1756
1757
1758 /*
1759  * SHA224 test vectors from from FIPS PUB 180-2
1760  */
1761 static const struct hash_testvec sha224_tv_template[] = {
1762         {
1763                 .plaintext = "",
1764                 .psize  = 0,
1765                 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
1766                           "\x47\x61\x02\xbb\x28\x82\x34\xc4"
1767                           "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
1768                           "\xc5\xb3\xe4\x2f",
1769         }, {
1770                 .plaintext = "abc",
1771                 .psize  = 3,
1772                 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
1773                           "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
1774                           "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
1775                           "\xE3\x6C\x9D\xA7",
1776         }, {
1777                 .plaintext =
1778                 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1779                 .psize  = 56,
1780                 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
1781                           "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
1782                           "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
1783                           "\x52\x52\x25\x25",
1784                 .np     = 2,
1785                 .tap    = { 28, 28 }
1786         }, {
1787                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1788                 .psize  = 64,
1789                 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
1790                           "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
1791                           "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
1792                           "\xef\x3b\xcb\x0e",
1793         }, {
1794                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1795                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1796                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1797                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1798                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1799                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1800                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1801                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1802                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1803                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1804                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1805                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1806                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1807                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1808                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1809                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1810                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1811                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1812                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1813                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1814                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1815                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1816                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1817                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1818                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1819                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1820                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1821                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1822                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1823                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1824                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1825                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1826                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1827                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1828                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1829                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1830                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1831                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1832                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1833                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1834                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1835                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1836                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1837                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1838                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1839                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1840                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1841                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1842                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1843                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1844                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1845                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1846                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1847                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1848                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1849                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1850                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1851                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1852                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1853                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1854                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1855                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1856                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1857                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1858                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1859                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1860                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1861                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1862                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1863                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1864                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1865                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1866                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1867                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1868                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1869                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1870                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1871                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1872                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1873                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1874                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1875                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1876                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1877                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1878                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1879                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1880                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1881                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1882                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1883                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1884                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1885                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1886                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1887                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1888                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1889                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1890                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1891                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1892                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1893                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1894                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1895                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1896                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1897                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1898                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1899                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1900                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1901                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1902                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1903                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1904                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1905                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1906                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1907                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1908                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1909                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1910                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1911                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1912                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1913                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1914                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1915                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1916                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1917                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1918                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1919                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1920                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1921                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1922                 .psize     = 1023,
1923                 .digest    = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
1924                              "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
1925                              "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
1926                              "\xe6\xf9\x4f\xcc",
1927         }
1928 };
1929
1930 /*
1931  * SHA256 test vectors from from NIST
1932  */
1933 static const struct hash_testvec sha256_tv_template[] = {
1934         {
1935                 .plaintext = "",
1936                 .psize  = 0,
1937                 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
1938                           "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
1939                           "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
1940                           "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
1941         }, {
1942                 .plaintext = "abc",
1943                 .psize  = 3,
1944                 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
1945                           "\x41\x41\x40\xde\x5d\xae\x22\x23"
1946                           "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
1947                           "\xb4\x10\xff\x61\xf2\x00\x15\xad",
1948         }, {
1949                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1950                 .psize  = 56,
1951                 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
1952                           "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
1953                           "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
1954                           "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
1955                 .np     = 2,
1956                 .tap    = { 28, 28 }
1957         }, {
1958                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1959                 .psize  = 64,
1960                 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
1961                           "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
1962                           "\xd6\xff\x94\xa3\x72\x91\x85\x66"
1963                           "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
1964         }, {
1965                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1966                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1967                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1968                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1969                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1970                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1971                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1972                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1973                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1974                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1975                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1976                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1977                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1978                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1979                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1980                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1981                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1982                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1983                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1984                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1985                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1986                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1987                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1988                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1989                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1990                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1991                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1992                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1993                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1994                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1995                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1996                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1997                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1998                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1999                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2000                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2001                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2002                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2003                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2004                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2005                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2006                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2007                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2008                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2009                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2010                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2011                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2012                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2013                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2014                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2015                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2016                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2017                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2018                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2019                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2020                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2021                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2022                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2023                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2024                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2025                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2026                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2027                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2028                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2029                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2030                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2031                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2032                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2033                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2034                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2035                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2036                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2037                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2038                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2039                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2040                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2041                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2042                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2043                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2044                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2045                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2046                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2047                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2048                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2049                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2050                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2051                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2052                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2053                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2054                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2055                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2056                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2057                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2058                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2059                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2060                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2061                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2062                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2063                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2064                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2065                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2066                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2067                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2068                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2069                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2070                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2071                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2072                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2073                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2074                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2075                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2076                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2077                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2078                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2079                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2080                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2081                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2082                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2083                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2084                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2085                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2086                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2087                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2088                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2089                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2090                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2091                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2092                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2093                 .psize     = 1023,
2094                 .digest    = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
2095                              "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
2096                              "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
2097                              "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
2098         }
2099 };
2100
2101 /*
2102  * SHA384 test vectors from from NIST and kerneli
2103  */
2104 static const struct hash_testvec sha384_tv_template[] = {
2105         {
2106                 .plaintext = "",
2107                 .psize  = 0,
2108                 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
2109                           "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
2110                           "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
2111                           "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
2112                           "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
2113                           "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
2114         }, {
2115                 .plaintext= "abc",
2116                 .psize  = 3,
2117                 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
2118                           "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
2119                           "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
2120                           "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
2121                           "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
2122                           "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
2123         }, {
2124                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2125                 .psize  = 56,
2126                 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
2127                           "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
2128                           "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
2129                           "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
2130                           "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
2131                           "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
2132         }, {
2133                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
2134                            "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
2135                 .psize  = 112,
2136                 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
2137                           "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
2138                           "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
2139                           "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
2140                           "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
2141                           "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
2142         }, {
2143                 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
2144                            "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
2145                 .psize  = 104,
2146                 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
2147                           "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
2148                           "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
2149                           "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
2150                           "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
2151                           "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
2152                 .np     = 4,
2153                 .tap    = { 26, 26, 26, 26 }
2154         }, {
2155                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2156                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2157                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2158                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2159                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2160                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2161                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2162                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2163                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2164                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2165                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2166                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2167                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2168                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2169                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2170                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2171                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2172                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2173                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2174                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2175                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2176                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2177                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2178                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2179                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2180                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2181                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2182                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2183                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2184                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2185                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2186                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2187                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2188                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2189                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2190                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2191                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2192                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2193                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2194                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2195                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2196                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2197                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2198                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2199                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2200                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2201                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2202                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2203                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2204                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2205                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2206                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2207                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2208                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2209                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2210                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2211                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2212                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2213                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2214                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2215                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2216                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2217                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2218                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2219                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2220                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2221                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2222                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2223                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2224                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2225                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2226                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2227                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2228                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2229                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2230                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2231                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2232                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2233                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2234                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2235                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2236                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2237                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2238                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2239                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2240                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2241                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2242                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2243                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2244                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2245                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2246                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2247                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2248                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2249                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2250                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2251                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2252                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2253                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2254                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2255                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2256                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2257                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2258                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2259                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2260                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2261                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2262                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2263                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2264                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2265                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2266                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2267                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2268                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2269                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2270                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2271                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2272                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2273                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2274                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2275                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2276                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2277                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2278                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2279                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2280                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2281                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2282                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2283                 .psize     = 1023,
2284                 .digest    = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
2285                              "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
2286                              "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
2287                              "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
2288                              "\x75\x29\x62\x83\xae\x3f\x17\xab"
2289                              "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
2290         }
2291 };
2292
2293 /*
2294  * SHA512 test vectors from from NIST and kerneli
2295  */
2296 static const struct hash_testvec sha512_tv_template[] = {
2297         {
2298                 .plaintext = "",
2299                 .psize  = 0,
2300                 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
2301                           "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
2302                           "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
2303                           "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
2304                           "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
2305                           "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
2306                           "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
2307                           "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
2308         }, {
2309                 .plaintext = "abc",
2310                 .psize  = 3,
2311                 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
2312                           "\xcc\x41\x73\x49\xae\x20\x41\x31"
2313                           "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
2314                           "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
2315                           "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
2316                           "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
2317                           "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
2318                           "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
2319         }, {
2320                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2321                 .psize  = 56,
2322                 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
2323                           "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
2324                           "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
2325                           "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
2326                           "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
2327                           "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
2328                           "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
2329                           "\x54\xec\x63\x12\x38\xca\x34\x45",
2330         }, {
2331                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
2332                            "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
2333                 .psize  = 112,
2334                 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
2335                           "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
2336                           "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
2337                           "\x72\x99\xae\xad\xb6\x88\x90\x18"
2338                           "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
2339                           "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
2340                           "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
2341                           "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
2342         }, {
2343                 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
2344                            "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
2345                 .psize  = 104,
2346                 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
2347                           "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
2348                           "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
2349                           "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
2350                           "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
2351                           "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
2352                           "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
2353                           "\xed\xb4\x19\x87\x23\x28\x50\xc9",
2354                 .np     = 4,
2355                 .tap    = { 26, 26, 26, 26 }
2356         }, {
2357                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2358                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2359                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2360                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2361                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2362                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2363                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2364                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2365                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2366                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2367                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2368                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2369                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2370                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2371                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2372                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2373                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2374                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2375                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2376                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2377                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2378                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2379                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2380                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2381                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2382                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2383                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2384                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2385                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2386                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2387                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2388                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2389                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2390                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2391                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2392                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2393                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2394                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2395                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2396                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2397                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2398                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2399                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2400                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2401                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2402                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2403                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2404                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2405                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2406                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2407                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2408                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2409                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2410                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2411                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2412                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2413                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2414                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2415                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2416                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2417                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2418                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2419                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2420                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2421                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2422                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2423                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2424                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2425                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2426                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2427                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2428                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2429                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2430                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2431                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2432                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2433                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2434                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2435                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2436                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2437                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2438                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2439                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2440                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2441                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2442                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2443                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2444                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2445                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2446                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2447                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2448                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2449                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2450                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2451                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2452                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2453                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2454                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2455                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2456                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2457                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2458                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2459                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2460                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2461                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2462                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2463                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2464                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2465                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2466                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2467                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2468                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2469                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2470                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2471                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2472                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2473                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2474                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2475                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2476                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2477                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2478                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2479                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2480                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2481                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2482                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2483                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2484                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2485                 .psize     = 1023,
2486                 .digest    = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
2487                              "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
2488                              "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
2489                              "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
2490                              "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
2491                              "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
2492                              "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
2493                              "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
2494         }
2495 };
2496
2497
2498 /*
2499  * WHIRLPOOL test vectors from Whirlpool package
2500  * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
2501  * submission
2502  */
2503 static const struct hash_testvec wp512_tv_template[] = {
2504         {
2505                 .plaintext = "",
2506                 .psize  = 0,
2507                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2508                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2509                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2510                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2511                           "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2512                           "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
2513                           "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
2514                           "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
2515
2516
2517         }, {
2518                 .plaintext = "a",
2519                 .psize  = 1,
2520                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2521                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2522                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2523                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2524                           "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2525                           "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
2526                           "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
2527                           "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
2528         }, {
2529                 .plaintext = "abc",
2530                 .psize  = 3,
2531                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2532                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2533                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2534                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2535                           "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2536                           "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
2537                           "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
2538                           "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
2539         }, {
2540                 .plaintext = "message digest",
2541                 .psize  = 14,
2542                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2543                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2544                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2545                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2546                           "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2547                           "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
2548                           "\x92\xED\x92\x00\x52\x83\x8F\x33"
2549                           "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
2550         }, {
2551                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2552                 .psize  = 26,
2553                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2554                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2555                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2556                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2557                           "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2558                           "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
2559                           "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
2560                           "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
2561         }, {
2562                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2563                            "abcdefghijklmnopqrstuvwxyz0123456789",
2564                 .psize  = 62,
2565                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2566                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2567                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2568                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2569                           "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2570                           "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
2571                           "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
2572                           "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
2573         }, {
2574                 .plaintext = "1234567890123456789012345678901234567890"
2575                            "1234567890123456789012345678901234567890",
2576                 .psize  = 80,
2577                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2578                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2579                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2580                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2581                           "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2582                           "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
2583                           "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
2584                           "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
2585         }, {
2586                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2587                 .psize  = 32,
2588                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2589                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2590                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2591                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2592                           "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2593                           "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
2594                           "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
2595                           "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
2596         },
2597 };
2598
2599 static const struct hash_testvec wp384_tv_template[] = {
2600         {
2601                 .plaintext = "",
2602                 .psize  = 0,
2603                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2604                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2605                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2606                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2607                           "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2608                           "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
2609
2610
2611         }, {
2612                 .plaintext = "a",
2613                 .psize  = 1,
2614                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2615                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2616                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2617                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2618                           "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2619                           "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
2620         }, {
2621                 .plaintext = "abc",
2622                 .psize  = 3,
2623                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2624                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2625                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2626                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2627                           "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2628                           "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
2629         }, {
2630                 .plaintext = "message digest",
2631                 .psize  = 14,
2632                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2633                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2634                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2635                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2636                           "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2637                           "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
2638         }, {
2639                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2640                 .psize  = 26,
2641                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2642                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2643                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2644                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2645                           "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2646                           "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
2647         }, {
2648                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2649                            "abcdefghijklmnopqrstuvwxyz0123456789",
2650                 .psize  = 62,
2651                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2652                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2653                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2654                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2655                           "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2656                           "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
2657         }, {
2658                 .plaintext = "1234567890123456789012345678901234567890"
2659                            "1234567890123456789012345678901234567890",
2660                 .psize  = 80,
2661                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2662                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2663                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2664                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2665                           "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2666                           "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
2667         }, {
2668                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2669                 .psize  = 32,
2670                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2671                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2672                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2673                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2674                           "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2675                           "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
2676         },
2677 };
2678
2679 static const struct hash_testvec wp256_tv_template[] = {
2680         {
2681                 .plaintext = "",
2682                 .psize  = 0,
2683                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2684                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2685                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2686                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
2687
2688
2689         }, {
2690                 .plaintext = "a",
2691                 .psize  = 1,
2692                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2693                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2694                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2695                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
2696         }, {
2697                 .plaintext = "abc",
2698                 .psize  = 3,
2699                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2700                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2701                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2702                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
2703         }, {
2704                 .plaintext = "message digest",
2705                 .psize  = 14,
2706                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2707                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2708                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2709                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
2710         }, {
2711                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2712                 .psize  = 26,
2713                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2714                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2715                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2716                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
2717         }, {
2718                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2719                            "abcdefghijklmnopqrstuvwxyz0123456789",
2720                 .psize  = 62,
2721                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2722                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2723                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2724                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
2725         }, {
2726                 .plaintext = "1234567890123456789012345678901234567890"
2727                            "1234567890123456789012345678901234567890",
2728                 .psize  = 80,
2729                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2730                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2731                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2732                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
2733         }, {
2734                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2735                 .psize  = 32,
2736                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2737                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2738                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2739                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
2740         },
2741 };
2742
2743 /*
2744  * TIGER test vectors from Tiger website
2745  */
2746 static const struct hash_testvec tgr192_tv_template[] = {
2747         {
2748                 .plaintext = "",
2749                 .psize  = 0,
2750                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2751                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2752                           "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
2753         }, {
2754                 .plaintext = "abc",
2755                 .psize  = 3,
2756                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2757                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2758                           "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
2759         }, {
2760                 .plaintext = "Tiger",
2761                 .psize  = 5,
2762                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2763                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2764                           "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
2765         }, {
2766                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2767                 .psize  = 64,
2768                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2769                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2770                           "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
2771         }, {
2772                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2773                 .psize  = 64,
2774                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2775                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2776                           "\x57\x89\x65\x65\x97\x5f\x91\x97",
2777         }, {
2778                 .plaintext = "Tiger - A Fast New Hash Function, "
2779                            "by Ross Anderson and Eli Biham, "
2780                            "proceedings of Fast Software Encryption 3, "
2781                            "Cambridge, 1996.",
2782                 .psize  = 125,
2783                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2784                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2785                           "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
2786         },
2787 };
2788
2789 static const struct hash_testvec tgr160_tv_template[] = {
2790         {
2791                 .plaintext = "",
2792                 .psize  = 0,
2793                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2794                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2795                           "\xf3\x73\xde\x2d",
2796         }, {
2797                 .plaintext = "abc",
2798                 .psize  = 3,
2799                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2800                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2801                           "\x93\x5f\x7b\x95",
2802         }, {
2803                 .plaintext = "Tiger",
2804                 .psize  = 5,
2805                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2806                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2807                           "\x37\x79\x0c\x11",
2808         }, {
2809                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2810                 .psize  = 64,
2811                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2812                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2813                           "\xb5\x86\x44\x50",
2814         }, {
2815                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2816                 .psize  = 64,
2817                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2818                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2819                           "\x57\x89\x65\x65",
2820         }, {
2821                 .plaintext = "Tiger - A Fast New Hash Function, "
2822                            "by Ross Anderson and Eli Biham, "
2823                            "proceedings of Fast Software Encryption 3, "
2824                            "Cambridge, 1996.",
2825                 .psize  = 125,
2826                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2827                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2828                           "\xdd\x68\x15\x1d",
2829         },
2830 };
2831
2832 static const struct hash_testvec tgr128_tv_template[] = {
2833         {
2834                 .plaintext = "",
2835                 .psize  = 0,
2836                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2837                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
2838         }, {
2839                 .plaintext = "abc",
2840                 .psize  = 3,
2841                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2842                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
2843         }, {
2844                 .plaintext = "Tiger",
2845                 .psize  = 5,
2846                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2847                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
2848         }, {
2849                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2850                 .psize  = 64,
2851                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2852                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
2853         }, {
2854                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2855                 .psize  = 64,
2856                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2857                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
2858         }, {
2859                 .plaintext = "Tiger - A Fast New Hash Function, "
2860                            "by Ross Anderson and Eli Biham, "
2861                            "proceedings of Fast Software Encryption 3, "
2862                            "Cambridge, 1996.",
2863                 .psize  = 125,
2864                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2865                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
2866         },
2867 };
2868
2869 static const struct hash_testvec ghash_tv_template[] =
2870 {
2871         {
2872                 .key    = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
2873                           "\xff\xca\xff\x95\xf8\x30\xf0\x61",
2874                 .ksize  = 16,
2875                 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2876                              "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
2877                 .psize  = 16,
2878                 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2879                           "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
2880         }, {
2881                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2882                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2883                 .ksize  = 16,
2884                 .plaintext = "what do ya want for nothing?",
2885                 .psize  = 28,
2886                 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
2887                           "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
2888                 .np     = 2,
2889                 .tap    = {14, 14}
2890         }, {
2891                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2892                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2893                 .ksize  = 16,
2894                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2895                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2896                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2897                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2898                 .psize  = 50,
2899                 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
2900                           "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
2901         }, {
2902                 .key    = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2903                           "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
2904                 .ksize  = 16,
2905                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2906                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2907                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2908                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2909                 .psize  = 50,
2910                 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
2911                           "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
2912         }, {
2913                 .key    = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2914                           "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
2915                 .ksize  = 16,
2916                 .plaintext = "Test With Truncation",
2917                 .psize  = 20,
2918                 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
2919                           "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
2920         }, {
2921                 .key    = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
2922                         "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
2923                 .ksize  = 16,
2924                 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
2925                         "\x65\x72\x20\x4c\x61\x75\x73\x63"
2926                         "\x68\x65\x6e\x20\x75\x6e\x64\x20"
2927                         "\x53\x74\x61\x75\x6e\x65\x6e\x20"
2928                         "\x73\x65\x69\x20\x73\x74\x69\x6c"
2929                         "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
2930                         "\x69\x6e\x20\x74\x69\x65\x66\x74"
2931                         "\x69\x65\x66\x65\x73\x20\x4c\x65"
2932                         "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
2933                         "\x73\x20\x64\x75\x20\x77\x65\x69"
2934                         "\xc3\x9f\x74\x20\x77\x61\x73\x20"
2935                         "\x64\x65\x72\x20\x57\x69\x6e\x64"
2936                         "\x20\x64\x69\x72\x20\x77\x69\x6c"
2937                         "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
2938                         "\x63\x68\x20\x64\x69\x65\x20\x42"
2939                         "\x69\x72\x6b\x65\x6e\x20\x62\x65"
2940                         "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
2941                         "\x64\x20\x77\x65\x6e\x6e\x20\x64"
2942                         "\x69\x72\x20\x65\x69\x6e\x6d\x61"
2943                         "\x6c\x20\x64\x61\x73\x20\x53\x63"
2944                         "\x68\x77\x65\x69\x67\x65\x6e\x20"
2945                         "\x73\x70\x72\x61\x63\x68\x2c\x0a"
2946                         "\x6c\x61\x73\x73\x20\x64\x65\x69"
2947                         "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
2948                         "\x20\x62\x65\x73\x69\x65\x67\x65"
2949                         "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
2950                         "\x20\x48\x61\x75\x63\x68\x65\x20"
2951                         "\x67\x69\x62\x74\x20\x64\x69\x63"
2952                         "\x68\x2c\x20\x67\x69\x62\x20\x6e"
2953                         "\x61\x63\x68\x2c\x0a\x65\x72\x20"
2954                         "\x77\x69\x72\x64\x20\x64\x69\x63"
2955                         "\x68\x20\x6c\x69\x65\x62\x65\x6e"
2956                         "\x20\x75\x6e\x64\x20\x77\x69\x65"
2957                         "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
2958                         "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
2959                         "\x65\x69\x6e\x65\x20\x53\x65\x65"
2960                         "\x6c\x65\x20\x73\x65\x69\x74\x20"
2961                         "\x77\x65\x69\x74\x2c\x20\x73\x65"
2962                         "\x69\x20\x77\x65\x69\x74\x2c\x0a"
2963                         "\x64\x61\x73\x73\x20\x64\x69\x72"
2964                         "\x20\x64\x61\x73\x20\x4c\x65\x62"
2965                         "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
2966                         "\x67\x65\x2c\x0a\x62\x72\x65\x69"
2967                         "\x74\x65\x20\x64\x69\x63\x68\x20"
2968                         "\x77\x69\x65\x20\x65\x69\x6e\x20"
2969                         "\x46\x65\x69\x65\x72\x6b\x6c\x65"
2970                         "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
2971                         "\x20\x64\x69\x65\x20\x73\x69\x6e"
2972                         "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
2973                         "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
2974                 .psize  = 400,
2975                 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
2976                         "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
2977         },
2978 };
2979
2980 /*
2981  * HMAC-MD5 test vectors from RFC2202
2982  * (These need to be fixed to not use strlen).
2983  */
2984 static const struct hash_testvec hmac_md5_tv_template[] =
2985 {
2986         {
2987                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2988                 .ksize  = 16,
2989                 .plaintext = "Hi There",
2990                 .psize  = 8,
2991                 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
2992                           "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
2993         }, {
2994                 .key    = "Jefe",
2995                 .ksize  = 4,
2996                 .plaintext = "what do ya want for nothing?",
2997                 .psize  = 28,
2998                 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
2999                           "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
3000                 .np     = 2,
3001                 .tap    = {14, 14}
3002         }, {
3003                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3004                 .ksize  = 16,
3005                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3006                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3007                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3008                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3009                 .psize  = 50,
3010                 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
3011                           "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
3012         }, {
3013                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3014                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3015                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3016                 .ksize  = 25,
3017                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3018                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3019                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3020                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3021                 .psize  = 50,
3022                 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
3023                           "\x3a\x75\x16\x47\x46\xff\xaa\x79",
3024         }, {
3025                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3026                 .ksize  = 16,
3027                 .plaintext = "Test With Truncation",
3028                 .psize  = 20,
3029                 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
3030                           "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
3031         }, {
3032                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3033                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3034                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3035                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3036                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3037                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3038                         "\xaa\xaa",
3039                 .ksize  = 80,
3040                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3041                 .psize  = 54,
3042                 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
3043                           "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
3044         }, {
3045                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3046                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3047                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3048                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3049                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3050                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3051                         "\xaa\xaa",
3052                 .ksize  = 80,
3053                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3054                            "Block-Size Data",
3055                 .psize  = 73,
3056                 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
3057                           "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
3058         },
3059 };
3060
3061 /*
3062  * HMAC-RIPEMD128 test vectors from RFC2286
3063  */
3064 static const struct hash_testvec hmac_rmd128_tv_template[] = {
3065         {
3066                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3067                 .ksize  = 16,
3068                 .plaintext = "Hi There",
3069                 .psize  = 8,
3070                 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
3071                           "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
3072         }, {
3073                 .key    = "Jefe",
3074                 .ksize  = 4,
3075                 .plaintext = "what do ya want for nothing?",
3076                 .psize  = 28,
3077                 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
3078                           "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
3079                 .np     = 2,
3080                 .tap    = { 14, 14 },
3081         }, {
3082                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3083                 .ksize  = 16,
3084                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3085                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3086                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3087                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3088                 .psize  = 50,
3089                 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
3090                           "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
3091         }, {
3092                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3093                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3094                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3095                 .ksize  = 25,
3096                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3097                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3098                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3099                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3100                 .psize  = 50,
3101                 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
3102                           "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
3103         }, {
3104                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3105                 .ksize  = 16,
3106                 .plaintext = "Test With Truncation",
3107                 .psize  = 20,
3108                 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
3109                           "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
3110         }, {
3111                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3112                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3113                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3114                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3115                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3116                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3117                         "\xaa\xaa",
3118                 .ksize  = 80,
3119                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3120                 .psize  = 54,
3121                 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
3122                           "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
3123         }, {
3124                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3125                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3126                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3127                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3128                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3129                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3130                         "\xaa\xaa",
3131                 .ksize  = 80,
3132                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3133                            "Block-Size Data",
3134                 .psize  = 73,
3135                 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
3136                           "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
3137         },
3138 };
3139
3140 /*
3141  * HMAC-RIPEMD160 test vectors from RFC2286
3142  */
3143 static const struct hash_testvec hmac_rmd160_tv_template[] = {
3144         {
3145                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3146                 .ksize  = 20,
3147                 .plaintext = "Hi There",
3148                 .psize  = 8,
3149                 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
3150                           "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
3151         }, {
3152                 .key    = "Jefe",
3153                 .ksize  = 4,
3154                 .plaintext = "what do ya want for nothing?",
3155                 .psize  = 28,
3156                 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
3157                           "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
3158                 .np     = 2,
3159                 .tap    = { 14, 14 },
3160         }, {
3161                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3162                 .ksize  = 20,
3163                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3164                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3165                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3166                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3167                 .psize  = 50,
3168                 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
3169                           "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
3170         }, {
3171                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3172                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3173                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3174                 .ksize  = 25,
3175                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3176                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3177                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3178                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3179                 .psize  = 50,
3180                 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
3181                           "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
3182         }, {
3183                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3184                 .ksize  = 20,
3185                 .plaintext = "Test With Truncation",
3186                 .psize  = 20,
3187                 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
3188                           "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
3189         }, {
3190                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3191                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3192                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3193                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3194                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3195                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3196                         "\xaa\xaa",
3197                 .ksize  = 80,
3198                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3199                 .psize  = 54,
3200                 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
3201                           "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
3202         }, {
3203                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3204                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3205                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3206                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3207                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3208                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3209                         "\xaa\xaa",
3210                 .ksize  = 80,
3211                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3212                            "Block-Size Data",
3213                 .psize  = 73,
3214                 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
3215                           "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
3216         },
3217 };
3218
3219 /*
3220  * HMAC-SHA1 test vectors from RFC2202
3221  */
3222 static const struct hash_testvec hmac_sha1_tv_template[] = {
3223         {
3224                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3225                 .ksize  = 20,
3226                 .plaintext = "Hi There",
3227                 .psize  = 8,
3228                 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
3229                           "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
3230                           "\x46\xbe",
3231         }, {
3232                 .key    = "Jefe",
3233                 .ksize  = 4,
3234                 .plaintext = "what do ya want for nothing?",
3235                 .psize  = 28,
3236                 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
3237                           "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
3238                 .np     = 2,
3239                 .tap    = { 14, 14 }
3240         }, {
3241                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3242                 .ksize  = 20,
3243                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3244                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3245                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3246                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3247                 .psize  = 50,
3248                 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
3249                           "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
3250         }, {
3251                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3252                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3253                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3254                 .ksize  = 25,
3255                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3256                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3257                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3258                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3259                 .psize  = 50,
3260                 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
3261                           "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
3262         }, {
3263                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3264                 .ksize  = 20,
3265                 .plaintext = "Test With Truncation",
3266                 .psize  = 20,
3267                 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
3268                           "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
3269         }, {
3270                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3271                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3272                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3273                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3274                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3275                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3276                         "\xaa\xaa",
3277                 .ksize  = 80,
3278                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3279                 .psize  = 54,
3280                 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
3281                           "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
3282         }, {
3283                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3284                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3285                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3286                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3287                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3288                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3289                         "\xaa\xaa",
3290                 .ksize  = 80,
3291                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3292                            "Block-Size Data",
3293                 .psize  = 73,
3294                 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
3295                           "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
3296         },
3297 };
3298
3299
3300 /*
3301  * SHA224 HMAC test vectors from RFC4231
3302  */
3303 static const struct hash_testvec hmac_sha224_tv_template[] = {
3304         {
3305                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3306                         "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3307                         "\x0b\x0b\x0b\x0b",
3308                 .ksize  = 20,
3309                 /*  ("Hi There") */
3310                 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
3311                 .psize  = 8,
3312                 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
3313                         "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
3314                         "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
3315                         "\x53\x68\x4b\x22",
3316         }, {
3317                 .key    = "Jefe",
3318                 .ksize  = 4,
3319                 /* ("what do ya want for nothing?") */
3320                 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
3321                         "\x79\x61\x20\x77\x61\x6e\x74\x20"
3322                         "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
3323                         "\x69\x6e\x67\x3f",
3324                 .psize  = 28,
3325                 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
3326                         "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
3327                         "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
3328                         "\x8f\xd0\x5e\x44",
3329                 .np = 4,
3330                 .tap    = { 7, 7, 7, 7 }
3331         }, {
3332                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3333                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3334                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3335                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3336                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3337                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3338                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3339                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3340                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3341                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3342                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3343                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3344                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3345                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3346                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3347                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3348                         "\xaa\xaa\xaa",
3349                 .ksize  = 131,
3350                 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
3351                 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
3352                         "\x6e\x67\x20\x4c\x61\x72\x67\x65"
3353                         "\x72\x20\x54\x68\x61\x6e\x20\x42"
3354                         "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
3355                         "\x65\x20\x4b\x65\x79\x20\x2d\x20"
3356                         "\x48\x61\x73\x68\x20\x4b\x65\x79"
3357                         "\x20\x46\x69\x72\x73\x74",
3358                 .psize  = 54,
3359                 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
3360                         "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
3361                         "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
3362                         "\x3f\xa6\x87\x0e",
3363         }, {
3364                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3365                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3366                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3367                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3368                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3369                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3370                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3371                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3372                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3373                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3374                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3375                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3376                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3377                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3378                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3379                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3380                         "\xaa\xaa\xaa",
3381                 .ksize  = 131,
3382                 /* ("This is a test using a larger than block-size key and a")
3383                 (" larger than block-size data. The key needs to be")
3384                         (" hashed before being used by the HMAC algorithm.") */
3385                 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
3386                         "\x61\x20\x74\x65\x73\x74\x20\x75"
3387                         "\x73\x69\x6e\x67\x20\x61\x20\x6c"
3388                         "\x61\x72\x67\x65\x72\x20\x74\x68"
3389                         "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
3390                         "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
3391                         "\x79\x20\x61\x6e\x64\x20\x61\x20"
3392                         "\x6c\x61\x72\x67\x65\x72\x20\x74"
3393                         "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
3394                         "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
3395                         "\x61\x74\x61\x2e\x20\x54\x68\x65"
3396                         "\x20\x6b\x65\x79\x20\x6e\x65\x65"
3397                         "\x64\x73\x20\x74\x6f\x20\x62\x65"
3398                         "\x20\x68\x61\x73\x68\x65\x64\x20"
3399                         "\x62\x65\x66\x6f\x72\x65\x20\x62"
3400                         "\x65\x69\x6e\x67\x20\x75\x73\x65"
3401                         "\x64\x20\x62\x79\x20\x74\x68\x65"
3402                         "\x20\x48\x4d\x41\x43\x20\x61\x6c"
3403                         "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
3404                 .psize  = 152,
3405                 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
3406                         "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
3407                         "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
3408                         "\xf6\xf5\x65\xd1",
3409         },
3410 };
3411
3412 /*
3413  * HMAC-SHA256 test vectors from
3414  * draft-ietf-ipsec-ciph-sha-256-01.txt
3415  */
3416 static const struct hash_testvec hmac_sha256_tv_template[] = {
3417         {
3418                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3419                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3420                           "\x11\x12\x13\x14\x15\x16\x17\x18"
3421                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3422                 .ksize  = 32,
3423                 .plaintext = "abc",
3424                 .psize  = 3,
3425                 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
3426                           "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
3427                           "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
3428                           "\x92\x75\x90\x21\xcf\xab\x81\x81",
3429         }, {
3430                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3431                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3432                           "\x11\x12\x13\x14\x15\x16\x17\x18"
3433                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3434                 .ksize  = 32,
3435                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3436                 .psize  = 56,
3437                 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
3438                           "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
3439                           "\xe6\x98\xe3\x61\x19\x42\x11\x49"
3440                           "\xea\x8c\x71\x24\x56\x69\x7d\x30",
3441         }, {
3442                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3443                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3444                           "\x11\x12\x13\x14\x15\x16\x17\x18"
3445                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3446                 .ksize  = 32,
3447                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
3448                            "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3449                 .psize  = 112,
3450                 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
3451                           "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
3452                           "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
3453                           "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
3454         }, {
3455                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3456                         "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3457                         "\x0b\x0b\x0b\x0b\x0b\x0b",
3458                 .ksize  = 32,
3459                 .plaintext = "Hi There",
3460                 .psize  = 8,
3461                 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
3462                           "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
3463                           "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
3464                           "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
3465         }, {
3466                 .key    = "Jefe",
3467                 .ksize  = 4,
3468                 .plaintext = "what do ya want for nothing?",
3469                 .psize  = 28,
3470                 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
3471                           "\x6a\x04\x24\x26\x08\x95\x75\xc7"
3472                           "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
3473                           "\x9d\xec\x58\xb9\x64\xec\x38\x43",
3474                 .np     = 2,
3475                 .tap    = { 14, 14 }
3476         }, {
3477                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3478                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3479                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3480                 .ksize  = 32,
3481                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3482                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3483                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3484                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3485                 .psize  = 50,
3486                 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
3487                           "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
3488                           "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
3489                           "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
3490         }, {
3491                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3492                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3493                           "\x11\x12\x13\x14\x15\x16\x17\x18"
3494                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
3495                           "\x21\x22\x23\x24\x25",
3496                 .ksize  = 37,
3497                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3498                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3499                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3500                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3501                 .psize  = 50,
3502                 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
3503                           "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
3504                           "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
3505                           "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
3506         }, {
3507                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3508                         "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3509                         "\x0c\x0c\x0c\x0c\x0c\x0c",
3510                 .ksize  = 32,
3511                 .plaintext = "Test With Truncation",
3512                 .psize  = 20,
3513                 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
3514                           "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
3515                           "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
3516                           "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
3517         }, {
3518                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3519                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3520                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3521                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3522                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3523                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3524                         "\xaa\xaa",
3525                 .ksize  = 80,
3526                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3527                 .psize  = 54,
3528                 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
3529                           "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
3530                           "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
3531                           "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
3532         }, {
3533                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3534                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3535                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3536                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3537                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3538                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3539                         "\xaa\xaa",
3540                 .ksize  = 80,
3541                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
3542                            "One Block-Size Data",
3543                 .psize  = 73,
3544                 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
3545                           "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
3546                           "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
3547                           "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
3548         },
3549 };
3550
3551 static const struct hash_testvec aes_cmac128_tv_template[] = {
3552         { /* From NIST Special Publication 800-38B, AES-128 */
3553                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3554                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3555                 .plaintext      = zeroed_string,
3556                 .digest         = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
3557                                   "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
3558                 .psize          = 0,
3559                 .ksize          = 16,
3560         }, {
3561                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3562                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3563                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3564                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
3565                 .digest         = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
3566                                   "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
3567                 .psize          = 16,
3568                 .ksize          = 16,
3569         }, {
3570                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3571                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3572                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3573                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3574                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3575                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3576                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
3577                 .digest         = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
3578                                   "\x30\xca\x32\x61\x14\x97\xc8\x27",
3579                 .psize          = 40,
3580                 .ksize          = 16,
3581         }, {
3582                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3583                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3584                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3585                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3586                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3587                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3588                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3589                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3590                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3591                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3592                 .digest         = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
3593                                   "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
3594                 .psize          = 64,
3595                 .ksize          = 16,
3596         }, { /* From NIST Special Publication 800-38B, AES-256 */
3597                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3598                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3599                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3600                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3601                 .plaintext      = zeroed_string,
3602                 .digest         = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
3603                                   "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
3604                 .psize          = 0,
3605                 .ksize          = 32,
3606         }, {
3607                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3608                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3609                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3610                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3611                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3612                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3613                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3614                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3615                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3616                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3617                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3618                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3619                 .digest         = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
3620                                   "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
3621                 .psize          = 64,
3622                 .ksize          = 32,
3623         }
3624 };
3625
3626 static const struct hash_testvec aes_cbcmac_tv_template[] = {
3627         {
3628                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3629                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3630                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3631                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
3632                 .digest         = "\x3a\xd7\x7b\xb4\x0d\x7a\x36\x60"
3633                                   "\xa8\x9e\xca\xf3\x24\x66\xef\x97",
3634                 .psize          = 16,
3635                 .ksize          = 16,
3636         }, {
3637                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3638                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3639                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3640                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3641                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3642                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3643                                   "\x30",
3644                 .digest         = "\x9d\x0d\xd0\x63\xfb\xcb\x24\x43"
3645                                   "\xf8\xf2\x76\x03\xac\x39\xb0\x9d",
3646                 .psize          = 33,
3647                 .ksize          = 16,
3648                 .np             = 2,
3649                 .tap            = { 7, 26 },
3650         }, {
3651                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3652                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3653                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3654                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3655                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3656                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3657                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3658                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3659                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3660                                   "\xad\x2b\x41\x7b\xe6\x6c\x37",
3661                 .digest         = "\xc0\x71\x73\xb8\xa0\x2c\x11\x7c"
3662                                   "\xaf\xdc\xb2\xf8\x89\x32\xa3\x3a",
3663                 .psize          = 63,
3664                 .ksize          = 16,
3665         }, {
3666                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3667                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3668                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3669                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3670                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3671                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3672                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3673                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3674                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3675                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3676                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3677                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10"
3678                                   "\x1c",
3679                 .digest         = "\x6a\x4e\xdb\x21\x47\x51\xdf\x4f"
3680                                   "\xa8\x4d\x4c\x10\x3b\x72\x7d\xd6",
3681                 .psize          = 65,
3682                 .ksize          = 32,
3683         }
3684 };
3685
3686 static const struct hash_testvec des3_ede_cmac64_tv_template[] = {
3687 /*
3688  * From NIST Special Publication 800-38B, Three Key TDEA
3689  * Corrected test vectors from:
3690  *  http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
3691  */
3692         {
3693                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3694                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3695                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3696                 .plaintext      = zeroed_string,
3697                 .digest         = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
3698                 .psize          = 0,
3699                 .ksize          = 24,
3700         }, {
3701                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3702                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3703                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3704                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
3705                 .digest         = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
3706                 .psize          = 8,
3707                 .ksize          = 24,
3708         }, {
3709                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3710                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3711                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3712                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3713                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3714                                   "\xae\x2d\x8a\x57",
3715                 .digest         = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
3716                 .psize          = 20,
3717                 .ksize          = 24,
3718         }, {
3719                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3720                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3721                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3722                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3723                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3724                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3725                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
3726                 .digest         = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
3727                 .psize          = 32,
3728                 .ksize          = 24,
3729         }
3730 };
3731
3732 static const struct hash_testvec aes_xcbc128_tv_template[] = {
3733         {
3734                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3735                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3736                 .plaintext = zeroed_string,
3737                 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
3738                           "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
3739                 .psize  = 0,
3740                 .ksize  = 16,
3741         }, {
3742                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3743                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3744                 .plaintext = "\x00\x01\x02",
3745                 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
3746                           "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
3747                 .psize  = 3,
3748                 .ksize  = 16,
3749         } , {
3750                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3751                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3752                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3753                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3754                 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
3755                           "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
3756                 .psize  = 16,
3757                 .ksize  = 16,
3758         }, {
3759                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3760                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3761                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3762                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3763                              "\x10\x11\x12\x13",
3764                 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
3765                           "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
3766                 .tap    = { 10, 10 },
3767                 .psize  = 20,
3768                 .np     = 2,
3769                 .ksize  = 16,
3770         }, {
3771                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3772                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3773                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3774                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3775                              "\x10\x11\x12\x13\x14\x15\x16\x17"
3776                              "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
3777                 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
3778                           "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
3779                 .psize  = 32,
3780                 .ksize  = 16,
3781         }, {
3782                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3783                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3784                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3785                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3786                              "\x10\x11\x12\x13\x14\x15\x16\x17"
3787                              "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
3788                              "\x20\x21",
3789                 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
3790                           "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
3791                 .tap    = { 17, 17 },
3792                 .psize  = 34,
3793                 .np     = 2,
3794                 .ksize  = 16,
3795         }
3796 };
3797
3798 static const char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
3799                                        '\x02', '\x03', '\x02', '\x02',
3800                                        '\x02', '\x04', '\x01', '\x07',
3801                                        '\x04', '\x01', '\x04', '\x03',};
3802 static const char vmac_string2[128] = {'a', 'b', 'c',};
3803 static const char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
3804                                        'a', 'b', 'c', 'a', 'b', 'c',
3805                                        'a', 'b', 'c', 'a', 'b', 'c',
3806                                        'a', 'b', 'c', 'a', 'b', 'c',
3807                                        'a', 'b', 'c', 'a', 'b', 'c',
3808                                        'a', 'b', 'c', 'a', 'b', 'c',
3809                                        'a', 'b', 'c', 'a', 'b', 'c',
3810                                        'a', 'b', 'c', 'a', 'b', 'c',
3811                                       };
3812
3813 static const char vmac_string4[17] = {'b', 'c', 'e', 'f',
3814                                       'i', 'j', 'l', 'm',
3815                                       'o', 'p', 'r', 's',
3816                                       't', 'u', 'w', 'x', 'z'};
3817
3818 static const char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
3819                                        'o', 'l', 'k', ']', '%',
3820                                        '9', '2', '7', '!', 'A'};
3821
3822 static const char vmac_string6[129] = {'p', 't', '*', '7', 'l',
3823                                        'i', '!', '#', 'w', '0',
3824                                        'z', '/', '4', 'A', 'n'};
3825
3826 static const struct hash_testvec aes_vmac128_tv_template[] = {
3827         {
3828                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3829                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3830                 .plaintext = NULL,
3831                 .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
3832                 .psize  = 0,
3833                 .ksize  = 16,
3834         }, {
3835                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3836                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3837                 .plaintext = vmac_string1,
3838                 .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
3839                 .psize  = 128,
3840                 .ksize  = 16,
3841         }, {
3842                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3843                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3844                 .plaintext = vmac_string2,
3845                 .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
3846                 .psize  = 128,
3847                 .ksize  = 16,
3848         }, {
3849                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
3850                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3851                 .plaintext = vmac_string3,
3852                 .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
3853                 .psize  = 128,
3854                 .ksize  = 16,
3855         }, {
3856                 .key    = "abcdefghijklmnop",
3857                 .plaintext = NULL,
3858                 .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
3859                 .psize  = 0,
3860                 .ksize  = 16,
3861         }, {
3862                 .key    = "abcdefghijklmnop",
3863                 .plaintext = vmac_string1,
3864                 .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
3865                 .psize  = 128,
3866                 .ksize  = 16,
3867         }, {
3868                 .key    = "abcdefghijklmnop",
3869                 .plaintext = vmac_string2,
3870                 .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
3871                 .psize  = 128,
3872                 .ksize  = 16,
3873         }, {
3874                 .key    = "abcdefghijklmnop",
3875                 .plaintext = vmac_string3,
3876                 .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
3877                 .psize  = 128,
3878                 .ksize  = 16,
3879         }, {
3880                 .key = "a09b5cd!f#07K\x00\x00\x00",
3881                 .plaintext = vmac_string4,
3882                 .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
3883                 .psize = sizeof(vmac_string4),
3884                 .ksize = 16,
3885         }, {
3886                 .key = "a09b5cd!f#07K\x00\x00\x00",
3887                 .plaintext = vmac_string5,
3888                 .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
3889                 .psize = sizeof(vmac_string5),
3890                 .ksize = 16,
3891         }, {
3892                 .key = "a09b5cd!f#07K\x00\x00\x00",
3893                 .plaintext = vmac_string6,
3894                 .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
3895                 .psize = sizeof(vmac_string6),
3896                 .ksize = 16,
3897         },
3898 };
3899
3900 /*
3901  * SHA384 HMAC test vectors from RFC4231
3902  */
3903
3904 static const struct hash_testvec hmac_sha384_tv_template[] = {
3905         {
3906                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3907                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3908                           "\x0b\x0b\x0b\x0b",
3909                 .ksize  = 20,
3910                 .plaintext = "Hi There",
3911                 .psize  = 8,
3912                 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
3913                           "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
3914                           "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
3915                           "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
3916                           "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
3917                           "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
3918         }, {
3919                 .key    = "Jefe",
3920                 .ksize  = 4,
3921                 .plaintext = "what do ya want for nothing?",
3922                 .psize  = 28,
3923                 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
3924                           "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
3925                           "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
3926                           "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
3927                           "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
3928                           "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
3929                 .np     = 4,
3930                 .tap    = { 7, 7, 7, 7 }
3931         }, {
3932                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3933                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3934                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3935                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3936                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3937                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3938                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3939                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3940                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3941                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3942                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3943                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3944                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3945                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3946                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3947                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3948                           "\xaa\xaa\xaa",
3949                 .ksize  = 131,
3950                 .plaintext = "Test Using Larger Than Block-Siz"
3951                            "e Key - Hash Key First",
3952                 .psize  = 54,
3953                 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
3954                           "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
3955                           "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
3956                           "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
3957                           "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
3958                           "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
3959         }, {
3960                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3961                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3962                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3963                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3964                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3965                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3966                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3967                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3968                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3969                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3970                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3971                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3972                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3973                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3974                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3975                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3976                           "\xaa\xaa\xaa",
3977                 .ksize  = 131,
3978                 .plaintext = "This is a test u"
3979                            "sing a larger th"
3980                            "an block-size ke"
3981                            "y and a larger t"
3982                            "han block-size d"
3983                            "ata. The key nee"
3984                            "ds to be hashed "
3985                            "before being use"
3986                            "d by the HMAC al"
3987                            "gorithm.",
3988                 .psize  = 152,
3989                 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
3990                           "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
3991                           "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
3992                           "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
3993                           "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
3994                           "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
3995         },
3996 };
3997
3998 /*
3999  * SHA512 HMAC test vectors from RFC4231
4000  */
4001
4002 static const struct hash_testvec hmac_sha512_tv_template[] = {
4003         {
4004                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4005                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4006                           "\x0b\x0b\x0b\x0b",
4007                 .ksize  = 20,
4008                 .plaintext = "Hi There",
4009                 .psize  = 8,
4010                 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
4011                           "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
4012                           "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
4013                           "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
4014                           "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
4015                           "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
4016                           "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
4017                           "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
4018         }, {
4019                 .key    = "Jefe",
4020                 .ksize  = 4,
4021                 .plaintext = "what do ya want for nothing?",
4022                 .psize  = 28,
4023                 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
4024                           "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
4025                           "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
4026                           "\x10\x27\x0c\xd7\xea\x25\x05\x54"
4027                           "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
4028                           "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
4029                           "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
4030                           "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
4031                 .np     = 4,
4032                 .tap    = { 7, 7, 7, 7 }
4033         }, {
4034                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4035                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4036                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4037                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4038                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4039                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4040                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4041                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4042                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4043                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4044                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4045                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4046                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4047                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4048                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4049                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4050                           "\xaa\xaa\xaa",
4051                 .ksize  = 131,
4052                 .plaintext = "Test Using Large"
4053                            "r Than Block-Siz"
4054                            "e Key - Hash Key"
4055                            " First",
4056                 .psize  = 54,
4057                 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
4058                         "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
4059                         "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
4060                         "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
4061                         "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
4062                         "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
4063                         "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
4064                         "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
4065         }, {
4066                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4067                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4068                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4069                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4070                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4071                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4072                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4073                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4074                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4075                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4076                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4077                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4078                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4079                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4080                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4081                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4082                         "\xaa\xaa\xaa",
4083                 .ksize  = 131,
4084                 .plaintext =
4085                           "This is a test u"
4086                           "sing a larger th"
4087                           "an block-size ke"
4088                           "y and a larger t"
4089                           "han block-size d"
4090                           "ata. The key nee"
4091                           "ds to be hashed "
4092                           "before being use"
4093                           "d by the HMAC al"
4094                           "gorithm.",
4095                 .psize  = 152,
4096                 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
4097                         "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
4098                         "\xde\xbd\x71\xf8\x86\x72\x89\x86"
4099                         "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
4100                         "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
4101                         "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
4102                         "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
4103                         "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
4104         },
4105 };
4106
4107 static const struct hash_testvec hmac_sha3_224_tv_template[] = {
4108         {
4109                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4110                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4111                           "\x0b\x0b\x0b\x0b",
4112                 .ksize  = 20,
4113                 .plaintext = "Hi There",
4114                 .psize  = 8,
4115                 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
4116                           "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
4117                           "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
4118                           "\xf3\xc8\x60\xf7",
4119         }, {
4120                 .key    = "Jefe",
4121                 .ksize  = 4,
4122                 .plaintext = "what do ya want for nothing?",
4123                 .psize  = 28,
4124                 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
4125                           "\x1b\x79\x86\x34\xad\x38\x68\x11"
4126                           "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
4127                           "\xba\xce\x5e\x66",
4128                 .np     = 4,
4129                 .tap    = { 7, 7, 7, 7 }
4130         }, {
4131                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4132                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4133                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4134                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4135                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4136                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4137                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4138                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4139                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4140                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4141                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4142                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4143                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4144                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4145                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4146                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4147                           "\xaa\xaa\xaa",
4148                 .ksize  = 131,
4149                 .plaintext = "Test Using Large"
4150                            "r Than Block-Siz"
4151                            "e Key - Hash Key"
4152                            " First",
4153                 .psize  = 54,
4154                 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
4155                           "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
4156                           "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
4157                           "\x5f\xb9\x99\x5f",
4158         }, {
4159                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4160                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4161                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4162                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4163                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4164                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4165                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4166                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4167                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4168                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4169                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4170                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4171                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4172                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4173                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4174                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4175                           "\xaa\xaa\xaa",
4176                 .ksize  = 131,
4177                 .plaintext =
4178                           "This is a test u"
4179                           "sing a larger th"
4180                           "an block-size ke"
4181                           "y and a larger t"
4182                           "han block-size d"
4183                           "ata. The key nee"
4184                           "ds to be hashed "
4185                           "before being use"
4186                           "d by the HMAC al"
4187                           "gorithm.",
4188                 .psize  = 152,
4189                 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
4190                           "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
4191                           "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
4192                           "\x29\xcd\x62\xa0",
4193         },
4194 };
4195
4196 static const struct hash_testvec hmac_sha3_256_tv_template[] = {
4197         {
4198                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4199                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4200                           "\x0b\x0b\x0b\x0b",
4201                 .ksize  = 20,
4202                 .plaintext = "Hi There",
4203                 .psize  = 8,
4204                 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
4205                           "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
4206                           "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
4207                           "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
4208         }, {
4209                 .key    = "Jefe",
4210                 .ksize  = 4,
4211                 .plaintext = "what do ya want for nothing?",
4212                 .psize  = 28,
4213                 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
4214                           "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
4215                           "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
4216                           "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
4217                 .np     = 4,
4218                 .tap    = { 7, 7, 7, 7 }
4219         }, {
4220                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4221                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4222                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4223                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4224                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4225                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4226                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4227                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4228                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4229                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4230                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4231                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4232                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4233                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4234                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4235                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4236                           "\xaa\xaa\xaa",
4237                 .ksize  = 131,
4238                 .plaintext = "Test Using Large"
4239                            "r Than Block-Siz"
4240                            "e Key - Hash Key"
4241                            " First",
4242                 .psize  = 54,
4243                 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
4244                           "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
4245                           "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
4246                           "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
4247         }, {
4248                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4249                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4250                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4251                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4252                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4253                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4254                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4255                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4256                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4257                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4258                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4259                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4260                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4261                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4262                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4263                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4264                           "\xaa\xaa\xaa",
4265                 .ksize  = 131,
4266                 .plaintext =
4267                           "This is a test u"
4268                           "sing a larger th"
4269                           "an block-size ke"
4270                           "y and a larger t"
4271                           "han block-size d"
4272                           "ata. The key nee"
4273                           "ds to be hashed "
4274                           "before being use"
4275                           "d by the HMAC al"
4276                           "gorithm.",
4277                 .psize  = 152,
4278                 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
4279                           "\x7a\xef\x87\x63\x26\x1e\x49\xad"
4280                           "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
4281                           "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
4282         },
4283 };
4284
4285 static const struct hash_testvec hmac_sha3_384_tv_template[] = {
4286         {
4287                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4288                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4289                           "\x0b\x0b\x0b\x0b",
4290                 .ksize  = 20,
4291                 .plaintext = "Hi There",
4292                 .psize  = 8,
4293                 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
4294                           "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
4295                           "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
4296                           "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
4297                           "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
4298                           "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
4299         }, {
4300                 .key    = "Jefe",
4301                 .ksize  = 4,
4302                 .plaintext = "what do ya want for nothing?",
4303                 .psize  = 28,
4304                 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
4305                           "\x67\x64\xd2\xed\x61\x90\x3f\x21"
4306                           "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
4307                           "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
4308                           "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
4309                           "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
4310                 .np     = 4,
4311                 .tap    = { 7, 7, 7, 7 }
4312         }, {
4313                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4314                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4315                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4316                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4317                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4318                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4319                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4320                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4321                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4322                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4323                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4324                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4325                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4326                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4327                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4328                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4329                           "\xaa\xaa\xaa",
4330                 .ksize  = 131,
4331                 .plaintext = "Test Using Large"
4332                            "r Than Block-Siz"
4333                            "e Key - Hash Key"
4334                            " First",
4335                 .psize  = 54,
4336                 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
4337                           "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
4338                           "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
4339                           "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
4340                           "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
4341                           "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
4342         }, {
4343                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4344                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4345                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4346                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4347                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4348                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4349                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4350                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4351                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4352                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4353                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4354                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4355                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4356                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4357                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4358                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4359                           "\xaa\xaa\xaa",
4360                 .ksize  = 131,
4361                 .plaintext =
4362                           "This is a test u"
4363                           "sing a larger th"
4364                           "an block-size ke"
4365                           "y and a larger t"
4366                           "han block-size d"
4367                           "ata. The key nee"
4368                           "ds to be hashed "
4369                           "before being use"
4370                           "d by the HMAC al"
4371                           "gorithm.",
4372                 .psize  = 152,
4373                 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
4374                           "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
4375                           "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
4376                           "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
4377                           "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
4378                           "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
4379         },
4380 };
4381
4382 static const struct hash_testvec hmac_sha3_512_tv_template[] = {
4383         {
4384                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4385                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4386                           "\x0b\x0b\x0b\x0b",
4387                 .ksize  = 20,
4388                 .plaintext = "Hi There",
4389                 .psize  = 8,
4390                 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
4391                           "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
4392                           "\xec\x15\x77\x0a\x7c\xab\xac\x53"
4393                           "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
4394                           "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
4395                           "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
4396                           "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
4397                           "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
4398         }, {
4399                 .key    = "Jefe",
4400                 .ksize  = 4,
4401                 .plaintext = "what do ya want for nothing?",
4402                 .psize  = 28,
4403                 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
4404                           "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
4405                           "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
4406                           "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
4407                           "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
4408                           "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
4409                           "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
4410                           "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
4411                 .np     = 4,
4412                 .tap    = { 7, 7, 7, 7 }
4413         }, {
4414                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4415                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4416                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4417                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4418                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4419                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4420                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4421                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4422                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4423                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4424                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4425                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4426                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4427                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4428                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4429                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4430                           "\xaa\xaa\xaa",
4431                 .ksize  = 131,
4432                 .plaintext = "Test Using Large"
4433                            "r Than Block-Siz"
4434                            "e Key - Hash Key"
4435                            " First",
4436                 .psize  = 54,
4437                 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
4438                           "\x90\xed\x69\x11\xa4\xb6\x55\x24"
4439                           "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
4440                           "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
4441                           "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
4442                           "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
4443                           "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
4444                           "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
4445         }, {
4446                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4447                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4448                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4449                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4450                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4451                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4452                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4453                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4454                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4455                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4456                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4457                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4458                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4459                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4460                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4461                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4462                           "\xaa\xaa\xaa",
4463                 .ksize  = 131,
4464                 .plaintext =
4465                           "This is a test u"
4466                           "sing a larger th"
4467                           "an block-size ke"
4468                           "y and a larger t"
4469                           "han block-size d"
4470                           "ata. The key nee"
4471                           "ds to be hashed "
4472                           "before being use"
4473                           "d by the HMAC al"
4474                           "gorithm.",
4475                 .psize  = 152,
4476                 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
4477                           "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
4478                           "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
4479                           "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
4480                           "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
4481                           "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
4482                           "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
4483                           "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
4484         },
4485 };
4486
4487 /*
4488  * Poly1305 test vectors from RFC7539 A.3.
4489  */
4490
4491 static const struct hash_testvec poly1305_tv_template[] = {
4492         { /* Test Vector #1 */
4493                 .plaintext      = "\x00\x00\x00\x00\x00\x00\x00\x00"
4494                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4495                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4496                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4497                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4498                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4499                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4500                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4501                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4502                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4503                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4504                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4505                 .psize          = 96,
4506                 .digest         = "\x00\x00\x00\x00\x00\x00\x00\x00"
4507                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4508         }, { /* Test Vector #2 */
4509                 .plaintext      = "\x00\x00\x00\x00\x00\x00\x00\x00"
4510                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4511                                   "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4512                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4513                                   "\x41\x6e\x79\x20\x73\x75\x62\x6d"
4514                                   "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4515                                   "\x6f\x20\x74\x68\x65\x20\x49\x45"
4516                                   "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4517                                   "\x64\x65\x64\x20\x62\x79\x20\x74"
4518                                   "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4519                                   "\x69\x62\x75\x74\x6f\x72\x20\x66"
4520                                   "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4521                                   "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4522                                   "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4523                                   "\x20\x70\x61\x72\x74\x20\x6f\x66"
4524                                   "\x20\x61\x6e\x20\x49\x45\x54\x46"
4525                                   "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4526                                   "\x74\x2d\x44\x72\x61\x66\x74\x20"
4527                                   "\x6f\x72\x20\x52\x46\x43\x20\x61"
4528                                   "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4529                                   "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4530                                   "\x20\x6d\x61\x64\x65\x20\x77\x69"
4531                                   "\x74\x68\x69\x6e\x20\x74\x68\x65"
4532                                   "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4533                                   "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4534                                   "\x45\x54\x46\x20\x61\x63\x74\x69"
4535                                   "\x76\x69\x74\x79\x20\x69\x73\x20"
4536                                   "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4537                                   "\x65\x64\x20\x61\x6e\x20\x22\x49"
4538                                   "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4539                                   "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4540                                   "\x22\x2e\x20\x53\x75\x63\x68\x20"
4541                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4542                                   "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4543                                   "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4544                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4545                                   "\x74\x73\x20\x69\x6e\x20\x49\x45"
4546                                   "\x54\x46\x20\x73\x65\x73\x73\x69"
4547                                   "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4548                                   "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4549                                   "\x77\x72\x69\x74\x74\x65\x6e\x20"
4550                                   "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4551                                   "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4552                                   "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4553                                   "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4554                                   "\x64\x65\x20\x61\x74\x20\x61\x6e"
4555                                   "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4556                                   "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4557                                   "\x20\x77\x68\x69\x63\x68\x20\x61"
4558                                   "\x72\x65\x20\x61\x64\x64\x72\x65"
4559                                   "\x73\x73\x65\x64\x20\x74\x6f",
4560                 .psize          = 407,
4561                 .digest         = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4562                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
4563         }, { /* Test Vector #3 */
4564                 .plaintext      = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4565                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4566                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4567                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4568                                   "\x41\x6e\x79\x20\x73\x75\x62\x6d"
4569                                   "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4570                                   "\x6f\x20\x74\x68\x65\x20\x49\x45"
4571                                   "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4572                                   "\x64\x65\x64\x20\x62\x79\x20\x74"
4573                                   "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4574                                   "\x69\x62\x75\x74\x6f\x72\x20\x66"
4575                                   "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4576                                   "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4577                                   "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4578                                   "\x20\x70\x61\x72\x74\x20\x6f\x66"
4579                                   "\x20\x61\x6e\x20\x49\x45\x54\x46"
4580                                   "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4581                                   "\x74\x2d\x44\x72\x61\x66\x74\x20"
4582                                   "\x6f\x72\x20\x52\x46\x43\x20\x61"
4583                                   "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4584                                   "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4585                                   "\x20\x6d\x61\x64\x65\x20\x77\x69"
4586                                   "\x74\x68\x69\x6e\x20\x74\x68\x65"
4587                                   "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4588                                   "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4589                                   "\x45\x54\x46\x20\x61\x63\x74\x69"
4590                                   "\x76\x69\x74\x79\x20\x69\x73\x20"
4591                                   "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4592                                   "\x65\x64\x20\x61\x6e\x20\x22\x49"
4593                                   "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4594                                   "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4595                                   "\x22\x2e\x20\x53\x75\x63\x68\x20"
4596                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4597                                   "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4598                                   "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4599                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4600                                   "\x74\x73\x20\x69\x6e\x20\x49\x45"
4601                                   "\x54\x46\x20\x73\x65\x73\x73\x69"
4602                                   "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4603                                   "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4604                                   "\x77\x72\x69\x74\x74\x65\x6e\x20"
4605                                   "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4606                                   "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4607                                   "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4608                                   "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4609                                   "\x64\x65\x20\x61\x74\x20\x61\x6e"
4610                                   "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4611                                   "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4612                                   "\x20\x77\x68\x69\x63\x68\x20\x61"
4613                                   "\x72\x65\x20\x61\x64\x64\x72\x65"
4614                                   "\x73\x73\x65\x64\x20\x74\x6f",
4615                 .psize          = 407,
4616                 .digest         = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
4617                                   "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
4618         }, { /* Test Vector #4 */
4619                 .plaintext      = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
4620                                   "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
4621                                   "\x47\x39\x17\xc1\x40\x2b\x80\x09"
4622                                   "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
4623                                   "\x27\x54\x77\x61\x73\x20\x62\x72"
4624                                   "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
4625                                   "\x6e\x64\x20\x74\x68\x65\x20\x73"
4626                                   "\x6c\x69\x74\x68\x79\x20\x74\x6f"
4627                                   "\x76\x65\x73\x0a\x44\x69\x64\x20"
4628                                   "\x67\x79\x72\x65\x20\x61\x6e\x64"
4629                                   "\x20\x67\x69\x6d\x62\x6c\x65\x20"
4630                                   "\x69\x6e\x20\x74\x68\x65\x20\x77"
4631                                   "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
4632                                   "\x20\x6d\x69\x6d\x73\x79\x20\x77"
4633                                   "\x65\x72\x65\x20\x74\x68\x65\x20"
4634                                   "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
4635                                   "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
4636                                   "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
4637                                   "\x72\x61\x74\x68\x73\x20\x6f\x75"
4638                                   "\x74\x67\x72\x61\x62\x65\x2e",
4639                 .psize          = 159,
4640                 .digest         = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
4641                                   "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
4642         }, { /* Test Vector #5 */
4643                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
4644                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4645                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4646                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4647                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4648                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
4649                 .psize          = 48,
4650                 .digest         = "\x03\x00\x00\x00\x00\x00\x00\x00"
4651                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4652         }, { /* Test Vector #6 */
4653                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
4654                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4655                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4656                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4657                                   "\x02\x00\x00\x00\x00\x00\x00\x00"
4658                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4659                 .psize          = 48,
4660                 .digest         = "\x03\x00\x00\x00\x00\x00\x00\x00"
4661                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4662         }, { /* Test Vector #7 */
4663                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
4664                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4665                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4666                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4667                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4668                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4669                                   "\xf0\xff\xff\xff\xff\xff\xff\xff"
4670                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4671                                   "\x11\x00\x00\x00\x00\x00\x00\x00"
4672                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4673                 .psize          = 80,
4674                 .digest         = "\x05\x00\x00\x00\x00\x00\x00\x00"
4675                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4676         }, { /* Test Vector #8 */
4677                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
4678                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4679                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4680                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4681                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4682                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
4683                                   "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4684                                   "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4685                                   "\x01\x01\x01\x01\x01\x01\x01\x01"
4686                                   "\x01\x01\x01\x01\x01\x01\x01\x01",
4687                 .psize          = 80,
4688                 .digest         = "\x00\x00\x00\x00\x00\x00\x00\x00"
4689                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4690         }, { /* Test Vector #9 */
4691                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
4692                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4693                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4694                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4695                                   "\xfd\xff\xff\xff\xff\xff\xff\xff"
4696                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
4697                 .psize          = 48,
4698                 .digest         = "\xfa\xff\xff\xff\xff\xff\xff\xff"
4699                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
4700         }, { /* Test Vector #10 */
4701                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
4702                                   "\x04\x00\x00\x00\x00\x00\x00\x00"
4703                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4704                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4705                                   "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
4706                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4707                                   "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
4708                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
4709                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4710                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4711                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
4712                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4713                 .psize          = 96,
4714                 .digest         = "\x14\x00\x00\x00\x00\x00\x00\x00"
4715                                   "\x55\x00\x00\x00\x00\x00\x00\x00",
4716         }, { /* Test Vector #11 */
4717                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
4718                                   "\x04\x00\x00\x00\x00\x00\x00\x00"
4719                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4720                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4721                                   "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
4722                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4723                                   "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
4724                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
4725                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
4726                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4727                 .psize          = 80,
4728                 .digest         = "\x13\x00\x00\x00\x00\x00\x00\x00"
4729                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
4730         },
4731 };
4732
4733 /*
4734  * DES test vectors.
4735  */
4736 static const struct cipher_testvec des_enc_tv_template[] = {
4737         { /* From Applied Cryptography */
4738                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4739                 .klen   = 8,
4740                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4741                 .ilen   = 8,
4742                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4743                 .rlen   = 8,
4744         }, { /* Same key, different plaintext block */
4745                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4746                 .klen   = 8,
4747                 .input  = "\x22\x33\x44\x55\x66\x77\x88\x99",
4748                 .ilen   = 8,
4749                 .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4750                 .rlen   = 8,
4751         }, { /* Sbox test from NBS */
4752                 .key    = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4753                 .klen   = 8,
4754                 .input  = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4755                 .ilen   = 8,
4756                 .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4757                 .rlen   = 8,
4758         }, { /* Three blocks */
4759                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4760                 .klen   = 8,
4761                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4762                           "\x22\x33\x44\x55\x66\x77\x88\x99"
4763                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4764                 .ilen   = 24,
4765                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4766                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4767                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4768                 .rlen   = 24,
4769         }, { /* Weak key */
4770                 .fail   = true,
4771                 .wk     = 1,
4772                 .key    = "\x01\x01\x01\x01\x01\x01\x01\x01",
4773                 .klen   = 8,
4774                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4775                 .ilen   = 8,
4776                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4777                 .rlen   = 8,
4778         }, { /* Two blocks -- for testing encryption across pages */
4779                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4780                 .klen   = 8,
4781                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4782                           "\x22\x33\x44\x55\x66\x77\x88\x99",
4783                 .ilen   = 16,
4784                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4785                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4786                 .rlen   = 16,
4787                 .np     = 2,
4788                 .tap    = { 8, 8 }
4789         }, { /* Four blocks -- for testing encryption with chunking */
4790                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4791                 .klen   = 8,
4792                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4793                           "\x22\x33\x44\x55\x66\x77\x88\x99"
4794                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
4795                           "\x22\x33\x44\x55\x66\x77\x88\x99",
4796                 .ilen   = 32,
4797                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4798                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4799                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
4800                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4801                 .rlen   = 32,
4802                 .np     = 3,
4803                 .tap    = { 14, 10, 8 }
4804         }, {
4805                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4806                 .klen   = 8,
4807                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4808                           "\x22\x33\x44\x55\x66\x77\x88\x99"
4809                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4810                 .ilen   = 24,
4811                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4812                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4813                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4814                 .rlen   = 24,
4815                 .np     = 4,
4816                 .tap    = { 2, 1, 3, 18 }
4817         }, {
4818                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4819                 .klen   = 8,
4820                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4821                           "\x22\x33\x44\x55\x66\x77\x88\x99",
4822                 .ilen   = 16,
4823                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4824                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4825                 .rlen   = 16,
4826                 .np     = 5,
4827                 .tap    = { 2, 2, 2, 2, 8 }
4828         }, {
4829                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4830                 .klen   = 8,
4831                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4832                 .ilen   = 8,
4833                 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4834                 .rlen   = 8,
4835                 .np     = 8,
4836                 .tap    = { 1, 1, 1, 1, 1, 1, 1, 1 }
4837         }, { /* Generated with Crypto++ */
4838                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4839                 .klen   = 8,
4840                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4841                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4842                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4843                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4844                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4845                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4846                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4847                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4848                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4849                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4850                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4851                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4852                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4853                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4854                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4855                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4856                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4857                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4858                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4859                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4860                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4861                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4862                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4863                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4864                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4865                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4866                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4867                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4868                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4869                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4870                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4871                 .ilen   = 248,
4872                 .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4873                           "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4874                           "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4875                           "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4876                           "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4877                           "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4878                           "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4879                           "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4880                           "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4881                           "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4882                           "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4883                           "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4884                           "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4885                           "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4886                           "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4887                           "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4888                           "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4889                           "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4890                           "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4891                           "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4892                           "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4893                           "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4894                           "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4895                           "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4896                           "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4897                           "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4898                           "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4899                           "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4900                           "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4901                           "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4902                           "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4903                 .rlen   = 248,
4904                 .also_non_np = 1,
4905                 .np     = 3,
4906                 .tap    = { 248 - 10, 2, 8 },
4907         },
4908 };
4909
4910 static const struct cipher_testvec des_dec_tv_template[] = {
4911         { /* From Applied Cryptography */
4912                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4913                 .klen   = 8,
4914                 .input  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4915                 .ilen   = 8,
4916                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4917                 .rlen   = 8,
4918         }, { /* Sbox test from NBS */
4919                 .key    = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4920                 .klen   = 8,
4921                 .input  = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4922                 .ilen   = 8,
4923                 .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4924                 .rlen   = 8,
4925         }, { /* Two blocks, for chunking test */
4926                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4927                 .klen   = 8,
4928                 .input  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4929                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4930                 .ilen   = 16,
4931                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4932                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4933                 .rlen   = 16,
4934                 .np     = 2,
4935                 .tap    = { 8, 8 }
4936         }, {
4937                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4938                 .klen   = 8,
4939                 .input  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4940                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4941                 .ilen   = 16,
4942                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4943                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4944                 .rlen   = 16,
4945                 .np     = 3,
4946                 .tap    = { 3, 12, 1 }
4947         }, { /* Generated with Crypto++ */
4948                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4949                 .klen   = 8,
4950                 .input  = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4951                           "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4952                           "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4953                           "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4954                           "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4955                           "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4956                           "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4957                           "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4958                           "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4959                           "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4960                           "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4961                           "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4962                           "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4963                           "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4964                           "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4965                           "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4966                           "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4967                           "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4968                           "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4969                           "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4970                           "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4971                           "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4972                           "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4973                           "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4974                           "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4975                           "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4976                           "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4977                           "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4978                           "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4979                           "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4980                           "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4981                 .ilen   = 248,
4982                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4983                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4984                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4985                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4986                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4987                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4988                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4989                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4990                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4991                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4992                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4993                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4994                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4995                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4996                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4997                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4998                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4999                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5000                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5001                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5002                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5003                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5004                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5005                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5006                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5007                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5008                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5009                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5010                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5011                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5012                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5013                 .rlen   = 248,
5014                 .also_non_np = 1,
5015                 .np     = 3,
5016                 .tap    = { 248 - 10, 2, 8 },
5017         },
5018 };
5019
5020 static const struct cipher_testvec des_cbc_enc_tv_template[] = {
5021         { /* From OpenSSL */
5022                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5023                 .klen   = 8,
5024                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5025                 .input  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5026                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5027                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5028                 .ilen   = 24,
5029                 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5030                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5031                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5032                 .rlen   = 24,
5033         }, { /* FIPS Pub 81 */
5034                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5035                 .klen   = 8,
5036                 .iv     = "\x12\x34\x56\x78\x90\xab\xcd\xef",
5037                 .input  = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
5038                 .ilen   = 8,
5039                 .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5040                 .rlen   = 8,
5041         }, {
5042                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5043                 .klen   = 8,
5044                 .iv     = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5045                 .input  = "\x68\x65\x20\x74\x69\x6d\x65\x20",
5046                 .ilen   = 8,
5047                 .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5048                 .rlen   = 8,
5049         }, {
5050                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5051                 .klen   = 8,
5052                 .iv     = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5053                 .input  = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5054                 .ilen   = 8,
5055                 .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5056                 .rlen   = 8,
5057         }, { /* Copy of openssl vector for chunk testing */
5058              /* From OpenSSL */
5059                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5060                 .klen   = 8,
5061                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5062                 .input  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5063                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5064                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5065                 .ilen   = 24,
5066                 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5067                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5068                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5069                 .rlen   = 24,
5070                 .np     = 2,
5071                 .tap    = { 13, 11 }
5072         }, { /* Generated with Crypto++ */
5073                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5074                 .klen   = 8,
5075                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5076                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5077                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5078                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5079                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5080                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5081                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5082                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5083                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5084                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5085                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5086                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5087                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5088                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5089                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5090                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5091                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5092                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5093                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5094                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5095                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5096                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5097                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5098                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5099                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5100                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5101                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5102                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5103                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5104                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5105                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5106                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5107                 .ilen   = 248,
5108                 .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
5109                           "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5110                           "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5111                           "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5112                           "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5113                           "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5114                           "\x81\x72\x74\xDE\x30\x19\x69\x49"
5115                           "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5116                           "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5117                           "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5118                           "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5119                           "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5120                           "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5121                           "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5122                           "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5123                           "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5124                           "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5125                           "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5126                           "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5127                           "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5128                           "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5129                           "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5130                           "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5131                           "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5132                           "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5133                           "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5134                           "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5135                           "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5136                           "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5137                           "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5138                           "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5139                 .rlen   = 248,
5140                 .also_non_np = 1,
5141                 .np     = 3,
5142                 .tap    = { 248 - 10, 2, 8 },
5143         },
5144 };
5145
5146 static const struct cipher_testvec des_cbc_dec_tv_template[] = {
5147         { /* FIPS Pub 81 */
5148                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5149                 .klen   = 8,
5150                 .iv     = "\x12\x34\x56\x78\x90\xab\xcd\xef",
5151                 .input  = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5152                 .ilen   = 8,
5153                 .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
5154                 .rlen   = 8,
5155         }, {
5156                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5157                 .klen   = 8,
5158                 .iv     = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5159                 .input  = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5160                 .ilen   = 8,
5161                 .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
5162                 .rlen   = 8,
5163         }, {
5164                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5165                 .klen   = 8,
5166                 .iv     = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5167                 .input  = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5168                 .ilen   = 8,
5169                 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5170                 .rlen   = 8,
5171         }, { /* Copy of above, for chunk testing */
5172                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5173                 .klen   = 8,
5174                 .iv     = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5175                 .input  = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5176                 .ilen   = 8,
5177                 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5178                 .rlen   = 8,
5179                 .np     = 2,
5180                 .tap    = { 4, 4 }
5181         }, { /* Generated with Crypto++ */
5182                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5183                 .klen   = 8,
5184                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5185                 .input  = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
5186                           "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5187                           "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5188                           "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5189                           "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5190                           "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5191                           "\x81\x72\x74\xDE\x30\x19\x69\x49"
5192                           "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5193                           "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5194                           "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5195                           "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5196                           "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5197                           "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5198                           "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5199                           "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5200                           "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5201                           "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5202                           "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5203                           "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5204                           "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5205                           "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5206                           "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5207                           "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5208                           "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5209                           "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5210                           "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5211                           "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5212                           "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5213                           "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5214                           "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5215                           "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5216                 .ilen   = 248,
5217                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5218                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5219                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5220                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5221                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5222                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5223                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5224                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5225                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5226                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5227                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5228                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5229                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5230                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5231                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5232                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5233                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5234                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5235                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5236                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5237                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5238                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5239                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5240                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5241                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5242                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5243                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5244                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5245                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5246                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5247                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5248                 .rlen   = 248,
5249                 .also_non_np = 1,
5250                 .np     = 3,
5251                 .tap    = { 248 - 10, 2, 8 },
5252         },
5253 };
5254
5255 static const struct cipher_testvec des_ctr_enc_tv_template[] = {
5256         { /* Generated with Crypto++ */
5257                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5258                 .klen   = 8,
5259                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5260                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5261                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5262                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5263                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5264                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5265                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5266                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5267                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5268                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5269                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5270                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5271                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5272                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5273                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5274                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5275                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5276                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5277                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5278                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5279                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5280                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5281                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5282                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5283                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5284                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5285                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5286                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5287                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5288                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5289                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5290                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5291                 .ilen   = 248,
5292                 .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5293                           "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5294                           "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5295                           "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5296                           "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5297                           "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5298                           "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5299                           "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5300                           "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5301                           "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5302                           "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5303                           "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5304                           "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5305                           "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5306                           "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5307                           "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5308                           "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5309                           "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5310                           "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5311                           "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5312                           "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5313                           "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5314                           "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5315                           "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5316                           "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5317                           "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5318                           "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5319                           "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5320                           "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5321                           "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5322                           "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5323                 .rlen   = 248,
5324                 .also_non_np = 1,
5325                 .np     = 3,
5326                 .tap    = { 248 - 10, 2, 8 },
5327         }, { /* Generated with Crypto++ */
5328                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5329                 .klen   = 8,
5330                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5331                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5332                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5333                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5334                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5335                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5336                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5337                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5338                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5339                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5340                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5341                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5342                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5343                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5344                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5345                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5346                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5347                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5348                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5349                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5350                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5351                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5352                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5353                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5354                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5355                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5356                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5357                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5358                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5359                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5360                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5361                           "\xC6\x2F\xBB\x24\x8D\x19\x82",
5362                 .ilen   = 247,
5363                 .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5364                           "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5365                           "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5366                           "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5367                           "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5368                           "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5369                           "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5370                           "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5371                           "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5372                           "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5373                           "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5374                           "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5375                           "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5376                           "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5377                           "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5378                           "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5379                           "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5380                           "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5381                           "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5382                           "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5383                           "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5384                           "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5385                           "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5386                           "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5387                           "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5388                           "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5389                           "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5390                           "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5391                           "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5392                           "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5393                           "\x91\x45\x05\x3E\x58\xBF\x32",
5394                 .rlen   = 247,
5395                 .also_non_np = 1,
5396                 .np     = 2,
5397                 .tap    = { 247 - 8, 8 },
5398         },
5399 };
5400
5401 static const struct cipher_testvec des_ctr_dec_tv_template[] = {
5402         { /* Generated with Crypto++ */
5403                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5404                 .klen   = 8,
5405                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5406                 .input  = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5407                           "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5408                           "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5409                           "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5410                           "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5411                           "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5412                           "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5413                           "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5414                           "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5415                           "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5416                           "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5417                           "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5418                           "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5419                           "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5420                           "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5421                           "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5422                           "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5423                           "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5424                           "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5425                           "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5426                           "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5427                           "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5428                           "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5429                           "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5430                           "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5431                           "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5432                           "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5433                           "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5434                           "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5435                           "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5436                           "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5437                 .ilen   = 248,
5438                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5439                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5440                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5441                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5442                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5443                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5444                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5445                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5446                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5447                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5448                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5449                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5450                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5451                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5452                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5453                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5454                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5455                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5456                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5457                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5458                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5459                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5460                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5461                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5462                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5463                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5464                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5465                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5466                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5467                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5468                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5469                 .rlen   = 248,
5470                 .also_non_np = 1,
5471                 .np     = 3,
5472                 .tap    = { 248 - 10, 2, 8 },
5473         }, { /* Generated with Crypto++ */
5474                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5475                 .klen   = 8,
5476                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5477                 .input  = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5478                           "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5479                           "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5480                           "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5481                           "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5482                           "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5483                           "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5484                           "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5485                           "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5486                           "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5487                           "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5488                           "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5489                           "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5490                           "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5491                           "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5492                           "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5493                           "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5494                           "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5495                           "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5496                           "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5497                           "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5498                           "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5499                           "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5500                           "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5501                           "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5502                           "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5503                           "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5504                           "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5505                           "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5506                           "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5507                           "\x91\x45\x05\x3E\x58\xBF\x32",
5508                 .ilen   = 247,
5509                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5510                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5511                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5512                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5513                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5514                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5515                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5516                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5517                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5518                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5519                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5520                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5521                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5522                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5523                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5524                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5525                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5526                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5527                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5528                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5529                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5530                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5531                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5532                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5533                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5534                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5535                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5536                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5537                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5538                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5539                           "\xC6\x2F\xBB\x24\x8D\x19\x82",
5540                 .rlen   = 247,
5541                 .also_non_np = 1,
5542                 .np     = 2,
5543                 .tap    = { 247 - 8, 8 },
5544         },
5545 };
5546
5547 static const struct cipher_testvec des3_ede_enc_tv_template[] = {
5548         { /* These are from openssl */
5549                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5550                           "\x55\x55\x55\x55\x55\x55\x55\x55"
5551                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5552                 .klen   = 24,
5553                 .input  = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5554                 .ilen   = 8,
5555                 .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5556                 .rlen   = 8,
5557         }, {
5558                 .key    = "\x03\x52\x02\x07\x67\x20\x82\x17"
5559                           "\x86\x02\x87\x66\x59\x08\x21\x98"
5560                           "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5561                 .klen   = 24,
5562                 .input  = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5563                 .ilen   = 8,
5564                 .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5565                 .rlen   = 8,
5566         }, {
5567                 .key    = "\x10\x46\x10\x34\x89\x98\x80\x20"
5568                           "\x91\x07\xd0\x15\x89\x19\x01\x01"
5569                           "\x19\x07\x92\x10\x98\x1a\x01\x01",
5570                 .klen   = 24,
5571                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00",
5572                 .ilen   = 8,
5573                 .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5574                 .rlen   = 8,
5575         }, { /* Generated with Crypto++ */
5576                 .key    = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5577                           "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5578                           "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5579                 .klen   = 24,
5580                 .input  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5581                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5582                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5583                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5584                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5585                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5586                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5587                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5588                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5589                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5590                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5591                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5592                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5593                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5594                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5595                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5596                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5597                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5598                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5599                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5600                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5601                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5602                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5603                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5604                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5605                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5606                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5607                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5608                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5609                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5610                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5611                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5612                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5613                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5614                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5615                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5616                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5617                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5618                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5619                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5620                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5621                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5622                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5623                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5624                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5625                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5626                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5627                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5628                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5629                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5630                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5631                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5632                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5633                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5634                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5635                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5636                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5637                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5638                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5639                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5640                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5641                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5642                 .ilen   = 496,
5643                 .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5644                           "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5645                           "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5646                           "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5647                           "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5648                           "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5649                           "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5650                           "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5651                           "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5652                           "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5653                           "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5654                           "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5655                           "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5656                           "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5657                           "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5658                           "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5659                           "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5660                           "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5661                           "\x45\x86\x50\x01\x70\x35\x99\x92"
5662                           "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5663                           "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5664                           "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5665                           "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5666                           "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5667                           "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5668                           "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5669                           "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5670                           "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5671                           "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5672                           "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5673                           "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5674                           "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5675                           "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5676                           "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5677                           "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5678                           "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5679                           "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5680                           "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5681                           "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5682                           "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5683                           "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5684                           "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5685                           "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5686                           "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5687                           "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5688                           "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5689                           "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5690                           "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5691                           "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5692                           "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5693                           "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5694                           "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5695                           "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5696                           "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5697                           "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5698                           "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5699                           "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5700                           "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5701                           "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5702                           "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5703                           "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5704                           "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5705                 .rlen   = 496,
5706                 .also_non_np = 1,
5707                 .np     = 3,
5708                 .tap    = { 496 - 20, 4, 16 },
5709         },
5710 };
5711
5712 static const struct cipher_testvec des3_ede_dec_tv_template[] = {
5713         { /* These are from openssl */
5714                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5715                           "\x55\x55\x55\x55\x55\x55\x55\x55"
5716                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5717                 .klen   = 24,
5718                 .input  = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5719                 .ilen   = 8,
5720                 .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5721                 .rlen   = 8,
5722         }, {
5723                 .key    = "\x03\x52\x02\x07\x67\x20\x82\x17"
5724                           "\x86\x02\x87\x66\x59\x08\x21\x98"
5725                           "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5726                 .klen   = 24,
5727                 .input  = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5728                 .ilen   = 8,
5729                 .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5730                 .rlen   = 8,
5731         }, {
5732                 .key    = "\x10\x46\x10\x34\x89\x98\x80\x20"
5733                           "\x91\x07\xd0\x15\x89\x19\x01\x01"
5734                           "\x19\x07\x92\x10\x98\x1a\x01\x01",
5735                 .klen   = 24,
5736                 .input  = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5737                 .ilen   = 8,
5738                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
5739                 .rlen   = 8,
5740         }, { /* Generated with Crypto++ */
5741                 .key    = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5742                           "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5743                           "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5744                 .klen   = 24,
5745                 .input  = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5746                           "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5747                           "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5748                           "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5749                           "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5750                           "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5751                           "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5752                           "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5753                           "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5754                           "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5755                           "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5756                           "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5757                           "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5758                           "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5759                           "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5760                           "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5761                           "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5762                           "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5763                           "\x45\x86\x50\x01\x70\x35\x99\x92"
5764                           "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5765                           "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5766                           "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5767                           "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5768                           "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5769                           "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5770                           "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5771                           "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5772                           "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5773                           "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5774                           "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5775                           "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5776                           "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5777                           "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5778                           "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5779                           "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5780                           "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5781                           "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5782                           "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5783                           "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5784                           "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5785                           "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5786                           "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5787                           "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5788                           "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5789                           "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5790                           "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5791                           "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5792                           "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5793                           "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5794                           "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5795                           "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5796                           "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5797                           "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5798                           "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5799                           "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5800                           "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5801                           "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5802                           "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5803                           "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5804                           "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5805                           "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5806                           "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5807                 .ilen   = 496,
5808                 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5809                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5810                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5811                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5812                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5813                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5814                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5815                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5816                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5817                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5818                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5819                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5820                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5821                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5822                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5823                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5824                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5825                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5826                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5827                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5828                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5829                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5830                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5831                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5832                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5833                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5834                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5835                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5836                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5837                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5838                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5839                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5840                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5841                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5842                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5843                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5844                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5845                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5846                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5847                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5848                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5849                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5850                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5851                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5852                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5853                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5854                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5855                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5856                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5857                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5858                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5859                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5860                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5861                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5862                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5863                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5864                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5865                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5866                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5867                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5868                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5869                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5870                 .rlen   = 496,
5871                 .also_non_np = 1,
5872                 .np     = 3,
5873                 .tap    = { 496 - 20, 4, 16 },
5874         },
5875 };
5876
5877 static const struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
5878         { /* Generated from openssl */
5879                 .key    = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
5880                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
5881                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
5882                 .klen   = 24,
5883                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
5884                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
5885                           "\x53\x20\x63\x65\x65\x72\x73\x74"
5886                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
5887                           "\x20\x79\x65\x53\x72\x63\x74\x65"
5888                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
5889                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
5890                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
5891                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
5892                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
5893                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
5894                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
5895                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
5896                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
5897                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
5898                           "\x63\x65\x65\x72\x73\x74\x54\x20"
5899                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
5900                 .ilen   = 128,
5901                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
5902                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
5903                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
5904                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
5905                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
5906                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
5907                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
5908                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
5909                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
5910                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
5911                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
5912                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
5913                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
5914                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
5915                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
5916                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
5917                 .rlen   = 128,
5918         }, { /* Generated with Crypto++ */
5919                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
5920                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
5921                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
5922                 .klen   = 24,
5923                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
5924                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
5925                 .input  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5926                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5927                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5928                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5929                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5930                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5931                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5932                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5933                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5934                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5935                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5936                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5937                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5938                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5939                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5940                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5941                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5942                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5943                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5944                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5945                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5946                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5947                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5948                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5949                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5950                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5951                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5952                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5953                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5954                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5955                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5956                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5957                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5958                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5959                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5960                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5961                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5962                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5963                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5964                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5965                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5966                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5967                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5968                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5969                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5970                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5971                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5972                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5973                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5974                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5975                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5976                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5977                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5978                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5979                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5980                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5981                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5982                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5983                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5984                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5985                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5986                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5987                 .ilen   = 496,
5988                 .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
5989                           "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
5990                           "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
5991                           "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
5992                           "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
5993                           "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
5994                           "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
5995                           "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
5996                           "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
5997                           "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
5998                           "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
5999                           "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
6000                           "\x11\x35\x61\x94\x88\x7B\x1C\x48"
6001                           "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
6002                           "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
6003                           "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
6004                           "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
6005                           "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
6006                           "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
6007                           "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
6008                           "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
6009                           "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
6010                           "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
6011                           "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
6012                           "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
6013                           "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
6014                           "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
6015                           "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
6016                           "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
6017                           "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
6018                           "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
6019                           "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
6020                           "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
6021                           "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
6022                           "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
6023                           "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
6024                           "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
6025                           "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
6026                           "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
6027                           "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
6028                           "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
6029                           "\x73\x50\x08\x56\x20\x9B\x94\x23"
6030                           "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
6031                           "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
6032                           "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
6033                           "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
6034                           "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
6035                           "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
6036                           "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
6037                           "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
6038                           "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
6039                           "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
6040                           "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
6041                           "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
6042                           "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
6043                           "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
6044                           "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
6045                           "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
6046                           "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
6047                           "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
6048                           "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
6049                           "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
6050                 .rlen   = 496,
6051                 .also_non_np = 1,
6052                 .np     = 3,
6053                 .tap    = { 496 - 20, 4, 16 },
6054         },
6055 };
6056
6057 static const struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
6058         { /* Generated from openssl */
6059                 .key    = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
6060                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
6061                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
6062                 .klen   = 24,
6063                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
6064                 .input  = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
6065                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
6066                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
6067                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
6068                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
6069                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
6070                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
6071                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
6072                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
6073                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
6074                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
6075                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
6076                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
6077                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
6078                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
6079                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
6080                 .ilen   = 128,
6081                 .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
6082                           "\x53\x20\x63\x65\x65\x72\x73\x74"
6083                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
6084                           "\x20\x79\x65\x53\x72\x63\x74\x65"
6085                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
6086                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
6087                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
6088                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
6089                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
6090                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
6091                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
6092                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
6093                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
6094                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
6095                           "\x63\x65\x65\x72\x73\x74\x54\x20"
6096                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
6097                 .rlen   = 128,
6098         }, { /* Generated with Crypto++ */
6099                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6100                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6101                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6102                 .klen   = 24,
6103                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6104                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6105                 .input  = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
6106                           "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
6107                           "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
6108                           "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
6109                           "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
6110                           "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
6111                           "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
6112                           "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
6113                           "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
6114                           "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
6115                           "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
6116                           "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
6117                           "\x11\x35\x61\x94\x88\x7B\x1C\x48"
6118                           "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
6119                           "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
6120                           "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
6121                           "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
6122                           "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
6123                           "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
6124                           "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
6125                           "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
6126                           "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
6127                           "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
6128                           "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
6129                           "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
6130                           "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
6131                           "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
6132                           "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
6133                           "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
6134                           "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
6135                           "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
6136                           "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
6137                           "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
6138                           "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
6139                           "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
6140                           "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
6141                           "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
6142                           "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
6143                           "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
6144                           "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
6145                           "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
6146                           "\x73\x50\x08\x56\x20\x9B\x94\x23"
6147                           "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
6148                           "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
6149                           "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
6150                           "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
6151                           "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
6152                           "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
6153                           "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
6154                           "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
6155                           "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
6156                           "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
6157                           "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
6158                           "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
6159                           "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
6160                           "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
6161                           "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
6162                           "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
6163                           "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
6164                           "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
6165                           "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
6166                           "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
6167                 .ilen   = 496,
6168                 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6169                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6170                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6171                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6172                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6173                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6174                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6175                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6176                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6177                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6178                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6179                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6180                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6181                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6182                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6183                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6184                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6185                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6186                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6187                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6188                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6189                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6190                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6191                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6192                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6193                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6194                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6195                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6196                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6197                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6198                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6199                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6200                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6201                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6202                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6203                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6204                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6205                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6206                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6207                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6208                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6209                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6210                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6211                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6212                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6213                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6214                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6215                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6216                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6217                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6218                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6219                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6220                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6221                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6222                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6223                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6224                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6225                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6226                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6227                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6228                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6229                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6230                 .rlen   = 496,
6231                 .also_non_np = 1,
6232                 .np     = 3,
6233                 .tap    = { 496 - 20, 4, 16 },
6234         },
6235 };
6236
6237 static const struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
6238         { /* Generated with Crypto++ */
6239                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6240                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6241                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6242                 .klen   = 24,
6243                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6244                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6245                 .input  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6246                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6247                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6248                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6249                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6250                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6251                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6252                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6253                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6254                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6255                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6256                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6257                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6258                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6259                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6260                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6261                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6262                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6263                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6264                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6265                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6266                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6267                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6268                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6269                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6270                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6271                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6272                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6273                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6274                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6275                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6276                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6277                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6278                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6279                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6280                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6281                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6282                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6283                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6284                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6285                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6286                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6287                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6288                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6289                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6290                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6291                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6292                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6293                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6294                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6295                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6296                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6297                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6298                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6299                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6300                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6301                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6302                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6303                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6304                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6305                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6306                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6307                 .ilen   = 496,
6308                 .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6309                           "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6310                           "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6311                           "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6312                           "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6313                           "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6314                           "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6315                           "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6316                           "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6317                           "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6318                           "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6319                           "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6320                           "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6321                           "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6322                           "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6323                           "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6324                           "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6325                           "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6326                           "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6327                           "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6328                           "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6329                           "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6330                           "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6331                           "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6332                           "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6333                           "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6334                           "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6335                           "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6336                           "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6337                           "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6338                           "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6339                           "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6340                           "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6341                           "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6342                           "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6343                           "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6344                           "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6345                           "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6346                           "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6347                           "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6348                           "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6349                           "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6350                           "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6351                           "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6352                           "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6353                           "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6354                           "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6355                           "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6356                           "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6357                           "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6358                           "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6359                           "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6360                           "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6361                           "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6362                           "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6363                           "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6364                           "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6365                           "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6366                           "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6367                           "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6368                           "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6369                           "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6370                 .rlen   = 496,
6371                 .also_non_np = 1,
6372                 .np     = 3,
6373                 .tap    = { 496 - 20, 4, 16 },
6374         }, { /* Generated with Crypto++ */
6375                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6376                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6377                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6378                 .klen   = 24,
6379                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6380                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6381                 .input  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6382                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6383                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6384                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6385                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6386                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6387                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6388                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6389                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6390                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6391                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6392                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6393                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6394                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6395                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6396                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6397                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6398                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6399                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6400                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6401                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6402                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6403                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6404                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6405                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6406                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6407                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6408                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6409                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6410                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6411                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6412                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6413                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6414                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6415                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6416                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6417                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6418                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6419                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6420                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6421                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6422                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6423                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6424                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6425                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6426                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6427                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6428                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6429                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6430                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6431                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6432                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6433                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6434                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6435                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6436                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6437                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6438                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6439                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6440                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6441                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6442                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6443                           "\x2E\xB1\x18",
6444                 .ilen   = 499,
6445                 .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6446                           "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6447                           "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6448                           "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6449                           "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6450                           "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6451                           "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6452                           "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6453                           "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6454                           "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6455                           "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6456                           "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6457                           "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6458                           "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6459                           "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6460                           "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6461                           "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6462                           "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6463                           "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6464                           "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6465                           "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6466                           "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6467                           "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6468                           "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6469                           "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6470                           "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6471                           "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6472                           "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6473                           "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6474                           "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6475                           "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6476                           "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6477                           "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6478                           "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6479                           "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6480                           "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6481                           "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6482                           "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6483                           "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6484                           "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6485                           "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6486                           "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6487                           "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6488                           "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6489                           "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6490                           "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6491                           "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6492                           "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6493                           "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6494                           "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6495                           "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6496                           "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6497                           "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6498                           "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6499                           "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6500                           "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6501                           "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6502                           "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6503                           "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6504                           "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6505                           "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6506                           "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6507                           "\xF2\x79\xD9",
6508                 .rlen   = 499,
6509                 .also_non_np = 1,
6510                 .np     = 2,
6511                 .tap    = { 499 - 16, 16 },
6512         },
6513 };
6514
6515 static const struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
6516         { /* Generated with Crypto++ */
6517                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6518                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6519                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6520                 .klen   = 24,
6521                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6522                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6523                 .input  = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6524                           "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6525                           "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6526                           "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6527                           "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6528                           "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6529                           "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6530                           "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6531                           "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6532                           "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6533                           "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6534                           "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6535                           "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6536                           "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6537                           "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6538                           "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6539                           "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6540                           "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6541                           "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6542                           "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6543                           "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6544                           "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6545                           "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6546                           "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6547                           "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6548                           "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6549                           "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6550                           "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6551                           "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6552                           "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6553                           "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6554                           "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6555                           "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6556                           "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6557                           "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6558                           "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6559                           "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6560                           "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6561                           "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6562                           "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6563                           "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6564                           "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6565                           "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6566                           "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6567                           "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6568                           "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6569                           "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6570                           "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6571                           "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6572                           "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6573                           "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6574                           "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6575                           "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6576                           "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6577                           "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6578                           "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6579                           "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6580                           "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6581                           "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6582                           "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6583                           "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6584                           "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6585                 .ilen   = 496,
6586                 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6587                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6588                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6589                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6590                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6591                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6592                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6593                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6594                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6595                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6596                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6597                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6598                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6599                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6600                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6601                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6602                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6603                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6604                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6605                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6606                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6607                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6608                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6609                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6610                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6611                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6612                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6613                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6614                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6615                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6616                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6617                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6618                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6619                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6620                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6621                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6622                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6623                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6624                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6625                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6626                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6627                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6628                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6629                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6630                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6631                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6632                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6633                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6634                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6635                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6636                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6637                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6638                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6639                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6640                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6641                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6642                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6643                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6644                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6645                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6646                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6647                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6648                 .rlen   = 496,
6649                 .also_non_np = 1,
6650                 .np     = 3,
6651                 .tap    = { 496 - 20, 4, 16 },
6652         }, { /* Generated with Crypto++ */
6653                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6654                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6655                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6656                 .klen   = 24,
6657                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6658                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6659                 .input  = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6660                           "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6661                           "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6662                           "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6663                           "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6664                           "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6665                           "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6666                           "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6667                           "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6668                           "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6669                           "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6670                           "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6671                           "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6672                           "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6673                           "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6674                           "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6675                           "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6676                           "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6677                           "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6678                           "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6679                           "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6680                           "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6681                           "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6682                           "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6683                           "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6684                           "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6685                           "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6686                           "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6687                           "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6688                           "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6689                           "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6690                           "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6691                           "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6692                           "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6693                           "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6694                           "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6695                           "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6696                           "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6697                           "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6698                           "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6699                           "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6700                           "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6701                           "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6702                           "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6703                           "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6704                           "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6705                           "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6706                           "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6707                           "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6708                           "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6709                           "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6710                           "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6711                           "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6712                           "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6713                           "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6714                           "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6715                           "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6716                           "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6717                           "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6718                           "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6719                           "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6720                           "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6721                           "\xF2\x79\xD9",
6722                 .ilen   = 499,
6723                 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6724                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6725                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6726                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6727                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6728                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6729                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6730                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6731                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6732                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6733                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6734                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6735                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6736                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6737                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6738                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6739                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6740                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6741                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6742                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6743                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6744                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6745                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6746                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6747                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6748                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6749                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6750                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6751                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6752                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6753                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6754                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6755                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6756                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6757                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6758                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6759                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6760                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6761                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6762                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6763                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6764                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6765                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6766                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6767                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6768                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6769                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6770                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6771                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6772                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6773                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6774                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6775                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6776                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6777                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6778                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6779                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6780                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6781                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6782                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6783                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6784                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6785                           "\x2E\xB1\x18",
6786                 .rlen   = 499,
6787                 .also_non_np = 1,
6788                 .np     = 2,
6789                 .tap    = { 499 - 16, 16 },
6790         },
6791 };
6792
6793 /*
6794  * Blowfish test vectors.
6795  */
6796 static const struct cipher_testvec bf_enc_tv_template[] = {
6797         { /* DES test vectors from OpenSSL */
6798                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
6799                 .klen   = 8,
6800                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00",
6801                 .ilen   = 8,
6802                 .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6803                 .rlen   = 8,
6804         }, {
6805                 .key    = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6806                 .klen   = 8,
6807                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6808                 .ilen   = 8,
6809                 .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6810                 .rlen   = 8,
6811         }, {
6812                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6813                 .klen   = 8,
6814                 .input  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6815                 .ilen   = 8,
6816                 .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6817                 .rlen   = 8,
6818         }, { /* Vary the keylength... */
6819                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6820                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6821                 .klen   = 16,
6822                 .input  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6823                 .ilen   = 8,
6824                 .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6825                 .rlen   = 8,
6826         }, {
6827                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6828                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6829                           "\x00\x11\x22\x33\x44",
6830                 .klen   = 21,
6831                 .input  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6832                 .ilen   = 8,
6833                 .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6834                 .rlen   = 8,
6835         }, { /* Generated with bf488 */
6836                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6837                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6838                           "\x00\x11\x22\x33\x44\x55\x66\x77"
6839                           "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6840                           "\x58\x40\x23\x64\x1a\xba\x61\x76"
6841                           "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6842                           "\xff\xff\xff\xff\xff\xff\xff\xff",
6843                 .klen   = 56,
6844                 .input  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6845                 .ilen   = 8,
6846                 .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6847                 .rlen   = 8,
6848         }, { /* Generated with Crypto++ */
6849                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6850                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6851                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6852                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6853                 .klen   = 32,
6854                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6855                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6856                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6857                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6858                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6859                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6860                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6861                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6862                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6863                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6864                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6865                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6866                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6867                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6868                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6869                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6870                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6871                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6872                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6873                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6874                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6875                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6876                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6877                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6878                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6879                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6880                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6881                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6882                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6883                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6884                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6885                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6886                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6887                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6888                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6889                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6890                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6891                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6892                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6893                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6894                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6895                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6896                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6897                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6898                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6899                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6900                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6901                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6902                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6903                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6904                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6905                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6906                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6907                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6908                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6909                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6910                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6911                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6912                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6913                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6914                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6915                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6916                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6917                 .ilen   = 504,
6918                 .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6919                           "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6920                           "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6921                           "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6922                           "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6923                           "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6924                           "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6925                           "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6926                           "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6927                           "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6928                           "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6929                           "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6930                           "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6931                           "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6932                           "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6933                           "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6934                           "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6935                           "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6936                           "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6937                           "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6938                           "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6939                           "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6940                           "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6941                           "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6942                           "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6943                           "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6944                           "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6945                           "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6946                           "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6947                           "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6948                           "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6949                           "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6950                           "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6951                           "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6952                           "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6953                           "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6954                           "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6955                           "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6956                           "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6957                           "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6958                           "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6959                           "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6960                           "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6961                           "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6962                           "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6963                           "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6964                           "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6965                           "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6966                           "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6967                           "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6968                           "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6969                           "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6970                           "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6971                           "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6972                           "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6973                           "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6974                           "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6975                           "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6976                           "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6977                           "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6978                           "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6979                           "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6980                           "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6981                 .rlen   = 504,
6982                 .also_non_np = 1,
6983                 .np     = 3,
6984                 .tap    = { 504 - 10, 2, 8 },
6985         },
6986 };
6987
6988 static const struct cipher_testvec bf_dec_tv_template[] = {
6989         { /* DES test vectors from OpenSSL */
6990                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
6991                 .klen   = 8,
6992                 .input  = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6993                 .ilen   = 8,
6994                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
6995                 .rlen   = 8,
6996         }, {
6997                 .key    = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6998                 .klen   = 8,
6999                 .input  = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
7000                 .ilen   = 8,
7001                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7002                 .rlen   = 8,
7003         }, {
7004                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7005                 .klen   = 8,
7006                 .input  = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
7007                 .ilen   = 8,
7008                 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7009                 .rlen   = 8,
7010         }, { /* Vary the keylength... */
7011                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
7012                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
7013                 .klen   = 16,
7014                 .input  = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
7015                 .ilen   = 8,
7016                 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7017                 .rlen   = 8,
7018         }, {
7019                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
7020                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
7021                           "\x00\x11\x22\x33\x44",
7022                 .klen   = 21,
7023                 .input  = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
7024                 .ilen   = 8,
7025                 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7026                 .rlen   = 8,
7027         }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
7028                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
7029                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
7030                           "\x00\x11\x22\x33\x44\x55\x66\x77"
7031                           "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
7032                           "\x58\x40\x23\x64\x1a\xba\x61\x76"
7033                           "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
7034                           "\xff\xff\xff\xff\xff\xff\xff\xff",
7035                 .klen   = 56,
7036                 .input  = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
7037                 .ilen   = 8,
7038                 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7039                 .rlen   = 8,
7040         }, { /* Generated with Crypto++ */
7041                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7042                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7043                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7044                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7045                 .klen   = 32,
7046                 .input  = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
7047                           "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
7048                           "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
7049                           "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
7050                           "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
7051                           "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
7052                           "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
7053                           "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
7054                           "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
7055                           "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
7056                           "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
7057                           "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
7058                           "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
7059                           "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
7060                           "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
7061                           "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
7062                           "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
7063                           "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
7064                           "\x47\x82\x98\x23\x33\x36\xBC\x1B"
7065                           "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
7066                           "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
7067                           "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
7068                           "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
7069                           "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
7070                           "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
7071                           "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
7072                           "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
7073                           "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
7074                           "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
7075                           "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
7076                           "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
7077                           "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
7078                           "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
7079                           "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
7080                           "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
7081                           "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
7082                           "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
7083                           "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
7084                           "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
7085                           "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
7086                           "\x3E\x42\x14\x49\x88\x51\xBF\x68"
7087                           "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
7088                           "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
7089                           "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
7090                           "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
7091                           "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
7092                           "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
7093                           "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
7094                           "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
7095                           "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
7096                           "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
7097                           "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
7098                           "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
7099                           "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
7100                           "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
7101                           "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
7102                           "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
7103                           "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
7104                           "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
7105                           "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
7106                           "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
7107                           "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
7108                           "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
7109                 .ilen   = 504,
7110                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7111                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7112                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7113                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7114                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7115                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7116                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7117                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7118                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7119                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7120                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7121                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7122                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7123                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7124                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7125                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7126                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7127                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7128                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7129                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7130                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7131                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7132                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7133                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7134                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7135                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7136                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7137                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7138                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7139                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7140                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7141                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7142                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7143                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7144                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7145                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7146                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7147                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7148                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7149                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7150                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7151                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7152                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7153                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7154                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7155                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7156                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7157                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7158                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7159                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7160                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7161                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7162                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7163                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7164                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7165                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7166                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7167                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7168                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7169                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7170                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7171                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7172                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7173                 .rlen   = 504,
7174                 .also_non_np = 1,
7175                 .np     = 3,
7176                 .tap    = { 504 - 10, 2, 8 },
7177         },
7178 };
7179
7180 static const struct cipher_testvec bf_cbc_enc_tv_template[] = {
7181         { /* From OpenSSL */
7182                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7183                           "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7184                 .klen   = 16,
7185                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7186                 .input  = "\x37\x36\x35\x34\x33\x32\x31\x20"
7187                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7188                           "\x68\x65\x20\x74\x69\x6d\x65\x20"
7189                           "\x66\x6f\x72\x20\x00\x00\x00\x00",
7190                 .ilen   = 32,
7191                 .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7192                           "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7193                           "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7194                           "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7195                 .rlen   = 32,
7196         }, { /* Generated with Crypto++ */
7197                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7198                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7199                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7200                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7201                 .klen   = 32,
7202                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7203                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7204                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7205                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7206                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7207                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7208                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7209                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7210                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7211                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7212                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7213                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7214                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7215                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7216                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7217                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7218                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7219                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7220                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7221                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7222                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7223                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7224                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7225                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7226                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7227                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7228                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7229                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7230                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7231                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7232                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7233                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7234                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7235                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7236                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7237                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7238                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7239                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7240                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7241                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7242                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7243                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7244                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7245                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7246                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7247                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7248                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7249                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7250                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7251                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7252                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7253                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7254                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7255                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7256                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7257                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7258                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7259                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7260                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7261                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7262                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7263                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7264                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7265                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7266                 .ilen   = 504,
7267                 .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7268                           "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7269                           "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7270                           "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
7271                           "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7272                           "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7273                           "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7274                           "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7275                           "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7276                           "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7277                           "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7278                           "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7279                           "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7280                           "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7281                           "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7282                           "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7283                           "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7284                           "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7285                           "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7286                           "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7287                           "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7288                           "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7289                           "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7290                           "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7291                           "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7292                           "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7293                           "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7294                           "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7295                           "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7296                           "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7297                           "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7298                           "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7299                           "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7300                           "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7301                           "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7302                           "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7303                           "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7304                           "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7305                           "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7306                           "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7307                           "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7308                           "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7309                           "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7310                           "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7311                           "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7312                           "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7313                           "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7314                           "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7315                           "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7316                           "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7317                           "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7318                           "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7319                           "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7320                           "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7321                           "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7322                           "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7323                           "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7324                           "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7325                           "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7326                           "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7327                           "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7328                           "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7329                           "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7330                 .rlen   = 504,
7331                 .also_non_np = 1,
7332                 .np     = 3,
7333                 .tap    = { 504 - 10, 2, 8 },
7334         },
7335 };
7336
7337 static const struct cipher_testvec bf_cbc_dec_tv_template[] = {
7338         { /* From OpenSSL */
7339                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7340                           "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7341                 .klen   = 16,
7342                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7343                 .input  = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7344                           "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7345                           "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7346                           "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7347                 .ilen   = 32,
7348                 .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
7349                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7350                           "\x68\x65\x20\x74\x69\x6d\x65\x20"
7351                           "\x66\x6f\x72\x20\x00\x00\x00\x00",
7352                 .rlen   = 32,
7353         }, { /* Generated with Crypto++ */
7354                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7355                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7356                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7357                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7358                 .klen   = 32,
7359                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7360                 .input  = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7361                           "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7362                           "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7363                           "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
7364                           "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7365                           "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7366                           "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7367                           "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7368                           "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7369                           "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7370                           "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7371                           "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7372                           "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7373                           "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7374                           "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7375                           "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7376                           "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7377                           "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7378                           "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7379                           "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7380                           "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7381                           "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7382                           "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7383                           "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7384                           "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7385                           "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7386                           "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7387                           "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7388                           "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7389                           "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7390                           "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7391                           "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7392                           "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7393                           "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7394                           "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7395                           "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7396                           "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7397                           "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7398                           "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7399                           "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7400                           "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7401                           "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7402                           "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7403                           "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7404                           "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7405                           "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7406                           "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7407                           "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7408                           "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7409                           "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7410                           "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7411                           "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7412                           "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7413                           "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7414                           "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7415                           "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7416                           "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7417                           "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7418                           "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7419                           "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7420                           "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7421                           "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7422                           "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7423                 .ilen   = 504,
7424                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7425                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7426                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7427                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7428                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7429                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7430                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7431                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7432                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7433                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7434                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7435                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7436                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7437                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7438                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7439                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7440                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7441                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7442                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7443                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7444                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7445                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7446                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7447                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7448                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7449                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7450                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7451                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7452                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7453                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7454                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7455                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7456                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7457                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7458                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7459                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7460                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7461                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7462                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7463                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7464                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7465                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7466                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7467                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7468                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7469                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7470                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7471                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7472                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7473                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7474                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7475                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7476                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7477                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7478                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7479                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7480                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7481                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7482                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7483                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7484                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7485                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7486                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7487                 .rlen   = 504,
7488                 .also_non_np = 1,
7489                 .np     = 3,
7490                 .tap    = { 504 - 10, 2, 8 },
7491         },
7492 };
7493
7494 static const struct cipher_testvec bf_ctr_enc_tv_template[] = {
7495         { /* Generated with Crypto++ */
7496                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7497                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7498                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7499                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7500                 .klen   = 32,
7501                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7502                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7503                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7504                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7505                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7506                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7507                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7508                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7509                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7510                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7511                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7512                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7513                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7514                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7515                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7516                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7517                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7518                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7519                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7520                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7521                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7522                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7523                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7524                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7525                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7526                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7527                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7528                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7529                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7530                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7531                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7532                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7533                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7534                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7535                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7536                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7537                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7538                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7539                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7540                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7541                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7542                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7543                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7544                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7545                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7546                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7547                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7548                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7549                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7550                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7551                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7552                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7553                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7554                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7555                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7556                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7557                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7558                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7559                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7560                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7561                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7562                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7563                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7564                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7565                 .ilen   = 504,
7566                 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7567                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7568                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7569                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7570                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7571                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7572                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7573                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7574                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7575                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7576                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7577                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7578                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7579                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7580                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7581                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7582                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7583                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7584                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7585                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7586                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7587                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7588                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7589                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7590                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7591                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7592                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7593                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7594                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7595                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7596                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7597                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7598                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7599                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7600                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7601                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7602                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7603                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7604                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7605                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7606                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7607                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7608                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7609                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7610                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7611                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7612                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7613                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7614                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7615                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7616                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7617                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7618                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7619                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7620                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7621                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7622                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7623                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7624                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7625                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7626                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7627                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7628                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7629                 .rlen   = 504,
7630         }, { /* Generated with Crypto++ */
7631                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7632                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7633                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7634                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7635                 .klen   = 32,
7636                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7637                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7638                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7639                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7640                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7641                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7642                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7643                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7644                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7645                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7646                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7647                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7648                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7649                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7650                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7651                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7652                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7653                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7654                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7655                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7656                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7657                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7658                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7659                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7660                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7661                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7662                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7663                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7664                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7665                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7666                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7667                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7668                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7669                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7670                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7671                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7672                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7673                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7674                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7675                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7676                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7677                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7678                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7679                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7680                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7681                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7682                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7683                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7684                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7685                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7686                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7687                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7688                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7689                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7690                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7691                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7692                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7693                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7694                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7695                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7696                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7697                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7698                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7699                           "\x2B\xC2\x59\xF0\x64\xFB\x92",
7700                 .ilen   = 503,
7701                 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7702                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7703                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7704                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7705                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7706                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7707                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7708                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7709                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7710                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7711                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7712                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7713                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7714                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7715                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7716                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7717                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7718                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7719                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7720                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7721                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7722                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7723                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7724                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7725                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7726                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7727                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7728                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7729                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7730                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7731                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7732                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7733                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7734                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7735                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7736                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7737                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7738                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7739                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7740                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7741                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7742                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7743                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7744                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7745                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7746                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7747                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7748                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7749                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7750                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7751                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7752                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7753                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7754                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7755                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7756                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7757                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7758                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7759                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7760                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7761                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7762                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7763                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7764                 .rlen   = 503,
7765                 .also_non_np = 1,
7766                 .np     = 2,
7767                 .tap    = { 503 - 8, 8 },
7768         }, { /* Generated with Crypto++ */
7769                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7770                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7771                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7772                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7773                 .klen   = 32,
7774                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7775                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7776                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7777                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7778                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7779                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7780                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7781                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7782                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7783                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7784                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7785                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7786                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7787                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7788                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7789                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7790                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7791                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7792                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7793                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7794                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7795                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7796                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7797                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7798                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7799                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7800                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7801                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7802                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7803                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7804                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7805                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7806                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7807                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7808                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7809                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7810                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7811                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7812                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7813                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7814                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7815                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7816                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7817                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7818                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7819                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7820                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7821                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7822                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7823                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7824                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7825                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7826                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7827                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7828                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7829                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7830                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7831                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7832                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7833                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7834                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7835                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7836                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7837                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7838                 .ilen   = 504,
7839                 .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
7840                           "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7841                           "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7842                           "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7843                           "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7844                           "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7845                           "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7846                           "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7847                           "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7848                           "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7849                           "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7850                           "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7851                           "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7852                           "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7853                           "\x0B\x82\x59\x14\x26\x67\x08\x09"
7854                           "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7855                           "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7856                           "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7857                           "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7858                           "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7859                           "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7860                           "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7861                           "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7862                           "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7863                           "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7864                           "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7865                           "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7866                           "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7867                           "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7868                           "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7869                           "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7870                           "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7871                           "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7872                           "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7873                           "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7874                           "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7875                           "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7876                           "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7877                           "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7878                           "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7879                           "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7880                           "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7881                           "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7882                           "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7883                           "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7884                           "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7885                           "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7886                           "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7887                           "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7888                           "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7889                           "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7890                           "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7891                           "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7892                           "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7893                           "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7894                           "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7895                           "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7896                           "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7897                           "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7898                           "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7899                           "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7900                           "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7901                           "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
7902                 .rlen   = 504,
7903         },
7904 };
7905
7906 static const struct cipher_testvec bf_ctr_dec_tv_template[] = {
7907         { /* Generated with Crypto++ */
7908                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7909                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7910                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7911                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7912                 .klen   = 32,
7913                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7914                 .input  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7915                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7916                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7917                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7918                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7919                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7920                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7921                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7922                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7923                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7924                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7925                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7926                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7927                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7928                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7929                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7930                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7931                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7932                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7933                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7934                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7935                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7936                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7937                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7938                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7939                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7940                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7941                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7942                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7943                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7944                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7945                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7946                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7947                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7948                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7949                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7950                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7951                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7952                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7953                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7954                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7955                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7956                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7957                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7958                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7959                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7960                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7961                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7962                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7963                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7964                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7965                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7966                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7967                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7968                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7969                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7970                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7971                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7972                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7973                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7974                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7975                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7976                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7977                 .ilen   = 504,
7978                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7979                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7980                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7981                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7982                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7983                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7984                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7985                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7986                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7987                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7988                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7989                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7990                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7991                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7992                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7993                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7994                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7995                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7996                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7997                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7998                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7999                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8000                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8001                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8002                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8003                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8004                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8005                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8006                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8007                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8008                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8009                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8010                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8011                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8012                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8013                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8014                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8015                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8016                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8017                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8018                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8019                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8020                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8021                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8022                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8023                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8024                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8025                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8026                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8027                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8028                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8029                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8030                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8031                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8032                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8033                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8034                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8035                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8036                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8037                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8038                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8039                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8040                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
8041                 .rlen   = 504,
8042         }, { /* Generated with Crypto++ */
8043                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8044                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8045                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8046                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8047                 .klen   = 32,
8048                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
8049                 .input  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
8050                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
8051                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
8052                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
8053                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
8054                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
8055                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
8056                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
8057                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
8058                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
8059                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
8060                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
8061                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
8062                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
8063                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
8064                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
8065                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
8066                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
8067                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
8068                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
8069                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
8070                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
8071                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
8072                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
8073                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
8074                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
8075                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
8076                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
8077                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
8078                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
8079                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
8080                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
8081                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
8082                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
8083                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
8084                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
8085                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
8086                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
8087                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
8088                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
8089                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
8090                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
8091                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
8092                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
8093                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
8094                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
8095                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
8096                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
8097                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
8098                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
8099                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
8100                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
8101                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
8102                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
8103                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
8104                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
8105                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
8106                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
8107                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
8108                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
8109                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
8110                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
8111                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
8112                 .ilen   = 503,
8113                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8114                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8115                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8116                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8117                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8118                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8119                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8120                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8121                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8122                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8123                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8124                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8125                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8126                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8127                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8128                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8129                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8130                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8131                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8132                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8133                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8134                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8135                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8136                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8137                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8138                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8139                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8140                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8141                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8142                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8143                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8144                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8145                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8146                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8147                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8148                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8149                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8150                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8151                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8152                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8153                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8154                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8155                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8156                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8157                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8158                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8159                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8160                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8161                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8162                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8163                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8164                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8165                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8166                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8167                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8168                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8169                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8170                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8171                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8172                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8173                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8174                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8175                           "\x2B\xC2\x59\xF0\x64\xFB\x92",
8176                 .rlen   = 503,
8177                 .also_non_np = 1,
8178                 .np     = 2,
8179                 .tap    = { 503 - 8, 8 },
8180         }, { /* Generated with Crypto++ */
8181                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8182                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8183                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8184                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8185                 .klen   = 32,
8186                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
8187                 .input  = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
8188                           "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
8189                           "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
8190                           "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
8191                           "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
8192                           "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
8193                           "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
8194                           "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
8195                           "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
8196                           "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
8197                           "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
8198                           "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
8199                           "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
8200                           "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
8201                           "\x0B\x82\x59\x14\x26\x67\x08\x09"
8202                           "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
8203                           "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
8204                           "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
8205                           "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
8206                           "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
8207                           "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
8208                           "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
8209                           "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
8210                           "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
8211                           "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
8212                           "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
8213                           "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
8214                           "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
8215                           "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
8216                           "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
8217                           "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
8218                           "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
8219                           "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
8220                           "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
8221                           "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
8222                           "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
8223                           "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
8224                           "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
8225                           "\xB4\x19\xD8\x19\x45\x66\x27\x02"
8226                           "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
8227                           "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
8228                           "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
8229                           "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
8230                           "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
8231                           "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
8232                           "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
8233                           "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
8234                           "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
8235                           "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
8236                           "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
8237                           "\x91\x51\x4E\x71\xF2\x98\x85\x16"
8238                           "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
8239                           "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
8240                           "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
8241                           "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
8242                           "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
8243                           "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
8244                           "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
8245                           "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
8246                           "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
8247                           "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
8248                           "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
8249                           "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
8250                 .ilen   = 504,
8251                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8252                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8253                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8254                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8255                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8256                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8257                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8258                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8259                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8260                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8261                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8262                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8263                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8264                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8265                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8266                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8267                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8268                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8269                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8270                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8271                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8272                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8273                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8274                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8275                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8276                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8277                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8278                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8279                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8280                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8281                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8282                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8283                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8284                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8285                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8286                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8287                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8288                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8289                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8290                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8291                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8292                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8293                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8294                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8295                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8296                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8297                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8298                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8299                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8300                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8301                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8302                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8303                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8304                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8305                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8306                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8307                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8308                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8309                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8310                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8311                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8312                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8313                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
8314                 .rlen   = 504,
8315         },
8316 };
8317
8318 /*
8319  * Twofish test vectors.
8320  */
8321 static const struct cipher_testvec tf_enc_tv_template[] = {
8322         {
8323                 .key    = zeroed_string,
8324                 .klen   = 16,
8325                 .input  = zeroed_string,
8326                 .ilen   = 16,
8327                 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8328                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8329                 .rlen   = 16,
8330         }, {
8331                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8332                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8333                           "\x00\x11\x22\x33\x44\x55\x66\x77",
8334                 .klen   = 24,
8335                 .input  = zeroed_string,
8336                 .ilen   = 16,
8337                 .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8338                           "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8339                 .rlen   = 16,
8340         }, {
8341                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8342                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8343                           "\x00\x11\x22\x33\x44\x55\x66\x77"
8344                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8345                 .klen   = 32,
8346                 .input  = zeroed_string,
8347                 .ilen   = 16,
8348                 .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8349                           "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8350                 .rlen   = 16,
8351         }, { /* Generated with Crypto++ */
8352                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8353                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8354                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8355                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8356                 .klen   = 32,
8357                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8358                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8359                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8360                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8361                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8362                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8363                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8364                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8365                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8366                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8367                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8368                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8369                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8370                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8371                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8372                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8373                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8374                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8375                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8376                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8377                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8378                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8379                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8380                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8381                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8382                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8383                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8384                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8385                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8386                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8387                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8388                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8389                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8390                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8391                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8392                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8393                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8394                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8395                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8396                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8397                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8398                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8399                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8400                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8401                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8402                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8403                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8404                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8405                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8406                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8407                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8408                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8409                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8410                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8411                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8412                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8413                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8414                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8415                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8416                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8417                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8418                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8419                 .ilen   = 496,
8420                 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8421                           "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8422                           "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8423                           "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8424                           "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8425                           "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8426                           "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
8427                           "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8428                           "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8429                           "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8430                           "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8431                           "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8432                           "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8433                           "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8434                           "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8435                           "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8436                           "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8437                           "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8438                           "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8439                           "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8440                           "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8441                           "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8442                           "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8443                           "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8444                           "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8445                           "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8446                           "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8447                           "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8448                           "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8449                           "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8450                           "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8451                           "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8452                           "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8453                           "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8454                           "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8455                           "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8456                           "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8457                           "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8458                           "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8459                           "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8460                           "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8461                           "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8462                           "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8463                           "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8464                           "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8465                           "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8466                           "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8467                           "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8468                           "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8469                           "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8470                           "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8471                           "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8472                           "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8473                           "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8474                           "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8475                           "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8476                           "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8477                           "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8478                           "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8479                           "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8480                           "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8481                           "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8482                 .rlen   = 496,
8483                 .also_non_np = 1,
8484                 .np     = 3,
8485                 .tap    = { 496 - 20, 4, 16 },
8486         },
8487 };
8488
8489 static const struct cipher_testvec tf_dec_tv_template[] = {
8490         {
8491                 .key    = zeroed_string,
8492                 .klen   = 16,
8493                 .input  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8494                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8495                 .ilen   = 16,
8496                 .result = zeroed_string,
8497                 .rlen   = 16,
8498         }, {
8499                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8500                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8501                           "\x00\x11\x22\x33\x44\x55\x66\x77",
8502                 .klen   = 24,
8503                 .input  = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8504                           "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8505                 .ilen   = 16,
8506                 .result = zeroed_string,
8507                 .rlen   = 16,
8508         }, {
8509                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8510                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8511                           "\x00\x11\x22\x33\x44\x55\x66\x77"
8512                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8513                 .klen   = 32,
8514                 .input  = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8515                           "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8516                 .ilen   = 16,
8517                 .result = zeroed_string,
8518                 .rlen   = 16,
8519         }, { /* Generated with Crypto++ */
8520                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8521                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8522                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8523                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8524                 .klen   = 32,
8525                 .input  = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8526                           "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8527                           "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8528                           "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8529                           "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8530                           "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8531                           "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
8532                           "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8533                           "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8534                           "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8535                           "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8536                           "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8537                           "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8538                           "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8539                           "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8540                           "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8541                           "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8542                           "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8543                           "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8544                           "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8545                           "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8546                           "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8547                           "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8548                           "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8549                           "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8550                           "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8551                           "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8552                           "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8553                           "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8554                           "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8555                           "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8556                           "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8557                           "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8558                           "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8559                           "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8560                           "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8561                           "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8562                           "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8563                           "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8564                           "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8565                           "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8566                           "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8567                           "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8568                           "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8569                           "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8570                           "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8571                           "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8572                           "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8573                           "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8574                           "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8575                           "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8576                           "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8577                           "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8578                           "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8579                           "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8580                           "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8581                           "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8582                           "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8583                           "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8584                           "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8585                           "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8586                           "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8587                 .ilen   = 496,
8588                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8589                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8590                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8591                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8592                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8593                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8594                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8595                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8596                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8597                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8598                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8599                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8600                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8601                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8602                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8603                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8604                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8605                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8606                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8607                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8608                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8609                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8610                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8611                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8612                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8613                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8614                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8615                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8616                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8617                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8618                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8619                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8620                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8621                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8622                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8623                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8624                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8625                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8626                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8627                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8628                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8629                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8630                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8631                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8632                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8633                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8634                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8635                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8636                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8637                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8638                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8639                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8640                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8641                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8642                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8643                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8644                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8645                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8646                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8647                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8648                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8649                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8650                 .rlen   = 496,
8651                 .also_non_np = 1,
8652                 .np     = 3,
8653                 .tap    = { 496 - 20, 4, 16 },
8654         },
8655 };
8656
8657 static const struct cipher_testvec tf_cbc_enc_tv_template[] = {
8658         { /* Generated with Nettle */
8659                 .key    = zeroed_string,
8660                 .klen   = 16,
8661                 .iv     = zeroed_string,
8662                 .input  = zeroed_string,
8663                 .ilen   = 16,
8664                 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8665                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8666                 .rlen   = 16,
8667         }, {
8668                 .key    = zeroed_string,
8669                 .klen   = 16,
8670                 .iv     = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8671                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8672                 .input  = zeroed_string,
8673                 .ilen   = 16,
8674                 .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8675                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8676                 .rlen   = 16,
8677         }, {
8678                 .key    = zeroed_string,
8679                 .klen   = 16,
8680                 .iv     = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8681                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8682                 .input  = zeroed_string,
8683                 .ilen   = 16,
8684                 .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8685                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8686                 .rlen   = 16,
8687         }, {
8688                 .key    = zeroed_string,
8689                 .klen   = 16,
8690                 .iv     = zeroed_string,
8691                 .input  = zeroed_string,
8692                 .ilen   = 48,
8693                 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8694                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8695                           "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8696                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8697                           "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8698                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8699                 .rlen   = 48,
8700         }, { /* Generated with Crypto++ */
8701                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8702                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8703                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8704                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8705                 .klen   = 32,
8706                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8707                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8708                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8709                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8710                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8711                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8712                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8713                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8714                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8715                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8716                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8717                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8718                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8719                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8720                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8721                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8722                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8723                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8724                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8725                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8726                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8727                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8728                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8729                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8730                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8731                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8732                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8733                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8734                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8735                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8736                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8737                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8738                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8739                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8740                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8741                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8742                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8743                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8744                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8745                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8746                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8747                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8748                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8749                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8750                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8751                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8752                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8753                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8754                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8755                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8756                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8757                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8758                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8759                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8760                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8761                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8762                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8763                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8764                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8765                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8766                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8767                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8768                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8769                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8770                 .ilen   = 496,
8771                 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8772                           "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8773                           "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8774                           "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8775                           "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8776                           "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8777                           "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
8778                           "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8779                           "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8780                           "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8781                           "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8782                           "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8783                           "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8784                           "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8785                           "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8786                           "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8787                           "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8788                           "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8789                           "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8790                           "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8791                           "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8792                           "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8793                           "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8794                           "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8795                           "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8796                           "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8797                           "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8798                           "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8799                           "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8800                           "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8801                           "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8802                           "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8803                           "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8804                           "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8805                           "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8806                           "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8807                           "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8808                           "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8809                           "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8810                           "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8811                           "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8812                           "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8813                           "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8814                           "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8815                           "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8816                           "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8817                           "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8818                           "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8819                           "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8820                           "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8821                           "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8822                           "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8823                           "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8824                           "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8825                           "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8826                           "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8827                           "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8828                           "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8829                           "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8830                           "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8831                           "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8832                           "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8833                 .rlen   = 496,
8834                 .also_non_np = 1,
8835                 .np     = 3,
8836                 .tap    = { 496 - 20, 4, 16 },
8837         },
8838 };
8839
8840 static const struct cipher_testvec tf_cbc_dec_tv_template[] = {
8841         { /* Reverse of the first four above */
8842                 .key    = zeroed_string,
8843                 .klen   = 16,
8844                 .iv     = zeroed_string,
8845                 .input  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8846                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8847                 .ilen   = 16,
8848                 .result = zeroed_string,
8849                 .rlen   = 16,
8850         }, {
8851                 .key    = zeroed_string,
8852                 .klen   = 16,
8853                 .iv     = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8854                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8855                 .input  = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8856                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8857                 .ilen   = 16,
8858                 .result = zeroed_string,
8859                 .rlen   = 16,
8860         }, {
8861                 .key    = zeroed_string,
8862                 .klen   = 16,
8863                 .iv     = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8864                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8865                 .input  = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8866                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8867                 .ilen   = 16,
8868                 .result = zeroed_string,
8869                 .rlen   = 16,
8870         }, {
8871                 .key    = zeroed_string,
8872                 .klen   = 16,
8873                 .iv     = zeroed_string,
8874                 .input  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8875                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8876                           "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8877                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8878                           "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8879                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8880                 .ilen   = 48,
8881                 .result = zeroed_string,
8882                 .rlen   = 48,
8883         }, { /* Generated with Crypto++ */
8884                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8885                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8886                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8887                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8888                 .klen   = 32,
8889                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8890                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8891                 .input  = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8892                           "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8893                           "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8894                           "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8895                           "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8896                           "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8897                           "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
8898                           "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8899                           "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8900                           "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8901                           "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8902                           "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8903                           "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8904                           "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8905                           "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8906                           "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8907                           "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8908                           "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8909                           "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8910                           "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8911                           "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8912                           "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8913                           "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8914                           "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8915                           "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8916                           "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8917                           "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8918                           "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8919                           "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8920                           "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8921                           "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8922                           "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8923                           "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8924                           "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8925                           "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8926                           "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8927                           "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8928                           "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8929                           "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8930                           "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8931                           "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8932                           "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8933                           "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8934                           "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8935                           "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8936                           "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8937                           "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8938                           "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8939                           "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8940                           "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8941                           "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8942                           "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8943                           "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8944                           "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8945                           "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8946                           "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8947                           "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8948                           "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8949                           "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8950                           "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8951                           "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8952                           "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8953                 .ilen   = 496,
8954                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8955                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8956                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8957                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8958                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8959                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8960                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8961                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8962                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8963                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8964                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8965                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8966                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8967                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8968                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8969                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8970                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8971                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8972                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8973                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8974                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8975                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8976                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8977                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8978                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8979                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8980                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8981                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8982                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8983                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8984                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8985                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8986                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8987                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8988                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8989                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8990                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8991                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8992                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8993                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8994                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8995                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8996                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8997                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8998                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8999                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9000                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9001                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9002                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9003                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9004                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9005                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9006                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9007                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9008                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9009                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9010                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9011                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9012                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9013                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9014                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9015                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9016                 .rlen   = 496,
9017                 .also_non_np = 1,
9018                 .np     = 3,
9019                 .tap    = { 496 - 20, 4, 16 },
9020         },
9021 };
9022
9023 static const struct cipher_testvec tf_ctr_enc_tv_template[] = {
9024         { /* Generated with Crypto++ */
9025                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9026                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9027                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9028                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9029                 .klen   = 32,
9030                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9031                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9032                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9033                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9034                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9035                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9036                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9037                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9038                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9039                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9040                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9041                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9042                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9043                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9044                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9045                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9046                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9047                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9048                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9049                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9050                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9051                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9052                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9053                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9054                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9055                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9056                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9057                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9058                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9059                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9060                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9061                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9062                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9063                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9064                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9065                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9066                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9067                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9068                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9069                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9070                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9071                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9072                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9073                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9074                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9075                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9076                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9077                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9078                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9079                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9080                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9081                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9082                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9083                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9084                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9085                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9086                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9087                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9088                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9089                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9090                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9091                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9092                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9093                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9094                 .ilen   = 496,
9095                 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9096                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9097                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9098                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9099                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9100                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9101                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9102                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9103                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9104                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9105                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9106                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9107                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9108                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9109                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9110                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9111                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9112                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9113                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9114                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9115                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9116                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9117                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9118                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9119                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9120                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9121                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9122                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9123                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9124                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9125                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9126                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9127                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9128                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9129                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9130                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9131                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9132                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9133                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9134                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9135                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9136                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9137                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9138                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9139                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9140                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9141                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9142                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9143                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9144                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9145                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9146                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9147                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9148                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9149                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9150                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9151                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9152                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9153                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9154                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9155                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9156                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
9157                 .rlen   = 496,
9158         }, { /* Generated with Crypto++ */
9159                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9160                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9161                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9162                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9163                 .klen   = 32,
9164                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9165                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9166                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9167                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9168                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9169                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9170                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9171                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9172                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9173                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9174                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9175                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9176                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9177                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9178                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9179                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9180                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9181                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9182                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9183                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9184                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9185                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9186                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9187                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9188                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9189                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9190                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9191                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9192                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9193                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9194                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9195                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9196                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9197                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9198                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9199                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9200                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9201                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9202                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9203                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9204                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9205                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9206                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9207                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9208                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9209                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9210                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9211                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9212                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9213                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9214                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9215                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9216                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9217                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9218                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9219                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9220                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9221                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9222                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9223                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9224                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9225                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9226                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9227                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9228                 .ilen   = 496,
9229                 .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9230                           "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9231                           "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9232                           "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9233                           "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9234                           "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9235                           "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9236                           "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9237                           "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9238                           "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9239                           "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9240                           "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9241                           "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9242                           "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9243                           "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9244                           "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9245                           "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9246                           "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9247                           "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9248                           "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9249                           "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9250                           "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9251                           "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9252                           "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9253                           "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9254                           "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9255                           "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9256                           "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9257                           "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9258                           "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9259                           "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9260                           "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9261                           "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9262                           "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9263                           "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9264                           "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9265                           "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9266                           "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9267                           "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9268                           "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9269                           "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9270                           "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9271                           "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9272                           "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9273                           "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9274                           "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9275                           "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9276                           "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9277                           "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9278                           "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9279                           "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9280                           "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9281                           "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9282                           "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9283                           "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9284                           "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9285                           "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9286                           "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9287                           "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9288                           "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9289                           "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9290                           "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9291                 .rlen   = 496,
9292         }, { /* Generated with Crypto++ */
9293                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9294                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9295                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9296                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9297                 .klen   = 32,
9298                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9299                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9300                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9301                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9302                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9303                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9304                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9305                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9306                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9307                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9308                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9309                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9310                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9311                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9312                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9313                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9314                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9315                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9316                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9317                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9318                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9319                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9320                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9321                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9322                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9323                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9324                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9325                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9326                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9327                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9328                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9329                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9330                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9331                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9332                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9333                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9334                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9335                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9336                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9337                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9338                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9339                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9340                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9341                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9342                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9343                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9344                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9345                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9346                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9347                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9348                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9349                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9350                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9351                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9352                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9353                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9354                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9355                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9356                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9357                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9358                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9359                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9360                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9361                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9362                           "\x2B\xC2\x59",
9363                 .ilen   = 499,
9364                 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9365                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9366                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9367                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9368                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9369                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9370                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9371                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9372                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9373                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9374                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9375                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9376                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9377                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9378                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9379                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9380                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9381                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9382                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9383                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9384                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9385                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9386                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9387                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9388                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9389                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9390                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9391                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9392                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9393                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9394                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9395                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9396                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9397                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9398                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9399                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9400                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9401                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9402                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9403                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9404                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9405                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9406                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9407                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9408                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9409                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9410                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9411                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9412                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9413                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9414                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9415                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9416                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9417                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9418                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9419                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9420                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9421                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9422                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9423                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9424                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9425                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9426                           "\x6C\x82\x9D",
9427                 .rlen   = 499,
9428                 .also_non_np = 1,
9429                 .np     = 2,
9430                 .tap    = { 499 - 16, 16 },
9431         },
9432 };
9433
9434 static const struct cipher_testvec tf_ctr_dec_tv_template[] = {
9435         { /* Generated with Crypto++ */
9436                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9437                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9438                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9439                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9440                 .klen   = 32,
9441                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9442                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9443                 .input  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9444                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9445                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9446                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9447                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9448                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9449                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9450                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9451                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9452                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9453                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9454                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9455                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9456                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9457                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9458                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9459                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9460                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9461                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9462                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9463                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9464                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9465                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9466                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9467                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9468                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9469                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9470                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9471                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9472                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9473                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9474                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9475                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9476                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9477                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9478                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9479                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9480                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9481                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9482                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9483                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9484                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9485                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9486                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9487                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9488                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9489                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9490                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9491                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9492                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9493                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9494                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9495                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9496                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9497                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9498                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9499                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9500                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9501                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9502                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9503                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9504                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
9505                 .ilen   = 496,
9506                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9507                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9508                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9509                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9510                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9511                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9512                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9513                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9514                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9515                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9516                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9517                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9518                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9519                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9520                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9521                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9522                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9523                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9524                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9525                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9526                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9527                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9528                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9529                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9530                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9531                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9532                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9533                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9534                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9535                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9536                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9537                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9538                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9539                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9540                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9541                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9542                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9543                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9544                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9545                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9546                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9547                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9548                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9549                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9550                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9551                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9552                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9553                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9554                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9555                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9556                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9557                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9558                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9559                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9560                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9561                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9562                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9563                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9564                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9565                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9566                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9567                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9568                 .rlen   = 496,
9569         }, { /* Generated with Crypto++ */
9570                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9571                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9572                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9573                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9574                 .klen   = 32,
9575                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9576                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9577                 .input  = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9578                           "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9579                           "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9580                           "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9581                           "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9582                           "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9583                           "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9584                           "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9585                           "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9586                           "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9587                           "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9588                           "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9589                           "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9590                           "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9591                           "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9592                           "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9593                           "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9594                           "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9595                           "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9596                           "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9597                           "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9598                           "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9599                           "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9600                           "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9601                           "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9602                           "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9603                           "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9604                           "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9605                           "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9606                           "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9607                           "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9608                           "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9609                           "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9610                           "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9611                           "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9612                           "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9613                           "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9614                           "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9615                           "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9616                           "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9617                           "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9618                           "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9619                           "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9620                           "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9621                           "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9622                           "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9623                           "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9624                           "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9625                           "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9626                           "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9627                           "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9628                           "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9629                           "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9630                           "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9631                           "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9632                           "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9633                           "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9634                           "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9635                           "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9636                           "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9637                           "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9638                           "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9639                 .ilen   = 496,
9640                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9641                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9642                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9643                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9644                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9645                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9646                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9647                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9648                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9649                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9650                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9651                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9652                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9653                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9654                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9655                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9656                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9657                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9658                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9659                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9660                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9661                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9662                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9663                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9664                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9665                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9666                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9667                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9668                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9669                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9670                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9671                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9672                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9673                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9674                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9675                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9676                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9677                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9678                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9679                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9680                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9681                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9682                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9683                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9684                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9685                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9686                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9687                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9688                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9689                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9690                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9691                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9692                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9693                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9694                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9695                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9696                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9697                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9698                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9699                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9700                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9701                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9702                 .rlen   = 496,
9703         }, { /* Generated with Crypto++ */
9704                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9705                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9706                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9707                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9708                 .klen   = 32,
9709                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9710                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9711                 .input  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9712                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9713                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9714                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9715                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9716                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9717                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9718                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9719                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9720                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9721                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9722                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9723                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9724                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9725                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9726                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9727                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9728                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9729                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9730                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9731                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9732                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9733                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9734                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9735                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9736                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9737                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9738                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9739                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9740                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9741                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9742                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9743                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9744                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9745                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9746                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9747                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9748                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9749                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9750                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9751                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9752                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9753                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9754                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9755                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9756                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9757                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9758                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9759                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9760                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9761                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9762                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9763                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9764                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9765                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9766                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9767                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9768                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9769                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9770                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9771                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9772                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9773                           "\x6C\x82\x9D",
9774                 .ilen   = 499,
9775                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9776                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9777                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9778                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9779                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9780                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9781                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9782                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9783                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9784                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9785                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9786                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9787                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9788                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9789                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9790                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9791                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9792                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9793                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9794                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9795                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9796                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9797                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9798                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9799                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9800                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9801                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9802                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9803                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9804                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9805                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9806                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9807                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9808                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9809                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9810                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9811                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9812                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9813                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9814                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9815                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9816                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9817                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9818                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9819                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9820                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9821                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9822                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9823                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9824                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9825                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9826                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9827                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9828                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9829                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9830                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9831                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9832                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9833                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9834                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9835                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9836                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9837                           "\x2B\xC2\x59",
9838                 .rlen   = 499,
9839                 .also_non_np = 1,
9840                 .np     = 2,
9841                 .tap    = { 499 - 16, 16 },
9842         },
9843 };
9844
9845 static const struct cipher_testvec tf_lrw_enc_tv_template[] = {
9846         /* Generated from AES-LRW test vectors */
9847         {
9848                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9849                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9850                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9851                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9852                 .klen   = 32,
9853                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9854                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9855                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9856                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9857                 .ilen   = 16,
9858                 .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
9859                           "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
9860                 .rlen   = 16,
9861         }, {
9862                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9863                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9864                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9865                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9866                 .klen   = 32,
9867                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9868                           "\x00\x00\x00\x00\x00\x00\x00\x02",
9869                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9870                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9871                 .ilen   = 16,
9872                 .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
9873                           "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
9874                 .rlen   = 16,
9875         }, {
9876                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9877                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9878                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9879                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9880                 .klen   = 32,
9881                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9882                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9883                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9884                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9885                 .ilen   = 16,
9886                 .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
9887                           "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
9888                 .rlen   = 16,
9889         }, {
9890                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9891                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9892                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9893                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9894                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9895                 .klen   = 40,
9896                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9897                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9898                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9899                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9900                 .ilen   = 16,
9901                 .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
9902                           "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
9903                 .rlen   = 16,
9904         }, {
9905                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9906                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9907                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9908                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9909                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9910                 .klen   = 40,
9911                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9912                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9913                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9914                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9915                 .ilen   = 16,
9916                 .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
9917                           "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
9918                 .rlen   = 16,
9919         }, {
9920                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9921                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9922                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9923                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9924                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9925                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9926                 .klen   = 48,
9927                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9928                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9929                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9930                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9931                 .ilen   = 16,
9932                 .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
9933                           "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
9934                 .rlen   = 16,
9935         }, {
9936                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9937                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9938                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9939                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9940                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9941                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9942                 .klen   = 48,
9943                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9944                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9945                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9946                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9947                 .ilen   = 16,
9948                 .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
9949                           "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
9950                 .rlen   = 16,
9951         }, {
9952                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9953                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9954                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9955                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9956                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9957                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9958                 .klen   = 48,
9959                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9960                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9961                 .input  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
9962                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9963                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9964                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9965                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9966                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9967                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9968                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9969                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9970                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9971                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9972                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9973                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9974                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9975                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9976                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9977                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9978                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9979                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9980                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9981                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9982                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9983                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9984                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9985                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9986                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9987                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9988                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9989                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9990                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9991                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9992                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9993                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9994                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9995                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9996                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9997                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9998                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9999                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10000                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10001                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10002                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10003                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10004                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10005                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10006                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10007                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10008                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10009                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10010                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10011                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10012                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10013                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10014                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10015                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10016                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10017                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10018                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10019                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10020                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10021                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10022                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10023                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10024                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10025                 .ilen   = 512,
10026                 .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
10027                           "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
10028                           "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
10029                           "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
10030                           "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
10031                           "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
10032                           "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
10033                           "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
10034                           "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
10035                           "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
10036                           "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
10037                           "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
10038                           "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
10039                           "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
10040                           "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
10041                           "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
10042                           "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
10043                           "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
10044                           "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
10045                           "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
10046                           "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
10047                           "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
10048                           "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
10049                           "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
10050                           "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
10051                           "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
10052                           "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
10053                           "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
10054                           "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
10055                           "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
10056                           "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
10057                           "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
10058                           "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
10059                           "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
10060                           "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
10061                           "\x3e\xae\x71\x90\x07\x70\x1c\x38"
10062                           "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
10063                           "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
10064                           "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
10065                           "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
10066                           "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
10067                           "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
10068                           "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
10069                           "\x93\x51\x1d\x3d\x62\x59\x83\x82"
10070                           "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
10071                           "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
10072                           "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
10073                           "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
10074                           "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
10075                           "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
10076                           "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
10077                           "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
10078                           "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
10079                           "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
10080                           "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
10081                           "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
10082                           "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
10083                           "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
10084                           "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
10085                           "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
10086                           "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
10087                           "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
10088                           "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
10089                           "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
10090                 .rlen   = 512,
10091                 .also_non_np = 1,
10092                 .np     = 3,
10093                 .tap    = { 512 - 20, 4, 16 },
10094         },
10095 };
10096
10097 static const struct cipher_testvec tf_lrw_dec_tv_template[] = {
10098         /* Generated from AES-LRW test vectors */
10099         /* same as enc vectors with input and result reversed */
10100         {
10101                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
10102                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
10103                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
10104                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
10105                 .klen   = 32,
10106                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10107                           "\x00\x00\x00\x00\x00\x00\x00\x01",
10108                 .input  = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
10109                           "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
10110                 .ilen   = 16,
10111                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10112                           "\x38\x39\x41\x42\x43\x44\x45\x46",
10113                 .rlen   = 16,
10114         }, {
10115                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
10116                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
10117                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
10118                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
10119                 .klen   = 32,
10120                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10121                           "\x00\x00\x00\x00\x00\x00\x00\x02",
10122                 .input  = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
10123                           "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
10124                 .ilen   = 16,
10125                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10126                           "\x38\x39\x41\x42\x43\x44\x45\x46",
10127                 .rlen   = 16,
10128         }, {
10129                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
10130                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
10131                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
10132                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
10133                 .klen   = 32,
10134                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10135                           "\x00\x00\x00\x02\x00\x00\x00\x00",
10136                 .input  = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
10137                           "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
10138                 .ilen   = 16,
10139                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10140                           "\x38\x39\x41\x42\x43\x44\x45\x46",
10141                 .rlen   = 16,
10142         }, {
10143                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
10144                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
10145                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
10146                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
10147                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
10148                 .klen   = 40,
10149                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10150                           "\x00\x00\x00\x00\x00\x00\x00\x01",
10151                 .input  = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
10152                           "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
10153                 .ilen   = 16,
10154                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10155                           "\x38\x39\x41\x42\x43\x44\x45\x46",
10156                 .rlen   = 16,
10157         }, {
10158                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
10159                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
10160                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
10161                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
10162                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
10163                 .klen   = 40,
10164                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10165                           "\x00\x00\x00\x02\x00\x00\x00\x00",
10166                 .input  = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
10167                           "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
10168                 .ilen   = 16,
10169                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10170                           "\x38\x39\x41\x42\x43\x44\x45\x46",
10171                 .rlen   = 16,
10172         }, {
10173                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10174                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10175                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10176                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10177                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10178                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10179                 .klen   = 48,
10180                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10181                           "\x00\x00\x00\x00\x00\x00\x00\x01",
10182                 .input  = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
10183                           "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
10184                 .ilen   = 16,
10185                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10186                           "\x38\x39\x41\x42\x43\x44\x45\x46",
10187                 .rlen   = 16,
10188         }, {
10189                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10190                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10191                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10192                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10193                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10194                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10195                 .klen   = 48,
10196                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10197                           "\x00\x00\x00\x02\x00\x00\x00\x00",
10198                 .input  = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
10199                           "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
10200                 .ilen   = 16,
10201                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10202                           "\x38\x39\x41\x42\x43\x44\x45\x46",
10203                 .rlen   = 16,
10204         }, {
10205                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10206                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10207                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10208                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10209                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10210                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10211                 .klen   = 48,
10212                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10213                           "\x00\x00\x00\x00\x00\x00\x00\x01",
10214                 .input  = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
10215                           "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
10216                           "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
10217                           "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
10218                           "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
10219                           "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
10220                           "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
10221                           "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
10222                           "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
10223                           "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
10224                           "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
10225                           "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
10226                           "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
10227                           "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
10228                           "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
10229                           "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
10230                           "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
10231                           "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
10232                           "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
10233                           "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
10234                           "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
10235                           "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
10236                           "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
10237                           "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
10238                           "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
10239                           "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
10240                           "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
10241                           "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
10242                           "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
10243                           "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
10244                           "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
10245                           "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
10246                           "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
10247                           "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
10248                           "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
10249                           "\x3e\xae\x71\x90\x07\x70\x1c\x38"
10250                           "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
10251                           "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
10252                           "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
10253                           "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
10254                           "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
10255                           "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
10256                           "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
10257                           "\x93\x51\x1d\x3d\x62\x59\x83\x82"
10258                           "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
10259                           "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
10260                           "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
10261                           "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
10262                           "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
10263                           "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
10264                           "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
10265                           "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
10266                           "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
10267                           "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
10268                           "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
10269                           "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
10270                           "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
10271                           "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
10272                           "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
10273                           "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
10274                           "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
10275                           "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
10276                           "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
10277                           "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
10278                 .ilen   = 512,
10279                 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10280                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10281                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10282                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10283                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10284                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10285                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10286                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10287                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10288                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10289                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10290                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10291                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10292                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10293                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10294                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10295                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10296                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10297                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10298                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10299                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10300                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10301                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10302                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10303                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10304                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10305                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10306                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10307                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10308                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10309                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10310                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10311                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10312                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10313                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10314                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10315                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10316                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10317                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10318                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10319                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10320                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10321                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10322                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10323                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10324                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10325                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10326                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10327                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10328                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10329                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10330                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10331                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10332                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10333                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10334                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10335                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10336                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10337                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10338                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10339                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10340                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10341                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10342                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10343                 .rlen   = 512,
10344                 .also_non_np = 1,
10345                 .np     = 3,
10346                 .tap    = { 512 - 20, 4, 16 },
10347         },
10348 };
10349
10350 static const struct cipher_testvec tf_xts_enc_tv_template[] = {
10351         /* Generated from AES-XTS test vectors */
10352 {
10353                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
10354                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10355                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10356                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10357                 .klen   = 32,
10358                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10359                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10360                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
10361                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10362                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10363                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10364                 .ilen   = 32,
10365                 .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10366                           "\x30\x74\xe4\x44\x52\x77\x97\x43"
10367                           "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10368                           "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10369                 .rlen   = 32,
10370         }, {
10371                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
10372                           "\x11\x11\x11\x11\x11\x11\x11\x11"
10373                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10374                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10375                 .klen   = 32,
10376                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10377                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10378                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10379                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10380                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10381                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10382                 .ilen   = 32,
10383                 .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10384                           "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10385                           "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10386                           "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10387                 .rlen   = 32,
10388         }, {
10389                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10390                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10391                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10392                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10393                 .klen   = 32,
10394                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10395                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10396                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10397                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10398                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10399                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10400                 .ilen   = 32,
10401                 .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10402                           "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10403                           "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10404                           "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10405                 .rlen   = 32,
10406         }, {
10407                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10408                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10409                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10410                           "\x23\x84\x62\x64\x33\x83\x27\x95",
10411                 .klen   = 32,
10412                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10413                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10414                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10415                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10416                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10417                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10418                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10419                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10420                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10421                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10422                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10423                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10424                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10425                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10426                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10427                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10428                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10429                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10430                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10431                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10432                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10433                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10434                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10435                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10436                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10437                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10438                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10439                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10440                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10441                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10442                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10443                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10444                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10445                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10446                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10447                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10448                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10449                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10450                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10451                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10452                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10453                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10454                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10455                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10456                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10457                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10458                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10459                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10460                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10461                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10462                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10463                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10464                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10465                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10466                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10467                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10468                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10469                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10470                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10471                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10472                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10473                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10474                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10475                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10476                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10477                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10478                 .ilen   = 512,
10479                 .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10480                           "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10481                           "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10482                           "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10483                           "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10484                           "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10485                           "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10486                           "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10487                           "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10488                           "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10489                           "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10490                           "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10491                           "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10492                           "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10493                           "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10494                           "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10495                           "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10496                           "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10497                           "\x39\x80\x39\x09\x97\x65\xf2\x83"
10498                           "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10499                           "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10500                           "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10501                           "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10502                           "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10503                           "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10504                           "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10505                           "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10506                           "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10507                           "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10508                           "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10509                           "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10510                           "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10511                           "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10512                           "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10513                           "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10514                           "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10515                           "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10516                           "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10517                           "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10518                           "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10519                           "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10520                           "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10521                           "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10522                           "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10523                           "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10524                           "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10525                           "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10526                           "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10527                           "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10528                           "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10529                           "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10530                           "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10531                           "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10532                           "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10533                           "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10534                           "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10535                           "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10536                           "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10537                           "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10538                           "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10539                           "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10540                           "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10541                           "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10542                           "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10543                 .rlen   = 512,
10544         }, {
10545                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10546                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10547                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10548                           "\x99\x59\x57\x49\x66\x96\x76\x27"
10549                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10550                           "\x23\x84\x62\x64\x33\x83\x27\x95"
10551                           "\x02\x88\x41\x97\x16\x93\x99\x37"
10552                           "\x51\x05\x82\x09\x74\x94\x45\x92",
10553                 .klen   = 64,
10554                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10555                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10556                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10557                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10558                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10559                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10560                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10561                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10562                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10563                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10564                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10565                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10566                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10567                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10568                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10569                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10570                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10571                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10572                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10573                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10574                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10575                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10576                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10577                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10578                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10579                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10580                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10581                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10582                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10583                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10584                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10585                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10586                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10587                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10588                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10589                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10590                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10591                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10592                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10593                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10594                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10595                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10596                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10597                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10598                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10599                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10600                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10601                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10602                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10603                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10604                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10605                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10606                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10607                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10608                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10609                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10610                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10611                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10612                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10613                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10614                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10615                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10616                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10617                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10618                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10619                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10620                 .ilen   = 512,
10621                 .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10622                           "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10623                           "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10624                           "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10625                           "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10626                           "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10627                           "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10628                           "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10629                           "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10630                           "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10631                           "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10632                           "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10633                           "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10634                           "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10635                           "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10636                           "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10637                           "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10638                           "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10639                           "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10640                           "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10641                           "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10642                           "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10643                           "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10644                           "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10645                           "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10646                           "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10647                           "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10648                           "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10649                           "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10650                           "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10651                           "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10652                           "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10653                           "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10654                           "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10655                           "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10656                           "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10657                           "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10658                           "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10659                           "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10660                           "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10661                           "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10662                           "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10663                           "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10664                           "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10665                           "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10666                           "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10667                           "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10668                           "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10669                           "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10670                           "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10671                           "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10672                           "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10673                           "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10674                           "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10675                           "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10676                           "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10677                           "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10678                           "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10679                           "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10680                           "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10681                           "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10682                           "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10683                           "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10684                           "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10685                 .rlen   = 512,
10686                 .also_non_np = 1,
10687                 .np     = 3,
10688                 .tap    = { 512 - 20, 4, 16 },
10689         },
10690 };
10691
10692 static const struct cipher_testvec tf_xts_dec_tv_template[] = {
10693         /* Generated from AES-XTS test vectors */
10694         /* same as enc vectors with input and result reversed */
10695         {
10696                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
10697                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10698                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10699                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10700                 .klen   = 32,
10701                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10702                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10703                 .input  = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10704                           "\x30\x74\xe4\x44\x52\x77\x97\x43"
10705                           "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10706                           "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10707                 .ilen   = 32,
10708                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
10709                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10710                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10711                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10712                 .rlen   = 32,
10713         }, {
10714                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
10715                           "\x11\x11\x11\x11\x11\x11\x11\x11"
10716                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10717                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10718                 .klen   = 32,
10719                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10720                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10721                 .input  = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10722                           "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10723                           "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10724                           "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10725                 .ilen   = 32,
10726                 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10727                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10728                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10729                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10730                 .rlen   = 32,
10731         }, {
10732                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10733                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10734                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10735                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10736                 .klen   = 32,
10737                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10738                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10739                 .input  = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10740                           "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10741                           "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10742                           "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10743                 .ilen   = 32,
10744                 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10745                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10746                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10747                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10748                 .rlen   = 32,
10749         }, {
10750                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10751                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10752                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10753                           "\x23\x84\x62\x64\x33\x83\x27\x95",
10754                 .klen   = 32,
10755                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10756                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10757                 .input  = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10758                           "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10759                           "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10760                           "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10761                           "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10762                           "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10763                           "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10764                           "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10765                           "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10766                           "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10767                           "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10768                           "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10769                           "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10770                           "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10771                           "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10772                           "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10773                           "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10774                           "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10775                           "\x39\x80\x39\x09\x97\x65\xf2\x83"
10776                           "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10777                           "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10778                           "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10779                           "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10780                           "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10781                           "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10782                           "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10783                           "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10784                           "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10785                           "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10786                           "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10787                           "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10788                           "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10789                           "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10790                           "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10791                           "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10792                           "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10793                           "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10794                           "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10795                           "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10796                           "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10797                           "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10798                           "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10799                           "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10800                           "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10801                           "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10802                           "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10803                           "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10804                           "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10805                           "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10806                           "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10807                           "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10808                           "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10809                           "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10810                           "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10811                           "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10812                           "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10813                           "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10814                           "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10815                           "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10816                           "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10817                           "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10818                           "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10819                           "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10820                           "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10821                 .ilen   = 512,
10822                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10823                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10824                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10825                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10826                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10827                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10828                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10829                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10830                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10831                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10832                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10833                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10834                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10835                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10836                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10837                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10838                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10839                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10840                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10841                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10842                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10843                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10844                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10845                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10846                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10847                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10848                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10849                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10850                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10851                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10852                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10853                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10854                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10855                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10856                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10857                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10858                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10859                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10860                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10861                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10862                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10863                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10864                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10865                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10866                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10867                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10868                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10869                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10870                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10871                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10872                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10873                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10874                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10875                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10876                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10877                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10878                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10879                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10880                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10881                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10882                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10883                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10884                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10885                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10886                 .rlen   = 512,
10887         }, {
10888                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10889                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10890                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10891                           "\x99\x59\x57\x49\x66\x96\x76\x27"
10892                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10893                           "\x23\x84\x62\x64\x33\x83\x27\x95"
10894                           "\x02\x88\x41\x97\x16\x93\x99\x37"
10895                           "\x51\x05\x82\x09\x74\x94\x45\x92",
10896                 .klen   = 64,
10897                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10898                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10899                 .input  = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10900                           "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10901                           "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10902                           "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10903                           "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10904                           "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10905                           "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10906                           "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10907                           "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10908                           "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10909                           "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10910                           "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10911                           "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10912                           "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10913                           "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10914                           "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10915                           "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10916                           "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10917                           "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10918                           "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10919                           "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10920                           "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10921                           "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10922                           "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10923                           "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10924                           "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10925                           "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10926                           "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10927                           "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10928                           "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10929                           "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10930                           "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10931                           "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10932                           "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10933                           "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10934                           "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10935                           "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10936                           "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10937                           "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10938                           "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10939                           "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10940                           "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10941                           "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10942                           "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10943                           "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10944                           "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10945                           "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10946                           "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10947                           "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10948                           "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10949                           "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10950                           "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10951                           "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10952                           "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10953                           "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10954                           "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10955                           "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10956                           "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10957                           "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10958                           "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10959                           "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10960                           "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10961                           "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10962                           "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10963                 .ilen   = 512,
10964                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10965                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10966                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10967                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10968                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10969                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10970                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10971                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10972                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10973                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10974                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10975                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10976                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10977                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10978                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10979                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10980                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10981                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10982                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10983                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10984                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10985                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10986                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10987                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10988                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10989                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10990                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10991                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10992                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10993                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10994                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10995                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10996                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10997                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10998                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10999                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11000                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11001                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11002                           "\x30\x31\x32\x33\x34\x35\x36\x37"
11003                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11004                           "\x40\x41\x42\x43\x44\x45\x46\x47"
11005                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11006                           "\x50\x51\x52\x53\x54\x55\x56\x57"
11007                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11008                           "\x60\x61\x62\x63\x64\x65\x66\x67"
11009                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11010                           "\x70\x71\x72\x73\x74\x75\x76\x77"
11011                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11012                           "\x80\x81\x82\x83\x84\x85\x86\x87"
11013                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11014                           "\x90\x91\x92\x93\x94\x95\x96\x97"
11015                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11016                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11017                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11018                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11019                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11020                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11021                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11022                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11023                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11024                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11025                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11026                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11027                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11028                 .rlen   = 512,
11029                 .also_non_np = 1,
11030                 .np     = 3,
11031                 .tap    = { 512 - 20, 4, 16 },
11032         },
11033 };
11034
11035 /*
11036  * Serpent test vectors.  These are backwards because Serpent writes
11037  * octet sequences in right-to-left mode.
11038  */
11039 static const struct cipher_testvec serpent_enc_tv_template[] = {
11040         {
11041                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11042                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11043                 .ilen   = 16,
11044                 .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
11045                           "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
11046                 .rlen   = 16,
11047         }, {
11048                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11049                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11050                 .klen   = 16,
11051                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11052                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11053                 .ilen   = 16,
11054                 .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
11055                           "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
11056                 .rlen   = 16,
11057         }, {
11058                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11059                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11060                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11061                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11062                 .klen   = 32,
11063                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11064                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11065                 .ilen   = 16,
11066                 .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
11067                           "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
11068                 .rlen   = 16,
11069         }, {
11070                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11071                 .klen   = 16,
11072                 .input  = zeroed_string,
11073                 .ilen   = 16,
11074                 .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
11075                           "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
11076                 .rlen   = 16,
11077         }, { /* Generated with Crypto++ */
11078                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11079                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11080                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11081                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11082                 .klen   = 32,
11083                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11084                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11085                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11086                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11087                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11088                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11089                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11090                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11091                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11092                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11093                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11094                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11095                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11096                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11097                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11098                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11099                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11100                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11101                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11102                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11103                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11104                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11105                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11106                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11107                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11108                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11109                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11110                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11111                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11112                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11113                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11114                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11115                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11116                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11117                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11118                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11119                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11120                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11121                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11122                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11123                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11124                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11125                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11126                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11127                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11128                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11129                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11130                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11131                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11132                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11133                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11134                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11135                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11136                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11137                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11138                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11139                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11140                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11141                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11142                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11143                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11144                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11145                 .ilen   = 496,
11146                 .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
11147                           "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
11148                           "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
11149                           "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
11150                           "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
11151                           "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
11152                           "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11153                           "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11154                           "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11155                           "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11156                           "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11157                           "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11158                           "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11159                           "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11160                           "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11161                           "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11162                           "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
11163                           "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11164                           "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11165                           "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11166                           "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11167                           "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11168                           "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11169                           "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11170                           "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11171                           "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11172                           "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11173                           "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11174                           "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11175                           "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11176                           "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11177                           "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11178                           "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11179                           "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11180                           "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11181                           "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11182                           "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11183                           "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11184                           "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11185                           "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11186                           "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11187                           "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11188                           "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11189                           "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11190                           "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11191                           "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11192                           "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11193                           "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11194                           "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11195                           "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11196                           "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11197                           "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11198                           "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11199                           "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11200                           "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11201                           "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11202                           "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11203                           "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11204                           "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11205                           "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11206                           "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11207                           "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11208                 .rlen   = 496,
11209                 .also_non_np = 1,
11210                 .np     = 3,
11211                 .tap    = { 496 - 20, 4, 16 },
11212         },
11213 };
11214
11215 static const struct cipher_testvec tnepres_enc_tv_template[] = {
11216         { /* KeySize=128, PT=0, I=1 */
11217                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
11218                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11219                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
11220                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11221                 .klen   = 16,
11222                 .ilen   = 16,
11223                 .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
11224                           "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
11225                 .rlen   = 16,
11226         }, { /* KeySize=192, PT=0, I=1 */
11227                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
11228                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11229                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11230                 .klen   = 24,
11231                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
11232                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11233                 .ilen   = 16,
11234                 .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
11235                           "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
11236                 .rlen   = 16,
11237         }, { /* KeySize=256, PT=0, I=1 */
11238                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
11239                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11240                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11241                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11242                 .klen   = 32,
11243                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
11244                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11245                 .ilen   = 16,
11246                 .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
11247                           "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
11248                 .rlen   = 16,
11249         }, { /* KeySize=256, I=257 */
11250                 .key    = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
11251                           "\x17\x16\x15\x14\x13\x12\x11\x10"
11252                           "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11253                           "\x07\x06\x05\x04\x03\x02\x01\x00",
11254                 .klen   = 32,
11255                 .input  = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11256                           "\x07\x06\x05\x04\x03\x02\x01\x00",
11257                 .ilen   = 16,
11258                 .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
11259                           "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
11260                 .rlen   = 16,
11261         },
11262 };
11263
11264
11265 static const struct cipher_testvec serpent_dec_tv_template[] = {
11266         {
11267                 .input  = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
11268                           "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
11269                 .ilen   = 16,
11270                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11271                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11272                 .rlen   = 16,
11273         }, {
11274                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11275                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11276                 .klen   = 16,
11277                 .input  = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
11278                           "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
11279                 .ilen   = 16,
11280                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11281                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11282                 .rlen   = 16,
11283         }, {
11284                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11285                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11286                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11287                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11288                 .klen   = 32,
11289                 .input  = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
11290                           "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
11291                 .ilen   = 16,
11292                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11293                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11294                 .rlen   = 16,
11295         }, {
11296                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11297                 .klen   = 16,
11298                 .input  = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
11299                           "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
11300                 .ilen   = 16,
11301                 .result = zeroed_string,
11302                 .rlen   = 16,
11303         }, { /* Generated with Crypto++ */
11304                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11305                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11306                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11307                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11308                 .klen   = 32,
11309                 .input  = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
11310                           "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
11311                           "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
11312                           "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
11313                           "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
11314                           "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
11315                           "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11316                           "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11317                           "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11318                           "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11319                           "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11320                           "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11321                           "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11322                           "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11323                           "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11324                           "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11325                           "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
11326                           "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11327                           "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11328                           "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11329                           "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11330                           "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11331                           "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11332                           "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11333                           "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11334                           "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11335                           "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11336                           "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11337                           "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11338                           "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11339                           "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11340                           "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11341                           "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11342                           "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11343                           "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11344                           "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11345                           "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11346                           "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11347                           "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11348                           "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11349                           "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11350                           "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11351                           "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11352                           "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11353                           "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11354                           "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11355                           "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11356                           "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11357                           "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11358                           "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11359                           "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11360                           "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11361                           "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11362                           "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11363                           "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11364                           "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11365                           "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11366                           "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11367                           "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11368                           "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11369                           "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11370                           "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11371                 .ilen   = 496,
11372                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11373                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11374                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11375                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11376                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11377                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11378                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11379                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11380                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11381                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11382                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11383                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11384                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11385                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11386                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11387                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11388                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11389                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11390                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11391                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11392                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11393                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11394                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11395                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11396                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11397                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11398                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11399                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11400                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11401                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11402                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11403                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11404                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11405                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11406                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11407                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11408                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11409                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11410                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11411                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11412                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11413                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11414                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11415                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11416                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11417                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11418                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11419                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11420                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11421                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11422                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11423                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11424                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11425                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11426                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11427                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11428                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11429                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11430                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11431                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11432                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11433                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11434                 .rlen   = 496,
11435                 .also_non_np = 1,
11436                 .np     = 3,
11437                 .tap    = { 496 - 20, 4, 16 },
11438         },
11439 };
11440
11441 static const struct cipher_testvec tnepres_dec_tv_template[] = {
11442         {
11443                 .input  = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
11444                           "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
11445                 .ilen   = 16,
11446                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11447                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11448                 .rlen   = 16,
11449         }, {
11450                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11451                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11452                 .klen   = 16,
11453                 .input  = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
11454                           "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
11455                 .ilen   = 16,
11456                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11457                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11458                 .rlen   = 16,
11459         }, {
11460                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11461                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11462                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11463                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11464                 .klen   = 32,
11465                 .input  = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
11466                           "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
11467                 .ilen   = 16,
11468                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11469                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11470                 .rlen   = 16,
11471         }, { /* KeySize=128, I=121 */
11472                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11473                 .klen   = 16,
11474                 .input  = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
11475                           "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
11476                 .ilen   = 16,
11477                 .result = zeroed_string,
11478                 .rlen   = 16,
11479         },
11480 };
11481
11482 static const struct cipher_testvec serpent_cbc_enc_tv_template[] = {
11483         { /* Generated with Crypto++ */
11484                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11485                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11486                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11487                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11488                 .klen   = 32,
11489                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11490                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11491                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11492                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11493                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11494                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11495                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11496                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11497                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11498                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11499                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11500                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11501                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11502                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11503                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11504                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11505                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11506                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11507                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11508                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11509                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11510                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11511                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11512                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11513                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11514                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11515                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11516                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11517                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11518                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11519                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11520                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11521                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11522                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11523                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11524                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11525                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11526                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11527                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11528                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11529                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11530                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11531                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11532                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11533                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11534                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11535                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11536                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11537                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11538                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11539                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11540                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11541                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11542                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11543                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11544                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11545                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11546                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11547                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11548                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11549                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11550                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11551                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11552                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11553                 .ilen   = 496,
11554                 .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11555                           "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11556                           "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11557                           "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11558                           "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11559                           "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11560                           "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11561                           "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11562                           "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11563                           "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11564                           "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11565                           "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11566                           "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11567                           "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11568                           "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11569                           "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11570                           "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
11571                           "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11572                           "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11573                           "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11574                           "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11575                           "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11576                           "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11577                           "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11578                           "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11579                           "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11580                           "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11581                           "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11582                           "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11583                           "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11584                           "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11585                           "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11586                           "\x81\x92\x66\x67\x15\x1E\x39\x98"
11587                           "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11588                           "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11589                           "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11590                           "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11591                           "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11592                           "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11593                           "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11594                           "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11595                           "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11596                           "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11597                           "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11598                           "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11599                           "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11600                           "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11601                           "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11602                           "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11603                           "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11604                           "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11605                           "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11606                           "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11607                           "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11608                           "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11609                           "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11610                           "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11611                           "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11612                           "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11613                           "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11614                           "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11615                           "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11616                 .rlen   = 496,
11617                 .also_non_np = 1,
11618                 .np     = 3,
11619                 .tap    = { 496 - 20, 4, 16 },
11620         },
11621 };
11622
11623 static const struct cipher_testvec serpent_cbc_dec_tv_template[] = {
11624         { /* Generated with Crypto++ */
11625                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11626                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11627                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11628                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11629                 .klen   = 32,
11630                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11631                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11632                 .input  = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11633                           "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11634                           "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11635                           "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11636                           "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11637                           "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11638                           "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11639                           "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11640                           "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11641                           "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11642                           "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11643                           "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11644                           "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11645                           "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11646                           "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11647                           "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11648                           "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
11649                           "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11650                           "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11651                           "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11652                           "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11653                           "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11654                           "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11655                           "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11656                           "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11657                           "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11658                           "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11659                           "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11660                           "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11661                           "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11662                           "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11663                           "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11664                           "\x81\x92\x66\x67\x15\x1E\x39\x98"
11665                           "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11666                           "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11667                           "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11668                           "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11669                           "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11670                           "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11671                           "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11672                           "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11673                           "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11674                           "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11675                           "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11676                           "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11677                           "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11678                           "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11679                           "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11680                           "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11681                           "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11682                           "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11683                           "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11684                           "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11685                           "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11686                           "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11687                           "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11688                           "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11689                           "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11690                           "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11691                           "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11692                           "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11693                           "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11694                 .ilen   = 496,
11695                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11696                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11697                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11698                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11699                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11700                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11701                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11702                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11703                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11704                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11705                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11706                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11707                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11708                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11709                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11710                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11711                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11712                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11713                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11714                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11715                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11716                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11717                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11718                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11719                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11720                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11721                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11722                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11723                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11724                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11725                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11726                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11727                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11728                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11729                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11730                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11731                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11732                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11733                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11734                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11735                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11736                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11737                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11738                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11739                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11740                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11741                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11742                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11743                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11744                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11745                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11746                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11747                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11748                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11749                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11750                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11751                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11752                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11753                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11754                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11755                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11756                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11757                 .rlen   = 496,
11758                 .also_non_np = 1,
11759                 .np     = 3,
11760                 .tap    = { 496 - 20, 4, 16 },
11761         },
11762 };
11763
11764 static const struct cipher_testvec serpent_ctr_enc_tv_template[] = {
11765         { /* Generated with Crypto++ */
11766                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11767                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11768                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11769                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11770                 .klen   = 32,
11771                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11772                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11773                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11774                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11775                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11776                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11777                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11778                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11779                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11780                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11781                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11782                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11783                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11784                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11785                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11786                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11787                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11788                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11789                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11790                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11791                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11792                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11793                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11794                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11795                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11796                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11797                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11798                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11799                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11800                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11801                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11802                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11803                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11804                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11805                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11806                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11807                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11808                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11809                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11810                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11811                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11812                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11813                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11814                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11815                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11816                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11817                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11818                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11819                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11820                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11821                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11822                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11823                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11824                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11825                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11826                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11827                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11828                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11829                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11830                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11831                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11832                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11833                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11834                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11835                 .ilen   = 496,
11836                 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11837                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11838                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11839                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11840                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11841                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11842                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11843                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11844                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11845                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11846                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11847                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11848                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11849                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11850                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11851                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11852                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
11853                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
11854                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11855                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11856                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11857                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11858                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11859                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11860                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11861                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11862                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11863                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11864                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
11865                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
11866                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
11867                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
11868                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
11869                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
11870                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
11871                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
11872                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
11873                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
11874                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
11875                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
11876                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
11877                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
11878                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
11879                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
11880                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
11881                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
11882                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
11883                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
11884                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
11885                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
11886                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
11887                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
11888                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
11889                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11890                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11891                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11892                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11893                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11894                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11895                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11896                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11897                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
11898                 .rlen   = 496,
11899         }, { /* Generated with Crypto++ */
11900                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11901                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11902                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11903                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11904                 .klen   = 32,
11905                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11906                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11907                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11908                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11909                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11910                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11911                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11912                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11913                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11914                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11915                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11916                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11917                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11918                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11919                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11920                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11921                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11922                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11923                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11924                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11925                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11926                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11927                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11928                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11929                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11930                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11931                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11932                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11933                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11934                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11935                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11936                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11937                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11938                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11939                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11940                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11941                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11942                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11943                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11944                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11945                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11946                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11947                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11948                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11949                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11950                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11951                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11952                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11953                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11954                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11955                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11956                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11957                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11958                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11959                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11960                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11961                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11962                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11963                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11964                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11965                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11966                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11967                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11968                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
11969                           "\x2B\xC2\x59",
11970                 .ilen   = 499,
11971                 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11972                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11973                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11974                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11975                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11976                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11977                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11978                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11979                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11980                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11981                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11982                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11983                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11984                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11985                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11986                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11987                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
11988                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
11989                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11990                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11991                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11992                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11993                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11994                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11995                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11996                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11997                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11998                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11999                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12000                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12001                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12002                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12003                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12004                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12005                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12006                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12007                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12008                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12009                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12010                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12011                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12012                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12013                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12014                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12015                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12016                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12017                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12018                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12019                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12020                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12021                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12022                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12023                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12024                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12025                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12026                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12027                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12028                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12029                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12030                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12031                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12032                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
12033                           "\x38\xE2\xE5",
12034                 .rlen   = 499,
12035                 .also_non_np = 1,
12036                 .np     = 2,
12037                 .tap    = { 499 - 16, 16 },
12038         }, { /* Generated with Crypto++ */
12039                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12040                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12041                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12042                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12043                 .klen   = 32,
12044                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
12045                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
12046                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12047                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12048                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12049                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12050                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12051                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12052                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12053                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12054                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12055                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12056                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12057                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12058                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12059                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12060                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12061                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12062                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12063                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12064                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12065                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12066                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12067                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12068                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12069                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12070                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12071                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12072                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12073                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12074                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12075                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12076                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12077                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12078                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12079                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12080                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12081                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12082                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12083                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12084                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12085                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12086                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12087                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12088                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12089                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12090                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12091                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12092                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12093                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12094                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12095                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12096                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12097                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12098                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12099                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12100                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12101                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12102                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12103                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12104                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12105                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12106                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12107                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12108                 .ilen   = 496,
12109                 .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
12110                           "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
12111                           "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
12112                           "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
12113                           "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
12114                           "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
12115                           "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
12116                           "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
12117                           "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
12118                           "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
12119                           "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
12120                           "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
12121                           "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
12122                           "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
12123                           "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
12124                           "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
12125                           "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
12126                           "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
12127                           "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
12128                           "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
12129                           "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
12130                           "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
12131                           "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
12132                           "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
12133                           "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
12134                           "\x29\x5E\x01\x47\x13\x32\x78\xBE"
12135                           "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
12136                           "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
12137                           "\x38\x35\x11\x26\x4A\xB4\x06\x32"
12138                           "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
12139                           "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
12140                           "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
12141                           "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
12142                           "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
12143                           "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
12144                           "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
12145                           "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
12146                           "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
12147                           "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
12148                           "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
12149                           "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
12150                           "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
12151                           "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
12152                           "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12153                           "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12154                           "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12155                           "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12156                           "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12157                           "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12158                           "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12159                           "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12160                           "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12161                           "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12162                           "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12163                           "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12164                           "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12165                           "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12166                           "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12167                           "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12168                           "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12169                           "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12170                           "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12171                 .rlen   = 496,
12172         },
12173 };
12174
12175 static const struct cipher_testvec serpent_ctr_dec_tv_template[] = {
12176         { /* Generated with Crypto++ */
12177                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12178                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12179                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12180                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12181                 .klen   = 32,
12182                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12183                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12184                 .input  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12185                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12186                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12187                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12188                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12189                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12190                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12191                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12192                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12193                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12194                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12195                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12196                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12197                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12198                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12199                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12200                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
12201                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
12202                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12203                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12204                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12205                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12206                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12207                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12208                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12209                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12210                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12211                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12212                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12213                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12214                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12215                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12216                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12217                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12218                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12219                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12220                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12221                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12222                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12223                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12224                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12225                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12226                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12227                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12228                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12229                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12230                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12231                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12232                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12233                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12234                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12235                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12236                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12237                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12238                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12239                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12240                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12241                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12242                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12243                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12244                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12245                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
12246                 .ilen   = 496,
12247                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12248                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12249                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12250                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12251                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12252                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12253                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12254                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12255                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12256                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12257                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12258                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12259                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12260                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12261                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12262                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12263                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12264                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12265                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12266                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12267                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12268                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12269                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12270                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12271                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12272                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12273                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12274                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12275                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12276                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12277                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12278                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12279                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12280                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12281                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12282                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12283                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12284                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12285                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12286                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12287                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12288                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12289                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12290                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12291                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12292                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12293                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12294                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12295                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12296                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12297                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12298                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12299                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12300                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12301                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12302                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12303                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12304                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12305                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12306                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12307                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12308                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12309                 .rlen   = 496,
12310         }, { /* Generated with Crypto++ */
12311                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12312                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12313                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12314                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12315                 .klen   = 32,
12316                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12317                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12318                 .input  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12319                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12320                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12321                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12322                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12323                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12324                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12325                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12326                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12327                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12328                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12329                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12330                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12331                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12332                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12333                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12334                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
12335                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
12336                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12337                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12338                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12339                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12340                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12341                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12342                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12343                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12344                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12345                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12346                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12347                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12348                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12349                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12350                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12351                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12352                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12353                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12354                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12355                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12356                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12357                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12358                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12359                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12360                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12361                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12362                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12363                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12364                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12365                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12366                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12367                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12368                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12369                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12370                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12371                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12372                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12373                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12374                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12375                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12376                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12377                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12378                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12379                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
12380                           "\x38\xE2\xE5",
12381                 .ilen   = 499,
12382                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12383                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12384                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12385                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12386                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12387                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12388                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12389                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12390                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12391                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12392                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12393                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12394                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12395                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12396                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12397                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12398                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12399                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12400                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12401                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12402                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12403                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12404                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12405                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12406                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12407                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12408                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12409                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12410                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12411                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12412                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12413                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12414                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12415                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12416                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12417                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12418                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12419                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12420                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12421                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12422                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12423                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12424                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12425                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12426                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12427                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12428                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12429                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12430                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12431                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12432                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12433                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12434                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12435                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12436                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12437                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12438                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12439                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12440                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12441                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12442                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12443                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
12444                           "\x2B\xC2\x59",
12445                 .rlen   = 499,
12446                 .also_non_np = 1,
12447                 .np     = 2,
12448                 .tap    = { 499 - 16, 16 },
12449         }, { /* Generated with Crypto++ */
12450                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12451                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12452                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12453                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12454                 .klen   = 32,
12455                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
12456                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
12457                 .input  = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
12458                           "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
12459                           "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
12460                           "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
12461                           "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
12462                           "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
12463                           "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
12464                           "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
12465                           "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
12466                           "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
12467                           "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
12468                           "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
12469                           "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
12470                           "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
12471                           "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
12472                           "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
12473                           "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
12474                           "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
12475                           "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
12476                           "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
12477                           "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
12478                           "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
12479                           "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
12480                           "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
12481                           "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
12482                           "\x29\x5E\x01\x47\x13\x32\x78\xBE"
12483                           "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
12484                           "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
12485                           "\x38\x35\x11\x26\x4A\xB4\x06\x32"
12486                           "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
12487                           "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
12488                           "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
12489                           "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
12490                           "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
12491                           "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
12492                           "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
12493                           "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
12494                           "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
12495                           "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
12496                           "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
12497                           "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
12498                           "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
12499                           "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
12500                           "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12501                           "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12502                           "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12503                           "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12504                           "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12505                           "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12506                           "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12507                           "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12508                           "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12509                           "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12510                           "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12511                           "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12512                           "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12513                           "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12514                           "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12515                           "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12516                           "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12517                           "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12518                           "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12519                 .ilen   = 496,
12520                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12521                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12522                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12523                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12524                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12525                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12526                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12527                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12528                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12529                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12530                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12531                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12532                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12533                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12534                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12535                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12536                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12537                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12538                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12539                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12540                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12541                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12542                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12543                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12544                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12545                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12546                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12547                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12548                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12549                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12550                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12551                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12552                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12553                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12554                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12555                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12556                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12557                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12558                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12559                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12560                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12561                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12562                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12563                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12564                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12565                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12566                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12567                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12568                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12569                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12570                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12571                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12572                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12573                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12574                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12575                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12576                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12577                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12578                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12579                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12580                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12581                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12582                 .rlen   = 496,
12583         },
12584 };
12585
12586 static const struct cipher_testvec serpent_lrw_enc_tv_template[] = {
12587         /* Generated from AES-LRW test vectors */
12588         {
12589                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12590                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12591                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12592                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12593                 .klen   = 32,
12594                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12595                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12596                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
12597                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12598                 .ilen   = 16,
12599                 .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12600                           "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12601                 .rlen   = 16,
12602         }, {
12603                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12604                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12605                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12606                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12607                 .klen   = 32,
12608                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12609                           "\x00\x00\x00\x00\x00\x00\x00\x02",
12610                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
12611                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12612                 .ilen   = 16,
12613                 .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12614                           "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12615                 .rlen   = 16,
12616         }, {
12617                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12618                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12619                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12620                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12621                 .klen   = 32,
12622                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12623                           "\x00\x00\x00\x02\x00\x00\x00\x00",
12624                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
12625                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12626                 .ilen   = 16,
12627                 .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12628                           "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12629                 .rlen   = 16,
12630         }, {
12631                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12632                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12633                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12634                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12635                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12636                 .klen   = 40,
12637                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12638                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12639                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
12640                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12641                 .ilen   = 16,
12642                 .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12643                           "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12644                 .rlen   = 16,
12645         }, {
12646                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12647                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12648                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12649                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12650                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12651                 .klen   = 40,
12652                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12653                           "\x00\x00\x00\x02\x00\x00\x00\x00",
12654                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
12655                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12656                 .ilen   = 16,
12657                 .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12658                           "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
12659                 .rlen   = 16,
12660         }, {
12661                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12662                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12663                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12664                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12665                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12666                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12667                 .klen   = 48,
12668                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12669                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12670                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
12671                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12672                 .ilen   = 16,
12673                 .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12674                           "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
12675                 .rlen   = 16,
12676         }, {
12677                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12678                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12679                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12680                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12681                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12682                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12683                 .klen   = 48,
12684                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12685                           "\x00\x00\x00\x02\x00\x00\x00\x00",
12686                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
12687                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12688                 .ilen   = 16,
12689                 .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12690                           "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12691                 .rlen   = 16,
12692         }, {
12693                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12694                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12695                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12696                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12697                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12698                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12699                 .klen   = 48,
12700                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12701                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12702                 .input  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12703                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12704                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12705                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12706                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12707                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12708                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12709                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12710                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12711                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12712                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12713                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12714                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12715                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12716                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12717                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12718                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12719                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12720                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12721                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12722                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12723                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12724                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12725                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12726                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12727                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12728                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12729                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12730                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12731                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12732                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12733                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12734                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12735                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12736                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12737                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12738                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12739                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12740                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12741                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12742                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12743                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12744                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12745                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12746                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12747                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12748                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12749                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12750                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12751                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12752                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12753                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12754                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12755                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12756                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12757                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12758                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12759                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12760                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12761                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12762                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12763                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12764                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12765                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12766                 .ilen   = 512,
12767                 .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12768                           "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12769                           "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12770                           "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12771                           "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12772                           "\xce\xab\xda\x33\x30\x20\x12\xfa"
12773                           "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12774                           "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12775                           "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12776                           "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12777                           "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12778                           "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12779                           "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12780                           "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12781                           "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12782                           "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12783                           "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12784                           "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12785                           "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12786                           "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12787                           "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12788                           "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12789                           "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12790                           "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12791                           "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12792                           "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12793                           "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12794                           "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12795                           "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12796                           "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12797                           "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12798                           "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12799                           "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12800                           "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12801                           "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12802                           "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12803                           "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12804                           "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12805                           "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12806                           "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12807                           "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12808                           "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12809                           "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12810                           "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12811                           "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
12812                           "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
12813                           "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
12814                           "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
12815                           "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
12816                           "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
12817                           "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
12818                           "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
12819                           "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
12820                           "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
12821                           "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
12822                           "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
12823                           "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
12824                           "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
12825                           "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
12826                           "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
12827                           "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
12828                           "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
12829                           "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
12830                           "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
12831                 .rlen   = 512,
12832                 .also_non_np = 1,
12833                 .np     = 3,
12834                 .tap    = { 512 - 20, 4, 16 },
12835         },
12836 };
12837
12838 static const struct cipher_testvec serpent_lrw_dec_tv_template[] = {
12839         /* Generated from AES-LRW test vectors */
12840         /* same as enc vectors with input and result reversed */
12841         {
12842                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12843                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12844                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12845                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12846                 .klen   = 32,
12847                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12848                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12849                 .input  = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12850                           "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12851                 .ilen   = 16,
12852                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12853                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12854                 .rlen   = 16,
12855         }, {
12856                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12857                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12858                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12859                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12860                 .klen   = 32,
12861                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12862                           "\x00\x00\x00\x00\x00\x00\x00\x02",
12863                 .input  = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12864                           "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12865                 .ilen   = 16,
12866                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12867                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12868                 .rlen   = 16,
12869         }, {
12870                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12871                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12872                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12873                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12874                 .klen   = 32,
12875                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12876                           "\x00\x00\x00\x02\x00\x00\x00\x00",
12877                 .input  = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12878                           "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12879                 .ilen   = 16,
12880                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12881                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12882                 .rlen   = 16,
12883         }, {
12884                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12885                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12886                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12887                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12888                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12889                 .klen   = 40,
12890                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12891                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12892                 .input  = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12893                           "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12894                 .ilen   = 16,
12895                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12896                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12897                 .rlen   = 16,
12898         }, {
12899                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12900                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12901                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12902                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12903                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12904                 .klen   = 40,
12905                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12906                           "\x00\x00\x00\x02\x00\x00\x00\x00",
12907                 .input  = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12908                           "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
12909                 .ilen   = 16,
12910                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12911                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12912                 .rlen   = 16,
12913         }, {
12914                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12915                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12916                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12917                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12918                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12919                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12920                 .klen   = 48,
12921                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12922                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12923                 .input  = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12924                           "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
12925                 .ilen   = 16,
12926                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12927                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12928                 .rlen   = 16,
12929         }, {
12930                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12931                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12932                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12933                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12934                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12935                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12936                 .klen   = 48,
12937                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12938                           "\x00\x00\x00\x02\x00\x00\x00\x00",
12939                 .input  = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12940                           "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12941                 .ilen   = 16,
12942                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12943                           "\x38\x39\x41\x42\x43\x44\x45\x46",
12944                 .rlen   = 16,
12945         }, {
12946                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12947                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12948                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12949                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12950                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12951                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12952                 .klen   = 48,
12953                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
12954                           "\x00\x00\x00\x00\x00\x00\x00\x01",
12955                 .input  = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12956                           "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12957                           "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12958                           "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12959                           "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12960                           "\xce\xab\xda\x33\x30\x20\x12\xfa"
12961                           "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12962                           "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12963                           "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12964                           "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12965                           "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12966                           "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12967                           "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12968                           "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12969                           "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12970                           "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12971                           "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12972                           "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12973                           "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12974                           "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12975                           "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12976                           "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12977                           "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12978                           "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12979                           "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12980                           "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12981                           "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12982                           "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12983                           "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12984                           "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12985                           "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12986                           "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12987                           "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12988                           "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12989                           "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12990                           "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12991                           "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12992                           "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12993                           "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12994                           "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12995                           "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12996                           "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12997                           "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12998                           "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12999                           "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
13000                           "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
13001                           "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
13002                           "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
13003                           "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
13004                           "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
13005                           "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
13006                           "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
13007                           "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
13008                           "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
13009                           "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
13010                           "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
13011                           "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
13012                           "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
13013                           "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
13014                           "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
13015                           "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
13016                           "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
13017                           "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
13018                           "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
13019                 .ilen   = 512,
13020                 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
13021                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13022                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13023                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13024                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13025                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13026                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13027                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13028                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13029                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13030                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13031                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13032                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13033                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13034                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13035                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13036                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13037                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13038                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13039                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13040                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13041                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13042                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13043                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13044                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13045                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13046                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13047                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13048                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13049                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13050                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13051                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13052                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13053                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13054                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13055                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13056                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13057                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13058                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13059                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13060                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13061                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13062                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13063                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13064                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13065                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13066                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13067                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13068                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13069                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13070                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13071                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13072                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13073                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13074                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13075                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13076                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13077                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13078                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13079                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13080                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13081                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13082                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13083                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13084                 .rlen   = 512,
13085                 .also_non_np = 1,
13086                 .np     = 3,
13087                 .tap    = { 512 - 20, 4, 16 },
13088         },
13089 };
13090
13091 static const struct cipher_testvec serpent_xts_enc_tv_template[] = {
13092         /* Generated from AES-XTS test vectors */
13093         {
13094                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
13095                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13096                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13097                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13098                 .klen   = 32,
13099                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13100                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13101                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
13102                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13103                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13104                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13105                 .ilen   = 32,
13106                 .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
13107                           "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
13108                           "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
13109                           "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
13110                 .rlen   = 32,
13111         }, {
13112                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
13113                           "\x11\x11\x11\x11\x11\x11\x11\x11"
13114                           "\x22\x22\x22\x22\x22\x22\x22\x22"
13115                           "\x22\x22\x22\x22\x22\x22\x22\x22",
13116                 .klen   = 32,
13117                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
13118                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13119                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
13120                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13121                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13122                           "\x44\x44\x44\x44\x44\x44\x44\x44",
13123                 .ilen   = 32,
13124                 .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
13125                           "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
13126                           "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
13127                           "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
13128                 .rlen   = 32,
13129         }, {
13130                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13131                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13132                           "\x22\x22\x22\x22\x22\x22\x22\x22"
13133                           "\x22\x22\x22\x22\x22\x22\x22\x22",
13134                 .klen   = 32,
13135                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
13136                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13137                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
13138                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13139                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13140                           "\x44\x44\x44\x44\x44\x44\x44\x44",
13141                 .ilen   = 32,
13142                 .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
13143                           "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
13144                           "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
13145                           "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
13146                 .rlen   = 32,
13147         }, {
13148                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
13149                           "\x23\x53\x60\x28\x74\x71\x35\x26"
13150                           "\x31\x41\x59\x26\x53\x58\x97\x93"
13151                           "\x23\x84\x62\x64\x33\x83\x27\x95",
13152                 .klen   = 32,
13153                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13154                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13155                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13156                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13157                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13158                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13159                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13160                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13161                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13162                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13163                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13164                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13165                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13166                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13167                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13168                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13169                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13170                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13171                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13172                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13173                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13174                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13175                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13176                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13177                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13178                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13179                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13180                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13181                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13182                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13183                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13184                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13185                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13186                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13187                           "\x00\x01\x02\x03\x04\x05\x06\x07"
13188                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13189                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13190                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13191                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13192                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13193                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13194                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13195                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13196                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13197                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13198                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13199                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13200                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13201                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13202                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13203                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13204                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13205                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13206                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13207                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13208                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13209                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13210                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13211                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13212                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13213                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13214                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13215                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13216                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13217                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13218                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13219                 .ilen   = 512,
13220                 .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13221                           "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13222                           "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13223                           "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13224                           "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13225                           "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13226                           "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13227                           "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13228                           "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13229                           "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13230                           "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13231                           "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13232                           "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13233                           "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13234                           "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13235                           "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13236                           "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13237                           "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13238                           "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13239                           "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13240                           "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13241                           "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13242                           "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13243                           "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13244                           "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13245                           "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13246                           "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13247                           "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13248                           "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13249                           "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13250                           "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13251                           "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13252                           "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13253                           "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13254                           "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13255                           "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13256                           "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13257                           "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13258                           "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13259                           "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13260                           "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13261                           "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13262                           "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13263                           "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13264                           "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13265                           "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13266                           "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13267                           "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13268                           "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13269                           "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13270                           "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13271                           "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13272                           "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13273                           "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13274                           "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13275                           "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13276                           "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13277                           "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13278                           "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13279                           "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13280                           "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13281                           "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13282                           "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13283                           "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13284                 .rlen   = 512,
13285         }, {
13286                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
13287                           "\x23\x53\x60\x28\x74\x71\x35\x26"
13288                           "\x62\x49\x77\x57\x24\x70\x93\x69"
13289                           "\x99\x59\x57\x49\x66\x96\x76\x27"
13290                           "\x31\x41\x59\x26\x53\x58\x97\x93"
13291                           "\x23\x84\x62\x64\x33\x83\x27\x95"
13292                           "\x02\x88\x41\x97\x16\x93\x99\x37"
13293                           "\x51\x05\x82\x09\x74\x94\x45\x92",
13294                 .klen   = 64,
13295                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
13296                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13297                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13298                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13299                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13300                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13301                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13302                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13303                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13304                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13305                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13306                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13307                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13308                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13309                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13310                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13311                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13312                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13313                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13314                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13315                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13316                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13317                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13318                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13319                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13320                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13321                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13322                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13323                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13324                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13325                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13326                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13327                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13328                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13329                           "\x00\x01\x02\x03\x04\x05\x06\x07"
13330                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13331                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13332                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13333                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13334                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13335                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13336                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13337                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13338                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13339                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13340                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13341                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13342                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13343                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13344                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13345                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13346                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13347                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13348                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13349                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13350                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13351                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13352                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13353                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13354                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13355                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13356                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13357                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13358                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13359                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13360                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13361                 .ilen   = 512,
13362                 .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13363                           "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13364                           "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13365                           "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13366                           "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13367                           "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13368                           "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13369                           "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13370                           "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13371                           "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13372                           "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13373                           "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13374                           "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13375                           "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13376                           "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13377                           "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13378                           "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13379                           "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13380                           "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13381                           "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13382                           "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13383                           "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13384                           "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13385                           "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13386                           "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13387                           "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13388                           "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13389                           "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13390                           "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13391                           "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13392                           "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13393                           "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13394                           "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13395                           "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13396                           "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13397                           "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13398                           "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13399                           "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13400                           "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13401                           "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13402                           "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13403                           "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13404                           "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13405                           "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13406                           "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13407                           "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13408                           "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13409                           "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13410                           "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13411                           "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13412                           "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13413                           "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13414                           "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13415                           "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13416                           "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13417                           "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13418                           "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13419                           "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13420                           "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13421                           "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13422                           "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13423                           "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13424                           "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13425                           "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13426                 .rlen   = 512,
13427                 .also_non_np = 1,
13428                 .np     = 3,
13429                 .tap    = { 512 - 20, 4, 16 },
13430         },
13431 };
13432
13433 static const struct cipher_testvec serpent_xts_dec_tv_template[] = {
13434         /* Generated from AES-XTS test vectors */
13435         /* same as enc vectors with input and result reversed */
13436         {
13437                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
13438                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13439                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13440                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13441                 .klen   = 32,
13442                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13443                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13444                 .input  = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
13445                           "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
13446                           "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
13447                           "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
13448                 .ilen   = 32,
13449                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
13450                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13451                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13452                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13453                 .rlen   = 32,
13454         }, {
13455                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
13456                           "\x11\x11\x11\x11\x11\x11\x11\x11"
13457                           "\x22\x22\x22\x22\x22\x22\x22\x22"
13458                           "\x22\x22\x22\x22\x22\x22\x22\x22",
13459                 .klen   = 32,
13460                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
13461                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13462                 .input  = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
13463                           "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
13464                           "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
13465                           "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
13466                 .ilen   = 32,
13467                 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13468                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13469                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13470                           "\x44\x44\x44\x44\x44\x44\x44\x44",
13471                 .rlen   = 32,
13472         }, {
13473                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13474                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13475                           "\x22\x22\x22\x22\x22\x22\x22\x22"
13476                           "\x22\x22\x22\x22\x22\x22\x22\x22",
13477                 .klen   = 32,
13478                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
13479                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13480                 .input  = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
13481                           "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
13482                           "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
13483                           "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
13484                 .ilen   = 32,
13485                 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13486                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13487                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13488                           "\x44\x44\x44\x44\x44\x44\x44\x44",
13489                 .rlen   = 32,
13490         }, {
13491                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
13492                           "\x23\x53\x60\x28\x74\x71\x35\x26"
13493                           "\x31\x41\x59\x26\x53\x58\x97\x93"
13494                           "\x23\x84\x62\x64\x33\x83\x27\x95",
13495                 .klen   = 32,
13496                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13497                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13498                 .input  = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13499                           "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13500                           "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13501                           "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13502                           "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13503                           "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13504                           "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13505                           "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13506                           "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13507                           "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13508                           "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13509                           "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13510                           "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13511                           "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13512                           "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13513                           "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13514                           "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13515                           "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13516                           "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13517                           "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13518                           "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13519                           "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13520                           "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13521                           "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13522                           "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13523                           "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13524                           "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13525                           "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13526                           "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13527                           "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13528                           "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13529                           "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13530                           "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13531                           "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13532                           "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13533                           "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13534                           "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13535                           "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13536                           "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13537                           "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13538                           "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13539                           "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13540                           "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13541                           "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13542                           "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13543                           "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13544                           "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13545                           "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13546                           "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13547                           "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13548                           "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13549                           "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13550                           "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13551                           "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13552                           "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13553                           "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13554                           "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13555                           "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13556                           "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13557                           "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13558                           "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13559                           "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13560                           "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13561                           "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13562                 .ilen   = 512,
13563                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13564                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13565                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13566                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13567                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13568                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13569                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13570                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13571                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13572                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13573                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13574                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13575                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13576                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13577                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13578                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13579                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13580                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13581                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13582                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13583                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13584                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13585                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13586                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13587                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13588                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13589                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13590                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13591                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13592                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13593                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13594                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13595                           "\x00\x01\x02\x03\x04\x05\x06\x07"
13596                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13597                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13598                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13599                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13600                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13601                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13602                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13603                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13604                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13605                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13606                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13607                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13608                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13609                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13610                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13611                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13612                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13613                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13614                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13615                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13616                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13617                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13618                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13619                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13620                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13621                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13622                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13623                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13624                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13625                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13626                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13627                 .rlen   = 512,
13628         }, {
13629                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
13630                           "\x23\x53\x60\x28\x74\x71\x35\x26"
13631                           "\x62\x49\x77\x57\x24\x70\x93\x69"
13632                           "\x99\x59\x57\x49\x66\x96\x76\x27"
13633                           "\x31\x41\x59\x26\x53\x58\x97\x93"
13634                           "\x23\x84\x62\x64\x33\x83\x27\x95"
13635                           "\x02\x88\x41\x97\x16\x93\x99\x37"
13636                           "\x51\x05\x82\x09\x74\x94\x45\x92",
13637                 .klen   = 64,
13638                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
13639                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13640                 .input  = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13641                           "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13642                           "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13643                           "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13644                           "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13645                           "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13646                           "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13647                           "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13648                           "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13649                           "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13650                           "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13651                           "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13652                           "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13653                           "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13654                           "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13655                           "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13656                           "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13657                           "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13658                           "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13659                           "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13660                           "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13661                           "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13662                           "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13663                           "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13664                           "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13665                           "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13666                           "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13667                           "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13668                           "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13669                           "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13670                           "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13671                           "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13672                           "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13673                           "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13674                           "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13675                           "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13676                           "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13677                           "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13678                           "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13679                           "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13680                           "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13681                           "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13682                           "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13683                           "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13684                           "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13685                           "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13686                           "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13687                           "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13688                           "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13689                           "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13690                           "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13691                           "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13692                           "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13693                           "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13694                           "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13695                           "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13696                           "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13697                           "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13698                           "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13699                           "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13700                           "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13701                           "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13702                           "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13703                           "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13704                 .ilen   = 512,
13705                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13706                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13707                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13708                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13709                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13710                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13711                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13712                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13713                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13714                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13715                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13716                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13717                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13718                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13719                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13720                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13721                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13722                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13723                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13724                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13725                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13726                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13727                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13728                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13729                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13730                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13731                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13732                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13733                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13734                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13735                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13736                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13737                           "\x00\x01\x02\x03\x04\x05\x06\x07"
13738                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13739                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13740                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13741                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13742                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13743                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13744                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13745                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13746                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13747                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13748                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13749                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13750                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13751                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13752                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13753                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13754                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13755                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13756                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13757                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13758                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13759                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13760                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13761                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13762                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13763                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13764                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13765                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13766                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13767                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13768                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13769                 .rlen   = 512,
13770                 .also_non_np = 1,
13771                 .np     = 3,
13772                 .tap    = { 512 - 20, 4, 16 },
13773         },
13774 };
13775
13776 /* Cast6 test vectors from RFC 2612 */
13777 static const struct cipher_testvec cast6_enc_tv_template[] = {
13778         {
13779                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13780                           "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13781                 .klen   = 16,
13782                 .input  = zeroed_string,
13783                 .ilen   = 16,
13784                 .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13785                           "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13786                 .rlen   = 16,
13787         }, {
13788                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13789                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13790                           "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13791                 .klen   = 24,
13792                 .input  = zeroed_string,
13793                 .ilen   = 16,
13794                 .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13795                           "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13796                 .rlen   = 16,
13797         }, {
13798                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13799                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13800                           "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13801                           "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13802                 .klen   = 32,
13803                 .input  = zeroed_string,
13804                 .ilen   = 16,
13805                 .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13806                           "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13807                 .rlen   = 16,
13808         }, { /* Generated from TF test vectors */
13809                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13810                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13811                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13812                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13813                 .klen   = 32,
13814                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13815                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13816                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13817                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13818                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13819                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13820                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13821                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13822                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13823                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13824                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13825                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13826                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13827                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13828                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13829                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
13830                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
13831                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
13832                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
13833                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
13834                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
13835                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
13836                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
13837                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
13838                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
13839                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
13840                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
13841                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
13842                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
13843                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
13844                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
13845                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
13846                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
13847                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
13848                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
13849                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
13850                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
13851                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
13852                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
13853                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
13854                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
13855                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
13856                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
13857                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
13858                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
13859                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
13860                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
13861                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
13862                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
13863                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
13864                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
13865                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
13866                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
13867                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
13868                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
13869                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
13870                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
13871                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
13872                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
13873                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
13874                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
13875                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
13876                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
13877                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
13878                 .ilen   = 496,
13879                 .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13880                           "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13881                           "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13882                           "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13883                           "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13884                           "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13885                           "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13886                           "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13887                           "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13888                           "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13889                           "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13890                           "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13891                           "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
13892                           "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
13893                           "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
13894                           "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
13895                           "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
13896                           "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
13897                           "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
13898                           "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
13899                           "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
13900                           "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
13901                           "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
13902                           "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
13903                           "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
13904                           "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
13905                           "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
13906                           "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
13907                           "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
13908                           "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
13909                           "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
13910                           "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
13911                           "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
13912                           "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
13913                           "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
13914                           "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
13915                           "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
13916                           "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
13917                           "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
13918                           "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
13919                           "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
13920                           "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
13921                           "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
13922                           "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
13923                           "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
13924                           "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
13925                           "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
13926                           "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
13927                           "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
13928                           "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
13929                           "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
13930                           "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
13931                           "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
13932                           "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
13933                           "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
13934                           "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
13935                           "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
13936                           "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
13937                           "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
13938                           "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
13939                           "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
13940                           "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
13941                 .rlen   = 496,
13942                 .also_non_np = 1,
13943                 .np     = 3,
13944                 .tap    = { 496 - 20, 4, 16 },
13945         },
13946 };
13947
13948 static const struct cipher_testvec cast6_dec_tv_template[] = {
13949         {
13950                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13951                           "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13952                 .klen   = 16,
13953                 .input  = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13954                           "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13955                 .ilen   = 16,
13956                 .result = zeroed_string,
13957                 .rlen   = 16,
13958         }, {
13959                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13960                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13961                           "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13962                 .klen   = 24,
13963                 .input  = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13964                           "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13965                 .ilen   = 16,
13966                 .result = zeroed_string,
13967                 .rlen   = 16,
13968         }, {
13969                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13970                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13971                           "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13972                           "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13973                 .klen   = 32,
13974                 .input  = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13975                           "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13976                 .ilen   = 16,
13977                 .result = zeroed_string,
13978                 .rlen   = 16,
13979         }, { /* Generated from TF test vectors */
13980                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13981                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13982                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13983                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13984                 .klen   = 32,
13985                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13986                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13987                 .input  = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13988                           "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13989                           "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13990                           "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13991                           "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13992                           "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13993                           "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13994                           "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13995                           "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13996                           "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13997                           "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13998                           "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13999                           "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
14000                           "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
14001                           "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
14002                           "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
14003                           "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
14004                           "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
14005                           "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
14006                           "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
14007                           "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
14008                           "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
14009                           "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
14010                           "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
14011                           "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
14012                           "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
14013                           "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
14014                           "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
14015                           "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
14016                           "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
14017                           "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
14018                           "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
14019                           "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
14020                           "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
14021                           "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
14022                           "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
14023                           "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
14024                           "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
14025                           "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
14026                           "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
14027                           "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
14028                           "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
14029                           "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
14030                           "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
14031                           "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
14032                           "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
14033                           "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
14034                           "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
14035                           "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
14036                           "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
14037                           "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
14038                           "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
14039                           "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
14040                           "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
14041                           "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
14042                           "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
14043                           "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
14044                           "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
14045                           "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
14046                           "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
14047                           "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
14048                           "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
14049                 .ilen   = 496,
14050                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14051                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14052                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14053                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14054                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14055                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14056                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14057                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14058                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14059                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14060                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14061                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14062                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14063                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14064                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14065                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14066                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14067                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14068                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14069                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14070                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14071                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14072                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14073                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14074                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14075                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14076                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14077                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14078                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14079                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14080                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14081                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14082                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14083                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14084                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14085                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14086                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14087                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14088                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14089                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14090                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14091                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14092                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14093                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14094                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14095                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14096                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14097                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14098                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14099                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14100                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14101                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14102                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14103                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14104                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14105                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14106                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14107                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14108                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14109                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14110                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14111                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14112                 .rlen   = 496,
14113                 .also_non_np = 1,
14114                 .np     = 3,
14115                 .tap    = { 496 - 20, 4, 16 },
14116         },
14117 };
14118
14119 static const struct cipher_testvec cast6_cbc_enc_tv_template[] = {
14120         { /* Generated from TF test vectors */
14121                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14122                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14123                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14124                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14125                 .klen   = 32,
14126                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14127                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14128                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14129                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14130                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14131                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14132                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14133                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14134                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14135                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14136                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14137                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14138                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14139                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14140                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14141                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14142                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14143                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14144                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14145                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14146                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14147                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14148                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14149                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14150                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14151                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14152                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14153                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14154                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14155                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14156                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14157                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14158                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14159                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14160                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14161                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14162                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14163                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14164                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14165                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14166                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14167                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14168                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14169                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14170                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14171                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14172                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14173                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14174                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14175                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14176                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14177                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14178                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14179                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14180                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14181                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14182                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14183                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14184                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14185                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14186                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14187                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14188                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14189                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14190                 .ilen   = 496,
14191                 .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14192                           "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14193                           "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14194                           "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14195                           "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14196                           "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14197                           "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14198                           "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14199                           "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14200                           "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14201                           "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14202                           "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14203                           "\x23\x16\x47\x72\x81\x13\x3A\x72"
14204                           "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14205                           "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14206                           "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14207                           "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14208                           "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14209                           "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14210                           "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14211                           "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14212                           "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14213                           "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14214                           "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14215                           "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14216                           "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14217                           "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14218                           "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14219                           "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14220                           "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14221                           "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14222                           "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14223                           "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14224                           "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14225                           "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14226                           "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14227                           "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14228                           "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14229                           "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14230                           "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14231                           "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14232                           "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14233                           "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14234                           "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14235                           "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14236                           "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14237                           "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14238                           "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14239                           "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14240                           "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14241                           "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14242                           "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14243                           "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14244                           "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14245                           "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14246                           "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14247                           "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14248                           "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14249                           "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14250                           "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14251                           "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14252                           "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14253                 .rlen   = 496,
14254                 .also_non_np = 1,
14255                 .np     = 3,
14256                 .tap    = { 496 - 20, 4, 16 },
14257         },
14258 };
14259
14260 static const struct cipher_testvec cast6_cbc_dec_tv_template[] = {
14261         { /* Generated from TF test vectors */
14262                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14263                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14264                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14265                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14266                 .klen   = 32,
14267                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14268                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14269                 .input  = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14270                           "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14271                           "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14272                           "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14273                           "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14274                           "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14275                           "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14276                           "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14277                           "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14278                           "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14279                           "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14280                           "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14281                           "\x23\x16\x47\x72\x81\x13\x3A\x72"
14282                           "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14283                           "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14284                           "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14285                           "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14286                           "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14287                           "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14288                           "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14289                           "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14290                           "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14291                           "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14292                           "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14293                           "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14294                           "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14295                           "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14296                           "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14297                           "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14298                           "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14299                           "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14300                           "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14301                           "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14302                           "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14303                           "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14304                           "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14305                           "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14306                           "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14307                           "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14308                           "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14309                           "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14310                           "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14311                           "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14312                           "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14313                           "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14314                           "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14315                           "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14316                           "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14317                           "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14318                           "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14319                           "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14320                           "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14321                           "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14322                           "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14323                           "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14324                           "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14325                           "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14326                           "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14327                           "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14328                           "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14329                           "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14330                           "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14331                 .ilen   = 496,
14332                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14333                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14334                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14335                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14336                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14337                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14338                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14339                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14340                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14341                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14342                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14343                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14344                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14345                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14346                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14347                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14348                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14349                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14350                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14351                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14352                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14353                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14354                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14355                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14356                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14357                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14358                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14359                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14360                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14361                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14362                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14363                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14364                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14365                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14366                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14367                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14368                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14369                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14370                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14371                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14372                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14373                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14374                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14375                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14376                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14377                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14378                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14379                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14380                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14381                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14382                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14383                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14384                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14385                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14386                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14387                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14388                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14389                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14390                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14391                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14392                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14393                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14394                 .rlen   = 496,
14395                 .also_non_np = 1,
14396                 .np     = 3,
14397                 .tap    = { 496 - 20, 4, 16 },
14398         },
14399 };
14400
14401 static const struct cipher_testvec cast6_ctr_enc_tv_template[] = {
14402         { /* Generated from TF test vectors */
14403                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14404                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14405                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14406                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14407                 .klen   = 32,
14408                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14409                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14410                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14411                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14412                           "\x3A",
14413                 .ilen   = 17,
14414                 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14415                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14416                           "\x57",
14417                 .rlen   = 17,
14418         }, { /* Generated from TF test vectors */
14419                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14420                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14421                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14422                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14423                 .klen   = 32,
14424                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14425                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14426                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14427                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14428                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14429                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14430                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14431                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14432                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14433                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14434                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14435                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14436                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14437                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14438                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14439                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14440                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14441                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14442                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14443                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14444                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14445                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14446                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14447                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14448                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14449                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14450                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14451                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14452                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14453                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14454                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14455                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14456                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14457                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14458                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14459                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14460                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14461                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14462                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14463                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14464                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14465                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14466                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14467                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14468                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14469                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14470                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14471                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14472                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14473                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14474                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14475                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14476                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14477                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14478                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14479                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14480                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14481                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14482                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14483                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14484                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14485                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14486                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14487                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14488                 .ilen   = 496,
14489                 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14490                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14491                           "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14492                           "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14493                           "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14494                           "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14495                           "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14496                           "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14497                           "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14498                           "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14499                           "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14500                           "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14501                           "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14502                           "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14503                           "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14504                           "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14505                           "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14506                           "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14507                           "\x49\x61\x22\x52\x64\x8C\x46\x41"
14508                           "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14509                           "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14510                           "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14511                           "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14512                           "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14513                           "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14514                           "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14515                           "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14516                           "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14517                           "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14518                           "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14519                           "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14520                           "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14521                           "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14522                           "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14523                           "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14524                           "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14525                           "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14526                           "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14527                           "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14528                           "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14529                           "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14530                           "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14531                           "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14532                           "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14533                           "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14534                           "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14535                           "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14536                           "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14537                           "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14538                           "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14539                           "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14540                           "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14541                           "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14542                           "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14543                           "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14544                           "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14545                           "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14546                           "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14547                           "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14548                           "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14549                           "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14550                           "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14551                 .rlen   = 496,
14552                 .also_non_np = 1,
14553                 .np     = 3,
14554                 .tap    = { 496 - 20, 4, 16 },
14555         },
14556 };
14557
14558 static const struct cipher_testvec cast6_ctr_dec_tv_template[] = {
14559         { /* Generated from TF test vectors */
14560                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14561                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14562                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14563                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14564                 .klen   = 32,
14565                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14566                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14567                 .input  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14568                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14569                           "\x57",
14570                 .ilen   = 17,
14571                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14572                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14573                           "\x3A",
14574                 .rlen   = 17,
14575         }, { /* Generated from TF test vectors */
14576                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14577                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14578                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14579                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14580                 .klen   = 32,
14581                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14582                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14583                 .input  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14584                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14585                           "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14586                           "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14587                           "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14588                           "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14589                           "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14590                           "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14591                           "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14592                           "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14593                           "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14594                           "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14595                           "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14596                           "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14597                           "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14598                           "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14599                           "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14600                           "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14601                           "\x49\x61\x22\x52\x64\x8C\x46\x41"
14602                           "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14603                           "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14604                           "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14605                           "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14606                           "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14607                           "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14608                           "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14609                           "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14610                           "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14611                           "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14612                           "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14613                           "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14614                           "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14615                           "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14616                           "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14617                           "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14618                           "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14619                           "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14620                           "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14621                           "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14622                           "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14623                           "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14624                           "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14625                           "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14626                           "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14627                           "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14628                           "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14629                           "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14630                           "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14631                           "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14632                           "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14633                           "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14634                           "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14635                           "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14636                           "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14637                           "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14638                           "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14639                           "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14640                           "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14641                           "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14642                           "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14643                           "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14644                           "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14645                 .ilen   = 496,
14646                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14647                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14648                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14649                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14650                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14651                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14652                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14653                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14654                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14655                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14656                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14657                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14658                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14659                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14660                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14661                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14662                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14663                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14664                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14665                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14666                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14667                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14668                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14669                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14670                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14671                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14672                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14673                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14674                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14675                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14676                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14677                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14678                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14679                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14680                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14681                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14682                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14683                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14684                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14685                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14686                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14687                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14688                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14689                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14690                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14691                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14692                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14693                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14694                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14695                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14696                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14697                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14698                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14699                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14700                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14701                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14702                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14703                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14704                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14705                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14706                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14707                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14708                 .rlen   = 496,
14709                 .also_non_np = 1,
14710                 .np     = 3,
14711                 .tap    = { 496 - 20, 4, 16 },
14712         },
14713 };
14714
14715 static const struct cipher_testvec cast6_lrw_enc_tv_template[] = {
14716         { /* Generated from TF test vectors */
14717                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14718                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14719                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14720                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14721                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14722                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14723                 .klen   = 48,
14724                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14725                           "\x00\x00\x00\x00\x00\x00\x00\x01",
14726                 .input  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14727                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14728                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14729                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14730                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14731                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14732                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14733                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14734                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14735                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14736                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14737                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14738                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14739                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14740                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14741                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14742                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14743                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14744                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14745                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14746                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14747                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14748                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14749                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14750                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14751                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14752                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14753                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14754                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14755                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14756                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14757                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14758                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14759                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14760                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14761                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14762                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14763                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14764                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14765                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14766                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14767                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14768                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14769                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14770                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14771                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14772                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14773                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14774                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14775                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14776                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14777                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14778                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14779                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14780                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14781                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14782                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14783                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14784                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14785                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14786                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14787                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14788                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14789                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14790                 .ilen   = 512,
14791                 .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14792                           "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14793                           "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14794                           "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14795                           "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14796                           "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14797                           "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14798                           "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14799                           "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14800                           "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14801                           "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14802                           "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14803                           "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14804                           "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14805                           "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14806                           "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14807                           "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14808                           "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14809                           "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14810                           "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14811                           "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14812                           "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14813                           "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14814                           "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14815                           "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14816                           "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14817                           "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14818                           "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14819                           "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14820                           "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14821                           "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14822                           "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14823                           "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14824                           "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14825                           "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14826                           "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14827                           "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14828                           "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14829                           "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14830                           "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14831                           "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14832                           "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14833                           "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14834                           "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14835                           "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14836                           "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14837                           "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14838                           "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14839                           "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14840                           "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14841                           "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14842                           "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14843                           "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14844                           "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14845                           "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14846                           "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14847                           "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14848                           "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14849                           "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14850                           "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14851                           "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14852                           "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14853                           "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14854                           "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14855                 .rlen   = 512,
14856                 .also_non_np = 1,
14857                 .np     = 3,
14858                 .tap    = { 512 - 20, 4, 16 },
14859         },
14860 };
14861
14862 static const struct cipher_testvec cast6_lrw_dec_tv_template[] = {
14863         { /* Generated from TF test vectors */
14864                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14865                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14866                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14867                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14868                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14869                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14870                 .klen   = 48,
14871                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14872                           "\x00\x00\x00\x00\x00\x00\x00\x01",
14873                 .input  = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14874                           "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14875                           "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14876                           "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14877                           "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14878                           "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14879                           "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14880                           "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14881                           "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14882                           "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14883                           "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14884                           "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14885                           "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14886                           "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14887                           "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14888                           "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14889                           "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14890                           "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14891                           "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14892                           "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14893                           "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14894                           "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14895                           "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14896                           "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14897                           "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14898                           "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14899                           "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14900                           "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14901                           "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14902                           "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14903                           "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14904                           "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14905                           "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14906                           "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14907                           "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14908                           "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14909                           "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14910                           "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14911                           "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14912                           "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14913                           "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14914                           "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14915                           "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14916                           "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14917                           "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14918                           "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14919                           "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14920                           "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14921                           "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14922                           "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14923                           "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14924                           "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14925                           "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14926                           "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14927                           "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14928                           "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14929                           "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14930                           "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14931                           "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14932                           "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14933                           "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14934                           "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14935                           "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14936                           "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14937                 .ilen   = 512,
14938                 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14939                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14940                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14941                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14942                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14943                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14944                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14945                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14946                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14947                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14948                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14949                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14950                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14951                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14952                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14953                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14954                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14955                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14956                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14957                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14958                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14959                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14960                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14961                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14962                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14963                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14964                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14965                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14966                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14967                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14968                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14969                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14970                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14971                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14972                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14973                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14974                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14975                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14976                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14977                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14978                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14979                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14980                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14981                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14982                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14983                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14984                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14985                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14986                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14987                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14988                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14989                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14990                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14991                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14992                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14993                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14994                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14995                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14996                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14997                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14998                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14999                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
15000                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
15001                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
15002                 .rlen   = 512,
15003                 .also_non_np = 1,
15004                 .np     = 3,
15005                 .tap    = { 512 - 20, 4, 16 },
15006         },
15007 };
15008
15009 static const struct cipher_testvec cast6_xts_enc_tv_template[] = {
15010         { /* Generated from TF test vectors */
15011                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
15012                           "\x23\x53\x60\x28\x74\x71\x35\x26"
15013                           "\x62\x49\x77\x57\x24\x70\x93\x69"
15014                           "\x99\x59\x57\x49\x66\x96\x76\x27"
15015                           "\x31\x41\x59\x26\x53\x58\x97\x93"
15016                           "\x23\x84\x62\x64\x33\x83\x27\x95"
15017                           "\x02\x88\x41\x97\x16\x93\x99\x37"
15018                           "\x51\x05\x82\x09\x74\x94\x45\x92",
15019                 .klen   = 64,
15020                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
15021                           "\x00\x00\x00\x00\x00\x00\x00\x00",
15022                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
15023                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15024                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15025                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15026                           "\x20\x21\x22\x23\x24\x25\x26\x27"
15027                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15028                           "\x30\x31\x32\x33\x34\x35\x36\x37"
15029                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15030                           "\x40\x41\x42\x43\x44\x45\x46\x47"
15031                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15032                           "\x50\x51\x52\x53\x54\x55\x56\x57"
15033                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15034                           "\x60\x61\x62\x63\x64\x65\x66\x67"
15035                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15036                           "\x70\x71\x72\x73\x74\x75\x76\x77"
15037                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15038                           "\x80\x81\x82\x83\x84\x85\x86\x87"
15039                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15040                           "\x90\x91\x92\x93\x94\x95\x96\x97"
15041                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15042                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15043                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15044                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15045                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15046                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15047                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15048                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15049                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15050                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15051                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15052                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15053                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15054                           "\x00\x01\x02\x03\x04\x05\x06\x07"
15055                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15056                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15057                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15058                           "\x20\x21\x22\x23\x24\x25\x26\x27"
15059                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15060                           "\x30\x31\x32\x33\x34\x35\x36\x37"
15061                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15062                           "\x40\x41\x42\x43\x44\x45\x46\x47"
15063                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15064                           "\x50\x51\x52\x53\x54\x55\x56\x57"
15065                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15066                           "\x60\x61\x62\x63\x64\x65\x66\x67"
15067                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15068                           "\x70\x71\x72\x73\x74\x75\x76\x77"
15069                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15070                           "\x80\x81\x82\x83\x84\x85\x86\x87"
15071                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15072                           "\x90\x91\x92\x93\x94\x95\x96\x97"
15073                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15074                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15075                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15076                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15077                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15078                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15079                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15080                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15081                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15082                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15083                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15084                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15085                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15086                 .ilen   = 512,
15087                 .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
15088                           "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
15089                           "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
15090                           "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
15091                           "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
15092                           "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
15093                           "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
15094                           "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
15095                           "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
15096                           "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
15097                           "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
15098                           "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
15099                           "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
15100                           "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
15101                           "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
15102                           "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
15103                           "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
15104                           "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
15105                           "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
15106                           "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
15107                           "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
15108                           "\x71\x38\x17\x91\x44\xE8\xFC\x65"
15109                           "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
15110                           "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
15111                           "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
15112                           "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
15113                           "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
15114                           "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
15115                           "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
15116                           "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
15117                           "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
15118                           "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
15119                           "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
15120                           "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
15121                           "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
15122                           "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
15123                           "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
15124                           "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
15125                           "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
15126                           "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
15127                           "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
15128                           "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
15129                           "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
15130                           "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
15131                           "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
15132                           "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
15133                           "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
15134                           "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
15135                           "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
15136                           "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
15137                           "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
15138                           "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
15139                           "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
15140                           "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
15141                           "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15142                           "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15143                           "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15144                           "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15145                           "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15146                           "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15147                           "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15148                           "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15149                           "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15150                           "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15151                 .rlen   = 512,
15152                 .also_non_np = 1,
15153                 .np     = 3,
15154                 .tap    = { 512 - 20, 4, 16 },
15155         },
15156 };
15157
15158 static const struct cipher_testvec cast6_xts_dec_tv_template[] = {
15159         { /* Generated from TF test vectors */
15160                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
15161                           "\x23\x53\x60\x28\x74\x71\x35\x26"
15162                           "\x62\x49\x77\x57\x24\x70\x93\x69"
15163                           "\x99\x59\x57\x49\x66\x96\x76\x27"
15164                           "\x31\x41\x59\x26\x53\x58\x97\x93"
15165                           "\x23\x84\x62\x64\x33\x83\x27\x95"
15166                           "\x02\x88\x41\x97\x16\x93\x99\x37"
15167                           "\x51\x05\x82\x09\x74\x94\x45\x92",
15168                 .klen   = 64,
15169                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
15170                           "\x00\x00\x00\x00\x00\x00\x00\x00",
15171                 .input  = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
15172                           "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
15173                           "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
15174                           "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
15175                           "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
15176                           "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
15177                           "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
15178                           "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
15179                           "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
15180                           "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
15181                           "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
15182                           "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
15183                           "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
15184                           "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
15185                           "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
15186                           "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
15187                           "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
15188                           "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
15189                           "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
15190                           "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
15191                           "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
15192                           "\x71\x38\x17\x91\x44\xE8\xFC\x65"
15193                           "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
15194                           "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
15195                           "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
15196                           "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
15197                           "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
15198                           "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
15199                           "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
15200                           "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
15201                           "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
15202                           "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
15203                           "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
15204                           "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
15205                           "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
15206                           "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
15207                           "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
15208                           "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
15209                           "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
15210                           "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
15211                           "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
15212                           "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
15213                           "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
15214                           "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
15215                           "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
15216                           "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
15217                           "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
15218                           "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
15219                           "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
15220                           "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
15221                           "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
15222                           "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
15223                           "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
15224                           "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
15225                           "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15226                           "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15227                           "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15228                           "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15229                           "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15230                           "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15231                           "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15232                           "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15233                           "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15234                           "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15235                 .ilen   = 512,
15236                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15237                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15238                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15239                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15240                           "\x20\x21\x22\x23\x24\x25\x26\x27"
15241                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15242                           "\x30\x31\x32\x33\x34\x35\x36\x37"
15243                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15244                           "\x40\x41\x42\x43\x44\x45\x46\x47"
15245                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15246                           "\x50\x51\x52\x53\x54\x55\x56\x57"
15247                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15248                           "\x60\x61\x62\x63\x64\x65\x66\x67"
15249                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15250                           "\x70\x71\x72\x73\x74\x75\x76\x77"
15251                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15252                           "\x80\x81\x82\x83\x84\x85\x86\x87"
15253                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15254                           "\x90\x91\x92\x93\x94\x95\x96\x97"
15255                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15256                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15257                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15258                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15259                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15260                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15261                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15262                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15263                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15264                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15265                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15266                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15267                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15268                           "\x00\x01\x02\x03\x04\x05\x06\x07"
15269                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15270                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15271                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15272                           "\x20\x21\x22\x23\x24\x25\x26\x27"
15273                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15274                           "\x30\x31\x32\x33\x34\x35\x36\x37"
15275                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15276                           "\x40\x41\x42\x43\x44\x45\x46\x47"
15277                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15278                           "\x50\x51\x52\x53\x54\x55\x56\x57"
15279                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15280                           "\x60\x61\x62\x63\x64\x65\x66\x67"
15281                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15282                           "\x70\x71\x72\x73\x74\x75\x76\x77"
15283                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15284                           "\x80\x81\x82\x83\x84\x85\x86\x87"
15285                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15286                           "\x90\x91\x92\x93\x94\x95\x96\x97"
15287                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15288                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15289                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15290                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15291                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15292                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15293                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15294                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15295                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15296                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15297                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15298                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15299                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15300                 .rlen   = 512,
15301                 .also_non_np = 1,
15302                 .np     = 3,
15303                 .tap    = { 512 - 20, 4, 16 },
15304         },
15305 };
15306
15307
15308 /*
15309  * AES test vectors.
15310  */
15311 static const struct cipher_testvec aes_enc_tv_template[] = {
15312         { /* From FIPS-197 */
15313                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
15314                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15315                 .klen   = 16,
15316                 .input  = "\x00\x11\x22\x33\x44\x55\x66\x77"
15317                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15318                 .ilen   = 16,
15319                 .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15320                           "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15321                 .rlen   = 16,
15322         }, {
15323                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
15324                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15325                           "\x10\x11\x12\x13\x14\x15\x16\x17",
15326                 .klen   = 24,
15327                 .input  = "\x00\x11\x22\x33\x44\x55\x66\x77"
15328                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15329                 .ilen   = 16,
15330                 .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15331                           "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15332                 .rlen   = 16,
15333         }, {
15334                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
15335                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15336                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15337                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15338                 .klen   = 32,
15339                 .input  = "\x00\x11\x22\x33\x44\x55\x66\x77"
15340                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15341                 .ilen   = 16,
15342                 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15343                           "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15344                 .rlen   = 16,
15345         }, { /* Generated with Crypto++ */
15346                 .key    = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15347                           "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15348                           "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15349                           "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15350                 .klen   = 32,
15351                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15352                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15353                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15354                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15355                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15356                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15357                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15358                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15359                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15360                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15361                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15362                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15363                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15364                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15365                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15366                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15367                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15368                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15369                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15370                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15371                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15372                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15373                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15374                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15375                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15376                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15377                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15378                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15379                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15380                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15381                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15382                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15383                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15384                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15385                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15386                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15387                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15388                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15389                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15390                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15391                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15392                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15393                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15394                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15395                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15396                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15397                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15398                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15399                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15400                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15401                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15402                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15403                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15404                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15405                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15406                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15407                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15408                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15409                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15410                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15411                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15412                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15413                 .ilen   = 496,
15414                 .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15415                           "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15416                           "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15417                           "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15418                           "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15419                           "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15420                           "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15421                           "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15422                           "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15423                           "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15424                           "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15425                           "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15426                           "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15427                           "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15428                           "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15429                           "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15430                           "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15431                           "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15432                           "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15433                           "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15434                           "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15435                           "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15436                           "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15437                           "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15438                           "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15439                           "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15440                           "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15441                           "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15442                           "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15443                           "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15444                           "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15445                           "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15446                           "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15447                           "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15448                           "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15449                           "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15450                           "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15451                           "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15452                           "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15453                           "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15454                           "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15455                           "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15456                           "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15457                           "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15458                           "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15459                           "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15460                           "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15461                           "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15462                           "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15463                           "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15464                           "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15465                           "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15466                           "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15467                           "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15468                           "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15469                           "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15470                           "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15471                           "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15472                           "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15473                           "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15474                           "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15475                           "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15476                 .rlen   = 496,
15477                 .also_non_np = 1,
15478                 .np     = 3,
15479                 .tap    = { 496 - 20, 4, 16 },
15480         },
15481 };
15482
15483 static const struct cipher_testvec aes_dec_tv_template[] = {
15484         { /* From FIPS-197 */
15485                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
15486                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15487                 .klen   = 16,
15488                 .input  = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15489                           "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15490                 .ilen   = 16,
15491                 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15492                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15493                 .rlen   = 16,
15494         }, {
15495                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
15496                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15497                           "\x10\x11\x12\x13\x14\x15\x16\x17",
15498                 .klen   = 24,
15499                 .input  = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15500                           "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15501                 .ilen   = 16,
15502                 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15503                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15504                 .rlen   = 16,
15505         }, {
15506                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
15507                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15508                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15509                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15510                 .klen   = 32,
15511                 .input  = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15512                           "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15513                 .ilen   = 16,
15514                 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15515                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15516                 .rlen   = 16,
15517         }, { /* Generated with Crypto++ */
15518                 .key    = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15519                           "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15520                           "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15521                           "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15522                 .klen   = 32,
15523                 .input  = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15524                           "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15525                           "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15526                           "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15527                           "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15528                           "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15529                           "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15530                           "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15531                           "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15532                           "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15533                           "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15534                           "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15535                           "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15536                           "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15537                           "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15538                           "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15539                           "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15540                           "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15541                           "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15542                           "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15543                           "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15544                           "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15545                           "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15546                           "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15547                           "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15548                           "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15549                           "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15550                           "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15551                           "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15552                           "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15553                           "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15554                           "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15555                           "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15556                           "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15557                           "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15558                           "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15559                           "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15560                           "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15561                           "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15562                           "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15563                           "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15564                           "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15565                           "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15566                           "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15567                           "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15568                           "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15569                           "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15570                           "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15571                           "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15572                           "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15573                           "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15574                           "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15575                           "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15576                           "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15577                           "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15578                           "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15579                           "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15580                           "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15581                           "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15582                           "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15583                           "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15584                           "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15585                 .ilen   = 496,
15586                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15587                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15588                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15589                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15590                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15591                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15592                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15593                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15594                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15595                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15596                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15597                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15598                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15599                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15600                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15601                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15602                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15603                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15604                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15605                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15606                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15607                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15608                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15609                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15610                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15611                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15612                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15613                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15614                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15615                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15616                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15617                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15618                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15619                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15620                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15621                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15622                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15623                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15624                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15625                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15626                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15627                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15628                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15629                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15630                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15631                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15632                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15633                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15634                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15635                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15636                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15637                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15638                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15639                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15640                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15641                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15642                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15643                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15644                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15645                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15646                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15647                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15648                 .rlen   = 496,
15649                 .also_non_np = 1,
15650                 .np     = 3,
15651                 .tap    = { 496 - 20, 4, 16 },
15652         },
15653 };
15654
15655 static const struct cipher_testvec aes_cbc_enc_tv_template[] = {
15656         { /* From RFC 3602 */
15657                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15658                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15659                 .klen   = 16,
15660                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15661                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15662                 .input  = "Single block msg",
15663                 .ilen   = 16,
15664                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15665                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15666                 .rlen   = 16,
15667                 .also_non_np = 1,
15668                 .np     = 8,
15669                 .tap    = { 3, 2, 3, 2, 3, 1, 1, 1 },
15670         }, {
15671                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15672                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15673                 .klen   = 16,
15674                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15675                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15676                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
15677                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15678                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15679                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15680                 .ilen   = 32,
15681                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15682                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15683                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15684                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15685                 .rlen   = 32,
15686         }, { /* From NIST SP800-38A */
15687                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15688                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15689                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15690                 .klen   = 24,
15691                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
15692                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15693                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15694                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15695                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15696                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15697                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15698                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15699                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15700                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15701                 .ilen   = 64,
15702                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15703                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15704                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15705                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15706                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15707                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15708                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15709                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15710                 .rlen   = 64,
15711         }, {
15712                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15713                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15714                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15715                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15716                 .klen   = 32,
15717                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
15718                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15719                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15720                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15721                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15722                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15723                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15724                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15725                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15726                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15727                 .ilen   = 64,
15728                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15729                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15730                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15731                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15732                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15733                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15734                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15735                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15736                 .rlen   = 64,
15737         }, { /* Generated with Crypto++ */
15738                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15739                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15740                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15741                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15742                 .klen   = 32,
15743                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15744                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15745                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15746                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15747                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15748                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15749                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15750                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15751                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15752                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15753                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15754                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15755                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15756                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15757                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15758                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15759                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15760                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15761                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15762                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15763                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15764                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15765                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15766                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15767                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15768                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15769                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15770                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15771                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15772                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15773                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15774                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15775                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15776                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15777                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15778                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15779                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15780                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15781                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15782                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15783                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15784                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15785                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15786                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15787                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15788                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15789                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15790                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15791                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15792                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15793                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15794                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15795                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15796                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15797                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15798                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15799                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15800                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15801                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15802                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15803                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15804                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15805                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15806                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15807                 .ilen   = 496,
15808                 .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15809                           "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15810                           "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15811                           "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15812                           "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15813                           "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15814                           "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15815                           "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15816                           "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15817                           "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15818                           "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15819                           "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15820                           "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15821                           "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15822                           "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15823                           "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15824                           "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15825                           "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15826                           "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15827                           "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15828                           "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15829                           "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15830                           "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15831                           "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15832                           "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15833                           "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15834                           "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15835                           "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15836                           "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15837                           "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15838                           "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15839                           "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15840                           "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
15841                           "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
15842                           "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
15843                           "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
15844                           "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
15845                           "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
15846                           "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
15847                           "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
15848                           "\x22\x39\x7B\x16\x03\x01\x69\xAF"
15849                           "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
15850                           "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
15851                           "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
15852                           "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
15853                           "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
15854                           "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
15855                           "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
15856                           "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
15857                           "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
15858                           "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
15859                           "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
15860                           "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
15861                           "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
15862                           "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
15863                           "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
15864                           "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
15865                           "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
15866                           "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
15867                           "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
15868                           "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
15869                           "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
15870                 .rlen   = 496,
15871                 .also_non_np = 1,
15872                 .np     = 3,
15873                 .tap    = { 496 - 20, 4, 16 },
15874         },
15875 };
15876
15877 static const struct cipher_testvec aes_cbc_dec_tv_template[] = {
15878         { /* From RFC 3602 */
15879                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15880                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15881                 .klen   = 16,
15882                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15883                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15884                 .input  = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15885                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15886                 .ilen   = 16,
15887                 .result = "Single block msg",
15888                 .rlen   = 16,
15889                 .also_non_np = 1,
15890                 .np     = 8,
15891                 .tap    = { 3, 2, 3, 2, 3, 1, 1, 1 },
15892         }, {
15893                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15894                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15895                 .klen   = 16,
15896                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15897                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15898                 .input  = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15899                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15900                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15901                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15902                 .ilen   = 32,
15903                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15904                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15905                           "\x10\x11\x12\x13\x14\x15\x16\x17"
15906                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15907                 .rlen   = 32,
15908         }, { /* From NIST SP800-38A */
15909                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15910                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15911                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15912                 .klen   = 24,
15913                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
15914                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15915                 .input  = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15916                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15917                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15918                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15919                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15920                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15921                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15922                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15923                 .ilen   = 64,
15924                 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15925                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15926                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15927                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15928                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15929                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15930                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15931                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15932                 .rlen   = 64,
15933         }, {
15934                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15935                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15936                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15937                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15938                 .klen   = 32,
15939                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
15940                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15941                 .input  = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15942                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15943                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15944                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15945                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15946                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15947                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15948                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15949                 .ilen   = 64,
15950                 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15951                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15952                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15953                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15954                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15955                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15956                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15957                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15958                 .rlen   = 64,
15959         }, { /* Generated with Crypto++ */
15960                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15961                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15962                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15963                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15964                 .klen   = 32,
15965                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15966                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15967                 .input  = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15968                           "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15969                           "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15970                           "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15971                           "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15972                           "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15973                           "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15974                           "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15975                           "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15976                           "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15977                           "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15978                           "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15979                           "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15980                           "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15981                           "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15982                           "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15983                           "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15984                           "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15985                           "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15986                           "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15987                           "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15988                           "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15989                           "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15990                           "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15991                           "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15992                           "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15993                           "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15994                           "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15995                           "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15996                           "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15997                           "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15998                           "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15999                           "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
16000                           "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
16001                           "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
16002                           "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
16003                           "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
16004                           "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
16005                           "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
16006                           "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
16007                           "\x22\x39\x7B\x16\x03\x01\x69\xAF"
16008                           "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
16009                           "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
16010                           "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
16011                           "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
16012                           "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
16013                           "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
16014                           "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
16015                           "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
16016                           "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
16017                           "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
16018                           "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
16019                           "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
16020                           "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
16021                           "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
16022                           "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
16023                           "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
16024                           "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
16025                           "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
16026                           "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
16027                           "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
16028                           "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
16029                 .ilen   = 496,
16030                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
16031                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
16032                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
16033                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
16034                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
16035                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
16036                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
16037                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
16038                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
16039                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
16040                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
16041                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
16042                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
16043                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
16044                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
16045                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
16046                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
16047                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
16048                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
16049                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
16050                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
16051                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
16052                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
16053                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
16054                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
16055                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
16056                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
16057                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
16058                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
16059                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
16060                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
16061                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
16062                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
16063                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
16064                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
16065                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
16066                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
16067                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
16068                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
16069                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
16070                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
16071                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
16072                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
16073                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
16074                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
16075                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
16076                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
16077                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
16078                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
16079                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
16080                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
16081                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
16082                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
16083                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
16084                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
16085                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
16086                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
16087                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
16088                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
16089                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
16090                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
16091                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
16092                 .rlen   = 496,
16093                 .also_non_np = 1,
16094                 .np     = 3,
16095                 .tap    = { 496 - 20, 4, 16 },
16096         },
16097 };
16098
16099 static const struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
16100         { /* Input data from RFC 2410 Case 1 */
16101 #ifdef __LITTLE_ENDIAN
16102                 .key    = "\x08\x00"            /* rta length */
16103                           "\x01\x00"            /* rta type */
16104 #else
16105                 .key    = "\x00\x08"            /* rta length */
16106                           "\x00\x01"            /* rta type */
16107 #endif
16108                           "\x00\x00\x00\x00"    /* enc key length */
16109                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16110                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16111                 .klen   = 8 + 16 + 0,
16112                 .iv     = "",
16113                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16114                 .ilen   = 8,
16115                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16116                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16117                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16118                 .rlen   = 8 + 16,
16119         }, { /* Input data from RFC 2410 Case 2 */
16120 #ifdef __LITTLE_ENDIAN
16121                 .key    = "\x08\x00"            /* rta length */
16122                           "\x01\x00"            /* rta type */
16123 #else
16124                 .key    = "\x00\x08"            /* rta length */
16125                           "\x00\x01"            /* rta type */
16126 #endif
16127                           "\x00\x00\x00\x00"    /* enc key length */
16128                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16129                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16130                 .klen   = 8 + 16 + 0,
16131                 .iv     = "",
16132                 .input  = "Network Security People Have A Strange Sense Of Humor",
16133                 .ilen   = 53,
16134                 .result = "Network Security People Have A Strange Sense Of Humor"
16135                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16136                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16137                 .rlen   = 53 + 16,
16138         },
16139 };
16140
16141 static const struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
16142         {
16143 #ifdef __LITTLE_ENDIAN
16144                 .key    = "\x08\x00"            /* rta length */
16145                           "\x01\x00"            /* rta type */
16146 #else
16147                 .key    = "\x00\x08"            /* rta length */
16148                           "\x00\x01"            /* rta type */
16149 #endif
16150                           "\x00\x00\x00\x00"    /* enc key length */
16151                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16152                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16153                 .klen   = 8 + 16 + 0,
16154                 .iv     = "",
16155                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16156                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16157                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16158                 .ilen   = 8 + 16,
16159                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16160                 .rlen   = 8,
16161         }, {
16162 #ifdef __LITTLE_ENDIAN
16163                 .key    = "\x08\x00"            /* rta length */
16164                           "\x01\x00"            /* rta type */
16165 #else
16166                 .key    = "\x00\x08"            /* rta length */
16167                           "\x00\x01"            /* rta type */
16168 #endif
16169                           "\x00\x00\x00\x00"    /* enc key length */
16170                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16171                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16172                 .klen   = 8 + 16 + 0,
16173                 .iv     = "",
16174                 .input  = "Network Security People Have A Strange Sense Of Humor"
16175                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16176                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16177                 .ilen   = 53 + 16,
16178                 .result = "Network Security People Have A Strange Sense Of Humor",
16179                 .rlen   = 53,
16180         },
16181 };
16182
16183 static const struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
16184         { /* RFC 3602 Case 1 */
16185 #ifdef __LITTLE_ENDIAN
16186                 .key    = "\x08\x00"            /* rta length */
16187                           "\x01\x00"            /* rta type */
16188 #else
16189                 .key    = "\x00\x08"            /* rta length */
16190                           "\x00\x01"            /* rta type */
16191 #endif
16192                           "\x00\x00\x00\x10"    /* enc key length */
16193                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16194                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16195                           "\x00\x00\x00\x00"
16196                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16197                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16198                 .klen   = 8 + 20 + 16,
16199                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16200                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16201                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16202                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16203                 .alen   = 16,
16204                 .input  = "Single block msg",
16205                 .ilen   = 16,
16206                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16207                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16208                           "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
16209                           "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
16210                           "\x03\x71\xa2\x06",
16211                 .rlen   = 16 + 20,
16212         }, { /* RFC 3602 Case 2 */
16213 #ifdef __LITTLE_ENDIAN
16214                 .key    = "\x08\x00"            /* rta length */
16215                           "\x01\x00"            /* rta type */
16216 #else
16217                 .key    = "\x00\x08"            /* rta length */
16218                           "\x00\x01"            /* rta type */
16219 #endif
16220                           "\x00\x00\x00\x10"    /* enc key length */
16221                           "\x20\x21\x22\x23\x24\x25\x26\x27"
16222                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16223                           "\x30\x31\x32\x33"
16224                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16225                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16226                 .klen   = 8 + 20 + 16,
16227                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16228                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16229                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16230                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16231                 .alen   = 16,
16232                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16233                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16234                           "\x10\x11\x12\x13\x14\x15\x16\x17"
16235                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16236                 .ilen   = 32,
16237                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16238                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16239                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16240                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16241                           "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
16242                           "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
16243                           "\x65\x39\xf8\xde",
16244                 .rlen   = 32 + 20,
16245         }, { /* RFC 3602 Case 3 */
16246 #ifdef __LITTLE_ENDIAN
16247                 .key    = "\x08\x00"            /* rta length */
16248                           "\x01\x00"            /* rta type */
16249 #else
16250                 .key    = "\x00\x08"            /* rta length */
16251                           "\x00\x01"            /* rta type */
16252 #endif
16253                           "\x00\x00\x00\x10"    /* enc key length */
16254                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16255                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16256                           "\x22\x33\x44\x55"
16257                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16258                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16259                 .klen   = 8 + 20 + 16,
16260                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16261                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16262                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16263                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16264                 .alen   = 16,
16265                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
16266                 .ilen   = 48,
16267                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16268                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16269                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16270                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16271                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16272                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
16273                           "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
16274                           "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
16275                           "\x8d\x62\xf2\x1e",
16276                 .rlen   = 48 + 20,
16277         }, { /* RFC 3602 Case 4 */
16278 #ifdef __LITTLE_ENDIAN
16279                 .key    = "\x08\x00"            /* rta length */
16280                           "\x01\x00"            /* rta type */
16281 #else
16282                 .key    = "\x00\x08"            /* rta length */
16283                           "\x00\x01"            /* rta type */
16284 #endif
16285                           "\x00\x00\x00\x10"    /* enc key length */
16286                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16287                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16288                           "\x22\x33\x44\x55"
16289                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16290                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16291                 .klen   = 8 + 20 + 16,
16292                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16293                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16294                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16295                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16296                 .alen   = 16,
16297                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16298                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16299                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16300                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16301                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16302                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16303                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16304                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16305                 .ilen   = 64,
16306                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16307                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16308                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16309                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16310                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16311                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16312                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16313                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16314                           "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
16315                           "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
16316                           "\x1d\xbe\xc6\xe9",
16317                 .rlen   = 64 + 20,
16318         }, { /* RFC 3602 Case 5 */
16319 #ifdef __LITTLE_ENDIAN
16320                 .key    = "\x08\x00"            /* rta length */
16321                           "\x01\x00"            /* rta type */
16322 #else
16323                 .key    = "\x00\x08"            /* rta length */
16324                           "\x00\x01"            /* rta type */
16325 #endif
16326                           "\x00\x00\x00\x10"    /* enc key length */
16327                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16328                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16329                           "\x22\x33\x44\x55"
16330                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16331                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16332                 .klen   = 8 + 20 + 16,
16333                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16334                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16335                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
16336                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16337                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16338                 .alen   = 24,
16339                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16340                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16341                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16342                           "\x10\x11\x12\x13\x14\x15\x16\x17"
16343                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16344                           "\x20\x21\x22\x23\x24\x25\x26\x27"
16345                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16346                           "\x30\x31\x32\x33\x34\x35\x36\x37"
16347                           "\x01\x02\x03\x04\x05\x06\x07\x08"
16348                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16349                 .ilen   = 80,
16350                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16351                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16352                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16353                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16354                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16355                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16356                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16357                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16358                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16359                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16360                           "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
16361                           "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
16362                           "\x85\xe1\x59\xf7",
16363                 .rlen   = 80 + 20,
16364        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16365 #ifdef __LITTLE_ENDIAN
16366                 .key    = "\x08\x00"            /* rta length */
16367                           "\x01\x00"            /* rta type */
16368 #else
16369                 .key    = "\x00\x08"            /* rta length */
16370                           "\x00\x01"            /* rta type */
16371 #endif
16372                           "\x00\x00\x00\x18"    /* enc key length */
16373                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16374                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16375                           "\x22\x33\x44\x55"
16376                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16377                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16378                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16379                 .klen   = 8 + 20 + 24,
16380                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
16381                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16382                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16383                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16384                 .alen   = 16,
16385                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16386                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16387                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16388                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16389                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16390                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16391                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16392                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16393                 .ilen   = 64,
16394                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16395                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16396                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16397                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16398                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16399                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16400                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16401                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16402                           "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
16403                           "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
16404                           "\x47\x4c\xfc\x36",
16405                 .rlen   = 64 + 20,
16406         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
16407 #ifdef __LITTLE_ENDIAN
16408                 .key    = "\x08\x00"            /* rta length */
16409                           "\x01\x00"            /* rta type */
16410 #else
16411                 .key    = "\x00\x08"            /* rta length */
16412                           "\x00\x01"            /* rta type */
16413 #endif
16414                           "\x00\x00\x00\x20"    /* enc key length */
16415                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16416                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16417                           "\x22\x33\x44\x55"
16418                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16419                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16420                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16421                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16422                 .klen   = 8 + 20 + 32,
16423                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
16424                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16425                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16426                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16427                 .alen   = 16,
16428                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16429                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16430                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16431                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16432                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16433                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16434                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16435                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16436                 .ilen   = 64,
16437                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16438                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16439                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16440                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16441                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16442                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16443                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16444                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16445                           "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
16446                           "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
16447                           "\x51\xee\xd6\x4e",
16448                 .rlen   = 64 + 20,
16449         },
16450 };
16451
16452 static const struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
16453         { /* Input data from RFC 2410 Case 1 */
16454 #ifdef __LITTLE_ENDIAN
16455                 .key    = "\x08\x00"            /* rta length */
16456                           "\x01\x00"            /* rta type */
16457 #else
16458                 .key    = "\x00\x08"            /* rta length */
16459                           "\x00\x01"            /* rta type */
16460 #endif
16461                           "\x00\x00\x00\x00"    /* enc key length */
16462                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16463                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16464                           "\x00\x00\x00\x00",
16465                 .klen   = 8 + 20 + 0,
16466                 .iv     = "",
16467                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16468                 .ilen   = 8,
16469                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16470                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
16471                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
16472                           "\x8c\x5e\xe4\x08",
16473                 .rlen   = 8 + 20,
16474         }, { /* Input data from RFC 2410 Case 2 */
16475 #ifdef __LITTLE_ENDIAN
16476                 .key    = "\x08\x00"            /* rta length */
16477                           "\x01\x00"            /* rta type */
16478 #else
16479                 .key    = "\x00\x08"            /* rta length */
16480                           "\x00\x01"            /* rta type */
16481 #endif
16482                           "\x00\x00\x00\x00"    /* enc key length */
16483                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16484                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16485                           "\x00\x00\x00\x00",
16486                 .klen   = 8 + 20 + 0,
16487                 .iv     = "",
16488                 .input  = "Network Security People Have A Strange Sense Of Humor",
16489                 .ilen   = 53,
16490                 .result = "Network Security People Have A Strange Sense Of Humor"
16491                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
16492                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
16493                           "\x91\x56\xe4\xd6",
16494                 .rlen   = 53 + 20,
16495         },
16496 };
16497
16498 static const struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
16499         {
16500 #ifdef __LITTLE_ENDIAN
16501                 .key    = "\x08\x00"            /* rta length */
16502                           "\x01\x00"            /* rta type */
16503 #else
16504                 .key    = "\x00\x08"            /* rta length */
16505                           "\x00\x01"            /* rta type */
16506 #endif
16507                           "\x00\x00\x00\x00"    /* enc key length */
16508                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16509                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16510                           "\x00\x00\x00\x00",
16511                 .klen   = 8 + 20 + 0,
16512                 .iv     = "",
16513                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16514                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
16515                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
16516                           "\x8c\x5e\xe4\x08",
16517                 .ilen   = 8 + 20,
16518                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16519                 .rlen   = 8,
16520         }, {
16521 #ifdef __LITTLE_ENDIAN
16522                 .key    = "\x08\x00"            /* rta length */
16523                           "\x01\x00"            /* rta type */
16524 #else
16525                 .key    = "\x00\x08"            /* rta length */
16526                           "\x00\x01"            /* rta type */
16527 #endif
16528                           "\x00\x00\x00\x00"    /* enc key length */
16529                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16530                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16531                           "\x00\x00\x00\x00",
16532                 .klen   = 8 + 20 + 0,
16533                 .iv     = "",
16534                 .input  = "Network Security People Have A Strange Sense Of Humor"
16535                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
16536                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
16537                           "\x91\x56\xe4\xd6",
16538                 .ilen   = 53 + 20,
16539                 .result = "Network Security People Have A Strange Sense Of Humor",
16540                 .rlen   = 53,
16541         },
16542 };
16543
16544 static const struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
16545         { /* RFC 3602 Case 1 */
16546 #ifdef __LITTLE_ENDIAN
16547                 .key    = "\x08\x00"            /* rta length */
16548                           "\x01\x00"            /* rta type */
16549 #else
16550                 .key    = "\x00\x08"            /* rta length */
16551                           "\x00\x01"            /* rta type */
16552 #endif
16553                           "\x00\x00\x00\x10"    /* enc key length */
16554                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16555                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16556                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16557                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16558                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16559                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16560                 .klen   = 8 + 32 + 16,
16561                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16562                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16563                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16564                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16565                 .alen   = 16,
16566                 .input  = "Single block msg",
16567                 .ilen   = 16,
16568                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16569                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16570                           "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
16571                           "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
16572                           "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
16573                           "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
16574                 .rlen   = 16 + 32,
16575         }, { /* RFC 3602 Case 2 */
16576 #ifdef __LITTLE_ENDIAN
16577                 .key    = "\x08\x00"            /* rta length */
16578                           "\x01\x00"            /* rta type */
16579 #else
16580                 .key    = "\x00\x08"            /* rta length */
16581                           "\x00\x01"            /* rta type */
16582 #endif
16583                           "\x00\x00\x00\x10"    /* enc key length */
16584                           "\x20\x21\x22\x23\x24\x25\x26\x27"
16585                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16586                           "\x30\x31\x32\x33\x34\x35\x36\x37"
16587                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16588                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16589                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16590                 .klen   = 8 + 32 + 16,
16591                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16592                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16593                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16594                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16595                 .alen   = 16,
16596                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16597                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16598                           "\x10\x11\x12\x13\x14\x15\x16\x17"
16599                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16600                 .ilen   = 32,
16601                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16602                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16603                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16604                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16605                           "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
16606                           "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
16607                           "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
16608                           "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
16609                 .rlen   = 32 + 32,
16610         }, { /* RFC 3602 Case 3 */
16611 #ifdef __LITTLE_ENDIAN
16612                 .key    = "\x08\x00"            /* rta length */
16613                           "\x01\x00"            /* rta type */
16614 #else
16615                 .key    = "\x00\x08"            /* rta length */
16616                           "\x00\x01"            /* rta type */
16617 #endif
16618                           "\x00\x00\x00\x10"    /* enc key length */
16619                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16620                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16621                           "\x22\x33\x44\x55\x66\x77\x88\x99"
16622                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16623                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16624                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16625                 .klen   = 8 + 32 + 16,
16626                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16627                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16628                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16629                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16630                 .alen   = 16,
16631                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
16632                 .ilen   = 48,
16633                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16634                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16635                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16636                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16637                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16638                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
16639                           "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
16640                           "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
16641                           "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
16642                           "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
16643                 .rlen   = 48 + 32,
16644         }, { /* RFC 3602 Case 4 */
16645 #ifdef __LITTLE_ENDIAN
16646                 .key    = "\x08\x00"            /* rta length */
16647                           "\x01\x00"            /* rta type */
16648 #else
16649                 .key    = "\x00\x08"            /* rta length */
16650                           "\x00\x01"            /* rta type */
16651 #endif
16652                           "\x00\x00\x00\x10"    /* enc key length */
16653                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16654                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16655                           "\x22\x33\x44\x55\x66\x77\x88\x99"
16656                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16657                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16658                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16659                 .klen   = 8 + 32 + 16,
16660                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16661                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16662                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16663                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16664                 .alen   = 16,
16665                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16666                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16667                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16668                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16669                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16670                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16671                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16672                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16673                 .ilen   = 64,
16674                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16675                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16676                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16677                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16678                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16679                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16680                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16681                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16682                           "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
16683                           "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
16684                           "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
16685                           "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
16686                 .rlen   = 64 + 32,
16687         }, { /* RFC 3602 Case 5 */
16688 #ifdef __LITTLE_ENDIAN
16689                 .key    = "\x08\x00"            /* rta length */
16690                           "\x01\x00"            /* rta type */
16691 #else
16692                 .key    = "\x00\x08"            /* rta length */
16693                           "\x00\x01"            /* rta type */
16694 #endif
16695                           "\x00\x00\x00\x10"    /* enc key length */
16696                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16697                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16698                           "\x22\x33\x44\x55\x66\x77\x88\x99"
16699                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16700                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16701                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16702                 .klen   = 8 + 32 + 16,
16703                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16704                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16705                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
16706                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16707                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16708                 .alen   = 24,
16709                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16710                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16711                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16712                           "\x10\x11\x12\x13\x14\x15\x16\x17"
16713                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16714                           "\x20\x21\x22\x23\x24\x25\x26\x27"
16715                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16716                           "\x30\x31\x32\x33\x34\x35\x36\x37"
16717                           "\x01\x02\x03\x04\x05\x06\x07\x08"
16718                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16719                 .ilen   = 80,
16720                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16721                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16722                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16723                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16724                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16725                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16726                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16727                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16728                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16729                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16730                           "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
16731                           "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
16732                           "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
16733                           "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
16734                 .rlen   = 80 + 32,
16735        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16736 #ifdef __LITTLE_ENDIAN
16737                 .key    = "\x08\x00"            /* rta length */
16738                           "\x01\x00"            /* rta type */
16739 #else
16740                 .key    = "\x00\x08"            /* rta length */
16741                           "\x00\x01"            /* rta type */
16742 #endif
16743                           "\x00\x00\x00\x18"    /* enc key length */
16744                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16745                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16746                           "\x22\x33\x44\x55\x66\x77\x88\x99"
16747                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16748                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16749                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16750                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16751                 .klen   = 8 + 32 + 24,
16752                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
16753                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16754                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16755                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16756                 .alen   = 16,
16757                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16758                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16759                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16760                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16761                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16762                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16763                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16764                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16765                 .ilen   = 64,
16766                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16767                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16768                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16769                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16770                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16771                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16772                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16773                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16774                           "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
16775                           "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
16776                           "\xca\x71\x85\x93\xf7\x85\x55\x8b"
16777                           "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
16778                 .rlen   = 64 + 32,
16779         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
16780 #ifdef __LITTLE_ENDIAN
16781                 .key    = "\x08\x00"            /* rta length */
16782                           "\x01\x00"            /* rta type */
16783 #else
16784                 .key    = "\x00\x08"            /* rta length */
16785                           "\x00\x01"            /* rta type */
16786 #endif
16787                           "\x00\x00\x00\x20"    /* enc key length */
16788                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16789                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16790                           "\x22\x33\x44\x55\x66\x77\x88\x99"
16791                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16792                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16793                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16794                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16795                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16796                 .klen   = 8 + 32 + 32,
16797                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
16798                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16799                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16800                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16801                 .alen   = 16,
16802                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16803                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16804                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16805                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16806                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16807                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16808                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16809                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16810                 .ilen   = 64,
16811                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16812                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16813                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16814                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16815                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16816                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16817                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16818                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16819                           "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
16820                           "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
16821                           "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
16822                           "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
16823                 .rlen   = 64 + 32,
16824         },
16825 };
16826
16827 static const struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
16828         { /* RFC 3602 Case 1 */
16829 #ifdef __LITTLE_ENDIAN
16830                 .key    = "\x08\x00"            /* rta length */
16831                           "\x01\x00"            /* rta type */
16832 #else
16833                 .key    = "\x00\x08"            /* rta length */
16834                           "\x00\x01"            /* rta type */
16835 #endif
16836                           "\x00\x00\x00\x10"    /* enc key length */
16837                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16838                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16839                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16840                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16841                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16842                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16843                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16844                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16845                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16846                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16847                 .klen   = 8 + 64 + 16,
16848                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16849                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16850                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16851                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16852                 .alen   = 16,
16853                 .input  = "Single block msg",
16854                 .ilen   = 16,
16855                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16856                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16857                           "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
16858                           "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
16859                           "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
16860                           "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
16861                           "\xec\xbd\x50\x08\x07\x64\x1a\x49"
16862                           "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
16863                           "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
16864                           "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
16865                 .rlen   = 16 + 64,
16866         }, { /* RFC 3602 Case 2 */
16867 #ifdef __LITTLE_ENDIAN
16868                 .key    = "\x08\x00"            /* rta length */
16869                           "\x01\x00"            /* rta type */
16870 #else
16871                 .key    = "\x00\x08"            /* rta length */
16872                           "\x00\x01"            /* rta type */
16873 #endif
16874                           "\x00\x00\x00\x10"    /* enc key length */
16875                           "\x20\x21\x22\x23\x24\x25\x26\x27"
16876                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16877                           "\x30\x31\x32\x33\x34\x35\x36\x37"
16878                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16879                           "\x40\x41\x42\x43\x44\x45\x46\x47"
16880                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16881                           "\x50\x51\x52\x53\x54\x55\x56\x57"
16882                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16883                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16884                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16885                 .klen   = 8 + 64 + 16,
16886                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16887                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16888                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16889                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16890                 .alen   = 16,
16891                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16892                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16893                           "\x10\x11\x12\x13\x14\x15\x16\x17"
16894                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16895                 .ilen   = 32,
16896                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16897                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16898                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16899                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16900                           "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
16901                           "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
16902                           "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
16903                           "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
16904                           "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
16905                           "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
16906                           "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
16907                           "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
16908                 .rlen   = 32 + 64,
16909         }, { /* RFC 3602 Case 3 */
16910 #ifdef __LITTLE_ENDIAN
16911                 .key    = "\x08\x00"            /* rta length */
16912                           "\x01\x00"            /* rta type */
16913 #else
16914                 .key    = "\x00\x08"            /* rta length */
16915                           "\x00\x01"            /* rta type */
16916 #endif
16917                           "\x00\x00\x00\x10"    /* enc key length */
16918                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16919                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16920                           "\x22\x33\x44\x55\x66\x77\x88\x99"
16921                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16922                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
16923                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16924                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16925                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16926                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16927                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16928                 .klen   = 8 + 64 + 16,
16929                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16930                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16931                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16932                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16933                 .alen   = 16,
16934                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
16935                 .ilen   = 48,
16936                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16937                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16938                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16939                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16940                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16941                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
16942                           "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
16943                           "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
16944                           "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
16945                           "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
16946                           "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
16947                           "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
16948                           "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
16949                           "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
16950                 .rlen   = 48 + 64,
16951         }, { /* RFC 3602 Case 4 */
16952 #ifdef __LITTLE_ENDIAN
16953                 .key    = "\x08\x00"            /* rta length */
16954                           "\x01\x00"            /* rta type */
16955 #else
16956                 .key    = "\x00\x08"            /* rta length */
16957                           "\x00\x01"            /* rta type */
16958 #endif
16959                           "\x00\x00\x00\x10"    /* enc key length */
16960                           "\x11\x22\x33\x44\x55\x66\x77\x88"
16961                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16962                           "\x22\x33\x44\x55\x66\x77\x88\x99"
16963                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16964                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
16965                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16966                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16967                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16968                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16969                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16970                 .klen   = 8 + 64 + 16,
16971                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16972                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16973                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16974                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16975                 .alen   = 16,
16976                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16977                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16978                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16979                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16980                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16981                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16982                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16983                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16984                 .ilen   = 64,
16985                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16986                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16987                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16988                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16989                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16990                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16991                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16992                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16993                           "\x82\xcd\x42\x28\x21\x20\x15\xcc"
16994                           "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
16995                           "\x61\x32\x82\x85\xcf\x27\xed\xb4"
16996                           "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
16997                           "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
16998                           "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
16999                           "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
17000                           "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
17001                 .rlen   = 64 + 64,
17002         }, { /* RFC 3602 Case 5 */
17003 #ifdef __LITTLE_ENDIAN
17004                 .key    = "\x08\x00"            /* rta length */
17005                           "\x01\x00"            /* rta type */
17006 #else
17007                 .key    = "\x00\x08"            /* rta length */
17008                           "\x00\x01"            /* rta type */
17009 #endif
17010                           "\x00\x00\x00\x10"    /* enc key length */
17011                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17012                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17013                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17014                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17015                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
17016                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17017                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17018                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17019                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
17020                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
17021                 .klen   = 8 + 64 + 16,
17022                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
17023                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
17024                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17025                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
17026                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
17027                 .alen   = 24,
17028                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
17029                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
17030                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17031                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17032                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17033                           "\x20\x21\x22\x23\x24\x25\x26\x27"
17034                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
17035                           "\x30\x31\x32\x33\x34\x35\x36\x37"
17036                           "\x01\x02\x03\x04\x05\x06\x07\x08"
17037                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
17038                 .ilen   = 80,
17039                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
17040                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
17041                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
17042                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
17043                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
17044                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
17045                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
17046                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
17047                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
17048                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
17049                           "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
17050                           "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
17051                           "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
17052                           "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
17053                           "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
17054                           "\x92\x26\xc1\x76\x20\x11\xeb\xba"
17055                           "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
17056                           "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
17057                 .rlen   = 80 + 64,
17058        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
17059 #ifdef __LITTLE_ENDIAN
17060                 .key    = "\x08\x00"            /* rta length */
17061                           "\x01\x00"            /* rta type */
17062 #else
17063                 .key    = "\x00\x08"            /* rta length */
17064                           "\x00\x01"            /* rta type */
17065 #endif
17066                           "\x00\x00\x00\x18"    /* enc key length */
17067                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17068                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17069                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17070                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17071                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
17072                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17073                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17074                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17075                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
17076                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
17077                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
17078                 .klen   = 8 + 64 + 24,
17079                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
17080                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17081                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17082                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17083                 .alen   = 16,
17084                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17085                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17086                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17087                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17088                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17089                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17090                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17091                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17092                 .ilen   = 64,
17093                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
17094                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
17095                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
17096                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
17097                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
17098                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
17099                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
17100                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
17101                           "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
17102                           "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
17103                           "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
17104                           "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
17105                           "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
17106                           "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
17107                           "\x8d\x43\x98\xa7\x94\x16\x07\x02"
17108                           "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
17109                 .rlen   = 64 + 64,
17110         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
17111 #ifdef __LITTLE_ENDIAN
17112                 .key    = "\x08\x00"            /* rta length */
17113                           "\x01\x00"            /* rta type */
17114 #else
17115                 .key    = "\x00\x08"            /* rta length */
17116                           "\x00\x01"            /* rta type */
17117 #endif
17118                           "\x00\x00\x00\x20"    /* enc key length */
17119                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17120                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17121                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17122                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17123                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
17124                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17125                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17126                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17127                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17128                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17129                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17130                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17131                 .klen   = 8 + 64 + 32,
17132                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
17133                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17134                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17135                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17136                 .alen   = 16,
17137                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17138                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17139                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17140                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17141                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17142                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17143                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17144                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17145                 .ilen   = 64,
17146                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
17147                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
17148                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
17149                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
17150                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
17151                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
17152                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
17153                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
17154                           "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
17155                           "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
17156                           "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
17157                           "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
17158                           "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
17159                           "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
17160                           "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
17161                           "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
17162                 .rlen   = 64 + 64,
17163         },
17164 };
17165
17166 static const struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
17167         { /*Generated with cryptopp*/
17168 #ifdef __LITTLE_ENDIAN
17169                 .key    = "\x08\x00"            /* rta length */
17170                           "\x01\x00"            /* rta type */
17171 #else
17172         .key    = "\x00\x08"            /* rta length */
17173                           "\x00\x01"            /* rta type */
17174 #endif
17175                           "\x00\x00\x00\x08"    /* enc key length */
17176                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17177                   "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17178                           "\x22\x33\x44\x55"
17179                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17180                 .klen   = 8 + 20 + 8,
17181                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17182                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17183                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17184                 .alen   = 16,
17185                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17186                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17187                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17188                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17189                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17190                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17191                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17192                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17193                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17194                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17195                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17196                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17197                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17198                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17199                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17200                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17201                 .ilen   = 128,
17202                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17203                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17204                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17205                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17206                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17207                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17208                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17209                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17210                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17211                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17212                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17213                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17214                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17215                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17216                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17217                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17218                           "\x95\x16\x20\x09\xf5\x95\x19\xfd"
17219                           "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
17220                           "\x5c\x44\xa9\x37",
17221                           .rlen = 128 + 20,
17222         },
17223 };
17224
17225 static const struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
17226         { /*Generated with cryptopp*/
17227 #ifdef __LITTLE_ENDIAN
17228                 .key    = "\x08\x00"            /* rta length */
17229                           "\x01\x00"            /* rta type */
17230 #else
17231                 .key    = "\x00\x08"            /* rta length */
17232                           "\x00\x01"            /* rta type */
17233 #endif
17234                           "\x00\x00\x00\x08"    /* enc key length */
17235                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17236                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17237                   "\x22\x33\x44\x55\x66\x77\x88\x99"
17238                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17239                 .klen   = 8 + 24 + 8,
17240                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17241                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17242                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17243                 .alen   = 16,
17244                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17245                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17246                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17247                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17248                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17249                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17250                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17251                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17252                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17253                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17254                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17255                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17256                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17257                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17258                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17259                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17260                 .ilen   = 128,
17261                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17262                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17263                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17264                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17265                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17266                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17267                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17268                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17269                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17270                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17271                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17272                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17273                   "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17274                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17275                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17276                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17277                           "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
17278                           "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
17279                           "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
17280                 .rlen   = 128 + 24,
17281         },
17282 };
17283
17284 static const struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
17285         { /*Generated with cryptopp*/
17286 #ifdef __LITTLE_ENDIAN
17287                 .key    = "\x08\x00"            /* rta length */
17288                           "\x01\x00"            /* rta type */
17289 #else
17290                 .key    = "\x00\x08"            /* rta length */
17291                           "\x00\x01"            /* rta type */
17292 #endif
17293                           "\x00\x00\x00\x08"    /* enc key length */
17294                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17295                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17296                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17297                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17298                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17299                 .klen   = 8 + 32 + 8,
17300                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17301                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17302                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17303                 .alen   = 16,
17304                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17305                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17306                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17307                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17308                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17309                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17310                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17311                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17312                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17313                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17314                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17315                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17316                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17317                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17318                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17319                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17320                 .ilen   = 128,
17321                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17322                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17323                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17324                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17325                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17326                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17327                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17328                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17329                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17330                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17331                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17332                   "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17333                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17334                   "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17335                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17336                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17337                           "\xc6\x58\xa1\x60\x70\x91\x39\x36"
17338                           "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
17339                           "\xde\x63\xde\x76\x52\xde\x9f\xba"
17340                           "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
17341                 .rlen   = 128 + 32,
17342         },
17343 };
17344
17345 static const struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
17346         { /*Generated with cryptopp*/
17347 #ifdef __LITTLE_ENDIAN
17348                 .key    = "\x08\x00"            /* rta length */
17349                           "\x01\x00"            /* rta type */
17350 #else
17351                 .key    = "\x00\x08"            /* rta length */
17352                           "\x00\x01"            /* rta type */
17353 #endif
17354                           "\x00\x00\x00\x08"    /* enc key length */
17355                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17356                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17357                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17358                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17359                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
17360                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17361                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17362                 .klen   = 8 + 48 + 8,
17363                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17364                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17365                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17366                 .alen   = 16,
17367                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17368                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17369                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17370                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17371                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17372                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17373                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17374                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17375                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17376                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17377                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17378                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17379                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17380                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17381                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17382                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17383                 .ilen   = 128,
17384                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17385                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17386                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17387                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17388                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17389                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17390                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17391                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17392                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17393                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17394                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17395                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17396                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17397                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17398                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17399                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17400                           "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
17401                           "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
17402                           "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
17403                           "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
17404                           "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
17405                           "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
17406                 .rlen   = 128 + 48,
17407         },
17408 };
17409
17410 static const struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
17411         { /*Generated with cryptopp*/
17412 #ifdef __LITTLE_ENDIAN
17413                 .key    = "\x08\x00"            /* rta length */
17414                   "\x01\x00"            /* rta type */
17415 #else
17416                 .key    = "\x00\x08"            /* rta length */
17417                           "\x00\x01"            /* rta type */
17418 #endif
17419                           "\x00\x00\x00\x08"    /* enc key length */
17420                   "\x11\x22\x33\x44\x55\x66\x77\x88"
17421                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17422                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17423                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17424                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
17425                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17426                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17427                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17428                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17429                 .klen   = 8 + 64 + 8,
17430                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17431                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17432                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17433                 .alen   = 16,
17434                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17435                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17436                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17437                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17438                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17439                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17440                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17441                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17442                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17443                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17444                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17445                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17446                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17447                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17448                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17449                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17450                 .ilen   = 128,
17451                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17452                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17453                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17454                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17455                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17456                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17457                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17458                   "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17459                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17460                   "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17461                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17462                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17463                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17464                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17465                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17466                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17467                           "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
17468                           "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
17469                           "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
17470                           "\x58\x83\xda\x67\xfb\x21\x24\xa2"
17471                           "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
17472                           "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
17473                           "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
17474                           "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
17475                 .rlen   = 128 + 64,
17476         },
17477 };
17478
17479 static const struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
17480         { /*Generated with cryptopp*/
17481 #ifdef __LITTLE_ENDIAN
17482                 .key    = "\x08\x00"            /* rta length */
17483                           "\x01\x00"            /* rta type */
17484 #else
17485                 .key    = "\x00\x08"            /* rta length */
17486                           "\x00\x01"            /* rta type */
17487 #endif
17488                           "\x00\x00\x00\x18"    /* enc key length */
17489                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17490                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17491                           "\x22\x33\x44\x55"
17492                   "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17493                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17494                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17495                 .klen   = 8 + 20 + 24,
17496                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17497                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17498                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17499                 .alen   = 16,
17500                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17501                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17502                   "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17503                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17504                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17505                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17506                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17507                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17508                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17509                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17510                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17511                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17512                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17513                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17514                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17515                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17516                 .ilen   = 128,
17517                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17518                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17519                   "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17520                   "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17521                   "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17522                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17523                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17524                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17525                   "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17526                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17527                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17528                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17529                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17530                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17531                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17532                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17533                           "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
17534                           "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
17535                           "\xd1\x60\x91\xb3",
17536                           .rlen = 128 + 20,
17537         },
17538 };
17539
17540 static const struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
17541         { /*Generated with cryptopp*/
17542 #ifdef __LITTLE_ENDIAN
17543                 .key    = "\x08\x00"            /* rta length */
17544                           "\x01\x00"            /* rta type */
17545 #else
17546                 .key    = "\x00\x08"            /* rta length */
17547                           "\x00\x01"            /* rta type */
17548 #endif
17549                           "\x00\x00\x00\x18"    /* enc key length */
17550                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17551                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17552                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17553                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17554                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17555                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17556                 .klen   = 8 + 24 + 24,
17557                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17558                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17559                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17560                 .alen   = 16,
17561                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17562                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17563                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17564                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17565                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17566                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17567                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17568                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17569                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17570                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17571                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17572                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17573                   "\x72\x63\x74\x65\x20\x73\x6f\x54"
17574                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17575                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17576                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17577                 .ilen   = 128,
17578                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17579                   "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17580                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17581                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17582                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17583                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17584                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17585                   "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17586                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17587                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17588                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17589                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17590                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17591                   "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17592                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17593                   "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17594                           "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
17595                           "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
17596                           "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
17597                           .rlen = 128 + 24,
17598         },
17599 };
17600
17601 static const struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
17602         { /*Generated with cryptopp*/
17603 #ifdef __LITTLE_ENDIAN
17604                 .key    = "\x08\x00"            /* rta length */
17605                           "\x01\x00"            /* rta type */
17606 #else
17607                 .key    = "\x00\x08"            /* rta length */
17608                           "\x00\x01"            /* rta type */
17609 #endif
17610                           "\x00\x00\x00\x18"    /* enc key length */
17611                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17612                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17613                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17614                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17615                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17616                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17617                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17618                 .klen   = 8 + 32 + 24,
17619                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17620                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17621                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17622                 .alen   = 16,
17623                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17624                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17625                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17626                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17627                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17628                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17629                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17630                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17631                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17632                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17633                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17634                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17635                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17636                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17637                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17638                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17639                 .ilen   = 128,
17640                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17641                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17642                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17643                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17644                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17645                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17646                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17647                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17648                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17649                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17650                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17651                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17652                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17653                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17654                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17655                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17656                           "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
17657                           "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
17658                           "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
17659                           "\xca\x43\x95\xdf\x80\x61\x81\xa9",
17660                 .rlen   = 128 + 32,
17661         },
17662 };
17663
17664 static const struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
17665         { /*Generated with cryptopp*/
17666 #ifdef __LITTLE_ENDIAN
17667                 .key    = "\x08\x00"            /* rta length */
17668                           "\x01\x00"            /* rta type */
17669 #else
17670                 .key    = "\x00\x08"            /* rta length */
17671                           "\x00\x01"            /* rta type */
17672 #endif
17673                           "\x00\x00\x00\x18"    /* enc key length */
17674                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17675                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17676                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17677                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17678                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
17679                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17680                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17681                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17682                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17683                 .klen   = 8 + 48 + 24,
17684                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17685                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17686                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17687                 .alen   = 16,
17688                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17689                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17690                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17691                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17692                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17693                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17694                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17695                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17696                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17697                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17698                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17699                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17700                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17701                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17702                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17703                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17704                 .ilen   = 128,
17705                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17706                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17707                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17708                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17709                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17710                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17711                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17712                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17713                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17714                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17715                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17716                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17717                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17718                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17719                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17720                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17721                           "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
17722                   "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
17723                           "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
17724                           "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
17725                           "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
17726                           "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
17727                 .rlen   = 128 + 48,
17728         },
17729 };
17730
17731 static const struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
17732         { /*Generated with cryptopp*/
17733 #ifdef __LITTLE_ENDIAN
17734                 .key    = "\x08\x00"            /* rta length */
17735                           "\x01\x00"            /* rta type */
17736 #else
17737                 .key    = "\x00\x08"            /* rta length */
17738                           "\x00\x01"            /* rta type */
17739 #endif
17740                           "\x00\x00\x00\x18"    /* enc key length */
17741                           "\x11\x22\x33\x44\x55\x66\x77\x88"
17742                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17743                           "\x22\x33\x44\x55\x66\x77\x88\x99"
17744                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17745                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
17746                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17747                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17748                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17749                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17750                   "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17751                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17752                 .klen   = 8 + 64 + 24,
17753                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17754                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
17755                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17756                 .alen   = 16,
17757                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17758                           "\x53\x20\x63\x65\x65\x72\x73\x74"
17759                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17760                           "\x20\x79\x65\x53\x72\x63\x74\x65"
17761                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17762                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
17763                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17764                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
17765                   "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17766                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17767                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17768                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17769                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
17770                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17771                           "\x63\x65\x65\x72\x73\x74\x54\x20"
17772                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17773                 .ilen   = 128,
17774                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17775                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17776                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17777                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17778                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17779                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17780                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17781                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17782                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17783                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17784                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17785                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17786                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17787                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17788                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17789                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17790                           "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
17791                           "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
17792                           "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
17793                           "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
17794                           "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
17795                           "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
17796                           "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
17797                           "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
17798                 .rlen   = 128 + 64,
17799         },
17800 };
17801
17802 static const struct cipher_testvec aes_lrw_enc_tv_template[] = {
17803         /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
17804         { /* LRW-32-AES 1 */
17805                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
17806                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
17807                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
17808                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
17809                 .klen   = 32,
17810                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17811                           "\x00\x00\x00\x00\x00\x00\x00\x01",
17812                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
17813                           "\x38\x39\x41\x42\x43\x44\x45\x46",
17814                 .ilen   = 16,
17815                 .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
17816                           "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
17817                 .rlen   = 16,
17818         }, { /* LRW-32-AES 2 */
17819                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
17820                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
17821                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
17822                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
17823                 .klen   = 32,
17824                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17825                           "\x00\x00\x00\x00\x00\x00\x00\x02",
17826                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
17827                           "\x38\x39\x41\x42\x43\x44\x45\x46",
17828                 .ilen   = 16,
17829                 .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
17830                           "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
17831                 .rlen   = 16,
17832         }, { /* LRW-32-AES 3 */
17833                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
17834                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
17835                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
17836                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
17837                 .klen   = 32,
17838                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17839                           "\x00\x00\x00\x02\x00\x00\x00\x00",
17840                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
17841                           "\x38\x39\x41\x42\x43\x44\x45\x46",
17842                 .ilen   = 16,
17843                 .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
17844                           "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
17845                 .rlen   = 16,
17846         }, { /* LRW-32-AES 4 */
17847                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
17848                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
17849                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
17850                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
17851                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
17852                 .klen   = 40,
17853                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17854                           "\x00\x00\x00\x00\x00\x00\x00\x01",
17855                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
17856                           "\x38\x39\x41\x42\x43\x44\x45\x46",
17857                 .ilen   = 16,
17858                 .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
17859                           "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
17860                 .rlen   = 16,
17861         }, { /* LRW-32-AES 5 */
17862                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
17863                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
17864                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
17865                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
17866                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
17867                 .klen   = 40,
17868                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17869                           "\x00\x00\x00\x02\x00\x00\x00\x00",
17870                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
17871                           "\x38\x39\x41\x42\x43\x44\x45\x46",
17872                 .ilen   = 16,
17873                 .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
17874                           "\xc8\x60\x48\x02\x87\xe3\x34\x06",
17875                 .rlen   = 16,
17876         }, { /* LRW-32-AES 6 */
17877                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17878                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17879                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17880                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17881                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17882                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17883                 .klen   = 48,
17884                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17885                           "\x00\x00\x00\x00\x00\x00\x00\x01",
17886                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
17887                           "\x38\x39\x41\x42\x43\x44\x45\x46",
17888                 .ilen   = 16,
17889                 .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
17890                           "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
17891                 .rlen   = 16,
17892         }, { /* LRW-32-AES 7 */
17893                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
17894                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
17895                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
17896                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
17897                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
17898                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
17899                 .klen   = 48,
17900                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17901                           "\x00\x00\x00\x02\x00\x00\x00\x00",
17902                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
17903                           "\x38\x39\x41\x42\x43\x44\x45\x46",
17904                 .ilen   = 16,
17905                 .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
17906                           "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
17907                 .rlen   = 16,
17908         }, {
17909 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
17910                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17911                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17912                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17913                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17914                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17915                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17916                 .klen   = 48,
17917                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
17918                           "\x00\x00\x00\x00\x00\x00\x00\x01",
17919                 .input  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
17920                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
17921                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
17922                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
17923                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
17924                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
17925                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
17926                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
17927                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
17928                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
17929                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
17930                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
17931                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
17932                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
17933                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
17934                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
17935                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
17936                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
17937                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
17938                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
17939                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
17940                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
17941                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
17942                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
17943                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
17944                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
17945                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
17946                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
17947                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
17948                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
17949                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
17950                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
17951                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
17952                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
17953                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
17954                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
17955                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
17956                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
17957                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
17958                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
17959                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
17960                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
17961                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
17962                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
17963                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
17964                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
17965                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
17966                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
17967                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
17968                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
17969                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
17970                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
17971                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
17972                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
17973                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
17974                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
17975                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
17976                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
17977                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
17978                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
17979                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
17980                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
17981                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
17982                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
17983                 .ilen   = 512,
17984                 .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
17985                           "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
17986                           "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
17987                           "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
17988                           "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
17989                           "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
17990                           "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
17991                           "\xe8\x58\x46\x97\x39\x51\x07\xde"
17992                           "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
17993                           "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
17994                           "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
17995                           "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
17996                           "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
17997                           "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
17998                           "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
17999                           "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
18000                           "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
18001                           "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
18002                           "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
18003                           "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
18004                           "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
18005                           "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
18006                           "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
18007                           "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
18008                           "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
18009                           "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
18010                           "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
18011                           "\x41\x30\x58\xc5\x62\x74\x52\x1d"
18012                           "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
18013                           "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
18014                           "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
18015                           "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
18016                           "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
18017                           "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
18018                           "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
18019                           "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
18020                           "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
18021                           "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
18022                           "\xb8\x79\x78\x97\x94\xff\x72\x13"
18023                           "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
18024                           "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
18025                           "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
18026                           "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
18027                           "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
18028                           "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
18029                           "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
18030                           "\x1e\x86\x53\x11\x53\x94\x00\xee"
18031                           "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
18032                           "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
18033                           "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
18034                           "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
18035                           "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
18036                           "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
18037                           "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
18038                           "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
18039                           "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
18040                           "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
18041                           "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
18042                           "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
18043                           "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
18044                           "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
18045                           "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
18046                           "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
18047                           "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
18048                 .rlen   = 512,
18049                 .also_non_np = 1,
18050                 .np     = 3,
18051                 .tap    = { 512 - 20, 4, 16 },
18052         }
18053 };
18054
18055 static const struct cipher_testvec aes_lrw_dec_tv_template[] = {
18056         /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
18057         /* same as enc vectors with input and result reversed */
18058         { /* LRW-32-AES 1 */
18059                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
18060                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
18061                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
18062                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
18063                 .klen   = 32,
18064                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18065                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18066                 .input  = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
18067                           "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
18068                 .ilen   = 16,
18069                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18070                           "\x38\x39\x41\x42\x43\x44\x45\x46",
18071                 .rlen   = 16,
18072         }, { /* LRW-32-AES 2 */
18073                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
18074                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
18075                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
18076                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
18077                 .klen   = 32,
18078                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18079                           "\x00\x00\x00\x00\x00\x00\x00\x02",
18080                 .input  = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
18081                           "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
18082                 .ilen   = 16,
18083                 .result  = "\x30\x31\x32\x33\x34\x35\x36\x37"
18084                            "\x38\x39\x41\x42\x43\x44\x45\x46",
18085                 .rlen   = 16,
18086         }, { /* LRW-32-AES 3 */
18087                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
18088                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
18089                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
18090                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
18091                 .klen   = 32,
18092                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18093                           "\x00\x00\x00\x02\x00\x00\x00\x00",
18094                 .input  = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
18095                           "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
18096                 .ilen   = 16,
18097                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18098                           "\x38\x39\x41\x42\x43\x44\x45\x46",
18099                 .rlen   = 16,
18100         }, { /* LRW-32-AES 4 */
18101                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
18102                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
18103                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
18104                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
18105                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
18106                 .klen   = 40,
18107                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18108                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18109                 .input  = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
18110                           "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
18111                 .ilen   = 16,
18112                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18113                           "\x38\x39\x41\x42\x43\x44\x45\x46",
18114                 .rlen   = 16,
18115         }, { /* LRW-32-AES 5 */
18116                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
18117                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
18118                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
18119                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
18120                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
18121                 .klen   = 40,
18122                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18123                           "\x00\x00\x00\x02\x00\x00\x00\x00",
18124                 .input  = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
18125                           "\xc8\x60\x48\x02\x87\xe3\x34\x06",
18126                 .ilen   = 16,
18127                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18128                           "\x38\x39\x41\x42\x43\x44\x45\x46",
18129                 .rlen   = 16,
18130         }, { /* LRW-32-AES 6 */
18131                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18132                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18133                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18134                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18135                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18136                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18137                 .klen   = 48,
18138                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18139                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18140                 .input  = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
18141                           "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
18142                 .ilen   = 16,
18143                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18144                           "\x38\x39\x41\x42\x43\x44\x45\x46",
18145                 .rlen   = 16,
18146         }, { /* LRW-32-AES 7 */
18147                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
18148                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
18149                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
18150                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
18151                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
18152                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
18153                 .klen   = 48,
18154                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18155                           "\x00\x00\x00\x02\x00\x00\x00\x00",
18156                 .input  = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
18157                           "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
18158                 .ilen   = 16,
18159                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18160                           "\x38\x39\x41\x42\x43\x44\x45\x46",
18161                 .rlen   = 16,
18162         }, {
18163 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
18164                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18165                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18166                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18167                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18168                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18169                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18170                 .klen   = 48,
18171                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18172                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18173                 .input  = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
18174                           "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
18175                           "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
18176                           "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
18177                           "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
18178                           "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
18179                           "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
18180                           "\xe8\x58\x46\x97\x39\x51\x07\xde"
18181                           "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
18182                           "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
18183                           "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
18184                           "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
18185                           "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
18186                           "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
18187                           "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
18188                           "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
18189                           "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
18190                           "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
18191                           "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
18192                           "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
18193                           "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
18194                           "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
18195                           "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
18196                           "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
18197                           "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
18198                           "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
18199                           "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
18200                           "\x41\x30\x58\xc5\x62\x74\x52\x1d"
18201                           "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
18202                           "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
18203                           "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
18204                           "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
18205                           "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
18206                           "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
18207                           "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
18208                           "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
18209                           "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
18210                           "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
18211                           "\xb8\x79\x78\x97\x94\xff\x72\x13"
18212                           "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
18213                           "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
18214                           "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
18215                           "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
18216                           "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
18217                           "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
18218                           "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
18219                           "\x1e\x86\x53\x11\x53\x94\x00\xee"
18220                           "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
18221                           "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
18222                           "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
18223                           "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
18224                           "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
18225                           "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
18226                           "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
18227                           "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
18228                           "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
18229                           "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
18230                           "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
18231                           "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
18232                           "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
18233                           "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
18234                           "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
18235                           "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
18236                           "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
18237                 .ilen   = 512,
18238                 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
18239                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
18240                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
18241                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
18242                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
18243                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
18244                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
18245                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
18246                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
18247                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
18248                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
18249                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
18250                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
18251                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
18252                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
18253                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
18254                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
18255                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
18256                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
18257                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
18258                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
18259                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
18260                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
18261                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
18262                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
18263                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
18264                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
18265                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
18266                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
18267                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
18268                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
18269                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
18270                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
18271                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
18272                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
18273                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
18274                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
18275                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
18276                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
18277                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
18278                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
18279                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
18280                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
18281                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
18282                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
18283                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
18284                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
18285                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
18286                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
18287                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
18288                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
18289                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
18290                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
18291                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
18292                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
18293                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
18294                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
18295                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
18296                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
18297                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
18298                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
18299                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
18300                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
18301                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
18302                 .rlen   = 512,
18303                 .also_non_np = 1,
18304                 .np     = 3,
18305                 .tap    = { 512 - 20, 4, 16 },
18306         }
18307 };
18308
18309 static const struct cipher_testvec aes_xts_enc_tv_template[] = {
18310         /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18311         { /* XTS-AES 1 */
18312                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
18313                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18314                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18315                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18316                 .klen   = 32,
18317                 .fips_skip = 1,
18318                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18319                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18320                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
18321                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18322                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18323                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18324                 .ilen   = 32,
18325                 .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18326                           "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18327                           "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18328                           "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18329                 .rlen   = 32,
18330         }, { /* XTS-AES 2 */
18331                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
18332                           "\x11\x11\x11\x11\x11\x11\x11\x11"
18333                           "\x22\x22\x22\x22\x22\x22\x22\x22"
18334                           "\x22\x22\x22\x22\x22\x22\x22\x22",
18335                 .klen   = 32,
18336                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
18337                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18338                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
18339                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18340                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18341                           "\x44\x44\x44\x44\x44\x44\x44\x44",
18342                 .ilen   = 32,
18343                 .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18344                           "\x39\x33\x40\x38\xac\xef\x83\x8b"
18345                           "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18346                           "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
18347                 .rlen   = 32,
18348         }, { /* XTS-AES 3 */
18349                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18350                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18351                           "\x22\x22\x22\x22\x22\x22\x22\x22"
18352                           "\x22\x22\x22\x22\x22\x22\x22\x22",
18353                 .klen   = 32,
18354                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
18355                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18356                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
18357                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18358                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18359                           "\x44\x44\x44\x44\x44\x44\x44\x44",
18360                 .ilen   = 32,
18361                 .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18362                           "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18363                           "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18364                           "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18365                 .rlen   = 32,
18366         }, { /* XTS-AES 4 */
18367                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
18368                           "\x23\x53\x60\x28\x74\x71\x35\x26"
18369                           "\x31\x41\x59\x26\x53\x58\x97\x93"
18370                           "\x23\x84\x62\x64\x33\x83\x27\x95",
18371                 .klen   = 32,
18372                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18373                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18374                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
18375                           "\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\x21\x22\x23\x24\x25\x26\x27"
18379                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18380                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18381                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18382                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18383                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18384                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18385                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18386                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18387                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18388                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18389                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18390                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18391                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18392                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18393                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18394                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18395                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18396                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18397                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18398                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18399                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18400                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18401                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18402                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18403                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18404                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18405                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18406                           "\x00\x01\x02\x03\x04\x05\x06\x07"
18407                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18408                           "\x10\x11\x12\x13\x14\x15\x16\x17"
18409                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18410                           "\x20\x21\x22\x23\x24\x25\x26\x27"
18411                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18412                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18413                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18414                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18415                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18416                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18417                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18418                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18419                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18420                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18421                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18422                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18423                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18424                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18425                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18426                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18427                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18428                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18429                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18430                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18431                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18432                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18433                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18434                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18435                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18436                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18437                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18438                 .ilen   = 512,
18439                 .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18440                           "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18441                           "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18442                           "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18443                           "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18444                           "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18445                           "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18446                           "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18447                           "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18448                           "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18449                           "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18450                           "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18451                           "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18452                           "\x22\x97\x61\x46\xae\x20\xce\x84"
18453                           "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18454                           "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18455                           "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18456                           "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18457                           "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18458                           "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18459                           "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18460                           "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18461                           "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18462                           "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18463                           "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18464                           "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18465                           "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18466                           "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18467                           "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18468                           "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18469                           "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18470                           "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18471                           "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18472                           "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18473                           "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18474                           "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18475                           "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18476                           "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18477                           "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18478                           "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18479                           "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18480                           "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18481                           "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18482                           "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18483                           "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18484                           "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18485                           "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18486                           "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18487                           "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18488                           "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18489                           "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18490                           "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18491                           "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18492                           "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18493                           "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18494                           "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18495                           "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18496                           "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18497                           "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18498                           "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18499                           "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18500                           "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18501                           "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18502                           "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18503                 .rlen   = 512,
18504         }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18505                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
18506                           "\x23\x53\x60\x28\x74\x71\x35\x26"
18507                           "\x62\x49\x77\x57\x24\x70\x93\x69"
18508                           "\x99\x59\x57\x49\x66\x96\x76\x27"
18509                           "\x31\x41\x59\x26\x53\x58\x97\x93"
18510                           "\x23\x84\x62\x64\x33\x83\x27\x95"
18511                           "\x02\x88\x41\x97\x16\x93\x99\x37"
18512                           "\x51\x05\x82\x09\x74\x94\x45\x92",
18513                 .klen   = 64,
18514                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
18515                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18516                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
18517                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18518                           "\x10\x11\x12\x13\x14\x15\x16\x17"
18519                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18520                           "\x20\x21\x22\x23\x24\x25\x26\x27"
18521                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18522                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18523                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18524                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18525                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18526                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18527                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18528                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18529                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18530                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18531                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18532                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18533                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18534                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18535                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18536                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18537                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18538                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18539                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18540                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18541                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18542                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18543                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18544                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18545                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18546                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18547                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18548                           "\x00\x01\x02\x03\x04\x05\x06\x07"
18549                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18550                           "\x10\x11\x12\x13\x14\x15\x16\x17"
18551                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18552                           "\x20\x21\x22\x23\x24\x25\x26\x27"
18553                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18554                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18555                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18556                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18557                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18558                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18559                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18560                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18561                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18562                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18563                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18564                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18565                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18566                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18567                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18568                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18569                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18570                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18571                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18572                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18573                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18574                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18575                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18576                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18577                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18578                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18579                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18580                 .ilen   = 512,
18581                 .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18582                           "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18583                           "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18584                           "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18585                           "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18586                           "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18587                           "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18588                           "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18589                           "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18590                           "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18591                           "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18592                           "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18593                           "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18594                           "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18595                           "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18596                           "\x00\x02\x08\x87\x89\x14\x29\xca"
18597                           "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18598                           "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18599                           "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18600                           "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18601                           "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18602                           "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18603                           "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18604                           "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18605                           "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18606                           "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18607                           "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18608                           "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18609                           "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18610                           "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18611                           "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18612                           "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18613                           "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18614                           "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18615                           "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18616                           "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18617                           "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18618                           "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18619                           "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18620                           "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18621                           "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18622                           "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18623                           "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18624                           "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18625                           "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18626                           "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18627                           "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18628                           "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18629                           "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18630                           "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18631                           "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18632                           "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18633                           "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18634                           "\x94\x30\x54\xff\x84\x01\x14\x93"
18635                           "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18636                           "\x53\x76\x44\x1a\x77\xed\x43\x85"
18637                           "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18638                           "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18639                           "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18640                           "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18641                           "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18642                           "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18643                           "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18644                           "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18645                 .rlen   = 512,
18646                 .also_non_np = 1,
18647                 .np     = 3,
18648                 .tap    = { 512 - 20, 4, 16 },
18649         }
18650 };
18651
18652 static const struct cipher_testvec aes_xts_dec_tv_template[] = {
18653         /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18654         { /* XTS-AES 1 */
18655                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
18656                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18657                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18658                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18659                 .klen   = 32,
18660                 .fips_skip = 1,
18661                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18662                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18663                 .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18664                          "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18665                          "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18666                          "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18667                 .ilen   = 32,
18668                 .result  = "\x00\x00\x00\x00\x00\x00\x00\x00"
18669                            "\x00\x00\x00\x00\x00\x00\x00\x00"
18670                            "\x00\x00\x00\x00\x00\x00\x00\x00"
18671                            "\x00\x00\x00\x00\x00\x00\x00\x00",
18672                 .rlen   = 32,
18673         }, { /* XTS-AES 2 */
18674                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
18675                           "\x11\x11\x11\x11\x11\x11\x11\x11"
18676                           "\x22\x22\x22\x22\x22\x22\x22\x22"
18677                           "\x22\x22\x22\x22\x22\x22\x22\x22",
18678                 .klen   = 32,
18679                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
18680                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18681                 .input  = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18682                           "\x39\x33\x40\x38\xac\xef\x83\x8b"
18683                           "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18684                           "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
18685                 .ilen   = 32,
18686                 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
18687                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18688                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18689                           "\x44\x44\x44\x44\x44\x44\x44\x44",
18690                 .rlen   = 32,
18691         }, { /* XTS-AES 3 */
18692                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18693                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18694                           "\x22\x22\x22\x22\x22\x22\x22\x22"
18695                           "\x22\x22\x22\x22\x22\x22\x22\x22",
18696                 .klen   = 32,
18697                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
18698                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18699                 .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18700                           "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18701                           "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18702                           "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18703                 .ilen   = 32,
18704                 .result  = "\x44\x44\x44\x44\x44\x44\x44\x44"
18705                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18706                           "\x44\x44\x44\x44\x44\x44\x44\x44"
18707                           "\x44\x44\x44\x44\x44\x44\x44\x44",
18708                 .rlen   = 32,
18709         }, { /* XTS-AES 4 */
18710                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
18711                           "\x23\x53\x60\x28\x74\x71\x35\x26"
18712                           "\x31\x41\x59\x26\x53\x58\x97\x93"
18713                           "\x23\x84\x62\x64\x33\x83\x27\x95",
18714                 .klen   = 32,
18715                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
18716                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18717                 .input  = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18718                           "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18719                           "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18720                           "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18721                           "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18722                           "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18723                           "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18724                           "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18725                           "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18726                           "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18727                           "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18728                           "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18729                           "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18730                           "\x22\x97\x61\x46\xae\x20\xce\x84"
18731                           "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18732                           "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18733                           "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18734                           "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18735                           "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18736                           "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18737                           "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18738                           "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18739                           "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18740                           "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18741                           "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18742                           "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18743                           "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18744                           "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18745                           "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18746                           "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18747                           "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18748                           "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18749                           "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18750                           "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18751                           "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18752                           "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18753                           "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18754                           "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18755                           "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18756                           "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18757                           "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18758                           "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18759                           "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18760                           "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18761                           "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18762                           "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18763                           "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18764                           "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18765                           "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18766                           "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18767                           "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18768                           "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18769                           "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18770                           "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18771                           "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18772                           "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18773                           "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18774                           "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18775                           "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18776                           "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18777                           "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18778                           "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18779                           "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18780                           "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18781                 .ilen   = 512,
18782                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18783                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18784                           "\x10\x11\x12\x13\x14\x15\x16\x17"
18785                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18786                           "\x20\x21\x22\x23\x24\x25\x26\x27"
18787                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18788                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18789                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18790                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18791                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18792                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18793                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18794                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18795                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18796                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18797                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18798                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18799                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18800                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18801                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18802                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18803                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18804                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18805                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18806                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18807                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18808                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18809                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18810                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18811                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18812                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18813                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18814                           "\x00\x01\x02\x03\x04\x05\x06\x07"
18815                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18816                           "\x10\x11\x12\x13\x14\x15\x16\x17"
18817                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18818                           "\x20\x21\x22\x23\x24\x25\x26\x27"
18819                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18820                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18821                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18822                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18823                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18824                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18825                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18826                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18827                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18828                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18829                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18830                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18831                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18832                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18833                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18834                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18835                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18836                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18837                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18838                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18839                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18840                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18841                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18842                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18843                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18844                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18845                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18846                 .rlen   = 512,
18847         }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18848                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
18849                           "\x23\x53\x60\x28\x74\x71\x35\x26"
18850                           "\x62\x49\x77\x57\x24\x70\x93\x69"
18851                           "\x99\x59\x57\x49\x66\x96\x76\x27"
18852                           "\x31\x41\x59\x26\x53\x58\x97\x93"
18853                           "\x23\x84\x62\x64\x33\x83\x27\x95"
18854                           "\x02\x88\x41\x97\x16\x93\x99\x37"
18855                           "\x51\x05\x82\x09\x74\x94\x45\x92",
18856                 .klen   = 64,
18857                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
18858                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18859                 .input  = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18860                           "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18861                           "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18862                           "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18863                           "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18864                           "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18865                           "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18866                           "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18867                           "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18868                           "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18869                           "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18870                           "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18871                           "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18872                           "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18873                           "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18874                           "\x00\x02\x08\x87\x89\x14\x29\xca"
18875                           "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18876                           "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18877                           "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18878                           "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18879                           "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18880                           "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18881                           "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18882                           "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18883                           "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18884                           "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18885                           "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18886                           "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18887                           "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18888                           "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18889                           "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18890                           "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18891                           "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18892                           "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18893                           "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18894                           "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18895                           "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18896                           "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18897                           "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18898                           "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18899                           "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18900                           "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18901                           "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18902                           "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18903                           "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18904                           "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18905                           "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18906                           "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18907                           "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18908                           "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18909                           "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18910                           "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18911                           "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18912                           "\x94\x30\x54\xff\x84\x01\x14\x93"
18913                           "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18914                           "\x53\x76\x44\x1a\x77\xed\x43\x85"
18915                           "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18916                           "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18917                           "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18918                           "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18919                           "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18920                           "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18921                           "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18922                           "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18923                 .ilen   = 512,
18924                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18925                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18926                           "\x10\x11\x12\x13\x14\x15\x16\x17"
18927                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18928                           "\x20\x21\x22\x23\x24\x25\x26\x27"
18929                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18930                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18931                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18932                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18933                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18934                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18935                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18936                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18937                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18938                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18939                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18940                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18941                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18942                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18943                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18944                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18945                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18946                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18947                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18948                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18949                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18950                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18951                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18952                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18953                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18954                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18955                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18956                           "\x00\x01\x02\x03\x04\x05\x06\x07"
18957                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18958                           "\x10\x11\x12\x13\x14\x15\x16\x17"
18959                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18960                           "\x20\x21\x22\x23\x24\x25\x26\x27"
18961                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18962                           "\x30\x31\x32\x33\x34\x35\x36\x37"
18963                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18964                           "\x40\x41\x42\x43\x44\x45\x46\x47"
18965                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18966                           "\x50\x51\x52\x53\x54\x55\x56\x57"
18967                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18968                           "\x60\x61\x62\x63\x64\x65\x66\x67"
18969                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18970                           "\x70\x71\x72\x73\x74\x75\x76\x77"
18971                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18972                           "\x80\x81\x82\x83\x84\x85\x86\x87"
18973                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18974                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18975                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18976                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18977                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18978                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18979                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18980                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18981                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18982                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18983                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18984                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18985                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18986                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18987                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18988                 .rlen   = 512,
18989                 .also_non_np = 1,
18990                 .np     = 3,
18991                 .tap    = { 512 - 20, 4, 16 },
18992         }
18993 };
18994
18995
18996 static const struct cipher_testvec aes_ctr_enc_tv_template[] = {
18997         { /* From NIST Special Publication 800-38A, Appendix F.5 */
18998                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
18999                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19000                 .klen   = 16,
19001                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19002                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19003                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19004                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19005                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19006                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19007                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19008                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19009                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19010                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19011                 .ilen   = 64,
19012                 .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
19013                           "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
19014                           "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
19015                           "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
19016                           "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
19017                           "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
19018                           "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
19019                           "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
19020                 .rlen   = 64,
19021         }, {
19022                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
19023                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
19024                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
19025                 .klen   = 24,
19026                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19027                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19028                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19029                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19030                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19031                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19032                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19033                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19034                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19035                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19036                 .ilen   = 64,
19037                 .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
19038                           "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
19039                           "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
19040                           "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
19041                           "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
19042                           "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
19043                           "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
19044                           "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
19045                 .rlen   = 64,
19046         }, {
19047                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
19048                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
19049                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
19050                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
19051                 .klen   = 32,
19052                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19053                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19054                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19055                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19056                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19057                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19058                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19059                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19060                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19061                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19062                 .ilen   = 64,
19063                 .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
19064                           "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
19065                           "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
19066                           "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
19067                           "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
19068                           "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
19069                           "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
19070                           "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
19071                 .rlen   = 64,
19072         }, { /* Generated with Crypto++ */
19073                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19074                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19075                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19076                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19077                 .klen   = 32,
19078                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
19079                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
19080                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19081                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19082                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19083                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19084                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19085                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19086                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19087                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19088                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19089                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19090                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19091                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19092                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19093                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19094                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19095                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19096                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19097                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19098                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19099                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19100                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19101                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19102                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19103                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19104                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19105                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19106                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19107                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19108                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19109                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19110                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19111                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19112                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19113                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19114                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19115                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19116                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19117                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19118                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19119                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19120                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19121                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19122                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19123                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19124                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19125                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19126                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19127                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19128                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19129                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19130                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19131                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19132                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19133                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19134                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19135                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19136                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19137                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19138                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19139                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19140                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19141                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19142                 .ilen   = 496,
19143                 .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19144                           "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19145                           "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19146                           "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19147                           "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19148                           "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19149                           "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19150                           "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19151                           "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19152                           "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19153                           "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19154                           "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19155                           "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19156                           "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19157                           "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19158                           "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19159                           "\x34\x4B\x31\x69\x84\x66\x96\x44"
19160                           "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19161                           "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19162                           "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19163                           "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19164                           "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19165                           "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19166                           "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19167                           "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19168                           "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19169                           "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19170                           "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19171                           "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19172                           "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19173                           "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19174                           "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19175                           "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19176                           "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19177                           "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19178                           "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19179                           "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19180                           "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19181                           "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19182                           "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19183                           "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19184                           "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19185                           "\x85\x99\x22\xE8\x91\x38\x70\x83"
19186                           "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19187                           "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19188                           "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19189                           "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19190                           "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19191                           "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19192                           "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19193                           "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19194                           "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19195                           "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19196                           "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19197                           "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19198                           "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19199                           "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19200                           "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19201                           "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19202                           "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19203                           "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19204                           "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19205                 .rlen   = 496,
19206                 .also_non_np = 1,
19207                 .np     = 3,
19208                 .tap    = { 496 - 20, 4, 16 },
19209         }, { /* Generated with Crypto++ */
19210                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19211                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19212                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19213                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19214                 .klen   = 32,
19215                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19216                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19217                 .input  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19218                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19219                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19220                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19221                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19222                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19223                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19224                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19225                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19226                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19227                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19228                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19229                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19230                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19231                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19232                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19233                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19234                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19235                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19236                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19237                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19238                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19239                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19240                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19241                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19242                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19243                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19244                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19245                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19246                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19247                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19248                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19249                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19250                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19251                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19252                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19253                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19254                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19255                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19256                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19257                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19258                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19259                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19260                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19261                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19262                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19263                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19264                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19265                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19266                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19267                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19268                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19269                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19270                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19271                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19272                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19273                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19274                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19275                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19276                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19277                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19278                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19279                           "\x7B\xE4\x4D",
19280                 .ilen   = 499,
19281                 .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19282                           "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19283                           "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19284                           "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19285                           "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19286                           "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19287                           "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19288                           "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19289                           "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19290                           "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19291                           "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19292                           "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19293                           "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19294                           "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19295                           "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19296                           "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19297                           "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19298                           "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19299                           "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19300                           "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19301                           "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19302                           "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19303                           "\x45\x18\x18\x74\x19\xAD\x71\x01"
19304                           "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19305                           "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19306                           "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19307                           "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19308                           "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19309                           "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19310                           "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19311                           "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19312                           "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19313                           "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19314                           "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19315                           "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19316                           "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19317                           "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19318                           "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19319                           "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19320                           "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19321                           "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19322                           "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19323                           "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19324                           "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19325                           "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19326                           "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19327                           "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19328                           "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19329                           "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19330                           "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19331                           "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19332                           "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19333                           "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19334                           "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19335                           "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19336                           "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19337                           "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19338                           "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19339                           "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19340                           "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19341                           "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19342                           "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19343                           "\xFB\xF2\x3F",
19344                 .rlen   = 499,
19345                 .also_non_np = 1,
19346                 .np     = 2,
19347                 .tap    = { 499 - 16, 16 },
19348         },
19349 };
19350
19351 static const struct cipher_testvec aes_ctr_dec_tv_template[] = {
19352         { /* From NIST Special Publication 800-38A, Appendix F.5 */
19353                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19354                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19355                 .klen   = 16,
19356                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19357                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19358                 .input  = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
19359                           "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
19360                           "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
19361                           "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
19362                           "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
19363                           "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
19364                           "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
19365                           "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
19366                 .ilen   = 64,
19367                 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19368                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19369                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19370                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19371                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19372                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19373                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19374                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19375                 .rlen   = 64,
19376         }, {
19377                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
19378                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
19379                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
19380                 .klen   = 24,
19381                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19382                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19383                 .input  = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
19384                           "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
19385                           "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
19386                           "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
19387                           "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
19388                           "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
19389                           "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
19390                           "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
19391                 .ilen   = 64,
19392                 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19393                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19394                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19395                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19396                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19397                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19398                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19399                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19400                 .rlen   = 64,
19401         }, {
19402                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
19403                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
19404                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
19405                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
19406                 .klen   = 32,
19407                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19408                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19409                 .input  = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
19410                           "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
19411                           "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
19412                           "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
19413                           "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
19414                           "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
19415                           "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
19416                           "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
19417                 .ilen   = 64,
19418                 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19419                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19420                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19421                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19422                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19423                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19424                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19425                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19426                 .rlen   = 64,
19427         }, { /* Generated with Crypto++ */
19428                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19429                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19430                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19431                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19432                 .klen   = 32,
19433                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
19434                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
19435                 .input  = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19436                           "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19437                           "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19438                           "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19439                           "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19440                           "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19441                           "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19442                           "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19443                           "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19444                           "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19445                           "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19446                           "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19447                           "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19448                           "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19449                           "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19450                           "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19451                           "\x34\x4B\x31\x69\x84\x66\x96\x44"
19452                           "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19453                           "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19454                           "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19455                           "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19456                           "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19457                           "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19458                           "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19459                           "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19460                           "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19461                           "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19462                           "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19463                           "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19464                           "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19465                           "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19466                           "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19467                           "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19468                           "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19469                           "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19470                           "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19471                           "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19472                           "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19473                           "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19474                           "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19475                           "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19476                           "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19477                           "\x85\x99\x22\xE8\x91\x38\x70\x83"
19478                           "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19479                           "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19480                           "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19481                           "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19482                           "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19483                           "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19484                           "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19485                           "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19486                           "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19487                           "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19488                           "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19489                           "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19490                           "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19491                           "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19492                           "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19493                           "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19494                           "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19495                           "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19496                           "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19497                 .ilen   = 496,
19498                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19499                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19500                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19501                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19502                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19503                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19504                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19505                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19506                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19507                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19508                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19509                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19510                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19511                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19512                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19513                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19514                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19515                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19516                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19517                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19518                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19519                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19520                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19521                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19522                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19523                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19524                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19525                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19526                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19527                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19528                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19529                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19530                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19531                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19532                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19533                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19534                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19535                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19536                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19537                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19538                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19539                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19540                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19541                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19542                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19543                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19544                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19545                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19546                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19547                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19548                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19549                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19550                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19551                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19552                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19553                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19554                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19555                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19556                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19557                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19558                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19559                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19560                 .rlen   = 496,
19561                 .also_non_np = 1,
19562                 .np     = 3,
19563                 .tap    = { 496 - 20, 4, 16 },
19564         }, { /* Generated with Crypto++ */
19565                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19566                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19567                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19568                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19569                 .klen   = 32,
19570                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19571                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19572                 .input  = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19573                           "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19574                           "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19575                           "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19576                           "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19577                           "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19578                           "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19579                           "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19580                           "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19581                           "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19582                           "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19583                           "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19584                           "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19585                           "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19586                           "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19587                           "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19588                           "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19589                           "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19590                           "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19591                           "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19592                           "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19593                           "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19594                           "\x45\x18\x18\x74\x19\xAD\x71\x01"
19595                           "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19596                           "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19597                           "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19598                           "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19599                           "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19600                           "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19601                           "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19602                           "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19603                           "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19604                           "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19605                           "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19606                           "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19607                           "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19608                           "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19609                           "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19610                           "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19611                           "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19612                           "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19613                           "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19614                           "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19615                           "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19616                           "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19617                           "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19618                           "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19619                           "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19620                           "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19621                           "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19622                           "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19623                           "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19624                           "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19625                           "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19626                           "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19627                           "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19628                           "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19629                           "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19630                           "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19631                           "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19632                           "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19633                           "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19634                           "\xFB\xF2\x3F",
19635                 .ilen   = 499,
19636                 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19637                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19638                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19639                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19640                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19641                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19642                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19643                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19644                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19645                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19646                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19647                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19648                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19649                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19650                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19651                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19652                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19653                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19654                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19655                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19656                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19657                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19658                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19659                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19660                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19661                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19662                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19663                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19664                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19665                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19666                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19667                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19668                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19669                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19670                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19671                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19672                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19673                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19674                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19675                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19676                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19677                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19678                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19679                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19680                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19681                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19682                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19683                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19684                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19685                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19686                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19687                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19688                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19689                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19690                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19691                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19692                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19693                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19694                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19695                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19696                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19697                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19698                           "\x7B\xE4\x4D",
19699                 .rlen   = 499,
19700                 .also_non_np = 1,
19701                 .np     = 2,
19702                 .tap    = { 499 - 16, 16 },
19703         },
19704 };
19705
19706 static const struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
19707         { /* From RFC 3686 */
19708                 .key    = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
19709                           "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
19710                           "\x00\x00\x00\x30",
19711                 .klen   = 20,
19712                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
19713                 .input  = "Single block msg",
19714                 .ilen   = 16,
19715                 .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
19716                           "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
19717                 .rlen   = 16,
19718         }, {
19719                 .key    = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
19720                           "\x43\xd6\xce\x1f\x32\x53\x91\x63"
19721                           "\x00\x6c\xb6\xdb",
19722                 .klen   = 20,
19723                 .iv     = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
19724                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
19725                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19726                           "\x10\x11\x12\x13\x14\x15\x16\x17"
19727                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19728                 .ilen   = 32,
19729                 .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
19730                           "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
19731                           "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
19732                           "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
19733                 .rlen   = 32,
19734         }, {
19735                 .key    = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
19736                           "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
19737                           "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
19738                           "\x00\x00\x00\x48",
19739                 .klen   = 28,
19740                 .iv     = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
19741                 .input  = "Single block msg",
19742                 .ilen   = 16,
19743                 .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
19744                           "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
19745                 .rlen   = 16,
19746         }, {
19747                 .key    = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
19748                           "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
19749                           "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
19750                           "\x00\x96\xb0\x3b",
19751                 .klen   = 28,
19752                 .iv     = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
19753                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
19754                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19755                           "\x10\x11\x12\x13\x14\x15\x16\x17"
19756                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19757                 .ilen   = 32,
19758                 .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
19759                           "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
19760                           "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
19761                           "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
19762                 .rlen   = 32,
19763         }, {
19764                 .key    = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
19765                           "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
19766                           "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
19767                           "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
19768                           "\x00\x00\x00\x60",
19769                 .klen   = 36,
19770                 .iv     = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
19771                 .input  = "Single block msg",
19772                 .ilen   = 16,
19773                 .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
19774                           "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
19775                 .rlen   = 16,
19776         }, {
19777                 .key    = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
19778                           "\x07\x96\x36\x58\x79\xef\xf8\x86"
19779                           "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
19780                           "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
19781                           "\x00\xfa\xac\x24",
19782                 .klen   = 36,
19783                 .iv     = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
19784                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
19785                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19786                           "\x10\x11\x12\x13\x14\x15\x16\x17"
19787                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19788                 .ilen   = 32,
19789                 .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
19790                           "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
19791                           "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
19792                           "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
19793                 .rlen   = 32,
19794         }, {
19795         // generated using Crypto++
19796                 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19797                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19798                         "\x10\x11\x12\x13\x14\x15\x16\x17"
19799                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19800                         "\x00\x00\x00\x00",
19801                 .klen = 32 + 4,
19802                 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19803                 .input =
19804                         "\x00\x01\x02\x03\x04\x05\x06\x07"
19805                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19806                         "\x10\x11\x12\x13\x14\x15\x16\x17"
19807                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19808                         "\x20\x21\x22\x23\x24\x25\x26\x27"
19809                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
19810                         "\x30\x31\x32\x33\x34\x35\x36\x37"
19811                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
19812                         "\x40\x41\x42\x43\x44\x45\x46\x47"
19813                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
19814                         "\x50\x51\x52\x53\x54\x55\x56\x57"
19815                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
19816                         "\x60\x61\x62\x63\x64\x65\x66\x67"
19817                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
19818                         "\x70\x71\x72\x73\x74\x75\x76\x77"
19819                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
19820                         "\x80\x81\x82\x83\x84\x85\x86\x87"
19821                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19822                         "\x90\x91\x92\x93\x94\x95\x96\x97"
19823                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
19824                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
19825                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
19826                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
19827                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
19828                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
19829                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
19830                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
19831                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
19832                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
19833                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
19834                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19835                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
19836                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
19837                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
19838                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
19839                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
19840                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
19841                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
19842                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
19843                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
19844                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
19845                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
19846                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
19847                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
19848                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
19849                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
19850                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
19851                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
19852                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
19853                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
19854                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
19855                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
19856                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
19857                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
19858                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
19859                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
19860                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
19861                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
19862                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
19863                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
19864                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
19865                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
19866                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
19867                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
19868                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
19869                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
19870                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
19871                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
19872                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
19873                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
19874                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
19875                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
19876                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
19877                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
19878                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
19879                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
19880                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
19881                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
19882                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
19883                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
19884                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
19885                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
19886                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
19887                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
19888                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
19889                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
19890                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
19891                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
19892                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
19893                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
19894                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
19895                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
19896                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
19897                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
19898                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
19899                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
19900                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
19901                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
19902                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
19903                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
19904                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
19905                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
19906                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
19907                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
19908                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
19909                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
19910                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
19911                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
19912                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
19913                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
19914                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
19915                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
19916                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
19917                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
19918                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
19919                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
19920                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
19921                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
19922                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
19923                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
19924                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
19925                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
19926                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
19927                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
19928                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
19929                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
19930                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
19931                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
19932                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
19933                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
19934                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
19935                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
19936                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
19937                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
19938                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
19939                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
19940                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
19941                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
19942                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
19943                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
19944                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
19945                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
19946                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
19947                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
19948                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
19949                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
19950                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
19951                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
19952                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
19953                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
19954                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
19955                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
19956                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
19957                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
19958                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
19959                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
19960                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
19961                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
19962                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
19963                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
19964                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
19965                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
19966                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
19967                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
19968                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
19969                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
19970                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
19971                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
19972                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
19973                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
19974                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
19975                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
19976                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
19977                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
19978                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
19979                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
19980                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
19981                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
19982                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
19983                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
19984                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
19985                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
19986                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
19987                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
19988                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
19989                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
19990                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
19991                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
19992                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
19993                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
19994                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
19995                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
19996                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
19997                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
19998                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
19999                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
20000                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
20001                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
20002                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
20003                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
20004                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
20005                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
20006                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
20007                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
20008                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
20009                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
20010                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
20011                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
20012                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
20013                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
20014                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
20015                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
20016                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
20017                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
20018                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
20019                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
20020                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
20021                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
20022                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
20023                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
20024                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
20025                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
20026                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
20027                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
20028                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
20029                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
20030                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
20031                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
20032                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
20033                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
20034                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
20035                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
20036                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
20037                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
20038                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
20039                         "\x28\x37\x46\x55\x64\x73\x82\x91"
20040                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
20041                         "\x18\x27\x36\x45\x54\x63\x72\x81"
20042                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
20043                         "\x08\x17\x26\x35\x44\x53\x62\x71"
20044                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
20045                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
20046                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
20047                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
20048                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
20049                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
20050                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
20051                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
20052                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
20053                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
20054                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
20055                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
20056                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
20057                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
20058                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
20059                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
20060                         "\x00\x11\x22\x33\x44\x55\x66\x77"
20061                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
20062                         "\x10\x21\x32\x43\x54\x65\x76\x87"
20063                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
20064                         "\x20\x31\x42\x53\x64\x75\x86\x97"
20065                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
20066                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
20067                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
20068                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
20069                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
20070                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
20071                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
20072                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
20073                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
20074                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
20075                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
20076                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
20077                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
20078                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
20079                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
20080                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
20081                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
20082                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
20083                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
20084                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
20085                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
20086                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
20087                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
20088                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
20089                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
20090                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
20091                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
20092                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
20093                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
20094                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
20095                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
20096                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
20097                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
20098                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
20099                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
20100                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
20101                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
20102                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
20103                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
20104                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
20105                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
20106                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
20107                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
20108                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
20109                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
20110                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
20111                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
20112                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
20113                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
20114                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
20115                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
20116                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
20117                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
20118                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
20119                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
20120                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
20121                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
20122                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
20123                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
20124                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
20125                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
20126                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
20127                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
20128                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
20129                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
20130                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
20131                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
20132                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
20133                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
20134                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
20135                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
20136                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
20137                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
20138                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
20139                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
20140                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
20141                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
20142                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
20143                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
20144                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
20145                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
20146                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
20147                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
20148                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
20149                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
20150                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
20151                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
20152                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
20153                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
20154                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
20155                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
20156                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
20157                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
20158                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
20159                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
20160                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
20161                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
20162                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
20163                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
20164                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
20165                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
20166                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
20167                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
20168                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
20169                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
20170                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
20171                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
20172                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
20173                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
20174                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
20175                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
20176                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
20177                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
20178                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
20179                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
20180                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
20181                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
20182                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
20183                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
20184                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
20185                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
20186                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
20187                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
20188                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
20189                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
20190                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
20191                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
20192                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
20193                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
20194                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
20195                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
20196                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
20197                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
20198                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
20199                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
20200                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
20201                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
20202                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
20203                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
20204                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
20205                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
20206                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
20207                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
20208                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
20209                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
20210                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
20211                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
20212                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
20213                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
20214                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
20215                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
20216                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
20217                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
20218                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
20219                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
20220                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
20221                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
20222                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
20223                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
20224                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
20225                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
20226                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
20227                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
20228                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
20229                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
20230                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
20231                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
20232                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
20233                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
20234                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
20235                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
20236                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
20237                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
20238                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
20239                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
20240                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
20241                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
20242                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
20243                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
20244                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
20245                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
20246                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
20247                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
20248                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
20249                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
20250                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
20251                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
20252                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
20253                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
20254                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
20255                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
20256                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
20257                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
20258                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
20259                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
20260                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
20261                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
20262                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
20263                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
20264                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
20265                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
20266                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
20267                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
20268                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
20269                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
20270                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
20271                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
20272                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
20273                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
20274                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
20275                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
20276                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
20277                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
20278                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
20279                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
20280                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
20281                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
20282                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
20283                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
20284                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
20285                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
20286                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
20287                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
20288                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
20289                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
20290                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
20291                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
20292                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
20293                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
20294                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
20295                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
20296                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
20297                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
20298                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
20299                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
20300                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
20301                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
20302                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
20303                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
20304                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
20305                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
20306                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
20307                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
20308                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
20309                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
20310                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
20311                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
20312                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
20313                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
20314                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
20315                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
20316                         "\x00\x21\x42\x63",
20317                 .ilen = 4100,
20318                 .result =
20319                         "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
20320                         "\xae\xff\x91\x3a\x44\xcf\x38\x32"
20321                         "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
20322                         "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
20323                         "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
20324                         "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
20325                         "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
20326                         "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
20327                         "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
20328                         "\x18\xff\x75\x6d\x06\x2d\x00\xab"
20329                         "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
20330                         "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
20331                         "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
20332                         "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
20333                         "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
20334                         "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
20335                         "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
20336                         "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
20337                         "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
20338                         "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
20339                         "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
20340                         "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
20341                         "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
20342                         "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
20343                         "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
20344                         "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
20345                         "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
20346                         "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
20347                         "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
20348                         "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
20349                         "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
20350                         "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
20351                         "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
20352                         "\x6a\x25\x15\x33\x4e\x45\x08\xec"
20353                         "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
20354                         "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
20355                         "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
20356                         "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
20357                         "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
20358                         "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
20359                         "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
20360                         "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
20361                         "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
20362                         "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
20363                         "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
20364                         "\x04\x02\xef\xd3\x44\xde\x76\x31"
20365                         "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
20366                         "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
20367                         "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
20368                         "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
20369                         "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
20370                         "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
20371                         "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
20372                         "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
20373                         "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
20374                         "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
20375                         "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
20376                         "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
20377                         "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
20378                         "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
20379                         "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
20380                         "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
20381                         "\x32\x03\xed\xf0\x50\x1c\x56\x39"
20382                         "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
20383                         "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
20384                         "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
20385                         "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
20386                         "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
20387                         "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
20388                         "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
20389                         "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
20390                         "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
20391                         "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
20392                         "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
20393                         "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
20394                         "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
20395                         "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
20396                         "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
20397                         "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
20398                         "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
20399                         "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
20400                         "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
20401                         "\x69\x3a\x29\x23\xac\x86\x32\xa5"
20402                         "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
20403                         "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
20404                         "\x59\x6a\xd3\x50\x59\x43\x59\xde"
20405                         "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
20406                         "\x18\x34\x0d\x1a\x63\x33\xed\x10"
20407                         "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
20408                         "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
20409                         "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
20410                         "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
20411                         "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
20412                         "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
20413                         "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
20414                         "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
20415                         "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
20416                         "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
20417                         "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
20418                         "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
20419                         "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
20420                         "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
20421                         "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
20422                         "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
20423                         "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
20424                         "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
20425                         "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
20426                         "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
20427                         "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
20428                         "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
20429                         "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
20430                         "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
20431                         "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
20432                         "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
20433                         "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
20434                         "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
20435                         "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
20436                         "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
20437                         "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
20438                         "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
20439                         "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
20440                         "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
20441                         "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
20442                         "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
20443                         "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
20444                         "\x26\x39\x83\x94\xef\x27\xd8\x53"
20445                         "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
20446                         "\x43\x7c\x95\x0a\x53\xef\x66\xda"
20447                         "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
20448                         "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
20449                         "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
20450                         "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
20451                         "\x88\xee\x73\xcf\x66\x2f\x52\x56"
20452                         "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
20453                         "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
20454                         "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
20455                         "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
20456                         "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
20457                         "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
20458                         "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
20459                         "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
20460                         "\xba\x61\x34\x38\x7c\xda\x48\x3e"
20461                         "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
20462                         "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
20463                         "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
20464                         "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
20465                         "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
20466                         "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
20467                         "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
20468                         "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
20469                         "\x35\x12\xe3\x36\x28\x27\x36\x58"
20470                         "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
20471                         "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
20472                         "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
20473                         "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
20474                         "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
20475                         "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
20476                         "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
20477                         "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
20478                         "\x89\xf3\x78\x35\x44\x62\x78\x72"
20479                         "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
20480                         "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
20481                         "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
20482                         "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
20483                         "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
20484                         "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
20485                         "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
20486                         "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
20487                         "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
20488                         "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
20489                         "\xd2\x49\x77\x81\x6d\x90\x70\xae"
20490                         "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
20491                         "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
20492                         "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
20493                         "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
20494                         "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
20495                         "\x45\x42\x27\x75\x50\xe5\xee\xb8"
20496                         "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
20497                         "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
20498                         "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
20499                         "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
20500                         "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
20501                         "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
20502                         "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
20503                         "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
20504                         "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
20505                         "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
20506                         "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
20507                         "\xa9\x21\x2b\x92\x94\x87\x62\x57"
20508                         "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
20509                         "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
20510                         "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
20511                         "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
20512                         "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
20513                         "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
20514                         "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
20515                         "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
20516                         "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
20517                         "\x69\x34\x78\x61\x24\x21\x9c\x8a"
20518                         "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
20519                         "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
20520                         "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
20521                         "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
20522                         "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
20523                         "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
20524                         "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
20525                         "\xb1\x95\x28\x86\x20\xe9\x17\x49"
20526                         "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
20527                         "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
20528                         "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
20529                         "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
20530                         "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
20531                         "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
20532                         "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
20533                         "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
20534                         "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
20535                         "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
20536                         "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
20537                         "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
20538                         "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
20539                         "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
20540                         "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
20541                         "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
20542                         "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
20543                         "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
20544                         "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
20545                         "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
20546                         "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
20547                         "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
20548                         "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
20549                         "\x29\x90\x46\x30\x92\x69\x7d\x13"
20550                         "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
20551                         "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
20552                         "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
20553                         "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
20554                         "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
20555                         "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
20556                         "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
20557                         "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
20558                         "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
20559                         "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
20560                         "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
20561                         "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
20562                         "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
20563                         "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
20564                         "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
20565                         "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
20566                         "\x77\x65\x08\x60\x11\x76\x4c\x8d"
20567                         "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
20568                         "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
20569                         "\x03\xd1\x24\x95\xec\x6d\xab\x38"
20570                         "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
20571                         "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
20572                         "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
20573                         "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
20574                         "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
20575                         "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
20576                         "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
20577                         "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
20578                         "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
20579                         "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
20580                         "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
20581                         "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
20582                         "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
20583                         "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
20584                         "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
20585                         "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
20586                         "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
20587                         "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
20588                         "\xe5\x79\x81\x73\xcd\x43\x59\x68"
20589                         "\x73\x02\x3b\x78\x21\x72\x43\x00"
20590                         "\x49\x17\xf7\x00\xaf\x68\x24\x53"
20591                         "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
20592                         "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
20593                         "\x11\x94\x13\x69\x51\x09\x28\xde"
20594                         "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
20595                         "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
20596                         "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
20597                         "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
20598                         "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
20599                         "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
20600                         "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
20601                         "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
20602                         "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
20603                         "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
20604                         "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
20605                         "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
20606                         "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
20607                         "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
20608                         "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
20609                         "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
20610                         "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
20611                         "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
20612                         "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
20613                         "\x69\xdc\xab\x24\x57\x60\x47\xc1"
20614                         "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
20615                         "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
20616                         "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
20617                         "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
20618                         "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
20619                         "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
20620                         "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
20621                         "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
20622                         "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
20623                         "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
20624                         "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
20625                         "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
20626                         "\x85\x62\x82\x70\x18\xe2\x9a\x78"
20627                         "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
20628                         "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
20629                         "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
20630                         "\x35\xf3\x61\x06\x72\x84\xc4\x32"
20631                         "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
20632                         "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
20633                         "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
20634                         "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
20635                         "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
20636                         "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
20637                         "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
20638                         "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
20639                         "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
20640                         "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
20641                         "\x4f\x73\x38\x09\x75\x64\x48\xe0"
20642                         "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
20643                         "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
20644                         "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
20645                         "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
20646                         "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
20647                         "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
20648                         "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
20649                         "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
20650                         "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
20651                         "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
20652                         "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
20653                         "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
20654                         "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
20655                         "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
20656                         "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
20657                         "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
20658                         "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
20659                         "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
20660                         "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
20661                         "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
20662                         "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
20663                         "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
20664                         "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
20665                         "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
20666                         "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
20667                         "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
20668                         "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
20669                         "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
20670                         "\xce\x4d\x5f\x18\x60\xce\x87\x22"
20671                         "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
20672                         "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
20673                         "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
20674                         "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
20675                         "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
20676                         "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
20677                         "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
20678                         "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
20679                         "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
20680                         "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
20681                         "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
20682                         "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
20683                         "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
20684                         "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
20685                         "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
20686                         "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
20687                         "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
20688                         "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
20689                         "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
20690                         "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
20691                         "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
20692                         "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
20693                         "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
20694                         "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
20695                         "\xce\x54\xf9\x18\x58\xb5\xff\x44"
20696                         "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
20697                         "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
20698                         "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
20699                         "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
20700                         "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
20701                         "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
20702                         "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
20703                         "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
20704                         "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
20705                         "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
20706                         "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
20707                         "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
20708                         "\x0c\xd6\x04\x14\xde\x51\x74\x75"
20709                         "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
20710                         "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
20711                         "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
20712                         "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
20713                         "\x75\x46\x65\x4e\x07\x34\x37\xa3"
20714                         "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
20715                         "\x69\x24\x0e\x38\x67\x43\x8c\xde"
20716                         "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
20717                         "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
20718                         "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
20719                         "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
20720                         "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
20721                         "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
20722                         "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
20723                         "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
20724                         "\x91\x7d\x62\x64\x96\x72\xde\xfc"
20725                         "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
20726                         "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
20727                         "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
20728                         "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
20729                         "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
20730                         "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
20731                         "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
20732                         "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
20733                         "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
20734                         "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
20735                         "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
20736                         "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
20737                         "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
20738                         "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
20739                         "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
20740                         "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
20741                         "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
20742                         "\xae\xed\x39\x88\x42\x11\x3c\xed"
20743                         "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
20744                         "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
20745                         "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
20746                         "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
20747                         "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
20748                         "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
20749                         "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
20750                         "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
20751                         "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
20752                         "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
20753                         "\x34\x17\xde\xba\x47\xf1\x06\x18"
20754                         "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
20755                         "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
20756                         "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
20757                         "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
20758                         "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
20759                         "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
20760                         "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
20761                         "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
20762                         "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
20763                         "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
20764                         "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
20765                         "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
20766                         "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
20767                         "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
20768                         "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
20769                         "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
20770                         "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
20771                         "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
20772                         "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
20773                         "\x2c\x56\x39\x79\x0f\x69\x44\x75"
20774                         "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
20775                         "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
20776                         "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
20777                         "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
20778                         "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
20779                         "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
20780                         "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
20781                         "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
20782                         "\x63\x9b\xce\x61\x24\x79\xc0\x70"
20783                         "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
20784                         "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
20785                         "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
20786                         "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
20787                         "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
20788                         "\x74\x56\x58\x40\x02\x37\x52\x2c"
20789                         "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
20790                         "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
20791                         "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
20792                         "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
20793                         "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
20794                         "\xed\x38\x80\x36\x72\x43\x27\x49"
20795                         "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
20796                         "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
20797                         "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
20798                         "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
20799                         "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
20800                         "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
20801                         "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
20802                         "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
20803                         "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
20804                         "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
20805                         "\x12\xee\x30\xfe\xd8\x30\xef\x34"
20806                         "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
20807                         "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
20808                         "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
20809                         "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
20810                         "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
20811                         "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
20812                         "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
20813                         "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
20814                         "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
20815                         "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
20816                         "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
20817                         "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
20818                         "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
20819                         "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
20820                         "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
20821                         "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
20822                         "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
20823                         "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
20824                         "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
20825                         "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
20826                         "\x44\x12\xfb\x73\x77\xd4\x13\x39"
20827                         "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
20828                         "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
20829                         "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
20830                         "\x4b\xef\x31\x18\xea\xac\xb1\x84"
20831                         "\x21\xed\xda\x86",
20832                 .rlen = 4100,
20833                 .np     = 2,
20834                 .tap    = { 4064, 36 },
20835         },
20836 };
20837
20838 static const struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
20839         { /* From RFC 3686 */
20840                 .key    = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
20841                           "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
20842                           "\x00\x00\x00\x30",
20843                 .klen   = 20,
20844                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
20845                 .input  = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
20846                           "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
20847                 .ilen   = 16,
20848                 .result = "Single block msg",
20849                 .rlen   = 16,
20850         }, {
20851                 .key    = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
20852                           "\x43\xd6\xce\x1f\x32\x53\x91\x63"
20853                           "\x00\x6c\xb6\xdb",
20854                 .klen   = 20,
20855                 .iv     = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
20856                 .input  = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
20857                           "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
20858                           "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
20859                           "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
20860                 .ilen   = 32,
20861                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20862                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20863                           "\x10\x11\x12\x13\x14\x15\x16\x17"
20864                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20865                 .rlen   = 32,
20866         }, {
20867                 .key    = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
20868                           "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
20869                           "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
20870                           "\x00\x00\x00\x48",
20871                 .klen   = 28,
20872                 .iv     = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
20873                 .input  = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
20874                           "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
20875                 .ilen   = 16,
20876                 .result = "Single block msg",
20877                 .rlen   = 16,
20878         }, {
20879                 .key    = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
20880                           "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
20881                           "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
20882                           "\x00\x96\xb0\x3b",
20883                 .klen   = 28,
20884                 .iv     = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
20885                 .input  = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
20886                           "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
20887                           "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
20888                           "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
20889                 .ilen   = 32,
20890                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20891                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20892                           "\x10\x11\x12\x13\x14\x15\x16\x17"
20893                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20894                 .rlen   = 32,
20895         }, {
20896                 .key    = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
20897                           "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
20898                           "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
20899                           "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
20900                           "\x00\x00\x00\x60",
20901                 .klen   = 36,
20902                 .iv     = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
20903                 .input  = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
20904                           "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
20905                 .ilen   = 16,
20906                 .result = "Single block msg",
20907                 .rlen   = 16,
20908         }, {
20909                 .key    = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
20910                           "\x07\x96\x36\x58\x79\xef\xf8\x86"
20911                           "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
20912                           "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
20913                           "\x00\xfa\xac\x24",
20914                 .klen   = 36,
20915                 .iv     = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
20916                 .input  = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
20917                           "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
20918                           "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
20919                           "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
20920                 .ilen   = 32,
20921                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20922                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20923                           "\x10\x11\x12\x13\x14\x15\x16\x17"
20924                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20925                 .rlen   = 32,
20926         },
20927 };
20928
20929 static const struct cipher_testvec aes_ofb_enc_tv_template[] = {
20930          /* From NIST Special Publication 800-38A, Appendix F.5 */
20931         {
20932                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20933                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20934                 .klen   = 16,
20935                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20936                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20937                 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20938                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20939                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20940                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20941                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20942                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20943                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20944                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20945                 .ilen   = 64,
20946                 .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20947                           "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20948                           "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20949                           "\x3c\x52\xda\xc5\x4e\xd8\x25"
20950                           "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20951                           "\x44\xf7\xa8\x22\x60\xed\xcc"
20952                           "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20953                           "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20954                 .rlen   = 64,
20955         }
20956 };
20957
20958 static const struct cipher_testvec aes_ofb_dec_tv_template[] = {
20959          /* From NIST Special Publication 800-38A, Appendix F.5 */
20960         {
20961                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20962                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20963                 .klen   = 16,
20964                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20965                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20966                 .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20967                           "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20968                           "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20969                           "\x3c\x52\xda\xc5\x4e\xd8\x25"
20970                           "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20971                           "\x44\xf7\xa8\x22\x60\xed\xcc"
20972                           "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20973                           "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20974                 .ilen   = 64,
20975                 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20976                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20977                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20978                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20979                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20980                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20981                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20982                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20983                 .rlen   = 64,
20984         }
20985 };
20986
20987 static const struct aead_testvec aes_gcm_enc_tv_template[] = {
20988         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
20989                 .key    = zeroed_string,
20990                 .klen   = 16,
20991                 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
20992                           "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
20993                 .rlen   = 16,
20994         }, {
20995                 .key    = zeroed_string,
20996                 .klen   = 16,
20997                 .input  = zeroed_string,
20998                 .ilen   = 16,
20999                 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
21000                           "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
21001                           "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
21002                           "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
21003                 .rlen   = 32,
21004         }, {
21005                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21006                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21007                 .klen   = 16,
21008                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21009                           "\xde\xca\xf8\x88",
21010                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21011                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21012                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21013                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21014                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21015                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21016                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21017                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21018                 .ilen   = 64,
21019                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21020                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21021                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21022                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21023                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21024                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21025                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21026                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
21027                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
21028                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
21029                 .rlen   = 80,
21030         }, {
21031                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21032                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21033                 .klen   = 16,
21034                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21035                           "\xde\xca\xf8\x88",
21036                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21037                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21038                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21039                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21040                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21041                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21042                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21043                           "\xba\x63\x7b\x39",
21044                 .ilen   = 60,
21045                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21046                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21047                           "\xab\xad\xda\xd2",
21048                 .alen   = 20,
21049                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21050                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21051                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21052                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21053                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21054                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21055                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21056                           "\x3d\x58\xe0\x91"
21057                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
21058                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
21059                 .rlen   = 76,
21060         }, {
21061                 .key    = zeroed_string,
21062                 .klen   = 24,
21063                 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
21064                           "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
21065                 .rlen   = 16,
21066         }, {
21067                 .key    = zeroed_string,
21068                 .klen   = 24,
21069                 .input  = zeroed_string,
21070                 .ilen   = 16,
21071                 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
21072                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
21073                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
21074                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
21075                 .rlen   = 32,
21076         }, {
21077                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21078                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21079                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21080                 .klen   = 24,
21081                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21082                           "\xde\xca\xf8\x88",
21083                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21084                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21085                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21086                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21087                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21088                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21089                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21090                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21091                 .ilen   = 64,
21092                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21093                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21094                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21095                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21096                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21097                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21098                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21099                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21100                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21101                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21102                 .rlen   = 80,
21103         }, {
21104                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21105                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21106                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21107                 .klen   = 24,
21108                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21109                           "\xde\xca\xf8\x88",
21110                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21111                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21112                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21113                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21114                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21115                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21116                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21117                           "\xba\x63\x7b\x39",
21118                 .ilen   = 60,
21119                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21120                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21121                           "\xab\xad\xda\xd2",
21122                 .alen   = 20,
21123                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21124                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21125                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21126                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21127                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21128                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21129                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21130                           "\xcc\xda\x27\x10"
21131                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21132                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21133                 .rlen   = 76,
21134                 .np     = 2,
21135                 .tap    = { 32, 28 },
21136                 .anp    = 2,
21137                 .atap   = { 8, 12 }
21138         }, {
21139                 .key    = zeroed_string,
21140                 .klen   = 32,
21141                 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
21142                           "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
21143                 .rlen   = 16,
21144         }
21145 };
21146
21147 static const struct aead_testvec aes_gcm_dec_tv_template[] = {
21148         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
21149                 .key    = zeroed_string,
21150                 .klen   = 32,
21151                 .input  = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
21152                           "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
21153                           "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
21154                           "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
21155                 .ilen   = 32,
21156                 .result  = zeroed_string,
21157                 .rlen   = 16,
21158         }, {
21159                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21160                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21161                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21162                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21163                 .klen   = 32,
21164                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21165                           "\xde\xca\xf8\x88",
21166                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21167                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21168                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21169                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21170                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21171                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21172                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21173                           "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
21174                           "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
21175                           "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
21176                 .ilen   = 80,
21177                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21178                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21179                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21180                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21181                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21182                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21183                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21184                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21185                 .rlen   = 64,
21186         }, {
21187                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21188                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21189                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21190                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21191                 .klen   = 32,
21192                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21193                           "\xde\xca\xf8\x88",
21194                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21195                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21196                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21197                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21198                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21199                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21200                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21201                           "\xbc\xc9\xf6\x62"
21202                           "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
21203                           "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
21204                 .ilen   = 76,
21205                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21206                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21207                           "\xab\xad\xda\xd2",
21208                 .alen   = 20,
21209                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21210                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21211                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21212                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21213                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21214                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21215                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21216                           "\xba\x63\x7b\x39",
21217                 .rlen   = 60,
21218                 .np     = 2,
21219                 .tap    = { 48, 28 },
21220                 .anp    = 3,
21221                 .atap   = { 8, 8, 4 }
21222         }, {
21223                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21224                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21225                 .klen   = 16,
21226                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21227                           "\xde\xca\xf8\x88",
21228                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21229                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21230                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21231                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21232                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21233                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21234                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21235                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
21236                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
21237                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
21238                 .ilen   = 80,
21239                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21240                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21241                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21242                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21243                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21244                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21245                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21246                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21247                 .rlen   = 64,
21248         }, {
21249                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21250                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21251                 .klen   = 16,
21252                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21253                           "\xde\xca\xf8\x88",
21254                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21255                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21256                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21257                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21258                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21259                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21260                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21261                           "\x3d\x58\xe0\x91"
21262                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
21263                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
21264                 .ilen   = 76,
21265                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21266                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21267                           "\xab\xad\xda\xd2",
21268                 .alen   = 20,
21269                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21270                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21271                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21272                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21273                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21274                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21275                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21276                           "\xba\x63\x7b\x39",
21277                 .rlen   = 60,
21278         }, {
21279                 .key    = zeroed_string,
21280                 .klen   = 24,
21281                 .input  = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
21282                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
21283                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
21284                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
21285                 .ilen   = 32,
21286                 .result  = zeroed_string,
21287                 .rlen   = 16,
21288         }, {
21289                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21290                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21291                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21292                 .klen   = 24,
21293                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21294                           "\xde\xca\xf8\x88",
21295                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21296                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21297                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21298                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21299                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21300                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21301                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21302                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21303                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21304                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21305                 .ilen   = 80,
21306                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21307                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21308                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21309                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21310                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21311                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21312                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21313                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21314                 .rlen   = 64,
21315         }, {
21316                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21317                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21318                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21319                 .klen   = 24,
21320                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21321                           "\xde\xca\xf8\x88",
21322                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21323                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21324                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21325                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21326                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21327                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21328                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21329                           "\xcc\xda\x27\x10"
21330                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21331                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21332                 .ilen   = 76,
21333                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21334                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21335                           "\xab\xad\xda\xd2",
21336                 .alen   = 20,
21337                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21338                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21339                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21340                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21341                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21342                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21343                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21344                           "\xba\x63\x7b\x39",
21345                 .rlen   = 60,
21346         }
21347 };
21348
21349 static const struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
21350         { /* Generated using Crypto++ */
21351                 .key    = zeroed_string,
21352                 .klen   = 20,
21353                 .iv     = zeroed_string,
21354                 .input  = zeroed_string,
21355                 .ilen   = 16,
21356                 .assoc  = zeroed_string,
21357                 .alen   = 16,
21358                 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
21359                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21360                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21361                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
21362                 .rlen   = 32,
21363         },{
21364                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21365                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21366                           "\x00\x00\x00\x00",
21367                 .klen   = 20,
21368                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
21369                 .input  = zeroed_string,
21370                 .ilen   = 16,
21371                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
21372                           "\x00\x00\x00\x00\x00\x00\x00\x01",
21373                 .alen   = 16,
21374                 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
21375                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21376                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21377                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
21378                 .rlen   = 32,
21379
21380         }, {
21381                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21382                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21383                           "\x00\x00\x00\x00",
21384                 .klen   = 20,
21385                 .iv     = zeroed_string,
21386                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
21387                           "\x01\x01\x01\x01\x01\x01\x01\x01",
21388                 .ilen   = 16,
21389                 .assoc  = zeroed_string,
21390                 .alen   = 16,
21391                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21392                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21393                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
21394                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
21395                 .rlen   = 32,
21396         }, {
21397                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21398                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21399                           "\x00\x00\x00\x00",
21400                 .klen   = 20,
21401                 .iv     = zeroed_string,
21402                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
21403                           "\x01\x01\x01\x01\x01\x01\x01\x01",
21404                 .ilen   = 16,
21405                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
21406                           "\x00\x00\x00\x00\x00\x00\x00\x00",
21407                 .alen   = 16,
21408                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21409                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21410                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
21411                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
21412                 .rlen   = 32,
21413         }, {
21414                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21415                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21416                           "\x00\x00\x00\x00",
21417                 .klen   = 20,
21418                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
21419                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
21420                           "\x01\x01\x01\x01\x01\x01\x01\x01",
21421                 .ilen   = 16,
21422                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
21423                           "\x00\x00\x00\x00\x00\x00\x00\x01",
21424                 .alen   = 16,
21425                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21426                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21427                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
21428                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
21429                 .rlen   = 32,
21430         }, {
21431                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21432                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21433                           "\x00\x00\x00\x00",
21434                 .klen   = 20,
21435                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
21436                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
21437                           "\x01\x01\x01\x01\x01\x01\x01\x01"
21438                           "\x01\x01\x01\x01\x01\x01\x01\x01"
21439                           "\x01\x01\x01\x01\x01\x01\x01\x01"
21440                           "\x01\x01\x01\x01\x01\x01\x01\x01"
21441                           "\x01\x01\x01\x01\x01\x01\x01\x01"
21442                           "\x01\x01\x01\x01\x01\x01\x01\x01"
21443                           "\x01\x01\x01\x01\x01\x01\x01\x01",
21444                 .ilen   = 64,
21445                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
21446                           "\x00\x00\x00\x00\x00\x00\x00\x01",
21447                 .alen   = 16,
21448                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21449                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21450                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
21451                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
21452                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
21453                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
21454                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
21455                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
21456                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
21457                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
21458                 .rlen   = 80,
21459         }, {
21460                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
21461                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
21462                           "\x00\x00\x00\x00",
21463                 .klen   = 20,
21464                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
21465                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
21466                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21467                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21468                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21469                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21470                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21471                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21472                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21473                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21474                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21475                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21476                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21477                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21478                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21479                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21480                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21481                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21482                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21483                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21484                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21485                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21486                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21487                           "\xff\xff\xff\xff\xff\xff\xff\xff"
21488                           "\xff\xff\xff\xff\xff\xff\xff\xff",
21489                 .ilen   = 192,
21490                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
21491                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
21492                           "\x89\xab\xcd\xef",
21493                 .alen   = 20,
21494                 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
21495                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
21496                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
21497                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
21498                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
21499                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
21500                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
21501                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
21502                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
21503                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
21504                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
21505                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
21506                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
21507                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
21508                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
21509                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
21510                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
21511                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
21512                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
21513                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
21514                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
21515                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
21516                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
21517                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
21518                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
21519                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
21520                 .rlen   = 208,
21521         }, { /* From draft-mcgrew-gcm-test-01 */
21522                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21523                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21524                           "\x2E\x44\x3B\x68",
21525                 .klen   = 20,
21526                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
21527                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
21528                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
21529                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
21530                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
21531                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
21532                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
21533                           "\x69\x70\x09\x63\x79\x62\x65\x72"
21534                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
21535                           "\x00\x21\x00\x01\x01\x02\x02\x01",
21536                 .ilen   = 72,
21537                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
21538                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
21539                           "\x3B\x24\x4C\xFE",
21540                 .alen   = 20,
21541                 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
21542                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
21543                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
21544                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
21545                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
21546                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
21547                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
21548                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
21549                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
21550                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
21551                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
21552                 .rlen   = 88,
21553         }, {
21554                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21555                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21556                           "\xCA\xFE\xBA\xBE",
21557                 .klen   = 20,
21558                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21559                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
21560                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
21561                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
21562                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
21563                           "\x00\x01\x00\x00\x00\x00\x00\x00"
21564                           "\x03\x73\x69\x70\x09\x63\x79\x62"
21565                           "\x65\x72\x63\x69\x74\x79\x02\x64"
21566                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
21567                 .ilen   = 64,
21568                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21569                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21570                 .alen   = 16,
21571                 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
21572                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
21573                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
21574                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
21575                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
21576                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
21577                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
21578                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
21579                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
21580                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
21581                 .rlen   = 80,
21582         }, {
21583                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21584                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21585                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21586                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21587                           "\x11\x22\x33\x44",
21588                 .klen   = 36,
21589                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
21590                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
21591                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
21592                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
21593                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
21594                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
21595                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
21596                           "\x01\x02\x02\x01",
21597                 .ilen   = 52,
21598                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
21599                           "\x01\x02\x03\x04\x05\x06\x07\x08",
21600                 .alen   = 16,
21601                 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
21602                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
21603                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
21604                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
21605                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
21606                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
21607                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
21608                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
21609                           "\x15\x95\x6C\x96",
21610                 .rlen   = 68,
21611         }, {
21612                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
21613                           "\x00\x00\x00\x00\x00\x00\x00\x00"
21614                           "\x00\x00\x00\x00",
21615                 .klen   = 20,
21616                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
21617                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
21618                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
21619                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
21620                           "\x02\x00\x44\x00\x61\x62\x63\x64"
21621                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21622                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21623                           "\x75\x76\x77\x61\x62\x63\x64\x65"
21624                           "\x66\x67\x68\x69\x01\x02\x02\x01",
21625                 .ilen   = 64,
21626                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
21627                           "\x00\x00\x00\x00\x00\x00\x00\x00",
21628                 .alen   = 16,
21629                 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
21630                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
21631                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
21632                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
21633                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
21634                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
21635                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
21636                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
21637                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
21638                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
21639                 .rlen   = 80,
21640         }, {
21641                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21642                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21643                           "\x57\x69\x0E\x43",
21644                 .klen   = 20,
21645                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21646                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
21647                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
21648                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
21649                           "\x02\x00\x43\x00\x61\x62\x63\x64"
21650                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21651                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21652                           "\x75\x76\x77\x61\x62\x63\x64\x65"
21653                           "\x66\x67\x68\x69\x01\x02\x02\x01",
21654                 .ilen   = 64,
21655                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21656                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
21657                           "\xA2\xFC\xA1\xA3",
21658                 .alen   = 20,
21659                 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
21660                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
21661                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
21662                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
21663                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21664                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21665                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
21666                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
21667                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
21668                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
21669                 .rlen   = 80,
21670         }, {
21671                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21672                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21673                           "\x57\x69\x0E\x43",
21674                 .klen   = 20,
21675                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21676                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
21677                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
21678                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
21679                           "\x01\x02\x02\x01",
21680                 .ilen   = 28,
21681                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21682                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
21683                           "\xA2\xFC\xA1\xA3",
21684                 .alen   = 20,
21685                 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
21686                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
21687                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
21688                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
21689                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
21690                           "\xE7\xD0\x5D\x35",
21691                 .rlen   = 44,
21692         }, {
21693                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21694                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21695                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21696                           "\xCA\xFE\xBA\xBE",
21697                 .klen   = 28,
21698                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21699                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
21700                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
21701                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
21702                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
21703                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
21704                 .ilen   = 40,
21705                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21706                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21707                 .alen   = 16,
21708                 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
21709                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
21710                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
21711                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
21712                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
21713                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
21714                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
21715                 .rlen   = 56,
21716         }, {
21717                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21718                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21719                           "\xDE\xCA\xF8\x88",
21720                 .klen   = 20,
21721                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21722                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
21723                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
21724                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21725                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
21726                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
21727                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
21728                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
21729                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
21730                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
21731                           "\x23\x01\x01\x01",
21732                 .ilen   = 76,
21733                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
21734                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21735                           "\xCE\xFA\xCE\x74",
21736                 .alen   = 20,
21737                 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
21738                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
21739                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
21740                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
21741                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
21742                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
21743                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
21744                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
21745                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
21746                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
21747                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
21748                           "\x69\x62\x34\x36",
21749                 .rlen   = 92,
21750         }, {
21751                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21752                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21753                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21754                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21755                           "\x73\x61\x6C\x74",
21756                 .klen   = 36,
21757                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21758                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
21759                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
21760                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
21761                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
21762                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
21763                 .ilen   = 40,
21764                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
21765                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21766                           "\x69\x76\x65\x63",
21767                 .alen   = 20,
21768                 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
21769                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
21770                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
21771                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
21772                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
21773                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
21774                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
21775                 .rlen   = 56,
21776         }, {
21777                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21778                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21779                           "\x57\x69\x0E\x43",
21780                 .klen   = 20,
21781                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21782                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
21783                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
21784                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21785                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
21786                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
21787                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
21788                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
21789                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
21790                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
21791                           "\x15\x01\x01\x01",
21792                 .ilen   = 76,
21793                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21794                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
21795                           "\xA2\xFC\xA1\xA3",
21796                 .alen   = 20,
21797                 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
21798                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
21799                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
21800                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
21801                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
21802                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
21803                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
21804                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
21805                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
21806                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
21807                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
21808                           "\x8C\xAA\x81\xE2",
21809                 .rlen   = 92,
21810         }, {
21811                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21812                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21813                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21814                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21815                           "\x73\x61\x6C\x74",
21816                 .klen   = 36,
21817                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21818                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
21819                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
21820                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
21821                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
21822                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
21823                           "\x67\x69\x65\x73\x01\x74\x68\x61"
21824                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
21825                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
21826                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
21827                 .ilen   = 72,
21828                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
21829                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21830                           "\x69\x76\x65\x63",
21831                 .alen   = 20,
21832                 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
21833                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
21834                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
21835                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
21836                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
21837                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
21838                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
21839                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
21840                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
21841                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
21842                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
21843                 .rlen   = 88,
21844         }, {
21845                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
21846                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
21847                           "\xD9\x66\x42\x67",
21848                 .klen   = 20,
21849                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21850                 .input  = "\x01\x02\x02\x01",
21851                 .ilen   = 4,
21852                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
21853                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21854                 .alen   = 16,
21855                 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
21856                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
21857                           "\x04\xBE\xF2\x70",
21858                 .rlen   = 20,
21859         }, {
21860                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21861                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21862                           "\xDE\xCA\xF8\x88",
21863                 .klen   = 20,
21864                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21865                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
21866                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
21867                           "\x62\x65\x00\x01",
21868                 .ilen   = 20,
21869                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
21870                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21871                           "\xCE\xFA\xCE\x74",
21872                 .alen   = 20,
21873                 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
21874                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
21875                           "\x43\x33\x21\x64\x41\x25\x03\x52"
21876                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
21877                           "\x43\xAF\x8C\x3E",
21878                 .rlen   = 36,
21879         }, {
21880                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
21881                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
21882                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
21883                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
21884                           "\x74\x75\x72\x6E",
21885                 .klen   = 36,
21886                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
21887                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21888                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21889                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21890                           "\x02\x00\x07\x00\x61\x62\x63\x64"
21891                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21892                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21893                           "\x01\x02\x02\x01",
21894                 .ilen   = 52,
21895                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
21896                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
21897                           "\x67\x65\x74\x6D",
21898                 .alen   = 20,
21899                 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
21900                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
21901                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
21902                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
21903                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
21904                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
21905                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
21906                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
21907                           "\x9F\xB4\xC0\x53",
21908                 .rlen   = 68,
21909         }, {
21910                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21911                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21912                           "\x57\x69\x0E\x43",
21913                 .klen   = 20,
21914                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21915                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21916                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21917                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21918                           "\x02\x00\x07\x00\x61\x62\x63\x64"
21919                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21920                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21921                           "\x01\x02\x02\x01",
21922                 .ilen   = 52,
21923                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
21924                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
21925                           "\xA2\xFC\xA1\xA3",
21926                 .alen   = 20,
21927                 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
21928                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
21929                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
21930                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
21931                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21932                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21933                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
21934                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
21935                           "\x40\xD7\xCB\x05",
21936                 .rlen   = 68,
21937         }, {
21938                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21939                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21940                           "\x22\x43\x3C\x64",
21941                 .klen   = 20,
21942                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
21943                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
21944                           "\x61\x62\x63\x64\x65\x66\x67\x68"
21945                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
21946                           "\x71\x72\x73\x74\x01\x02\x02\x01",
21947                 .ilen   = 32,
21948                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
21949                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
21950                           "\x3A\x23\x4B\xFD",
21951                 .alen   = 20,
21952                 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
21953                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
21954                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
21955                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
21956                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
21957                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
21958                 .rlen   = 48,
21959         }
21960 };
21961
21962 static const struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
21963         { /* Generated using Crypto++ */
21964                 .key    = zeroed_string,
21965                 .klen   = 20,
21966                 .iv     = zeroed_string,
21967                 .input  = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
21968                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21969                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21970                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
21971                 .ilen   = 32,
21972                 .assoc  = zeroed_string,
21973                 .alen   = 16,
21974                 .result = zeroed_string,
21975                 .rlen   = 16,
21976
21977         },{
21978                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21979                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21980                           "\x00\x00\x00\x00",
21981                 .klen   = 20,
21982                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
21983                 .input  = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
21984                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21985                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21986                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
21987                 .ilen   = 32,
21988                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
21989                           "\x00\x00\x00\x00\x00\x00\x00\x01",
21990                 .alen   = 16,
21991                 .result = zeroed_string,
21992                 .rlen   = 16,
21993         }, {
21994                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21995                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21996                           "\x00\x00\x00\x00",
21997                 .klen   = 20,
21998                 .iv     = zeroed_string,
21999                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
22000                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
22001                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
22002                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
22003                 .ilen   = 32,
22004                 .assoc  = zeroed_string,
22005                 .alen   = 16,
22006                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
22007                           "\x01\x01\x01\x01\x01\x01\x01\x01",
22008                 .rlen   = 16,
22009         }, {
22010                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
22011                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
22012                           "\x00\x00\x00\x00",
22013                 .klen   = 20,
22014                 .iv     = zeroed_string,
22015                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
22016                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
22017                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
22018                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
22019                 .ilen   = 32,
22020                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
22021                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22022                 .alen   = 16,
22023                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
22024                           "\x01\x01\x01\x01\x01\x01\x01\x01",
22025                 .rlen   = 16,
22026
22027         }, {
22028                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
22029                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
22030                           "\x00\x00\x00\x00",
22031                 .klen   = 20,
22032                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
22033                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
22034                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
22035                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
22036                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
22037                 .ilen   = 32,
22038                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
22039                           "\x00\x00\x00\x00\x00\x00\x00\x01",
22040                 .alen   = 16,
22041                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
22042                           "\x01\x01\x01\x01\x01\x01\x01\x01",
22043                 .rlen   = 16,
22044         }, {
22045                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
22046                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
22047                           "\x00\x00\x00\x00",
22048                 .klen   = 20,
22049                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
22050                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
22051                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
22052                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
22053                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
22054                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
22055                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
22056                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
22057                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
22058                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
22059                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
22060                 .ilen   = 80,
22061                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
22062                           "\x00\x00\x00\x00\x00\x00\x00\x01",
22063                 .alen   = 16,
22064                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
22065                           "\x01\x01\x01\x01\x01\x01\x01\x01"
22066                           "\x01\x01\x01\x01\x01\x01\x01\x01"
22067                           "\x01\x01\x01\x01\x01\x01\x01\x01"
22068                           "\x01\x01\x01\x01\x01\x01\x01\x01"
22069                           "\x01\x01\x01\x01\x01\x01\x01\x01"
22070                           "\x01\x01\x01\x01\x01\x01\x01\x01"
22071                           "\x01\x01\x01\x01\x01\x01\x01\x01",
22072                 .rlen   = 64,
22073         }, {
22074                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
22075                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22076                           "\x00\x00\x00\x00",
22077                 .klen   = 20,
22078                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
22079                 .input  = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
22080                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
22081                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
22082                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
22083                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
22084                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
22085                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
22086                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
22087                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
22088                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
22089                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
22090                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
22091                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
22092                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
22093                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
22094                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
22095                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
22096                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
22097                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
22098                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
22099                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
22100                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
22101                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
22102                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
22103                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
22104                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
22105                 .ilen   = 208,
22106                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
22107                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
22108                           "\x89\xab\xcd\xef",
22109                 .alen   = 20,
22110                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
22111                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22112                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22113                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22114                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22115                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22116                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22117                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22118                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22119                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22120                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22121                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22122                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22123                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22124                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22125                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22126                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22127                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22128                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22129                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22130                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22131                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22132                           "\xff\xff\xff\xff\xff\xff\xff\xff"
22133                           "\xff\xff\xff\xff\xff\xff\xff\xff",
22134                 .rlen   = 192,
22135         }, {
22136                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22137                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22138                           "\x2E\x44\x3B\x68",
22139                 .klen   = 20,
22140                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
22141                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
22142                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
22143                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
22144                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
22145                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
22146                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
22147                           "\x69\x70\x09\x63\x79\x62\x65\x72"
22148                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
22149                           "\x00\x21\x00\x01\x01\x02\x02\x01",
22150                 .rlen   = 72,
22151                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
22152                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
22153                           "\x3B\x24\x4C\xFE",
22154                 .alen   = 20,
22155                 .input  = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
22156                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
22157                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
22158                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
22159                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
22160                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
22161                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
22162                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
22163                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
22164                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
22165                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
22166                 .ilen   = 88,
22167         }, {
22168                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22169                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22170                           "\xCA\xFE\xBA\xBE",
22171                 .klen   = 20,
22172                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22173                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
22174                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
22175                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
22176                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
22177                           "\x00\x01\x00\x00\x00\x00\x00\x00"
22178                           "\x03\x73\x69\x70\x09\x63\x79\x62"
22179                           "\x65\x72\x63\x69\x74\x79\x02\x64"
22180                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
22181                 .rlen   = 64,
22182                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22183                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22184                 .alen   = 16,
22185                 .input  = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
22186                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
22187                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
22188                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
22189                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
22190                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
22191                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
22192                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
22193                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
22194                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
22195                 .ilen   = 80,
22196         }, {
22197                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22198                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22199                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22200                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22201                           "\x11\x22\x33\x44",
22202                 .klen   = 36,
22203                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
22204                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
22205                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
22206                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
22207                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
22208                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
22209                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
22210                           "\x01\x02\x02\x01",
22211                 .rlen   = 52,
22212                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
22213                           "\x01\x02\x03\x04\x05\x06\x07\x08",
22214                 .alen   = 16,
22215                 .input  = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
22216                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
22217                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
22218                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
22219                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
22220                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
22221                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
22222                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
22223                           "\x15\x95\x6C\x96",
22224                 .ilen   = 68,
22225         }, {
22226                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
22227                           "\x00\x00\x00\x00\x00\x00\x00\x00"
22228                           "\x00\x00\x00\x00",
22229                 .klen   = 20,
22230                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
22231                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
22232                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
22233                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
22234                           "\x02\x00\x44\x00\x61\x62\x63\x64"
22235                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22236                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22237                           "\x75\x76\x77\x61\x62\x63\x64\x65"
22238                           "\x66\x67\x68\x69\x01\x02\x02\x01",
22239                 .rlen   = 64,
22240                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
22241                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22242                 .alen   = 16,
22243                 .input  = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
22244                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
22245                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
22246                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
22247                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
22248                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
22249                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
22250                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
22251                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
22252                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
22253                 .ilen   = 80,
22254         }, {
22255                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22256                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22257                           "\x57\x69\x0E\x43",
22258                 .klen   = 20,
22259                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22260                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
22261                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
22262                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
22263                           "\x02\x00\x43\x00\x61\x62\x63\x64"
22264                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22265                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22266                           "\x75\x76\x77\x61\x62\x63\x64\x65"
22267                           "\x66\x67\x68\x69\x01\x02\x02\x01",
22268                 .rlen   = 64,
22269                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22270                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
22271                           "\xA2\xFC\xA1\xA3",
22272                 .alen   = 20,
22273                 .input  = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
22274                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
22275                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
22276                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
22277                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22278                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22279                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
22280                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
22281                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
22282                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
22283                 .ilen   = 80,
22284         }, {
22285                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22286                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22287                           "\x57\x69\x0E\x43",
22288                 .klen   = 20,
22289                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22290                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
22291                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
22292                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
22293                           "\x01\x02\x02\x01",
22294                 .rlen   = 28,
22295                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22296                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
22297                           "\xA2\xFC\xA1\xA3",
22298                 .alen   = 20,
22299                 .input  = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
22300                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
22301                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
22302                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
22303                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
22304                           "\xE7\xD0\x5D\x35",
22305                 .ilen   = 44,
22306         }, {
22307                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22308                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22309                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22310                           "\xCA\xFE\xBA\xBE",
22311                 .klen   = 28,
22312                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22313                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
22314                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
22315                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
22316                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
22317                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
22318                 .rlen   = 40,
22319                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22320                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22321                 .alen   = 16,
22322                 .input  = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
22323                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
22324                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
22325                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
22326                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
22327                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
22328                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
22329                 .ilen   = 56,
22330         }, {
22331                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22332                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22333                           "\xDE\xCA\xF8\x88",
22334                 .klen   = 20,
22335                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22336                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
22337                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
22338                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22339                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
22340                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
22341                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
22342                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
22343                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
22344                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
22345                           "\x23\x01\x01\x01",
22346                 .rlen   = 76,
22347                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
22348                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22349                           "\xCE\xFA\xCE\x74",
22350                 .alen   = 20,
22351                 .input  = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
22352                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
22353                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
22354                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
22355                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
22356                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
22357                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
22358                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
22359                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
22360                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
22361                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
22362                           "\x69\x62\x34\x36",
22363                 .ilen   = 92,
22364         }, {
22365                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22366                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22367                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22368                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22369                           "\x73\x61\x6C\x74",
22370                 .klen   = 36,
22371                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22372                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
22373                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
22374                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
22375                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
22376                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
22377                 .rlen   = 40,
22378                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
22379                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22380                           "\x69\x76\x65\x63",
22381                 .alen   = 20,
22382                 .input  = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
22383                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
22384                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
22385                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
22386                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
22387                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
22388                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
22389                 .ilen   = 56,
22390         }, {
22391                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22392                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22393                           "\x57\x69\x0E\x43",
22394                 .klen   = 20,
22395                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22396                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
22397                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
22398                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22399                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
22400                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
22401                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
22402                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
22403                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
22404                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
22405                           "\x15\x01\x01\x01",
22406                 .rlen   = 76,
22407                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22408                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
22409                           "\xA2\xFC\xA1\xA3",
22410                 .alen   = 20,
22411                 .input  = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
22412                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
22413                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
22414                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
22415                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
22416                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
22417                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
22418                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
22419                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
22420                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
22421                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
22422                           "\x8C\xAA\x81\xE2",
22423                 .ilen   = 92,
22424         }, {
22425                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22426                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22427                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22428                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22429                           "\x73\x61\x6C\x74",
22430                 .klen   = 36,
22431                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22432                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
22433                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
22434                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
22435                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
22436                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
22437                           "\x67\x69\x65\x73\x01\x74\x68\x61"
22438                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
22439                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
22440                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
22441                 .rlen   = 72,
22442                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
22443                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22444                           "\x69\x76\x65\x63",
22445                 .alen   = 20,
22446                 .input  = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
22447                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
22448                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
22449                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
22450                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
22451                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
22452                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
22453                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
22454                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
22455                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
22456                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
22457                 .ilen   = 88,
22458         }, {
22459                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
22460                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
22461                           "\xD9\x66\x42\x67",
22462                 .klen   = 20,
22463                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22464                 .result = "\x01\x02\x02\x01",
22465                 .rlen   = 4,
22466                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
22467                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22468                 .alen   = 16,
22469                 .input  = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
22470                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
22471                           "\x04\xBE\xF2\x70",
22472                 .ilen   = 20,
22473         }, {
22474                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22475                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22476                           "\xDE\xCA\xF8\x88",
22477                 .klen   = 20,
22478                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22479                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
22480                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
22481                           "\x62\x65\x00\x01",
22482                 .rlen   = 20,
22483                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
22484                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22485                           "\xCE\xFA\xCE\x74",
22486                 .alen   = 20,
22487                 .input  = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
22488                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
22489                           "\x43\x33\x21\x64\x41\x25\x03\x52"
22490                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
22491                           "\x43\xAF\x8C\x3E",
22492                 .ilen   = 36,
22493         }, {
22494                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
22495                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
22496                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
22497                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
22498                           "\x74\x75\x72\x6E",
22499                 .klen   = 36,
22500                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
22501                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22502                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22503                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22504                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22505                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22506                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22507                           "\x01\x02\x02\x01",
22508                 .rlen   = 52,
22509                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
22510                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
22511                           "\x67\x65\x74\x6D",
22512                 .alen   = 20,
22513                 .input  = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
22514                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
22515                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
22516                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
22517                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
22518                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
22519                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
22520                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
22521                           "\x9F\xB4\xC0\x53",
22522                 .ilen   = 68,
22523         }, {
22524                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22525                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22526                           "\x57\x69\x0E\x43",
22527                 .klen   = 20,
22528                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22529                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22530                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22531                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22532                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22533                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22534                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22535                           "\x01\x02\x02\x01",
22536                 .rlen   = 52,
22537                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
22538                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
22539                           "\xA2\xFC\xA1\xA3",
22540                 .alen   = 20,
22541                 .input  = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
22542                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
22543                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
22544                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
22545                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22546                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22547                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
22548                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
22549                           "\x40\xD7\xCB\x05",
22550                 .ilen   = 68,
22551         }, {
22552                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22553                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22554                           "\x22\x43\x3C\x64",
22555                 .klen   = 20,
22556                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
22557                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
22558                           "\x61\x62\x63\x64\x65\x66\x67\x68"
22559                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
22560                           "\x71\x72\x73\x74\x01\x02\x02\x01",
22561                 .rlen   = 32,
22562                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
22563                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
22564                           "\x3A\x23\x4B\xFD",
22565                 .alen   = 20,
22566                 .input  = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
22567                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
22568                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
22569                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
22570                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
22571                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
22572                 .ilen   = 48,
22573         }
22574 };
22575
22576 static const struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
22577         { /* From draft-mcgrew-gcm-test-01 */
22578                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22579                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22580                           "\x22\x43\x3c\x64",
22581                 .klen   = 20,
22582                 .iv     = zeroed_string,
22583                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
22584                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22585                 .alen   = 16,
22586                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22587                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22588                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22589                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22590                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22591                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22592                           "\x01\x02\x02\x01",
22593                 .ilen   = 52,
22594                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22595                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22596                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22597                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22598                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22599                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22600                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22601                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22602                           "\xe4\x09\x9a\xaa",
22603                 .rlen   = 68,
22604         }
22605 };
22606
22607 static const struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
22608         { /* From draft-mcgrew-gcm-test-01 */
22609                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22610                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22611                           "\x22\x43\x3c\x64",
22612                 .klen   = 20,
22613                 .iv     = zeroed_string,
22614                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
22615                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22616                 .alen   = 16,
22617                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22618                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22619                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22620                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22621                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22622                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22623                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22624                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22625                           "\xe4\x09\x9a\xaa",
22626                 .ilen   = 68,
22627                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22628                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22629                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22630                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22631                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22632                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22633                           "\x01\x02\x02\x01",
22634                 .rlen   = 52,
22635         }, { /* nearly same as previous, but should fail */
22636                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22637                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22638                           "\x22\x43\x3c\x64",
22639                 .klen   = 20,
22640                 .iv     = zeroed_string,
22641                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
22642                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22643                 .alen   = 16,
22644                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22645                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22646                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22647                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22648                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22649                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22650                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22651                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22652                           "\x00\x00\x00\x00",
22653                 .ilen   = 68,
22654                 .novrfy = 1,
22655                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22656                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22657                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22658                           "\x02\x00\x07\x00\x61\x62\x63\x64"
22659                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22660                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22661                           "\x01\x02\x02\x01",
22662                 .rlen   = 52,
22663         },
22664 };
22665
22666 static const struct aead_testvec aes_ccm_enc_tv_template[] = {
22667         { /* From RFC 3610 */
22668                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22669                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22670                 .klen   = 16,
22671                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
22672                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22673                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
22674                 .alen   = 8,
22675                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22676                           "\x10\x11\x12\x13\x14\x15\x16\x17"
22677                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22678                 .ilen   = 23,
22679                 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22680                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22681                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22682                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22683                 .rlen   = 31,
22684         }, {
22685                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22686                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22687                 .klen   = 16,
22688                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
22689                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22690                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
22691                           "\x08\x09\x0a\x0b",
22692                 .alen   = 12,
22693                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22694                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22695                           "\x1c\x1d\x1e\x1f",
22696                 .ilen   = 20,
22697                 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22698                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22699                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22700                           "\x7d\x9c\x2d\x93",
22701                 .rlen   = 28,
22702         }, {
22703                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22704                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22705                 .klen   = 16,
22706                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22707                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22708                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
22709                 .alen   = 8,
22710                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22711                           "\x10\x11\x12\x13\x14\x15\x16\x17"
22712                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22713                           "\x20",
22714                 .ilen   = 25,
22715                 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22716                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22717                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22718                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22719                           "\x7e\x5f\x4e",
22720                 .rlen   = 35,
22721         }, {
22722                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22723                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22724                 .klen   = 16,
22725                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
22726                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22727                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
22728                           "\x08\x09\x0a\x0b",
22729                 .alen   = 12,
22730                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22731                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22732                           "\x1c\x1d\x1e",
22733                 .ilen   = 19,
22734                 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
22735                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
22736                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
22737                           "\x4d\x99\x99\x88\xdd",
22738                 .rlen   = 29,
22739         }, {
22740                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22741                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22742                 .klen   = 16,
22743                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
22744                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22745                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
22746                 .alen   = 8,
22747                 .input  = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
22748                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
22749                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
22750                 .ilen   = 24,
22751                 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
22752                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
22753                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
22754                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
22755                 .rlen   = 32,
22756         }, {
22757                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22758                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22759                 .klen   = 16,
22760                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
22761                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22762                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
22763                           "\x20\xea\x60\xc0",
22764                 .alen   = 12,
22765                 .input  = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
22766                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
22767                           "\x3a\x80\x3b\xa8\x7f",
22768                 .ilen   = 21,
22769                 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
22770                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
22771                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
22772                           "\x5a\xe0\x70\x45\x51",
22773                 .rlen   = 29,
22774         }, {
22775                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22776                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22777                 .klen   = 16,
22778                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
22779                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22780                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
22781                 .alen   = 8,
22782                 .input  = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
22783                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
22784                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
22785                 .ilen   = 23,
22786                 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
22787                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
22788                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
22789                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
22790                           "\xba",
22791                 .rlen   = 33,
22792         }, {
22793                 /* This is taken from FIPS CAVS. */
22794                 .key    = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
22795                           "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
22796                 .klen   = 16,
22797                 .iv     = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
22798                 .alen   = 0,
22799                 .input  = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
22800                           "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
22801                           "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
22802                           "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
22803                 .ilen   = 32,
22804                 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
22805                           "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
22806                           "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
22807                           "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
22808                           "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
22809                           "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
22810                 .rlen   = 48,
22811         }, {
22812                 .key    = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
22813                           "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
22814                 .klen   = 16,
22815                 .iv     = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
22816                           "\x30\x60\x15\x56\x00\x00\x00\x00",
22817                 .assoc  = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
22818                           "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
22819                           "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
22820                           "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
22821                 .alen   = 32,
22822                 .input  = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
22823                           "\xa9\x28\x63\xba\x12\xa3\x14\x85"
22824                           "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
22825                           "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
22826                 .ilen   = 32,
22827                 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
22828                           "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
22829                           "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
22830                           "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
22831                           "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
22832                           "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
22833                 .rlen   = 48,
22834         }, {
22835                 .key    = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
22836                           "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
22837                           "\x53\x14\x73\x66\x8d\x88\xf6\x80",
22838                 .klen   = 24,
22839                 .iv     = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
22840                           "\x50\x20\xda\xe2\x00\x00\x00\x00",
22841                 .assoc  = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
22842                           "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
22843                           "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
22844                           "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
22845                 .alen   = 32,
22846                 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
22847                           "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
22848                 .rlen   = 16,
22849         }, {
22850                 .key    = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
22851                           "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
22852                           "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
22853                 .klen   = 24,
22854                 .iv     = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
22855                           "\xef\x09\x2e\x94\x00\x00\x00\x00",
22856                 .assoc  = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
22857                           "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
22858                           "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
22859                           "\xe3\x00\x73\x69\x84\x69\x87\x79",
22860                 .alen   = 32,
22861                 .input  = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
22862                           "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
22863                           "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
22864                           "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
22865                 .ilen   = 32,
22866                 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
22867                           "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
22868                           "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
22869                           "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
22870                           "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
22871                           "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
22872                 .rlen   = 48,
22873         }, {
22874                 .key    = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
22875                           "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
22876                           "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
22877                           "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
22878                 .klen   = 32,
22879                 .iv     = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
22880                           "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
22881                 .assoc  = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
22882                           "\x78\x2b\x94\x02\x29\x0f\x42\x27"
22883                           "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
22884                           "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
22885                 .alen   = 32,
22886                 .input  = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
22887                           "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
22888                           "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
22889                           "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
22890                 .ilen   = 32,
22891                 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
22892                           "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
22893                           "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
22894                           "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
22895                           "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
22896                 .rlen   = 40,
22897         }, {
22898                 .key    = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
22899                           "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
22900                           "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
22901                           "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
22902                 .klen   = 32,
22903                 .iv     = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
22904                           "\x43\xf6\x1e\x50\0\0\0\0",
22905                 .assoc  = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
22906                           "\x13\x02\x01\x0c\x83\x4c\x96\x35"
22907                           "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
22908                           "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
22909                 .alen   = 32,
22910                 .input  = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
22911                           "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
22912                           "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
22913                           "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
22914                 .ilen   = 32,
22915                 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
22916                           "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
22917                           "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
22918                           "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
22919                           "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
22920                           "\x7b\x72\x8a\xf7",
22921                 .rlen   = 44,
22922         }, {
22923                 .key    = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
22924                           "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
22925                           "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
22926                           "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
22927                 .klen   = 32,
22928                 .iv     = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
22929                           "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
22930                 .assoc  = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
22931                           "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
22932                           "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
22933                           "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
22934                 .alen   = 32,
22935                 .input  = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
22936                           "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
22937                           "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
22938                           "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
22939                 .ilen   = 32,
22940                 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
22941                           "\xef\xbb\x80\x21\x04\x6c\x58\x09"
22942                           "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
22943                           "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
22944                           "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
22945                           "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
22946                 .rlen   = 48,
22947         }
22948 };
22949
22950 static const struct aead_testvec aes_ccm_dec_tv_template[] = {
22951         { /* From RFC 3610 */
22952                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22953                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22954                 .klen   = 16,
22955                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
22956                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22957                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
22958                 .alen   = 8,
22959                 .input  = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22960                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22961                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22962                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22963                 .ilen   = 31,
22964                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22965                           "\x10\x11\x12\x13\x14\x15\x16\x17"
22966                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22967                 .rlen   = 23,
22968         }, {
22969                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22970                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22971                 .klen   = 16,
22972                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
22973                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22974                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
22975                           "\x08\x09\x0a\x0b",
22976                 .alen   = 12,
22977                 .input  = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22978                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22979                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22980                           "\x7d\x9c\x2d\x93",
22981                 .ilen   = 28,
22982                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22983                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22984                           "\x1c\x1d\x1e\x1f",
22985                 .rlen   = 20,
22986         }, {
22987                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22988                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22989                 .klen   = 16,
22990                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22991                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22992                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
22993                 .alen   = 8,
22994                 .input  = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22995                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22996                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22997                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22998                           "\x7e\x5f\x4e",
22999                 .ilen   = 35,
23000                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23001                           "\x10\x11\x12\x13\x14\x15\x16\x17"
23002                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23003                           "\x20",
23004                 .rlen   = 25,
23005         }, {
23006                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23007                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
23008                 .klen   = 16,
23009                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
23010                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
23011                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
23012                           "\x08\x09\x0a\x0b",
23013                 .alen   = 12,
23014                 .input  = "\x07\x34\x25\x94\x15\x77\x85\x15"
23015                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
23016                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
23017                           "\x4d\x99\x99\x88\xdd",
23018                 .ilen   = 29,
23019                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
23020                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
23021                           "\x1c\x1d\x1e",
23022                 .rlen   = 19,
23023         }, {
23024                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
23025                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
23026                 .klen   = 16,
23027                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
23028                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
23029                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
23030                 .alen   = 8,
23031                 .input  = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
23032                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
23033                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
23034                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
23035                 .ilen   = 32,
23036                 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
23037                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
23038                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
23039                 .rlen   = 24,
23040         }, {
23041                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
23042                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
23043                 .klen   = 16,
23044                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
23045                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
23046                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
23047                           "\x20\xea\x60\xc0",
23048                 .alen   = 12,
23049                 .input  = "\x00\x97\x69\xec\xab\xdf\x48\x62"
23050                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
23051                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
23052                           "\x5a\xe0\x70\x45\x51",
23053                 .ilen   = 29,
23054                 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
23055                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
23056                           "\x3a\x80\x3b\xa8\x7f",
23057                 .rlen   = 21,
23058         }, {
23059                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
23060                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
23061                 .klen   = 16,
23062                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
23063                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
23064                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
23065                 .alen   = 8,
23066                 .input  = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
23067                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
23068                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
23069                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
23070                           "\xba",
23071                 .ilen   = 33,
23072                 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
23073                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
23074                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
23075                 .rlen   = 23,
23076         }, {
23077                 /* This is taken from FIPS CAVS. */
23078                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
23079                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
23080                 .klen   = 16,
23081                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
23082                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
23083                 .alen   = 0,
23084                 .input  = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
23085                 .ilen   = 8,
23086                 .result = "\x00",
23087                 .rlen   = 0,
23088                 .novrfy = 1,
23089         }, {
23090                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
23091                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
23092                 .klen   = 16,
23093                 .iv     = "\x03\xaf\x94\x87\x78\x35\x82\x81"
23094                           "\x7f\x88\x94\x68\x00\x00\x00\x00",
23095                 .alen   = 0,
23096                 .input  = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
23097                 .ilen   = 8,
23098                 .result = "\x00",
23099                 .rlen   = 0,
23100         }, {
23101                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23102                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23103                 .klen   = 16,
23104                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
23105                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
23106                 .assoc  = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
23107                           "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
23108                           "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
23109                           "\xd8\x94\x99\x91\x81\x54\x62\x57",
23110                 .alen   = 32,
23111                 .input  = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
23112                           "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
23113                           "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
23114                           "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
23115                           "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
23116                           "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
23117                 .ilen   = 48,
23118                 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
23119                           "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
23120                           "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
23121                           "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
23122                 .rlen   = 32,
23123                 .novrfy = 1,
23124         }, {
23125                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23126                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23127                 .klen   = 16,
23128                 .iv     = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
23129                           "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
23130                 .assoc  = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
23131                           "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
23132                           "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
23133                           "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
23134                 .alen   = 32,
23135                 .input  = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
23136                           "\xad\x83\x52\x6d\x71\x03\x25\x1c"
23137                           "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
23138                           "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
23139                           "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
23140                           "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
23141                 .ilen   = 48,
23142                 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
23143                           "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
23144                           "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
23145                           "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
23146                 .rlen   = 32,
23147         }, {
23148                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23149                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23150                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
23151                 .klen   = 24,
23152                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23153                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23154                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23155                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23156                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23157                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
23158                 .alen   = 32,
23159                 .input  = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
23160                 .ilen   = 8,
23161                 .result = "\x00",
23162                 .rlen   = 0,
23163         }, {
23164                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23165                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23166                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23167                 .klen   = 24,
23168                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23169                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23170                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23171                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23172                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23173                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
23174                 .alen   = 32,
23175                 .input  = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
23176                           "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
23177                           "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
23178                           "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
23179                           "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
23180                 .ilen   = 40,
23181                 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
23182                           "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
23183                           "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
23184                           "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
23185                 .rlen   = 32,
23186         }, {
23187                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23188                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23189                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23190                 .klen   = 24,
23191                 .iv     = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
23192                           "\xad\x71\xaa\x1f\x00\x00\x00\x00",
23193                 .assoc  = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
23194                           "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
23195                           "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
23196                           "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
23197                 .alen   = 32,
23198                 .input  = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
23199                           "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
23200                           "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
23201                           "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
23202                           "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
23203                           "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
23204                 .ilen   = 48,
23205                 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
23206                           "\x99\x2a\xa8\xca\x04\x25\x45\x90"
23207                           "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
23208                           "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
23209                 .rlen   = 32,
23210                 .novrfy = 1,
23211         }, {
23212                 .key    = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
23213                           "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
23214                           "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
23215                           "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
23216                 .klen   = 32,
23217                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23218                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23219                 .alen   = 0,
23220                 .input  = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
23221                 .ilen   = 8,
23222                 .result = "\x00",
23223                 .rlen   = 0,
23224         }, {
23225                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23226                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23227                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
23228                           "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
23229                 .klen   = 32,
23230                 .iv     = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
23231                           "\x36\x58\xe0\x6b\x00\x00\x00\x00",
23232                 .alen   = 0,
23233                 .input  = "\x48\x01\x5e\x02\x24\x04\x66\x47"
23234                           "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
23235                           "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
23236                           "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
23237                           "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
23238                           "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
23239                 .ilen   = 48,
23240                 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
23241                           "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
23242                           "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
23243                           "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
23244                 .rlen   = 32,
23245                 .novrfy = 1,
23246         }, {
23247                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23248                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23249                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
23250                           "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
23251                 .klen   = 32,
23252                 .iv     = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
23253                           "\x44\x89\x40\x7b\x00\x00\x00\x00",
23254                 .assoc  = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
23255                           "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
23256                           "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
23257                           "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
23258                 .alen   = 32,
23259                 .input  = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
23260                           "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
23261                           "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
23262                           "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
23263                           "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
23264                           "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
23265                 .ilen   = 48,
23266                 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
23267                           "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
23268                           "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
23269                           "\x04\x49\x3b\x19\x93\x57\x25\x5d",
23270                 .rlen   = 32,
23271         },
23272 };
23273
23274 /*
23275  * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
23276  * use a 13-byte nonce, we only support an 11-byte nonce.  Worse,
23277  * they use AD lengths which are not valid ESP header lengths.
23278  *
23279  * These vectors are copied/generated from the ones for rfc4106 with
23280  * the key truncated by one byte..
23281  */
23282 static const struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
23283         { /* Generated using Crypto++ */
23284                 .key    = zeroed_string,
23285                 .klen   = 19,
23286                 .iv     = zeroed_string,
23287                 .input  = zeroed_string,
23288                 .ilen   = 16,
23289                 .assoc  = zeroed_string,
23290                 .alen   = 16,
23291                 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23292                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23293                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23294                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23295                 .rlen   = 32,
23296         },{
23297                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23298                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23299                           "\x00\x00\x00",
23300                 .klen   = 19,
23301                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
23302                 .input  = zeroed_string,
23303                 .ilen   = 16,
23304                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
23305                           "\x00\x00\x00\x00\x00\x00\x00\x01",
23306                 .alen   = 16,
23307                 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23308                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23309                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23310                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23311                 .rlen   = 32,
23312
23313         }, {
23314                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23315                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23316                           "\x00\x00\x00",
23317                 .klen   = 19,
23318                 .iv     = zeroed_string,
23319                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23320                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23321                 .ilen   = 16,
23322                 .assoc  = zeroed_string,
23323                 .alen   = 16,
23324                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23325                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23326                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23327                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23328                 .rlen   = 32,
23329         }, {
23330                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23331                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23332                           "\x00\x00\x00",
23333                 .klen   = 19,
23334                 .iv     = zeroed_string,
23335                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23336                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23337                 .ilen   = 16,
23338                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23339                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23340                 .alen   = 16,
23341                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23342                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23343                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23344                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23345                 .rlen   = 32,
23346         }, {
23347                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23348                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23349                           "\x00\x00\x00",
23350                 .klen   = 19,
23351                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
23352                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23353                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23354                 .ilen   = 16,
23355                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23356                           "\x00\x00\x00\x00\x00\x00\x00\x01",
23357                 .alen   = 16,
23358                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23359                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23360                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23361                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23362                 .rlen   = 32,
23363         }, {
23364                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23365                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23366                           "\x00\x00\x00",
23367                 .klen   = 19,
23368                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
23369                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23370                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23371                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23372                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23373                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23374                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23375                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23376                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23377                 .ilen   = 64,
23378                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23379                           "\x00\x00\x00\x00\x00\x00\x00\x01",
23380                 .alen   = 16,
23381                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23382                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23383                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23384                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23385                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23386                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
23387                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
23388                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
23389                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
23390                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
23391                 .rlen   = 80,
23392         }, {
23393                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
23394                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23395                           "\x00\x00\x00",
23396                 .klen   = 19,
23397                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
23398                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
23399                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23400                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23401                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23402                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23403                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23404                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23405                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23406                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23407                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23408                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23409                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23410                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23411                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23412                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23413                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23414                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23415                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23416                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23417                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23418                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23419                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23420                           "\xff\xff\xff\xff\xff\xff\xff\xff"
23421                           "\xff\xff\xff\xff\xff\xff\xff\xff",
23422                 .ilen   = 192,
23423                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
23424                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
23425                           "\x89\xab\xcd\xef",
23426                 .alen   = 20,
23427                 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
23428                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
23429                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
23430                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
23431                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
23432                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
23433                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
23434                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
23435                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
23436                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
23437                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
23438                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
23439                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
23440                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
23441                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
23442                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
23443                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
23444                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
23445                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
23446                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
23447                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
23448                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
23449                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
23450                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
23451                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
23452                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
23453                 .rlen   = 208,
23454         }, { /* From draft-mcgrew-gcm-test-01 */
23455                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23456                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23457                           "\x2E\x44\x3B",
23458                 .klen   = 19,
23459                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
23460                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
23461                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
23462                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
23463                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
23464                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
23465                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
23466                           "\x69\x70\x09\x63\x79\x62\x65\x72"
23467                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
23468                           "\x00\x21\x00\x01\x01\x02\x02\x01",
23469                 .ilen   = 72,
23470                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
23471                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
23472                           "\x3B\x24\x4C\xFE",
23473                 .alen   = 20,
23474                 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
23475                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
23476                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
23477                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
23478                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
23479                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
23480                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
23481                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
23482                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
23483                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
23484                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
23485                 .rlen   = 88,
23486         }, {
23487                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23488                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23489                           "\xCA\xFE\xBA",
23490                 .klen   = 19,
23491                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23492                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
23493                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
23494                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
23495                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
23496                           "\x00\x01\x00\x00\x00\x00\x00\x00"
23497                           "\x03\x73\x69\x70\x09\x63\x79\x62"
23498                           "\x65\x72\x63\x69\x74\x79\x02\x64"
23499                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
23500                 .ilen   = 64,
23501                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23502                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23503                 .alen   = 16,
23504                 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
23505                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
23506                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
23507                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
23508                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
23509                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
23510                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
23511                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
23512                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
23513                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
23514                 .rlen   = 80,
23515         }, {
23516                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23517                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23518                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23519                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23520                           "\x11\x22\x33",
23521                 .klen   = 35,
23522                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
23523                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
23524                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
23525                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
23526                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
23527                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
23528                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
23529                           "\x01\x02\x02\x01",
23530                 .ilen   = 52,
23531                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
23532                           "\x01\x02\x03\x04\x05\x06\x07\x08",
23533                 .alen   = 16,
23534                 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
23535                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
23536                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
23537                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
23538                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
23539                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
23540                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
23541                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
23542                           "\x5A\x48\x6A\x3E",
23543                 .rlen   = 68,
23544         }, {
23545                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
23546                           "\x00\x00\x00\x00\x00\x00\x00\x00"
23547                           "\x00\x00\x00",
23548                 .klen   = 19,
23549                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
23550                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
23551                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
23552                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
23553                           "\x02\x00\x44\x00\x61\x62\x63\x64"
23554                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23555                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23556                           "\x75\x76\x77\x61\x62\x63\x64\x65"
23557                           "\x66\x67\x68\x69\x01\x02\x02\x01",
23558                 .ilen   = 64,
23559                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
23560                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23561                 .alen   = 16,
23562                 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
23563                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
23564                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
23565                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
23566                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
23567                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
23568                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
23569                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
23570                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
23571                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
23572                 .rlen   = 80,
23573         }, {
23574                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23575                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23576                           "\x57\x69\x0E",
23577                 .klen   = 19,
23578                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23579                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
23580                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
23581                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
23582                           "\x02\x00\x43\x00\x61\x62\x63\x64"
23583                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23584                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23585                           "\x75\x76\x77\x61\x62\x63\x64\x65"
23586                           "\x66\x67\x68\x69\x01\x02\x02\x01",
23587                 .ilen   = 64,
23588                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23589                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
23590                           "\xA2\xFC\xA1\xA3",
23591                 .alen   = 20,
23592                 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
23593                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
23594                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
23595                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
23596                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23597                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23598                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
23599                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
23600                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
23601                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
23602                 .rlen   = 80,
23603         }, {
23604                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23605                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23606                           "\x57\x69\x0E",
23607                 .klen   = 19,
23608                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23609                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
23610                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
23611                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
23612                           "\x01\x02\x02\x01",
23613                 .ilen   = 28,
23614                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23615                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
23616                           "\xA2\xFC\xA1\xA3",
23617                 .alen   = 20,
23618                 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
23619                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
23620                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
23621                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
23622                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
23623                           "\x08\xB4\x22\xE4",
23624                 .rlen   = 44,
23625         }, {
23626                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23627                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23628                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23629                           "\xCA\xFE\xBA",
23630                 .klen   = 27,
23631                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23632                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
23633                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
23634                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
23635                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
23636                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
23637                 .ilen   = 40,
23638                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23639                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23640                 .alen   = 16,
23641                 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
23642                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
23643                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
23644                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
23645                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
23646                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
23647                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
23648                 .rlen   = 56,
23649         }, {
23650                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23651                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23652                           "\xDE\xCA\xF8",
23653                 .klen   = 19,
23654                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23655                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
23656                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
23657                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23658                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
23659                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
23660                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
23661                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
23662                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
23663                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
23664                           "\x23\x01\x01\x01",
23665                 .ilen   = 76,
23666                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
23667                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23668                           "\xCE\xFA\xCE\x74",
23669                 .alen   = 20,
23670                 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
23671                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
23672                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
23673                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
23674                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
23675                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
23676                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
23677                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
23678                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
23679                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
23680                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
23681                           "\x12\x25\x0B\xF9",
23682                 .rlen   = 92,
23683         }, {
23684                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23685                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23686                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23687                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23688                           "\x73\x61\x6C",
23689                 .klen   = 35,
23690                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23691                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
23692                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
23693                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
23694                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
23695                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
23696                 .ilen   = 40,
23697                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23698                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23699                           "\x69\x76\x65\x63",
23700                 .alen   = 20,
23701                 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
23702                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
23703                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
23704                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
23705                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
23706                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
23707                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
23708                 .rlen   = 56,
23709         }, {
23710                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23711                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23712                           "\x57\x69\x0E",
23713                 .klen   = 19,
23714                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23715                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
23716                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
23717                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23718                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
23719                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
23720                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
23721                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
23722                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
23723                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
23724                           "\x15\x01\x01\x01",
23725                 .ilen   = 76,
23726                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23727                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
23728                           "\xA2\xFC\xA1\xA3",
23729                 .alen   = 20,
23730                 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
23731                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
23732                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
23733                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
23734                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
23735                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
23736                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
23737                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
23738                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
23739                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
23740                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
23741                           "\xCC\xF7\x46\x6F",
23742                 .rlen   = 92,
23743         }, {
23744                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23745                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23746                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23747                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23748                           "\x73\x61\x6C",
23749                 .klen   = 35,
23750                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23751                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
23752                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
23753                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
23754                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
23755                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
23756                           "\x67\x69\x65\x73\x01\x74\x68\x61"
23757                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
23758                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
23759                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
23760                 .ilen   = 72,
23761                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23762                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23763                           "\x69\x76\x65\x63",
23764                 .alen   = 20,
23765                 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
23766                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
23767                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
23768                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
23769                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
23770                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
23771                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
23772                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
23773                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
23774                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
23775                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
23776                 .rlen   = 88,
23777         }, {
23778                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
23779                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
23780                           "\xD9\x66\x42",
23781                 .klen   = 19,
23782                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23783                 .input  = "\x01\x02\x02\x01",
23784                 .ilen   = 4,
23785                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
23786                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23787                 .alen   = 16,
23788                 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
23789                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
23790                           "\xF7\x61\x24\x62",
23791                 .rlen   = 20,
23792         }, {
23793                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23794                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23795                           "\xDE\xCA\xF8",
23796                 .klen   = 19,
23797                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23798                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
23799                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
23800                           "\x62\x65\x00\x01",
23801                 .ilen   = 20,
23802                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
23803                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23804                           "\xCE\xFA\xCE\x74",
23805                 .alen   = 20,
23806                 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
23807                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
23808                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
23809                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
23810                           "\x17\x17\x65\xAD",
23811                 .rlen   = 36,
23812         }, {
23813                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
23814                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
23815                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
23816                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
23817                           "\x74\x75\x72",
23818                 .klen   = 35,
23819                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
23820                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23821                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23822                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23823                           "\x02\x00\x07\x00\x61\x62\x63\x64"
23824                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23825                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23826                           "\x01\x02\x02\x01",
23827                 .ilen   = 52,
23828                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
23829                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
23830                           "\x67\x65\x74\x6D",
23831                 .alen   = 20,
23832                 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
23833                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
23834                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
23835                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
23836                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
23837                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
23838                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
23839                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
23840                           "\x39\xDB\xC8\xDC",
23841                 .rlen   = 68,
23842         }, {
23843                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23844                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23845                           "\x57\x69\x0E",
23846                 .klen   = 19,
23847                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23848                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23849                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23850                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23851                           "\x02\x00\x07\x00\x61\x62\x63\x64"
23852                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23853                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23854                           "\x01\x02\x02\x01",
23855                 .ilen   = 52,
23856                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
23857                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
23858                           "\xA2\xFC\xA1\xA3",
23859                 .alen   = 20,
23860                 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
23861                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
23862                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
23863                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
23864                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23865                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23866                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
23867                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
23868                           "\xF4\x95\x5D\x4F",
23869                 .rlen   = 68,
23870         }, {
23871                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23872                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23873                           "\x22\x43\x3C",
23874                 .klen   = 19,
23875                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
23876                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
23877                           "\x61\x62\x63\x64\x65\x66\x67\x68"
23878                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
23879                           "\x71\x72\x73\x74\x01\x02\x02\x01",
23880                 .ilen   = 32,
23881                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
23882                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
23883                           "\x3A\x23\x4B\xFD",
23884                 .alen   = 20,
23885                 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
23886                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
23887                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
23888                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
23889                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
23890                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
23891                 .rlen   = 48,
23892         }
23893 };
23894
23895 static const struct aead_testvec aes_ccm_rfc4309_dec_tv_template[]      = {
23896         { /* Generated using Crypto++ */
23897                 .key    = zeroed_string,
23898                 .klen   = 19,
23899                 .iv     = zeroed_string,
23900                 .result = zeroed_string,
23901                 .rlen   = 16,
23902                 .assoc  = zeroed_string,
23903                 .alen   = 16,
23904                 .input  = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23905                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23906                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23907                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23908                 .ilen   = 32,
23909         },{
23910                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23911                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23912                           "\x00\x00\x00",
23913                 .klen   = 19,
23914                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
23915                 .result = zeroed_string,
23916                 .rlen   = 16,
23917                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
23918                           "\x00\x00\x00\x00\x00\x00\x00\x01",
23919                 .alen   = 16,
23920                 .input  = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23921                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23922                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23923                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23924                 .ilen   = 32,
23925
23926         }, {
23927                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23928                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23929                           "\x00\x00\x00",
23930                 .klen   = 19,
23931                 .iv     = zeroed_string,
23932                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23933                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23934                 .rlen   = 16,
23935                 .assoc  = zeroed_string,
23936                 .alen   = 16,
23937                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23938                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23939                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23940                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23941                 .ilen   = 32,
23942         }, {
23943                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23944                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23945                           "\x00\x00\x00",
23946                 .klen   = 19,
23947                 .iv     = zeroed_string,
23948                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23949                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23950                 .rlen   = 16,
23951                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23952                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23953                 .alen   = 16,
23954                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23955                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23956                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23957                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23958                 .ilen   = 32,
23959         }, {
23960                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23961                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23962                           "\x00\x00\x00",
23963                 .klen   = 19,
23964                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
23965                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23966                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23967                 .rlen   = 16,
23968                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23969                           "\x00\x00\x00\x00\x00\x00\x00\x01",
23970                 .alen   = 16,
23971                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23972                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23973                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23974                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23975                 .ilen   = 32,
23976         }, {
23977                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23978                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23979                           "\x00\x00\x00",
23980                 .klen   = 19,
23981                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
23982                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23983                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23984                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23985                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23986                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23987                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23988                           "\x01\x01\x01\x01\x01\x01\x01\x01"
23989                           "\x01\x01\x01\x01\x01\x01\x01\x01",
23990                 .rlen   = 64,
23991                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
23992                           "\x00\x00\x00\x00\x00\x00\x00\x01",
23993                 .alen   = 16,
23994                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23995                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23996                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23997                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23998                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23999                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
24000                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
24001                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
24002                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
24003                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
24004                 .ilen   = 80,
24005         }, {
24006                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
24007                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
24008                           "\x00\x00\x00",
24009                 .klen   = 19,
24010                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
24011                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
24012                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24013                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24014                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24015                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24016                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24017                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24018                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24019                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24020                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24021                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24022                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24023                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24024                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24025                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24026                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24027                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24028                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24029                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24030                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24031                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24032                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24033                           "\xff\xff\xff\xff\xff\xff\xff\xff"
24034                           "\xff\xff\xff\xff\xff\xff\xff\xff",
24035                 .rlen   = 192,
24036                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
24037                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
24038                           "\x89\xab\xcd\xef",
24039                 .alen   = 20,
24040                 .input  = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
24041                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
24042                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
24043                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
24044                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
24045                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
24046                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
24047                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
24048                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
24049                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
24050                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
24051                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
24052                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
24053                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
24054                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
24055                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
24056                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
24057                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
24058                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
24059                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
24060                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
24061                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
24062                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
24063                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
24064                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
24065                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
24066                 .ilen   = 208,
24067         }, { /* From draft-mcgrew-gcm-test-01 */
24068                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
24069                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
24070                           "\x2E\x44\x3B",
24071                 .klen   = 19,
24072                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
24073                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
24074                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
24075                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
24076                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
24077                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
24078                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
24079                           "\x69\x70\x09\x63\x79\x62\x65\x72"
24080                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
24081                           "\x00\x21\x00\x01\x01\x02\x02\x01",
24082                 .rlen   = 72,
24083                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
24084                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
24085                           "\x3B\x24\x4C\xFE",
24086                 .alen   = 20,
24087                 .input  = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
24088                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
24089                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
24090                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
24091                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
24092                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
24093                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
24094                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
24095                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
24096                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
24097                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
24098                 .ilen   = 88,
24099         }, {
24100                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24101                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24102                           "\xCA\xFE\xBA",
24103                 .klen   = 19,
24104                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24105                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
24106                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
24107                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
24108                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
24109                           "\x00\x01\x00\x00\x00\x00\x00\x00"
24110                           "\x03\x73\x69\x70\x09\x63\x79\x62"
24111                           "\x65\x72\x63\x69\x74\x79\x02\x64"
24112                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
24113                 .rlen   = 64,
24114                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24115                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24116                 .alen   = 16,
24117                 .input  = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
24118                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
24119                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
24120                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
24121                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
24122                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
24123                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
24124                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
24125                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
24126                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
24127                 .ilen   = 80,
24128         }, {
24129                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24130                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24131                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24132                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24133                           "\x11\x22\x33",
24134                 .klen   = 35,
24135                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
24136                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
24137                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
24138                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
24139                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
24140                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
24141                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
24142                           "\x01\x02\x02\x01",
24143                 .rlen   = 52,
24144                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
24145                           "\x01\x02\x03\x04\x05\x06\x07\x08",
24146                 .alen   = 16,
24147                 .input  = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
24148                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
24149                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
24150                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
24151                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
24152                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
24153                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
24154                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
24155                           "\x5A\x48\x6A\x3E",
24156                 .ilen   = 68,
24157         }, {
24158                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
24159                           "\x00\x00\x00\x00\x00\x00\x00\x00"
24160                           "\x00\x00\x00",
24161                 .klen   = 19,
24162                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
24163                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
24164                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
24165                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
24166                           "\x02\x00\x44\x00\x61\x62\x63\x64"
24167                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24168                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24169                           "\x75\x76\x77\x61\x62\x63\x64\x65"
24170                           "\x66\x67\x68\x69\x01\x02\x02\x01",
24171                 .rlen   = 64,
24172                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
24173                           "\x00\x00\x00\x00\x00\x00\x00\x00",
24174                 .alen   = 16,
24175                 .input  = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
24176                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
24177                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
24178                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
24179                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
24180                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
24181                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
24182                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
24183                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
24184                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
24185                 .ilen   = 80,
24186         }, {
24187                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24188                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24189                           "\x57\x69\x0E",
24190                 .klen   = 19,
24191                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24192                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
24193                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
24194                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
24195                           "\x02\x00\x43\x00\x61\x62\x63\x64"
24196                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24197                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24198                           "\x75\x76\x77\x61\x62\x63\x64\x65"
24199                           "\x66\x67\x68\x69\x01\x02\x02\x01",
24200                 .rlen   = 64,
24201                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24202                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
24203                           "\xA2\xFC\xA1\xA3",
24204                 .alen   = 20,
24205                 .input  = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
24206                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
24207                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
24208                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
24209                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24210                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24211                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
24212                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
24213                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
24214                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
24215                 .ilen   = 80,
24216         }, {
24217                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24218                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24219                           "\x57\x69\x0E",
24220                 .klen   = 19,
24221                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24222                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
24223                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
24224                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
24225                           "\x01\x02\x02\x01",
24226                 .rlen   = 28,
24227                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24228                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
24229                           "\xA2\xFC\xA1\xA3",
24230                 .alen   = 20,
24231                 .input  = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
24232                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
24233                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
24234                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
24235                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
24236                           "\x08\xB4\x22\xE4",
24237                 .ilen   = 44,
24238         }, {
24239                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24240                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24241                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24242                           "\xCA\xFE\xBA",
24243                 .klen   = 27,
24244                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24245                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
24246                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
24247                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
24248                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
24249                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
24250                 .rlen   = 40,
24251                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24252                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24253                 .alen   = 16,
24254                 .input  = "\x05\x22\x15\xD1\x52\x56\x85\x04"
24255                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
24256                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
24257                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
24258                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
24259                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
24260                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
24261                 .ilen   = 56,
24262         }, {
24263                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24264                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24265                           "\xDE\xCA\xF8",
24266                 .klen   = 19,
24267                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24268                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
24269                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
24270                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24271                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
24272                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
24273                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
24274                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
24275                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
24276                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
24277                           "\x23\x01\x01\x01",
24278                 .rlen   = 76,
24279                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
24280                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24281                           "\xCE\xFA\xCE\x74",
24282                 .alen   = 20,
24283                 .input  = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
24284                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
24285                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
24286                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
24287                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
24288                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
24289                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
24290                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
24291                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
24292                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
24293                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
24294                           "\x12\x25\x0B\xF9",
24295                 .ilen   = 92,
24296         }, {
24297                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24298                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24299                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24300                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24301                           "\x73\x61\x6C",
24302                 .klen   = 35,
24303                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24304                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
24305                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
24306                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
24307                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
24308                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
24309                 .rlen   = 40,
24310                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24311                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24312                           "\x69\x76\x65\x63",
24313                 .alen   = 20,
24314                 .input  = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
24315                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
24316                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
24317                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
24318                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
24319                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
24320                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
24321                 .ilen   = 56,
24322         }, {
24323                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24324                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24325                           "\x57\x69\x0E",
24326                 .klen   = 19,
24327                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24328                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
24329                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
24330                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24331                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
24332                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
24333                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
24334                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
24335                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
24336                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
24337                           "\x15\x01\x01\x01",
24338                 .rlen   = 76,
24339                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24340                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
24341                           "\xA2\xFC\xA1\xA3",
24342                 .alen   = 20,
24343                 .input  = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
24344                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
24345                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
24346                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
24347                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
24348                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
24349                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
24350                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
24351                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
24352                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
24353                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
24354                           "\xCC\xF7\x46\x6F",
24355                 .ilen   = 92,
24356         }, {
24357                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24358                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24359                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24360                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24361                           "\x73\x61\x6C",
24362                 .klen   = 35,
24363                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24364                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
24365                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
24366                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
24367                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
24368                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
24369                           "\x67\x69\x65\x73\x01\x74\x68\x61"
24370                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
24371                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
24372                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
24373                 .rlen   = 72,
24374                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24375                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24376                           "\x69\x76\x65\x63",
24377                 .alen   = 20,
24378                 .input  = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
24379                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
24380                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
24381                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
24382                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
24383                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
24384                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
24385                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
24386                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
24387                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
24388                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
24389                 .ilen   = 88,
24390         }, {
24391                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
24392                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
24393                           "\xD9\x66\x42",
24394                 .klen   = 19,
24395                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24396                 .result = "\x01\x02\x02\x01",
24397                 .rlen   = 4,
24398                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
24399                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24400                 .alen   = 16,
24401                 .input  = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
24402                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
24403                           "\xF7\x61\x24\x62",
24404                 .ilen   = 20,
24405         }, {
24406                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24407                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24408                           "\xDE\xCA\xF8",
24409                 .klen   = 19,
24410                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24411                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
24412                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
24413                           "\x62\x65\x00\x01",
24414                 .rlen   = 20,
24415                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
24416                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24417                           "\xCE\xFA\xCE\x74",
24418                 .alen   = 20,
24419                 .input  = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
24420                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
24421                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
24422                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
24423                           "\x17\x17\x65\xAD",
24424                 .ilen   = 36,
24425         }, {
24426                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
24427                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
24428                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
24429                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
24430                           "\x74\x75\x72",
24431                 .klen   = 35,
24432                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
24433                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24434                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24435                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24436                           "\x02\x00\x07\x00\x61\x62\x63\x64"
24437                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24438                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24439                           "\x01\x02\x02\x01",
24440                 .rlen   = 52,
24441                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
24442                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
24443                           "\x67\x65\x74\x6D",
24444                 .alen   = 20,
24445                 .input  = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
24446                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
24447                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
24448                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
24449                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
24450                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
24451                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
24452                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
24453                           "\x39\xDB\xC8\xDC",
24454                 .ilen   = 68,
24455         }, {
24456                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24457                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24458                           "\x57\x69\x0E",
24459                 .klen   = 19,
24460                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24461                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24462                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24463                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24464                           "\x02\x00\x07\x00\x61\x62\x63\x64"
24465                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24466                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24467                           "\x01\x02\x02\x01",
24468                 .rlen   = 52,
24469                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
24470                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
24471                           "\xA2\xFC\xA1\xA3",
24472                 .alen   = 20,
24473                 .input  = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
24474                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
24475                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
24476                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
24477                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24478                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24479                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
24480                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
24481                           "\xF4\x95\x5D\x4F",
24482                 .ilen   = 68,
24483         }, {
24484                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
24485                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
24486                           "\x22\x43\x3C",
24487                 .klen   = 19,
24488                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
24489                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
24490                           "\x61\x62\x63\x64\x65\x66\x67\x68"
24491                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
24492                           "\x71\x72\x73\x74\x01\x02\x02\x01",
24493                 .rlen   = 32,
24494                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
24495                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
24496                           "\x3A\x23\x4B\xFD",
24497                 .alen   = 20,
24498                 .input  = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
24499                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
24500                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
24501                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
24502                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
24503                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
24504                 .ilen   = 48,
24505         }
24506 };
24507
24508 /*
24509  * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
24510  */
24511 static const struct aead_testvec rfc7539_enc_tv_template[] = {
24512         {
24513                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
24514                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24515                           "\x90\x91\x92\x93\x94\x95\x96\x97"
24516                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24517                 .klen   = 32,
24518                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
24519                           "\x44\x45\x46\x47",
24520                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24521                           "\xc4\xc5\xc6\xc7",
24522                 .alen   = 12,
24523                 .input  = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24524                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24525                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24526                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
24527                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
24528                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
24529                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24530                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24531                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24532                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
24533                           "\x74\x68\x65\x20\x66\x75\x74\x75"
24534                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24535                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24536                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
24537                           "\x74\x2e",
24538                 .ilen   = 114,
24539                 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24540                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24541                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24542                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24543                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24544                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24545                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24546                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24547                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24548                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24549                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24550                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24551                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24552                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24553                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24554                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24555                           "\x06\x91",
24556                 .rlen   = 130,
24557         }, {
24558                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24559                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24560                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24561                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24562                 .klen   = 32,
24563                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
24564                           "\x05\x06\x07\x08",
24565                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24566                           "\x00\x00\x4e\x91",
24567                 .alen   = 12,
24568                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24569                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
24570                           "\x61\x72\x65\x20\x64\x72\x61\x66"
24571                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24572                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24573                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
24574                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24575                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24576                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24577                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
24578                           "\x20\x75\x70\x64\x61\x74\x65\x64"
24579                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24580                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24581                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24582                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
24583                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24584                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
24585                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24586                           "\x20\x49\x74\x20\x69\x73\x20\x69"
24587                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24588                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
24589                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
24590                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24591                           "\x66\x74\x73\x20\x61\x73\x20\x72"
24592                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
24593                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
24594                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24595                           "\x63\x69\x74\x65\x20\x74\x68\x65"
24596                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24597                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
24598                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24599                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24600                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24601                           "\x9d",
24602                 .ilen   = 265,
24603                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24604                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24605                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24606                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24607                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24608                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24609                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24610                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24611                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24612                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24613                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24614                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24615                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24616                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24617                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24618                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24619                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24620                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24621                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24622                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24623                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24624                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24625                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24626                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24627                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24628                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24629                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24630                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24631                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24632                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24633                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24634                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24635                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24636                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24637                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24638                           "\x38",
24639                 .rlen   = 281,
24640         },
24641 };
24642
24643 static const struct aead_testvec rfc7539_dec_tv_template[] = {
24644         {
24645                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
24646                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24647                           "\x90\x91\x92\x93\x94\x95\x96\x97"
24648                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24649                 .klen   = 32,
24650                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
24651                           "\x44\x45\x46\x47",
24652                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24653                           "\xc4\xc5\xc6\xc7",
24654                 .alen   = 12,
24655                 .input  = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24656                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24657                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24658                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24659                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24660                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24661                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24662                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24663                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24664                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24665                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24666                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24667                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24668                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24669                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24670                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24671                           "\x06\x91",
24672                 .ilen   = 130,
24673                 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24674                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24675                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24676                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
24677                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
24678                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
24679                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24680                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24681                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24682                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
24683                           "\x74\x68\x65\x20\x66\x75\x74\x75"
24684                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24685                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24686                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
24687                           "\x74\x2e",
24688                 .rlen   = 114,
24689         }, {
24690                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24691                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24692                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24693                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24694                 .klen   = 32,
24695                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
24696                           "\x05\x06\x07\x08",
24697                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24698                           "\x00\x00\x4e\x91",
24699                 .alen   = 12,
24700                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24701                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24702                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24703                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24704                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24705                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24706                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24707                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24708                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24709                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24710                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24711                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24712                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24713                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24714                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24715                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24716                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24717                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24718                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24719                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24720                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24721                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24722                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24723                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24724                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24725                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24726                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24727                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24728                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24729                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24730                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24731                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24732                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24733                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24734                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24735                           "\x38",
24736                 .ilen   = 281,
24737                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24738                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
24739                           "\x61\x72\x65\x20\x64\x72\x61\x66"
24740                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24741                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24742                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
24743                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24744                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24745                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24746                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
24747                           "\x20\x75\x70\x64\x61\x74\x65\x64"
24748                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24749                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24750                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24751                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
24752                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24753                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
24754                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24755                           "\x20\x49\x74\x20\x69\x73\x20\x69"
24756                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24757                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
24758                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
24759                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24760                           "\x66\x74\x73\x20\x61\x73\x20\x72"
24761                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
24762                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
24763                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24764                           "\x63\x69\x74\x65\x20\x74\x68\x65"
24765                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24766                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
24767                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24768                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24769                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24770                           "\x9d",
24771                 .rlen   = 265,
24772         },
24773 };
24774
24775 /*
24776  * draft-irtf-cfrg-chacha20-poly1305
24777  */
24778 static const struct aead_testvec rfc7539esp_enc_tv_template[] = {
24779         {
24780                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24781                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24782                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24783                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24784                           "\x00\x00\x00\x00",
24785                 .klen   = 36,
24786                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
24787                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24788                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
24789                           "\x05\x06\x07\x08",
24790                 .alen   = 20,
24791                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24792                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
24793                           "\x61\x72\x65\x20\x64\x72\x61\x66"
24794                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24795                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24796                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
24797                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24798                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24799                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24800                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
24801                           "\x20\x75\x70\x64\x61\x74\x65\x64"
24802                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24803                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24804                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24805                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
24806                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24807                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
24808                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24809                           "\x20\x49\x74\x20\x69\x73\x20\x69"
24810                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24811                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
24812                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
24813                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24814                           "\x66\x74\x73\x20\x61\x73\x20\x72"
24815                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
24816                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
24817                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24818                           "\x63\x69\x74\x65\x20\x74\x68\x65"
24819                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24820                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
24821                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24822                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24823                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24824                           "\x9d",
24825                 .ilen   = 265,
24826                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24827                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24828                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24829                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24830                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24831                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24832                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24833                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24834                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24835                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24836                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24837                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24838                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24839                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24840                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24841                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24842                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24843                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24844                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24845                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24846                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24847                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24848                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24849                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24850                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24851                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24852                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24853                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24854                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24855                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24856                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24857                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24858                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24859                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24860                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24861                           "\x38",
24862                 .rlen   = 281,
24863         },
24864 };
24865
24866 static const struct aead_testvec rfc7539esp_dec_tv_template[] = {
24867         {
24868                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24869                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24870                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24871                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24872                           "\x00\x00\x00\x00",
24873                 .klen   = 36,
24874                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
24875                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24876                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
24877                           "\x05\x06\x07\x08",
24878                 .alen   = 20,
24879                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24880                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24881                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24882                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24883                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24884                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24885                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24886                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24887                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24888                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24889                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24890                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24891                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24892                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24893                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24894                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24895                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24896                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24897                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24898                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24899                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24900                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24901                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24902                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24903                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24904                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24905                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24906                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24907                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24908                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24909                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24910                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24911                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24912                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24913                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24914                           "\x38",
24915                 .ilen   = 281,
24916                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24917                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
24918                           "\x61\x72\x65\x20\x64\x72\x61\x66"
24919                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24920                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24921                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
24922                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24923                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24924                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24925                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
24926                           "\x20\x75\x70\x64\x61\x74\x65\x64"
24927                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24928                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24929                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24930                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
24931                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24932                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
24933                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24934                           "\x20\x49\x74\x20\x69\x73\x20\x69"
24935                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24936                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
24937                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
24938                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24939                           "\x66\x74\x73\x20\x61\x73\x20\x72"
24940                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
24941                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
24942                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24943                           "\x63\x69\x74\x65\x20\x74\x68\x65"
24944                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24945                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
24946                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24947                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24948                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24949                           "\x9d",
24950                 .rlen   = 265,
24951         },
24952 };
24953
24954 /*
24955  * All key wrapping test vectors taken from
24956  * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
24957  *
24958  * Note: as documented in keywrap.c, the ivout for encryption is the first
24959  * semiblock of the ciphertext from the test vector. For decryption, iv is
24960  * the first semiblock of the ciphertext.
24961  */
24962 static const struct cipher_testvec aes_kw_enc_tv_template[] = {
24963         {
24964                 .key    = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
24965                           "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
24966                 .klen   = 16,
24967                 .input  = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
24968                           "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
24969                 .ilen   = 16,
24970                 .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
24971                           "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
24972                 .rlen   = 16,
24973                 .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
24974         },
24975 };
24976
24977 static const struct cipher_testvec aes_kw_dec_tv_template[] = {
24978         {
24979                 .key    = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
24980                           "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
24981                           "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
24982                           "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
24983                 .klen   = 32,
24984                 .input  = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
24985                           "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
24986                 .ilen   = 16,
24987                 .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
24988                           "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
24989                 .rlen   = 16,
24990                 .iv     = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
24991         },
24992 };
24993
24994 /*
24995  * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
24996  * test vectors, taken from Appendix B.2.9 and B.2.10:
24997  *     http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
24998  * Only AES-128 is supported at this time.
24999  */
25000 static const struct cprng_testvec ansi_cprng_aes_tv_template[] = {
25001         {
25002                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25003                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25004                 .klen   = 16,
25005                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25006                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
25007                 .dtlen  = 16,
25008                 .v      = "\x80\x00\x00\x00\x00\x00\x00\x00"
25009                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25010                 .vlen   = 16,
25011                 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
25012                           "\x84\x79\x66\x85\xc1\x2f\x76\x41",
25013                 .rlen   = 16,
25014                 .loops  = 1,
25015         }, {
25016                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25017                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25018                 .klen   = 16,
25019                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25020                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
25021                 .dtlen  = 16,
25022                 .v      = "\xc0\x00\x00\x00\x00\x00\x00\x00"
25023                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25024                 .vlen   = 16,
25025                 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
25026                           "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
25027                 .rlen   = 16,
25028                 .loops  = 1,
25029         }, {
25030                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25031                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25032                 .klen   = 16,
25033                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25034                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
25035                 .dtlen  = 16,
25036                 .v      = "\xe0\x00\x00\x00\x00\x00\x00\x00"
25037                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25038                 .vlen   = 16,
25039                 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
25040                           "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
25041                 .rlen   = 16,
25042                 .loops  = 1,
25043         }, {
25044                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25045                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25046                 .klen   = 16,
25047                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25048                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
25049                 .dtlen  = 16,
25050                 .v      = "\xf0\x00\x00\x00\x00\x00\x00\x00"
25051                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25052                 .vlen   = 16,
25053                 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
25054                           "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
25055                 .rlen   = 16,
25056                 .loops  = 1,
25057         }, {
25058                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25059                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25060                 .klen   = 16,
25061                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25062                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
25063                 .dtlen  = 16,
25064                 .v      = "\xf8\x00\x00\x00\x00\x00\x00\x00"
25065                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25066                 .vlen   = 16,
25067                 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
25068                           "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
25069                 .rlen   = 16,
25070                 .loops  = 1,
25071         }, {    /* Monte Carlo Test */
25072                 .key    = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
25073                           "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
25074                 .klen   = 16,
25075                 .dt     = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
25076                           "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
25077                 .dtlen  = 16,
25078                 .v      = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
25079                           "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
25080                 .vlen   = 16,
25081                 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
25082                           "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
25083                 .rlen   = 16,
25084                 .loops  = 10000,
25085         },
25086 };
25087
25088 /*
25089  * SP800-90A DRBG Test vectors from
25090  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25091  *
25092  * Test vectors for DRBG with prediction resistance. All types of DRBGs
25093  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25094  * w/o personalization string, w/ and w/o additional input string).
25095  */
25096 static const struct drbg_testvec drbg_pr_sha256_tv_template[] = {
25097         {
25098                 .entropy = (unsigned char *)
25099                         "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
25100                         "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
25101                         "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
25102                         "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
25103                 .entropylen = 48,
25104                 .entpra = (unsigned char *)
25105                         "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
25106                         "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
25107                         "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
25108                 .entprb = (unsigned char *)
25109                         "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
25110                         "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
25111                         "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
25112                 .entprlen = 32,
25113                 .expected = (unsigned char *)
25114                         "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
25115                         "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
25116                         "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
25117                         "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
25118                         "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
25119                         "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
25120                         "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
25121                         "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
25122                         "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
25123                         "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
25124                         "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
25125                 .expectedlen = 128,
25126                 .addtla = NULL,
25127                 .addtlb = NULL,
25128                 .addtllen = 0,
25129                 .pers = NULL,
25130                 .perslen = 0,
25131         }, {
25132                 .entropy = (unsigned char *)
25133                         "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
25134                         "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
25135                         "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
25136                         "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
25137                 .entropylen = 48,
25138                 .entpra = (unsigned char *)
25139                         "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
25140                         "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
25141                         "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
25142                 .entprb = (unsigned char *)
25143                         "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
25144                         "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
25145                         "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
25146                 .entprlen = 32,
25147                 .expected = (unsigned char *)
25148                         "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
25149                         "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
25150                         "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
25151                         "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
25152                         "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
25153                         "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
25154                         "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
25155                         "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
25156                         "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
25157                         "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
25158                         "\x50\x47\xa3\x63\x81\x16\xaf\x19",
25159                 .expectedlen = 128,
25160                 .addtla = (unsigned char *)
25161                         "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
25162                         "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
25163                         "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
25164                 .addtlb = (unsigned char *)
25165                         "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
25166                         "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
25167                         "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
25168                 .addtllen = 32,
25169                 .pers = NULL,
25170                 .perslen = 0,
25171         }, {
25172                 .entropy = (unsigned char *)
25173                         "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
25174                         "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
25175                         "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
25176                         "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
25177                 .entropylen = 48,
25178                 .entpra = (unsigned char *)
25179                         "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
25180                         "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
25181                         "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
25182                 .entprb = (unsigned char *)
25183                         "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
25184                         "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
25185                         "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
25186                 .entprlen = 32,
25187                 .expected = (unsigned char *)
25188                         "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
25189                         "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
25190                         "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
25191                         "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
25192                         "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
25193                         "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
25194                         "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
25195                         "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
25196                         "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
25197                         "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
25198                         "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
25199                 .expectedlen = 128,
25200                 .addtla = NULL,
25201                 .addtlb = NULL,
25202                 .addtllen = 0,
25203                 .pers = (unsigned char *)
25204                         "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
25205                         "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
25206                         "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
25207                 .perslen = 32,
25208         }, {
25209                 .entropy = (unsigned char *)
25210                         "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
25211                         "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
25212                         "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
25213                         "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
25214                 .entropylen = 48,
25215                 .entpra = (unsigned char *)
25216                         "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
25217                         "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
25218                         "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
25219                 .entprb = (unsigned char *)
25220                         "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
25221                         "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
25222                         "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
25223                 .entprlen = 32,
25224                 .expected = (unsigned char *)
25225                         "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
25226                         "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
25227                         "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
25228                         "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
25229                         "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
25230                         "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
25231                         "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
25232                         "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
25233                         "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
25234                         "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
25235                         "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
25236                 .expectedlen = 128,
25237                 .addtla = (unsigned char *)
25238                         "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
25239                         "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
25240                         "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
25241                 .addtlb = (unsigned char *)
25242                         "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
25243                         "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
25244                         "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
25245                 .addtllen = 32,
25246                 .pers = (unsigned char *)
25247                         "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
25248                         "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
25249                         "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
25250                 .perslen = 32,
25251         },
25252 };
25253
25254 static const struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
25255         {
25256                 .entropy = (unsigned char *)
25257                         "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
25258                         "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
25259                         "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
25260                         "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
25261                 .entropylen = 48,
25262                 .entpra = (unsigned char *)
25263                         "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
25264                         "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
25265                         "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
25266                 .entprb = (unsigned char *)
25267                         "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
25268                         "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
25269                         "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
25270                 .entprlen = 32,
25271                 .expected = (unsigned char *)
25272                         "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
25273                         "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
25274                         "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
25275                         "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
25276                         "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
25277                         "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
25278                         "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
25279                         "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
25280                         "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
25281                         "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
25282                         "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
25283                 .expectedlen = 128,
25284                 .addtla = NULL,
25285                 .addtlb = NULL,
25286                 .addtllen = 0,
25287                 .pers = NULL,
25288                 .perslen = 0,
25289         }, {
25290                 .entropy = (unsigned char *)
25291                         "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
25292                         "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
25293                         "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
25294                         "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
25295                 .entropylen = 48,
25296                 .entpra = (unsigned char *)
25297                         "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
25298                         "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
25299                         "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
25300                 .entprb = (unsigned char *)
25301                         "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
25302                         "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
25303                         "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
25304                 .entprlen = 32,
25305                 .expected = (unsigned char *)
25306                         "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
25307                         "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
25308                         "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
25309                         "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
25310                         "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
25311                         "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
25312                         "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
25313                         "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
25314                         "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
25315                         "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
25316                         "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
25317                 .expectedlen = 128,
25318                 .addtla = (unsigned char *)
25319                         "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
25320                         "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
25321                         "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
25322                 .addtlb = (unsigned char *)
25323                         "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
25324                         "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
25325                         "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
25326                 .addtllen = 32,
25327                 .pers = NULL,
25328                 .perslen = 0,
25329         }, {
25330                 .entropy = (unsigned char *)
25331                         "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
25332                         "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
25333                         "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
25334                         "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
25335                 .entropylen = 48,
25336                 .entpra = (unsigned char *)
25337                         "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
25338                         "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
25339                         "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
25340                 .entprb = (unsigned char *)
25341                         "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
25342                         "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
25343                         "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
25344                 .entprlen = 32,
25345                 .expected = (unsigned char *)
25346                         "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
25347                         "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
25348                         "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
25349                         "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
25350                         "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
25351                         "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
25352                         "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
25353                         "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
25354                         "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
25355                         "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
25356                         "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
25357                 .expectedlen = 128,
25358                 .addtla = NULL,
25359                 .addtlb = NULL,
25360                 .addtllen = 0,
25361                 .pers = (unsigned char *)
25362                         "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
25363                         "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
25364                         "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
25365                 .perslen = 32,
25366         }, {
25367                 .entropy = (unsigned char *)
25368                         "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
25369                         "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
25370                         "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
25371                         "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
25372                 .entropylen = 48,
25373                 .entpra = (unsigned char *)
25374                         "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
25375                         "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
25376                         "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
25377                 .entprb = (unsigned char *)
25378                         "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
25379                         "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
25380                         "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
25381                 .entprlen = 32,
25382                 .expected = (unsigned char *)
25383                         "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
25384                         "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
25385                         "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
25386                         "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
25387                         "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
25388                         "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
25389                         "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
25390                         "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
25391                         "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
25392                         "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
25393                         "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
25394                 .expectedlen = 128,
25395                 .addtla = (unsigned char *)
25396                         "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
25397                         "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
25398                         "\x86\x88\x55\x28\xc1\x69\xdd\x76",
25399                 .addtlb = (unsigned char *)
25400                         "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
25401                         "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
25402                         "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
25403                 .addtllen = 32,
25404                 .pers = (unsigned char *)
25405                         "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
25406                         "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
25407                         "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
25408                 .perslen = 32,
25409         },
25410 };
25411
25412 static const struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
25413         {
25414                 .entropy = (unsigned char *)
25415                         "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
25416                         "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
25417                 .entropylen = 24,
25418                 .entpra = (unsigned char *)
25419                         "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
25420                         "\xb4\xec\x80\xb1",
25421                 .entprb = (unsigned char *)
25422                         "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
25423                         "\x28\x07\xeb\xc2",
25424                 .entprlen = 16,
25425                 .expected = (unsigned char *)
25426                         "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
25427                         "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
25428                         "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
25429                         "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
25430                         "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
25431                         "\x8a\xf1\x23\xa8",
25432                 .expectedlen = 64,
25433                 .addtla = NULL,
25434                 .addtlb = NULL,
25435                 .addtllen = 0,
25436                 .pers = NULL,
25437                 .perslen = 0,
25438         }, {
25439                 .entropy = (unsigned char *)
25440                         "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
25441                         "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
25442                 .entropylen = 24,
25443                 .entpra = (unsigned char *)
25444                         "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
25445                         "\x67\xd1\x08\xf8",
25446                 .entprb = (unsigned char *)
25447                         "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
25448                         "\xd4\xba\x04\x58",
25449                 .entprlen = 16,
25450                 .expected = (unsigned char *)
25451                         "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
25452                         "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
25453                         "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
25454                         "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
25455                         "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
25456                         "\xc1\x02\x41\x82",
25457                 .expectedlen = 64,
25458                 .addtla = (unsigned char *)
25459                         "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
25460                         "\xeb\xb3\x01\x76",
25461                 .addtlb = (unsigned char *)
25462                         "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
25463                         "\xd0\x7f\xcc\x43",
25464                 .addtllen = 16,
25465                 .pers = NULL,
25466                 .perslen = 0,
25467         }, {
25468                 .entropy = (unsigned char *)
25469                         "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
25470                         "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
25471                 .entropylen = 24,
25472                 .entpra = (unsigned char *)
25473                         "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
25474                         "\xc3\x0f\xe3\xb0",
25475                 .entprb = (unsigned char *)
25476                         "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
25477                         "\xd6\x9c\x9d\xe8",
25478                 .entprlen = 16,
25479                 .expected = (unsigned char *)
25480                         "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
25481                         "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
25482                         "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
25483                         "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
25484                         "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
25485                         "\x72\x82\x0c\xcf",
25486                 .expectedlen = 64,
25487                 .addtla = NULL,
25488                 .addtlb = NULL,
25489                 .addtllen = 0,
25490                 .pers = (unsigned char *)
25491                         "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
25492                         "\x21\x52\xb3\xad",
25493                 .perslen = 16,
25494         }, {
25495                 .entropy = (unsigned char *)
25496                         "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
25497                         "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
25498                 .entropylen = 24,
25499                 .entpra = (unsigned char *)
25500                         "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
25501                         "\xc4\x2c\xe8\x10",
25502                 .entprb = (unsigned char *)
25503                         "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
25504                         "\x08\xf7\xa5\x01",
25505                 .entprlen = 16,
25506                 .expected = (unsigned char *)
25507                         "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
25508                         "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
25509                         "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
25510                         "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
25511                         "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
25512                         "\x23\xc5\x1f\x68",
25513                 .expectedlen = 64,
25514                 .addtla = (unsigned char *)
25515                         "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
25516                         "\x23\x6d\xad\x1d",
25517                 .addtlb = (unsigned char *)
25518                         "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
25519                         "\xbc\x59\x31\x8c",
25520                 .addtllen = 16,
25521                 .pers = (unsigned char *)
25522                         "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
25523                         "\x37\x3c\x5c\x0b",
25524                 .perslen = 16,
25525         },
25526 };
25527
25528 /*
25529  * SP800-90A DRBG Test vectors from
25530  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25531  *
25532  * Test vectors for DRBG without prediction resistance. All types of DRBGs
25533  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25534  * w/o personalization string, w/ and w/o additional input string).
25535  */
25536 static const struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
25537         {
25538                 .entropy = (unsigned char *)
25539                         "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
25540                         "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
25541                         "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
25542                         "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
25543                 .entropylen = 48,
25544                 .expected = (unsigned char *)
25545                         "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
25546                         "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
25547                         "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
25548                         "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
25549                         "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
25550                         "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
25551                         "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
25552                         "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
25553                         "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
25554                         "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
25555                         "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
25556                 .expectedlen = 128,
25557                 .addtla = NULL,
25558                 .addtlb = NULL,
25559                 .addtllen = 0,
25560                 .pers = NULL,
25561                 .perslen = 0,
25562         }, {
25563                 .entropy = (unsigned char *)
25564                         "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
25565                         "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
25566                         "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
25567                         "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
25568                 .entropylen = 48,
25569                 .expected = (unsigned char *)
25570                         "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
25571                         "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
25572                         "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
25573                         "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
25574                         "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
25575                         "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
25576                         "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
25577                         "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
25578                         "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
25579                         "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
25580                         "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
25581                 .expectedlen = 128,
25582                 .addtla = (unsigned char *)
25583                         "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
25584                         "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
25585                         "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
25586                 .addtlb = (unsigned char *)
25587                         "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
25588                         "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
25589                         "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
25590                 .addtllen = 32,
25591                 .pers = NULL,
25592                 .perslen = 0,
25593         }, {
25594                 .entropy = (unsigned char *)
25595                         "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
25596                         "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
25597                         "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
25598                         "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
25599                 .entropylen = 48,
25600                 .expected = (unsigned char *)
25601                         "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
25602                         "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
25603                         "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
25604                         "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
25605                         "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
25606                         "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
25607                         "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
25608                         "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
25609                         "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
25610                         "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
25611                         "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
25612                 .expectedlen = 128,
25613                 .addtla = NULL,
25614                 .addtlb = NULL,
25615                 .addtllen = 0,
25616                 .pers = (unsigned char *)
25617                         "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
25618                         "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
25619                         "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
25620                 .perslen = 32,
25621         }, {
25622                 .entropy = (unsigned char *)
25623                         "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
25624                         "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
25625                         "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
25626                         "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
25627                 .entropylen = 48,
25628                 .expected = (unsigned char *)
25629                         "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
25630                         "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
25631                         "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
25632                         "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
25633                         "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
25634                         "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
25635                         "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
25636                         "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
25637                         "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
25638                         "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
25639                         "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
25640                 .expectedlen = 128,
25641                 .addtla = (unsigned char *)
25642                         "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
25643                         "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
25644                         "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
25645                 .addtlb = (unsigned char *)
25646                         "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
25647                         "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
25648                         "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
25649                 .addtllen = 32,
25650                 .pers = (unsigned char *)
25651                         "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
25652                         "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
25653                         "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
25654                 .perslen = 32,
25655         },
25656 };
25657
25658 static const struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
25659         {
25660                 .entropy = (unsigned char *)
25661                         "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
25662                         "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
25663                         "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
25664                         "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
25665                 .entropylen = 48,
25666                 .expected = (unsigned char *)
25667                         "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
25668                         "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
25669                         "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
25670                         "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
25671                         "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
25672                         "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
25673                         "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
25674                         "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
25675                         "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
25676                         "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
25677                         "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
25678                 .expectedlen = 128,
25679                 .addtla = NULL,
25680                 .addtlb = NULL,
25681                 .addtllen = 0,
25682                 .pers = NULL,
25683                 .perslen = 0,
25684         }, {
25685                 .entropy = (unsigned char *)
25686                         "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
25687                         "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
25688                         "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
25689                         "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
25690                 .entropylen = 48,
25691                 .expected = (unsigned char *)
25692                         "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
25693                         "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
25694                         "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
25695                         "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
25696                         "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
25697                         "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
25698                         "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
25699                         "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
25700                         "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
25701                         "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
25702                         "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
25703                 .expectedlen = 128,
25704                 .addtla = (unsigned char *)
25705                         "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
25706                         "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
25707                         "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
25708                 .addtlb = (unsigned char *)
25709                         "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
25710                         "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
25711                         "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
25712                 .addtllen = 32,
25713                 .pers = NULL,
25714                 .perslen = 0,
25715         }, {
25716                 .entropy = (unsigned char *)
25717                         "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
25718                         "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
25719                         "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
25720                         "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
25721                 .entropylen = 48,
25722                 .expected = (unsigned char *)
25723                         "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
25724                         "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
25725                         "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
25726                         "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
25727                         "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
25728                         "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
25729                         "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
25730                         "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
25731                         "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
25732                         "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
25733                         "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
25734                 .expectedlen = 128,
25735                 .addtla = NULL,
25736                 .addtlb = NULL,
25737                 .addtllen = 0,
25738                 .pers = (unsigned char *)
25739                         "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
25740                         "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
25741                         "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
25742                 .perslen = 32,
25743         }, {
25744                 .entropy = (unsigned char *)
25745                         "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
25746                         "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
25747                         "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
25748                         "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
25749                 .entropylen = 48,
25750                 .expected = (unsigned char *)
25751                         "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
25752                         "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
25753                         "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
25754                         "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
25755                         "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
25756                         "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
25757                         "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
25758                         "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
25759                         "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
25760                         "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
25761                         "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
25762                 .expectedlen = 128,
25763                 .addtla = (unsigned char *)
25764                         "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
25765                         "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
25766                         "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
25767                 .addtlb = (unsigned char *)
25768                         "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
25769                         "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
25770                         "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
25771                 .addtllen = 32,
25772                 .pers = (unsigned char *)
25773                         "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
25774                         "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
25775                         "\x36\x60\x3b\xca\x37\xc9\xee\x29",
25776                 .perslen = 32,
25777         },
25778 };
25779
25780 static const struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
25781         {
25782                 .entropy = (unsigned char *)
25783                         "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
25784                         "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
25785                         "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
25786                         "\xac\x9b\xbb\x00",
25787                 .entropylen = 40,
25788                 .expected = (unsigned char *)
25789                         "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
25790                         "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
25791                         "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
25792                         "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
25793                         "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
25794                         "\x9a\x9d\xf1\x0d",
25795                 .expectedlen = 64,
25796                 .addtla = NULL,
25797                 .addtlb = NULL,
25798                 .addtllen = 0,
25799                 .pers = NULL,
25800                 .perslen = 0,
25801         },
25802 };
25803
25804 static const struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
25805         {
25806                 .entropy = (unsigned char *)
25807                         "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
25808                         "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
25809                         "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
25810                         "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
25811                 .entropylen = 48,
25812                 .expected = (unsigned char *)
25813                         "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
25814                         "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
25815                         "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
25816                         "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
25817                         "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
25818                         "\xb4\xf0\x7e\x1d",
25819                 .expectedlen = 64,
25820                 .addtla = NULL,
25821                 .addtlb = NULL,
25822                 .addtllen = 0,
25823                 .pers = NULL,
25824                 .perslen = 0,
25825         },
25826 };
25827
25828 static const struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
25829         {
25830                 .entropy = (unsigned char *)
25831                         "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
25832                         "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
25833                 .entropylen = 24,
25834                 .expected = (unsigned char *)
25835                         "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
25836                         "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
25837                         "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
25838                         "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
25839                         "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
25840                         "\xcb\x2d\xd6\xb0",
25841                 .expectedlen = 64,
25842                 .addtla = NULL,
25843                 .addtlb = NULL,
25844                 .addtllen = 0,
25845                 .pers = NULL,
25846                 .perslen = 0,
25847         }, {
25848                 .entropy = (unsigned char *)
25849                         "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
25850                         "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
25851                 .entropylen = 24,
25852                 .expected = (unsigned char *)
25853                         "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
25854                         "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
25855                         "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
25856                         "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
25857                         "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
25858                         "\xc3\xdf\xb3\x81",
25859                 .expectedlen = 64,
25860                 .addtla = (unsigned char *)
25861                         "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
25862                         "\x91\x4d\x81\x56",
25863                 .addtlb = (unsigned char *)
25864                         "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
25865                         "\x4a\x55\xd1\xc6",
25866                 .addtllen = 16,
25867                 .pers = NULL,
25868                 .perslen = 0,
25869         }, {
25870                 .entropy = (unsigned char *)
25871                         "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
25872                         "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
25873                 .entropylen = 24,
25874                 .expected = (unsigned char *)
25875                         "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
25876                         "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
25877                         "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
25878                         "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
25879                         "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
25880                         "\x34\x30\x0c\x3d",
25881                 .expectedlen = 64,
25882                 .addtla = NULL,
25883                 .addtlb = NULL,
25884                 .addtllen = 0,
25885                 .pers = (unsigned char *)
25886                         "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
25887                         "\x0b\xc6\x97\x54",
25888                 .perslen = 16,
25889         }, {
25890                 .entropy = (unsigned char *)
25891                         "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
25892                         "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
25893                 .entropylen = 24,
25894                 .expected = (unsigned char *)
25895                         "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
25896                         "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
25897                         "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
25898                         "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
25899                         "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
25900                         "\x2b\x49\x1e\x5c",
25901                 .expectedlen = 64,
25902                 .addtla = (unsigned char *)
25903                         "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
25904                         "\x44\x85\xe7\xfe",
25905                 .addtlb = (unsigned char *)
25906                         "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
25907                         "\x82\x16\x62\x7f",
25908                 .addtllen = 16,
25909                 .pers = (unsigned char *)
25910                         "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
25911                         "\x8e\xcf\xe0\x02",
25912                 .perslen = 16,
25913         },
25914 };
25915
25916 /* Cast5 test vectors from RFC 2144 */
25917 static const struct cipher_testvec cast5_enc_tv_template[] = {
25918         {
25919                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
25920                           "\x23\x45\x67\x89\x34\x56\x78\x9a",
25921                 .klen   = 16,
25922                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25923                 .ilen   = 8,
25924                 .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
25925                 .rlen   = 8,
25926         }, {
25927                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
25928                           "\x23\x45",
25929                 .klen   = 10,
25930                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25931                 .ilen   = 8,
25932                 .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
25933                 .rlen   = 8,
25934         }, {
25935                 .key    = "\x01\x23\x45\x67\x12",
25936                 .klen   = 5,
25937                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25938                 .ilen   = 8,
25939                 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
25940                 .rlen   = 8,
25941         }, { /* Generated from TF test vectors */
25942                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
25943                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
25944                 .klen   = 16,
25945                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
25946                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25947                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25948                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25949                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25950                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
25951                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
25952                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25953                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25954                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25955                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25956                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25957                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25958                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25959                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25960                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25961                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25962                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25963                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25964                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25965                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25966                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25967                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25968                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25969                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25970                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25971                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25972                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25973                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25974                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25975                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25976                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25977                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25978                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25979                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25980                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25981                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25982                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25983                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25984                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25985                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25986                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25987                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25988                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25989                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25990                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25991                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25992                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25993                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25994                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25995                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25996                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25997                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25998                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25999                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26000                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26001                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26002                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26003                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26004                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26005                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26006                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26007                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26008                 .ilen   = 496,
26009                 .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
26010                           "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
26011                           "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
26012                           "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
26013                           "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
26014                           "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
26015                           "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
26016                           "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
26017                           "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
26018                           "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
26019                           "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
26020                           "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
26021                           "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
26022                           "\xED\x34\x35\x78\x6B\x91\xC9\x32"
26023                           "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
26024                           "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
26025                           "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
26026                           "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
26027                           "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
26028                           "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
26029                           "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
26030                           "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
26031                           "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
26032                           "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26033                           "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26034                           "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26035                           "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26036                           "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26037                           "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26038                           "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26039                           "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26040                           "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26041                           "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26042                           "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26043                           "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26044                           "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26045                           "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26046                           "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26047                           "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26048                           "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26049                           "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26050                           "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26051                           "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26052                           "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26053                           "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26054                           "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26055                           "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26056                           "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26057                           "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26058                           "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26059                           "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26060                           "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26061                           "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26062                           "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26063                           "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26064                           "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26065                           "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26066                           "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26067                           "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26068                           "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26069                           "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26070                           "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26071                 .rlen   = 496,
26072                 .also_non_np = 1,
26073                 .np     = 3,
26074                 .tap    = { 496 - 20, 4, 16 },
26075         },
26076 };
26077
26078 static const struct cipher_testvec cast5_dec_tv_template[] = {
26079         {
26080                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
26081                           "\x23\x45\x67\x89\x34\x56\x78\x9a",
26082                 .klen   = 16,
26083                 .input  = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
26084                 .ilen   = 8,
26085                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26086                 .rlen   = 8,
26087         }, {
26088                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
26089                           "\x23\x45",
26090                 .klen   = 10,
26091                 .input  = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
26092                 .ilen   = 8,
26093                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26094                 .rlen   = 8,
26095         }, {
26096                 .key    = "\x01\x23\x45\x67\x12",
26097                 .klen   = 5,
26098                 .input  = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
26099                 .ilen   = 8,
26100                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26101                 .rlen   = 8,
26102         }, { /* Generated from TF test vectors */
26103                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26104                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26105                 .klen   = 16,
26106                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26107                 .input  = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
26108                           "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
26109                           "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
26110                           "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
26111                           "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
26112                           "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
26113                           "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
26114                           "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
26115                           "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
26116                           "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
26117                           "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
26118                           "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
26119                           "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
26120                           "\xED\x34\x35\x78\x6B\x91\xC9\x32"
26121                           "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
26122                           "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
26123                           "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
26124                           "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
26125                           "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
26126                           "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
26127                           "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
26128                           "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
26129                           "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
26130                           "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26131                           "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26132                           "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26133                           "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26134                           "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26135                           "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26136                           "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26137                           "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26138                           "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26139                           "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26140                           "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26141                           "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26142                           "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26143                           "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26144                           "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26145                           "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26146                           "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26147                           "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26148                           "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26149                           "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26150                           "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26151                           "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26152                           "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26153                           "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26154                           "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26155                           "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26156                           "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26157                           "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26158                           "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26159                           "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26160                           "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26161                           "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26162                           "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26163                           "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26164                           "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26165                           "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26166                           "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26167                           "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26168                           "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26169                 .ilen   = 496,
26170                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26171                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26172                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26173                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26174                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26175                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26176                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26177                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26178                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26179                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26180                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26181                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26182                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26183                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26184                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26185                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26186                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26187                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26188                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26189                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26190                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26191                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26192                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26193                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26194                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26195                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26196                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26197                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26198                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26199                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26200                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26201                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26202                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26203                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26204                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26205                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26206                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26207                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26208                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26209                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26210                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26211                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26212                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26213                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26214                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26215                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26216                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26217                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26218                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26219                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26220                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26221                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26222                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26223                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26224                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26225                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26226                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26227                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26228                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26229                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26230                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26231                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26232                 .rlen   = 496,
26233                 .also_non_np = 1,
26234                 .np     = 3,
26235                 .tap    = { 496 - 20, 4, 16 },
26236         },
26237 };
26238
26239 static const struct cipher_testvec cast5_cbc_enc_tv_template[] = {
26240         { /* Generated from TF test vectors */
26241                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26242                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26243                 .klen   = 16,
26244                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26245                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26246                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26247                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26248                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26249                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26250                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26251                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26252                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26253                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26254                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26255                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26256                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26257                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26258                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26259                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26260                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26261                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26262                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26263                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26264                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26265                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26266                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26267                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26268                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26269                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26270                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26271                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26272                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26273                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26274                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26275                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26276                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26277                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26278                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26279                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26280                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26281                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26282                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26283                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26284                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26285                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26286                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26287                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26288                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26289                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26290                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26291                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26292                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26293                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26294                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26295                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26296                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26297                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26298                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26299                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26300                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26301                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26302                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26303                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26304                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26305                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26306                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26307                 .ilen   = 496,
26308                 .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26309                           "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26310                           "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26311                           "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26312                           "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26313                           "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26314                           "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26315                           "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26316                           "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26317                           "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26318                           "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26319                           "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26320                           "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26321                           "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26322                           "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26323                           "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26324                           "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26325                           "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26326                           "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26327                           "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26328                           "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26329                           "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26330                           "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26331                           "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26332                           "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26333                           "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26334                           "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26335                           "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26336                           "\x90\x12\x37\x49\x27\x98\x69\x18"
26337                           "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26338                           "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26339                           "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26340                           "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26341                           "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26342                           "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26343                           "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26344                           "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26345                           "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26346                           "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26347                           "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26348                           "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26349                           "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26350                           "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26351                           "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26352                           "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26353                           "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26354                           "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26355                           "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26356                           "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26357                           "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26358                           "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26359                           "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26360                           "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26361                           "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26362                           "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26363                           "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26364                           "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26365                           "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26366                           "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26367                           "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26368                           "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26369                           "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26370                 .rlen   = 496,
26371                 .also_non_np = 1,
26372                 .np     = 3,
26373                 .tap    = { 496 - 20, 4, 16 },
26374         },
26375 };
26376
26377 static const struct cipher_testvec cast5_cbc_dec_tv_template[] = {
26378         { /* Generated from TF test vectors */
26379                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26380                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26381                 .klen   = 16,
26382                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26383                 .input  = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26384                           "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26385                           "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26386                           "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26387                           "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26388                           "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26389                           "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26390                           "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26391                           "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26392                           "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26393                           "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26394                           "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26395                           "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26396                           "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26397                           "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26398                           "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26399                           "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26400                           "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26401                           "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26402                           "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26403                           "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26404                           "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26405                           "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26406                           "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26407                           "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26408                           "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26409                           "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26410                           "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26411                           "\x90\x12\x37\x49\x27\x98\x69\x18"
26412                           "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26413                           "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26414                           "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26415                           "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26416                           "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26417                           "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26418                           "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26419                           "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26420                           "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26421                           "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26422                           "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26423                           "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26424                           "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26425                           "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26426                           "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26427                           "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26428                           "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26429                           "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26430                           "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26431                           "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26432                           "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26433                           "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26434                           "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26435                           "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26436                           "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26437                           "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26438                           "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26439                           "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26440                           "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26441                           "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26442                           "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26443                           "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26444                           "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26445                 .ilen   = 496,
26446                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26447                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26448                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26449                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26450                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26451                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26452                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26453                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26454                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26455                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26456                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26457                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26458                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26459                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26460                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26461                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26462                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26463                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26464                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26465                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26466                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26467                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26468                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26469                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26470                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26471                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26472                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26473                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26474                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26475                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26476                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26477                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26478                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26479                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26480                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26481                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26482                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26483                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26484                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26485                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26486                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26487                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26488                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26489                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26490                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26491                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26492                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26493                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26494                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26495                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26496                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26497                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26498                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26499                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26500                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26501                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26502                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26503                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26504                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26505                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26506                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26507                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26508                 .rlen   = 496,
26509                 .also_non_np = 1,
26510                 .np     = 3,
26511                 .tap    = { 496 - 20, 4, 16 },
26512         },
26513 };
26514
26515 static const struct cipher_testvec cast5_ctr_enc_tv_template[] = {
26516         { /* Generated from TF test vectors */
26517                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26518                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26519                 .klen   = 16,
26520                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26521                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26522                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26523                           "\x3A",
26524                 .ilen   = 17,
26525                 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26526                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26527                           "\x0C",
26528                 .rlen   = 17,
26529         }, { /* Generated from TF test vectors */
26530                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26531                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26532                 .klen   = 16,
26533                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26534                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26535                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26536                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26537                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26538                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26539                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26540                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26541                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26542                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26543                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26544                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26545                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26546                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26547                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26548                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26549                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26550                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26551                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26552                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26553                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26554                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26555                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26556                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26557                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26558                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26559                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26560                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26561                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26562                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26563                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26564                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26565                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26566                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26567                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26568                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26569                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26570                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26571                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26572                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26573                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26574                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26575                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26576                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26577                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26578                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26579                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26580                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26581                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26582                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26583                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26584                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26585                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26586                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26587                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26588                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26589                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26590                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26591                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26592                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26593                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26594                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26595                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26596                 .ilen   = 496,
26597                 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26598                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26599                           "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26600                           "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26601                           "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26602                           "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26603                           "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26604                           "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26605                           "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26606                           "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26607                           "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26608                           "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26609                           "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26610                           "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26611                           "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26612                           "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26613                           "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26614                           "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26615                           "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26616                           "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26617                           "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26618                           "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26619                           "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26620                           "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26621                           "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26622                           "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26623                           "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26624                           "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26625                           "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26626                           "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26627                           "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26628                           "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26629                           "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26630                           "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26631                           "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26632                           "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26633                           "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26634                           "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26635                           "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26636                           "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26637                           "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26638                           "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26639                           "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26640                           "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26641                           "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26642                           "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26643                           "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26644                           "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26645                           "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26646                           "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26647                           "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26648                           "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26649                           "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26650                           "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26651                           "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26652                           "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26653                           "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26654                           "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26655                           "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26656                           "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26657                           "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26658                           "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26659                 .rlen   = 496,
26660                 .also_non_np = 1,
26661                 .np     = 3,
26662                 .tap    = { 496 - 20, 4, 16 },
26663         },
26664 };
26665
26666 static const struct cipher_testvec cast5_ctr_dec_tv_template[] = {
26667         { /* Generated from TF test vectors */
26668                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26669                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26670                 .klen   = 16,
26671                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26672                 .input  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26673                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26674                           "\x0C",
26675                 .ilen   = 17,
26676                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26677                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26678                           "\x3A",
26679                 .rlen   = 17,
26680         }, { /* Generated from TF test vectors */
26681                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26682                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26683                 .klen   = 16,
26684                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26685                 .input  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26686                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26687                           "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26688                           "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26689                           "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26690                           "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26691                           "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26692                           "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26693                           "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26694                           "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26695                           "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26696                           "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26697                           "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26698                           "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26699                           "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26700                           "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26701                           "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26702                           "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26703                           "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26704                           "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26705                           "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26706                           "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26707                           "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26708                           "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26709                           "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26710                           "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26711                           "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26712                           "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26713                           "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26714                           "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26715                           "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26716                           "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26717                           "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26718                           "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26719                           "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26720                           "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26721                           "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26722                           "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26723                           "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26724                           "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26725                           "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26726                           "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26727                           "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26728                           "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26729                           "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26730                           "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26731                           "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26732                           "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26733                           "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26734                           "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26735                           "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26736                           "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26737                           "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26738                           "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26739                           "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26740                           "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26741                           "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26742                           "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26743                           "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26744                           "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26745                           "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26746                           "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26747                 .ilen   = 496,
26748                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26749                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26750                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26751                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26752                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26753                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26754                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26755                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26756                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26757                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26758                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26759                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26760                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26761                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26762                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26763                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26764                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26765                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26766                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26767                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26768                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26769                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26770                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26771                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26772                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26773                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26774                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26775                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26776                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26777                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26778                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26779                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26780                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26781                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26782                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26783                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26784                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26785                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26786                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26787                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26788                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26789                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26790                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26791                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26792                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26793                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26794                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26795                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26796                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26797                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26798                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26799                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26800                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26801                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26802                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26803                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26804                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26805                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26806                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26807                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26808                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26809                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26810                 .rlen   = 496,
26811                 .also_non_np = 1,
26812                 .np     = 3,
26813                 .tap    = { 496 - 20, 4, 16 },
26814         },
26815 };
26816
26817 /*
26818  * ARC4 test vectors from OpenSSL
26819  */
26820 static const struct cipher_testvec arc4_enc_tv_template[] = {
26821         {
26822                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26823                 .klen   = 8,
26824                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26825                 .ilen   = 8,
26826                 .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26827                 .rlen   = 8,
26828         }, {
26829                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26830                 .klen   = 8,
26831                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00",
26832                 .ilen   = 8,
26833                 .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26834                 .rlen   = 8,
26835         }, {
26836                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
26837                 .klen   = 8,
26838                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00",
26839                 .ilen   = 8,
26840                 .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26841                 .rlen   = 8,
26842         }, {
26843                 .key    = "\xef\x01\x23\x45",
26844                 .klen   = 4,
26845                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
26846                           "\x00\x00\x00\x00\x00\x00\x00\x00"
26847                           "\x00\x00\x00\x00",
26848                 .ilen   = 20,
26849                 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26850                           "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26851                           "\x36\xb6\x78\x58",
26852                 .rlen   = 20,
26853         }, {
26854                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26855                 .klen   = 8,
26856                 .input  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26857                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26858                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26859                           "\x12\x34\x56\x78",
26860                 .ilen   = 28,
26861                 .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26862                           "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26863                           "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26864                           "\x40\x01\x1e\xcf",
26865                 .rlen   = 28,
26866         }, {
26867                 .key    = "\xef\x01\x23\x45",
26868                 .klen   = 4,
26869                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
26870                           "\x00\x00",
26871                 .ilen   = 10,
26872                 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26873                           "\xbd\x61",
26874                 .rlen   = 10,
26875         }, {
26876                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26877                         "\x00\x00\x00\x00\x00\x00\x00\x00",
26878                 .klen   = 16,
26879                 .input  = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26880                 .ilen   = 8,
26881                 .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26882                 .rlen   = 8,
26883         },
26884 };
26885
26886 static const struct cipher_testvec arc4_dec_tv_template[] = {
26887         {
26888                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26889                 .klen   = 8,
26890                 .input  = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26891                 .ilen   = 8,
26892                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26893                 .rlen   = 8,
26894         }, {
26895                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26896                 .klen   = 8,
26897                 .input  = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26898                 .ilen   = 8,
26899                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26900                 .rlen   = 8,
26901         }, {
26902                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
26903                 .klen   = 8,
26904                 .input  = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26905                 .ilen   = 8,
26906                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26907                 .rlen   = 8,
26908         }, {
26909                 .key    = "\xef\x01\x23\x45",
26910                 .klen   = 4,
26911                 .input  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26912                           "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26913                           "\x36\xb6\x78\x58",
26914                 .ilen   = 20,
26915                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26916                           "\x00\x00\x00\x00\x00\x00\x00\x00"
26917                           "\x00\x00\x00\x00",
26918                 .rlen   = 20,
26919         }, {
26920                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26921                 .klen   = 8,
26922                 .input  = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26923                           "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26924                           "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26925                           "\x40\x01\x1e\xcf",
26926                 .ilen   = 28,
26927                 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26928                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26929                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26930                           "\x12\x34\x56\x78",
26931                 .rlen   = 28,
26932         }, {
26933                 .key    = "\xef\x01\x23\x45",
26934                 .klen   = 4,
26935                 .input  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26936                           "\xbd\x61",
26937                 .ilen   = 10,
26938                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26939                           "\x00\x00",
26940                 .rlen   = 10,
26941         }, {
26942                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26943                         "\x00\x00\x00\x00\x00\x00\x00\x00",
26944                 .klen   = 16,
26945                 .input  = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26946                 .ilen   = 8,
26947                 .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26948                 .rlen   = 8,
26949         },
26950 };
26951
26952 /*
26953  * TEA test vectors
26954  */
26955 static const struct cipher_testvec tea_enc_tv_template[] = {
26956         {
26957                 .key    = zeroed_string,
26958                 .klen   = 16,
26959                 .input  = zeroed_string,
26960                 .ilen   = 8,
26961                 .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26962                 .rlen   = 8,
26963         }, {
26964                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26965                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26966                 .klen   = 16,
26967                 .input  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26968                 .ilen   = 8,
26969                 .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26970                 .rlen   = 8,
26971         }, {
26972                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
26973                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26974                 .klen   = 16,
26975                 .input  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26976                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
26977                 .ilen   = 16,
26978                 .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26979                           "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26980                 .rlen   = 16,
26981         }, {
26982                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26983                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
26984                 .klen   = 16,
26985                 .input  = "\x54\x65\x61\x20\x69\x73\x20\x67"
26986                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
26987                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
26988                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
26989                 .ilen   = 32,
26990                 .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
26991                           "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
26992                           "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
26993                           "\x07\x89\x73\xc2\x45\x92\xc6\x90",
26994                 .rlen   = 32,
26995         }
26996 };
26997
26998 static const struct cipher_testvec tea_dec_tv_template[] = {
26999         {
27000                 .key    = zeroed_string,
27001                 .klen   = 16,
27002                 .input  = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
27003                 .ilen   = 8,
27004                 .result = zeroed_string,
27005                 .rlen   = 8,
27006         }, {
27007                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27008                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27009                 .klen   = 16,
27010                 .input  = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
27011                 .ilen   = 8,
27012                 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27013                 .rlen   = 8,
27014         }, {
27015                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27016                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27017                 .klen   = 16,
27018                 .input  = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
27019                           "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
27020                 .ilen   = 16,
27021                 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27022                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27023                 .rlen   = 16,
27024         }, {
27025                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27026                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27027                 .klen   = 16,
27028                 .input  = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
27029                           "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
27030                           "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
27031                           "\x07\x89\x73\xc2\x45\x92\xc6\x90",
27032                 .ilen   = 32,
27033                 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27034                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27035                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27036                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27037                 .rlen   = 32,
27038         }
27039 };
27040
27041 /*
27042  * XTEA test vectors
27043  */
27044 static const struct cipher_testvec xtea_enc_tv_template[] = {
27045         {
27046                 .key    = zeroed_string,
27047                 .klen   = 16,
27048                 .input  = zeroed_string,
27049                 .ilen   = 8,
27050                 .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27051                 .rlen   = 8,
27052         }, {
27053                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27054                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27055                 .klen   = 16,
27056                 .input  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27057                 .ilen   = 8,
27058                 .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27059                 .rlen   = 8,
27060         }, {
27061                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27062                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27063                 .klen   = 16,
27064                 .input  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27065                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27066                 .ilen   = 16,
27067                 .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27068                           "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27069                 .rlen   = 16,
27070         }, {
27071                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27072                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27073                 .klen   = 16,
27074                 .input  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27075                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27076                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27077                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27078                 .ilen   = 32,
27079                 .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27080                           "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27081                           "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27082                           "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27083                 .rlen   = 32,
27084         }
27085 };
27086
27087 static const struct cipher_testvec xtea_dec_tv_template[] = {
27088         {
27089                 .key    = zeroed_string,
27090                 .klen   = 16,
27091                 .input  = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27092                 .ilen   = 8,
27093                 .result = zeroed_string,
27094                 .rlen   = 8,
27095         }, {
27096                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27097                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27098                 .klen   = 16,
27099                 .input  = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27100                 .ilen   = 8,
27101                 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27102                 .rlen   = 8,
27103         }, {
27104                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27105                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27106                 .klen   = 16,
27107                 .input  = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27108                           "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27109                 .ilen   = 16,
27110                 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27111                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27112                 .rlen   = 16,
27113         }, {
27114                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27115                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27116                 .klen   = 16,
27117                 .input  = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27118                           "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27119                           "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27120                           "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27121                 .ilen   = 32,
27122                 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27123                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27124                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27125                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27126                 .rlen   = 32,
27127         }
27128 };
27129
27130 /*
27131  * KHAZAD test vectors.
27132  */
27133 static const struct cipher_testvec khazad_enc_tv_template[] = {
27134         {
27135                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
27136                           "\x00\x00\x00\x00\x00\x00\x00\x00",
27137                 .klen   = 16,
27138                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27139                 .ilen   = 8,
27140                 .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27141                 .rlen   = 8,
27142         }, {
27143                 .key    = "\x38\x38\x38\x38\x38\x38\x38\x38"
27144                           "\x38\x38\x38\x38\x38\x38\x38\x38",
27145                 .klen   = 16,
27146                 .input  = "\x38\x38\x38\x38\x38\x38\x38\x38",
27147                 .ilen   = 8,
27148                 .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27149                 .rlen   = 8,
27150         }, {
27151                 .key    = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27152                         "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27153                 .klen   = 16,
27154                 .input  = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27155                 .ilen   = 8,
27156                 .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27157                 .rlen   = 8,
27158         }, {
27159                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27160                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27161                 .klen   = 16,
27162                 .input  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27163                 .ilen   = 8,
27164                 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27165                 .rlen   = 8,
27166         }, {
27167                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27168                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27169                 .klen   = 16,
27170                 .input  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27171                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27172                 .ilen   = 16,
27173                 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27174                         "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27175                 .rlen   = 16,
27176         },
27177 };
27178
27179 static const struct cipher_testvec khazad_dec_tv_template[] = {
27180         {
27181                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
27182                           "\x00\x00\x00\x00\x00\x00\x00\x00",
27183                 .klen   = 16,
27184                 .input  = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27185                 .ilen   = 8,
27186                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
27187                 .rlen   = 8,
27188         }, {
27189                 .key    = "\x38\x38\x38\x38\x38\x38\x38\x38"
27190                           "\x38\x38\x38\x38\x38\x38\x38\x38",
27191                 .klen   = 16,
27192                 .input  = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27193                 .ilen   = 8,
27194                 .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
27195                 .rlen   = 8,
27196         }, {
27197                 .key    = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27198                         "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27199                 .klen   = 16,
27200                 .input  = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27201                 .ilen   = 8,
27202                 .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27203                 .rlen   = 8,
27204         }, {
27205                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27206                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27207                 .klen   = 16,
27208                 .input  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27209                 .ilen   = 8,
27210                 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27211                 .rlen   = 8,
27212         }, {
27213                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27214                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27215                 .klen   = 16,
27216                 .input  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27217                         "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27218                 .ilen   = 16,
27219                 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27220                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27221                 .rlen   = 16,
27222         },
27223 };
27224
27225 /*
27226  * Anubis test vectors.
27227  */
27228
27229 static const struct cipher_testvec anubis_enc_tv_template[] = {
27230         {
27231                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27232                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27233                 .klen   = 16,
27234                 .input  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27235                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27236                 .ilen   = 16,
27237                 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27238                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27239                 .rlen   = 16,
27240         }, {
27241
27242                 .key    = "\x03\x03\x03\x03\x03\x03\x03\x03"
27243                           "\x03\x03\x03\x03\x03\x03\x03\x03"
27244                           "\x03\x03\x03\x03",
27245                 .klen   = 20,
27246                 .input  = "\x03\x03\x03\x03\x03\x03\x03\x03"
27247                           "\x03\x03\x03\x03\x03\x03\x03\x03",
27248                 .ilen   = 16,
27249                 .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27250                           "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27251                 .rlen   = 16,
27252         }, {
27253                 .key    = "\x24\x24\x24\x24\x24\x24\x24\x24"
27254                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27255                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27256                           "\x24\x24\x24\x24",
27257                 .klen   = 28,
27258                 .input  = "\x24\x24\x24\x24\x24\x24\x24\x24"
27259                           "\x24\x24\x24\x24\x24\x24\x24\x24",
27260                 .ilen   = 16,
27261                 .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27262                           "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27263                 .rlen   = 16,
27264         }, {
27265                 .key    = "\x25\x25\x25\x25\x25\x25\x25\x25"
27266                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27267                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27268                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27269                 .klen   = 32,
27270                 .input  = "\x25\x25\x25\x25\x25\x25\x25\x25"
27271                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27272                 .ilen   = 16,
27273                 .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27274                         "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27275                 .rlen   = 16,
27276         }, {
27277                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27278                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27279                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27280                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27281                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27282                 .klen   = 40,
27283                 .input  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27284                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27285                 .ilen   = 16,
27286                 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27287                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27288                 .rlen   = 16,
27289         },
27290 };
27291
27292 static const struct cipher_testvec anubis_dec_tv_template[] = {
27293         {
27294                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27295                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27296                 .klen   = 16,
27297                 .input  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27298                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27299                 .ilen   = 16,
27300                 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27301                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27302                 .rlen   = 16,
27303         }, {
27304
27305                 .key    = "\x03\x03\x03\x03\x03\x03\x03\x03"
27306                           "\x03\x03\x03\x03\x03\x03\x03\x03"
27307                           "\x03\x03\x03\x03",
27308                 .klen   = 20,
27309                 .input  = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27310                           "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27311                 .ilen   = 16,
27312                 .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
27313                           "\x03\x03\x03\x03\x03\x03\x03\x03",
27314                 .rlen   = 16,
27315         }, {
27316                 .key    = "\x24\x24\x24\x24\x24\x24\x24\x24"
27317                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27318                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27319                           "\x24\x24\x24\x24",
27320                 .klen   = 28,
27321                 .input  = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27322                           "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27323                 .ilen   = 16,
27324                 .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
27325                           "\x24\x24\x24\x24\x24\x24\x24\x24",
27326                 .rlen   = 16,
27327         }, {
27328                 .key    = "\x25\x25\x25\x25\x25\x25\x25\x25"
27329                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27330                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27331                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27332                 .klen   = 32,
27333                 .input  = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27334                         "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27335                 .ilen   = 16,
27336                 .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
27337                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27338                 .rlen   = 16,
27339         }, {
27340                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27341                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27342                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27343                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27344                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27345                 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27346                          "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27347                 .klen   = 40,
27348                 .ilen   = 16,
27349                 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
27350                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27351                 .rlen   = 16,
27352         },
27353 };
27354
27355 static const struct cipher_testvec anubis_cbc_enc_tv_template[] = {
27356         {
27357                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27358                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27359                 .klen   = 16,
27360                 .input  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27361                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27362                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27363                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27364                 .ilen   = 32,
27365                 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27366                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27367                           "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27368                           "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27369                 .rlen   = 32,
27370         }, {
27371                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27372                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27373                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27374                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27375                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27376                 .klen   = 40,
27377                 .input  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27378                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27379                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27380                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27381                 .ilen   = 32,
27382                 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27383                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27384                           "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27385                           "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27386                 .rlen   = 32,
27387         },
27388 };
27389
27390 static const struct cipher_testvec anubis_cbc_dec_tv_template[] = {
27391         {
27392                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27393                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27394                 .klen   = 16,
27395                 .input  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27396                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27397                           "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27398                           "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27399                 .ilen   = 32,
27400                 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27401                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27402                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27403                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27404                 .rlen   = 32,
27405         }, {
27406                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27407                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27408                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27409                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27410                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27411                 .klen   = 40,
27412                 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27413                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27414                           "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27415                           "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27416                 .ilen   = 32,
27417                 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
27418                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27419                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27420                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27421                 .rlen   = 32,
27422         },
27423 };
27424
27425 /*
27426  * XETA test vectors
27427  */
27428 static const struct cipher_testvec xeta_enc_tv_template[] = {
27429         {
27430                 .key    = zeroed_string,
27431                 .klen   = 16,
27432                 .input  = zeroed_string,
27433                 .ilen   = 8,
27434                 .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27435                 .rlen   = 8,
27436         }, {
27437                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27438                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27439                 .klen   = 16,
27440                 .input  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27441                 .ilen   = 8,
27442                 .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27443                 .rlen   = 8,
27444         }, {
27445                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27446                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27447                 .klen   = 16,
27448                 .input  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27449                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27450                 .ilen   = 16,
27451                 .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27452                           "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27453                 .rlen   = 16,
27454         }, {
27455                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27456                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27457                 .klen   = 16,
27458                 .input  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27459                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27460                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27461                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27462                 .ilen   = 32,
27463                 .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27464                           "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27465                           "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27466                           "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27467                 .rlen   = 32,
27468         }
27469 };
27470
27471 static const struct cipher_testvec xeta_dec_tv_template[] = {
27472         {
27473                 .key    = zeroed_string,
27474                 .klen   = 16,
27475                 .input  = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27476                 .ilen   = 8,
27477                 .result = zeroed_string,
27478                 .rlen   = 8,
27479         }, {
27480                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27481                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27482                 .klen   = 16,
27483                 .input  = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27484                 .ilen   = 8,
27485                 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27486                 .rlen   = 8,
27487         }, {
27488                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27489                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27490                 .klen   = 16,
27491                 .input  = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27492                           "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27493                 .ilen   = 16,
27494                 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27495                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27496                 .rlen   = 16,
27497         }, {
27498                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27499                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27500                 .klen   = 16,
27501                 .input  = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27502                           "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27503                           "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27504                           "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27505                 .ilen   = 32,
27506                 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27507                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27508                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27509                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27510                 .rlen   = 32,
27511         }
27512 };
27513
27514 /*
27515  * FCrypt test vectors
27516  */
27517 static const struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
27518         { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27519                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
27520                 .klen   = 8,
27521                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27522                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27523                 .ilen   = 8,
27524                 .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27525                 .rlen   = 8,
27526         }, {
27527                 .key    = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27528                 .klen   = 8,
27529                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27530                 .input  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27531                 .ilen   = 8,
27532                 .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27533                 .rlen   = 8,
27534         }, { /* From Arla */
27535                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27536                 .klen   = 8,
27537                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27538                 .input  = "The quick brown fox jumps over the lazy dogs.\0\0",
27539                 .ilen   = 48,
27540                 .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27541                           "\xee\xac\x98\x62\x44\x51\xe4\x84"
27542                           "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27543                           "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27544                           "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27545                           "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27546                 .rlen   = 48,
27547         }, {
27548                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27549                 .klen   = 8,
27550                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27551                 .input  = "The quick brown fox jumps over the lazy dogs.\0\0",
27552                 .ilen   = 48,
27553                 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27554                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27555                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27556                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27557                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27558                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27559                 .rlen   = 48,
27560         }, { /* split-page version */
27561                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27562                 .klen   = 8,
27563                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27564                 .input  = "The quick brown fox jumps over the lazy dogs.\0\0",
27565                 .ilen   = 48,
27566                 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27567                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27568                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27569                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27570                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27571                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27572                 .rlen   = 48,
27573                 .np     = 2,
27574                 .tap    = { 20, 28 },
27575         }
27576 };
27577
27578 static const struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
27579         { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27580                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
27581                 .klen   = 8,
27582                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27583                 .input  = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27584                 .ilen   = 8,
27585                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
27586                 .rlen   = 8,
27587         }, {
27588                 .key    = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27589                 .klen   = 8,
27590                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27591                 .input  = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27592                 .ilen   = 8,
27593                 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27594                 .rlen   = 8,
27595         }, { /* From Arla */
27596                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27597                 .klen   = 8,
27598                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27599                 .input  = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27600                           "\xee\xac\x98\x62\x44\x51\xe4\x84"
27601                           "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27602                           "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27603                           "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27604                           "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27605                 .ilen   = 48,
27606                 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27607                 .rlen   = 48,
27608         }, {
27609                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27610                 .klen   = 8,
27611                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27612                 .input  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27613                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27614                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27615                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27616                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27617                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27618                 .ilen   = 48,
27619                 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27620                 .rlen   = 48,
27621         }, { /* split-page version */
27622                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27623                 .klen   = 8,
27624                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27625                 .input  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27626                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27627                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27628                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27629                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27630                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27631                 .ilen   = 48,
27632                 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27633                 .rlen   = 48,
27634                 .np     = 2,
27635                 .tap    = { 20, 28 },
27636         }
27637 };
27638
27639 /*
27640  * CAMELLIA test vectors.
27641  */
27642 static const struct cipher_testvec camellia_enc_tv_template[] = {
27643         {
27644                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27645                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27646                 .klen   = 16,
27647                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27648                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27649                 .ilen   = 16,
27650                 .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
27651                           "\x08\x57\x06\x56\x48\xea\xbe\x43",
27652                 .rlen   = 16,
27653         }, {
27654                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27655                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27656                           "\x00\x11\x22\x33\x44\x55\x66\x77",
27657                 .klen   = 24,
27658                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27659                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27660                 .ilen   = 16,
27661                 .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27662                           "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27663                 .rlen   = 16,
27664         }, {
27665                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27666                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27667                           "\x00\x11\x22\x33\x44\x55\x66\x77"
27668                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27669                 .klen   = 32,
27670                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27671                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27672                 .ilen   = 16,
27673                 .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27674                           "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27675                 .rlen   = 16,
27676         }, { /* Generated with Crypto++ */
27677                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27678                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27679                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27680                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27681                 .klen   = 32,
27682                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27683                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27684                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27685                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27686                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27687                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27688                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27689                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27690                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27691                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27692                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27693                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27694                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27695                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27696                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27697                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27698                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27699                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27700                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27701                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27702                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27703                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27704                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27705                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27706                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27707                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27708                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27709                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27710                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27711                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27712                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27713                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27714                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27715                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27716                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27717                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27718                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27719                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27720                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27721                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27722                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27723                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27724                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27725                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27726                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27727                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27728                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27729                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27730                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27731                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27732                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27733                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27734                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27735                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27736                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27737                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27738                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27739                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27740                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27741                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27742                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27743                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27744                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27745                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27746                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27747                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27748                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27749                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27750                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27751                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27752                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27753                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27754                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27755                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27756                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27757                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27758                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27759                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27760                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27761                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27762                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27763                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27764                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27765                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27766                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27767                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27768                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27769                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27770                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27771                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27772                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27773                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27774                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27775                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27776                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27777                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27778                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27779                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27780                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27781                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27782                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27783                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27784                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27785                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27786                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27787                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27788                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27789                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27790                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27791                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27792                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27793                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27794                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27795                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27796                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27797                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27798                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27799                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27800                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27801                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27802                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27803                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27804                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27805                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27806                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27807                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
27808                 .ilen   = 1008,
27809                 .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27810                           "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27811                           "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27812                           "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27813                           "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27814                           "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27815                           "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27816                           "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27817                           "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27818                           "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27819                           "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27820                           "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27821                           "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27822                           "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27823                           "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27824                           "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27825                           "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27826                           "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27827                           "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27828                           "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27829                           "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27830                           "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27831                           "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27832                           "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27833                           "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27834                           "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27835                           "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27836                           "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27837                           "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27838                           "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27839                           "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27840                           "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27841                           "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27842                           "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27843                           "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27844                           "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27845                           "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27846                           "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27847                           "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27848                           "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27849                           "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27850                           "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27851                           "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27852                           "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27853                           "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
27854                           "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
27855                           "\x83\x06\xAB\x82\x99\x01\x16\x1A"
27856                           "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
27857                           "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
27858                           "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
27859                           "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
27860                           "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
27861                           "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
27862                           "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
27863                           "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
27864                           "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
27865                           "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
27866                           "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
27867                           "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
27868                           "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
27869                           "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
27870                           "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
27871                           "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
27872                           "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
27873                           "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
27874                           "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
27875                           "\xED\x28\x39\xE9\x63\xED\x41\x70"
27876                           "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
27877                           "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
27878                           "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
27879                           "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
27880                           "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
27881                           "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
27882                           "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
27883                           "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
27884                           "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
27885                           "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
27886                           "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
27887                           "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
27888                           "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
27889                           "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
27890                           "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
27891                           "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
27892                           "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
27893                           "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
27894                           "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
27895                           "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
27896                           "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
27897                           "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
27898                           "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
27899                           "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
27900                           "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
27901                           "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
27902                           "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
27903                           "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
27904                           "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
27905                           "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
27906                           "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
27907                           "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
27908                           "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
27909                           "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
27910                           "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
27911                           "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
27912                           "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
27913                           "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
27914                           "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
27915                           "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
27916                           "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
27917                           "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
27918                           "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
27919                           "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
27920                           "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
27921                           "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
27922                           "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
27923                           "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
27924                           "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
27925                           "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
27926                           "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
27927                           "\x31\x93\x51\x1C\x63\x97\x70\xB0"
27928                           "\x99\x78\x83\x13\xFD\xCF\x53\x81"
27929                           "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
27930                           "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
27931                           "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
27932                           "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
27933                           "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
27934                           "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
27935                 .rlen   = 1008,
27936                 .also_non_np = 1,
27937                 .np     = 3,
27938                 .tap    = { 1008 - 20, 4, 16 },
27939         },
27940 };
27941
27942 static const struct cipher_testvec camellia_dec_tv_template[] = {
27943         {
27944                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27945                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27946                 .klen   = 16,
27947                 .input  = "\x67\x67\x31\x38\x54\x96\x69\x73"
27948                           "\x08\x57\x06\x56\x48\xea\xbe\x43",
27949                 .ilen   = 16,
27950                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27951                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27952                 .rlen   = 16,
27953         }, {
27954                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27955                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27956                           "\x00\x11\x22\x33\x44\x55\x66\x77",
27957                 .klen   = 24,
27958                 .input  = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27959                           "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27960                 .ilen   = 16,
27961                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27962                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27963                 .rlen   = 16,
27964         }, {
27965                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27966                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27967                           "\x00\x11\x22\x33\x44\x55\x66\x77"
27968                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27969                 .klen   = 32,
27970                 .input  = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27971                           "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27972                 .ilen   = 16,
27973                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27974                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27975                 .rlen   = 16,
27976         }, { /* Generated with Crypto++ */
27977                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27978                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27979                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27980                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27981                 .klen   = 32,
27982                 .input  = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27983                           "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27984                           "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27985                           "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27986                           "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27987                           "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27988                           "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27989                           "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27990                           "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27991                           "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27992                           "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27993                           "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27994                           "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27995                           "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27996                           "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27997                           "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27998                           "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27999                           "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
28000                           "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
28001                           "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
28002                           "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
28003                           "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
28004                           "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
28005                           "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
28006                           "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
28007                           "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
28008                           "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
28009                           "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
28010                           "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
28011                           "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
28012                           "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
28013                           "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
28014                           "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
28015                           "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
28016                           "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
28017                           "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
28018                           "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
28019                           "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
28020                           "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
28021                           "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
28022                           "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
28023                           "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
28024                           "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
28025                           "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
28026                           "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
28027                           "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
28028                           "\x83\x06\xAB\x82\x99\x01\x16\x1A"
28029                           "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
28030                           "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
28031                           "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
28032                           "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
28033                           "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
28034                           "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
28035                           "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
28036                           "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
28037                           "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
28038                           "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
28039                           "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
28040                           "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
28041                           "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
28042                           "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
28043                           "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
28044                           "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
28045                           "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
28046                           "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
28047                           "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
28048                           "\xED\x28\x39\xE9\x63\xED\x41\x70"
28049                           "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
28050                           "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
28051                           "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
28052                           "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
28053                           "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
28054                           "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
28055                           "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
28056                           "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
28057                           "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
28058                           "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
28059                           "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
28060                           "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
28061                           "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
28062                           "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
28063                           "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
28064                           "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
28065                           "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
28066                           "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
28067                           "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
28068                           "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
28069                           "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
28070                           "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
28071                           "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
28072                           "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
28073                           "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
28074                           "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
28075                           "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
28076                           "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
28077                           "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
28078                           "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
28079                           "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
28080                           "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
28081                           "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
28082                           "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
28083                           "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
28084                           "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
28085                           "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
28086                           "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
28087                           "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
28088                           "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
28089                           "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
28090                           "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
28091                           "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
28092                           "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
28093                           "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
28094                           "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
28095                           "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
28096                           "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
28097                           "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
28098                           "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
28099                           "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
28100                           "\x31\x93\x51\x1C\x63\x97\x70\xB0"
28101                           "\x99\x78\x83\x13\xFD\xCF\x53\x81"
28102                           "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
28103                           "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
28104                           "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
28105                           "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
28106                           "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
28107                           "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
28108                 .ilen   = 1008,
28109                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28110                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28111                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28112                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28113                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28114                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28115                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28116                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28117                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28118                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28119                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28120                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28121                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28122                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28123                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28124                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28125                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28126                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28127                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28128                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28129                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28130                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28131                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28132                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28133                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28134                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28135                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28136                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28137                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28138                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28139                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28140                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28141                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28142                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28143                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28144                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28145                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28146                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28147                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28148                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28149                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28150                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28151                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28152                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28153                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28154                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28155                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28156                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28157                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28158                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28159                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28160                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28161                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28162                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28163                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28164                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28165                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28166                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28167                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28168                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28169                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28170                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28171                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28172                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28173                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28174                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28175                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28176                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28177                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28178                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28179                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28180                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28181                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28182                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28183                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28184                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28185                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28186                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28187                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28188                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28189                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28190                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28191                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28192                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28193                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28194                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28195                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28196                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28197                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28198                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28199                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28200                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28201                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28202                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28203                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28204                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28205                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28206                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28207                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28208                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28209                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28210                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28211                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28212                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28213                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28214                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28215                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28216                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28217                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28218                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28219                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28220                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28221                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28222                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28223                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28224                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28225                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28226                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28227                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28228                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28229                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28230                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28231                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28232                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28233                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28234                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28235                 .rlen   = 1008,
28236                 .also_non_np = 1,
28237                 .np     = 3,
28238                 .tap    = { 1008 - 20, 4, 16 },
28239         },
28240 };
28241
28242 static const struct cipher_testvec camellia_cbc_enc_tv_template[] = {
28243         {
28244                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28245                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28246                 .klen   = 16,
28247                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28248                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28249                 .input  = "Single block msg",
28250                 .ilen   = 16,
28251                 .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28252                           "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28253                 .rlen   = 16,
28254         }, {
28255                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28256                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28257                 .klen   = 16,
28258                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28259                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28260                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
28261                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28262                           "\x10\x11\x12\x13\x14\x15\x16\x17"
28263                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28264                 .ilen   = 32,
28265                 .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28266                           "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28267                           "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28268                           "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28269                 .rlen   = 32,
28270         }, { /* Generated with Crypto++ */
28271                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28272                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28273                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28274                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28275                 .klen   = 32,
28276                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28277                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28278                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28279                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28280                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28281                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28282                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28283                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28284                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28285                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28286                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28287                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28288                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28289                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28290                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28291                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28292                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28293                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28294                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28295                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28296                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28297                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28298                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28299                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28300                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28301                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28302                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28303                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28304                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28305                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28306                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28307                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28308                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28309                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28310                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28311                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28312                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28313                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28314                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28315                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28316                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28317                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28318                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28319                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28320                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28321                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28322                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28323                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28324                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28325                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28326                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28327                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28328                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28329                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28330                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28331                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28332                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28333                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28334                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28335                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28336                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28337                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28338                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28339                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28340                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28341                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28342                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28343                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28344                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28345                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28346                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28347                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28348                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28349                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28350                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28351                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28352                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28353                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28354                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28355                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28356                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28357                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28358                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28359                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28360                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28361                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28362                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28363                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28364                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28365                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28366                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28367                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28368                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28369                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28370                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28371                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28372                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28373                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28374                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28375                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28376                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28377                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28378                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28379                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28380                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28381                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28382                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28383                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28384                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28385                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28386                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28387                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28388                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28389                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28390                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28391                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28392                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28393                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28394                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28395                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28396                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28397                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28398                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28399                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28400                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28401                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28402                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28403                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28404                 .ilen   = 1008,
28405                 .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28406                           "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28407                           "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28408                           "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28409                           "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28410                           "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28411                           "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28412                           "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28413                           "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28414                           "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28415                           "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28416                           "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28417                           "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28418                           "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28419                           "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28420                           "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28421                           "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28422                           "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28423                           "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28424                           "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28425                           "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28426                           "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28427                           "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28428                           "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28429                           "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28430                           "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28431                           "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28432                           "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28433                           "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28434                           "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28435                           "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28436                           "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28437                           "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28438                           "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28439                           "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28440                           "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28441                           "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28442                           "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28443                           "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28444                           "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28445                           "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28446                           "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28447                           "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28448                           "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28449                           "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28450                           "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28451                           "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28452                           "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28453                           "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28454                           "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28455                           "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28456                           "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28457                           "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28458                           "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28459                           "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28460                           "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28461                           "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28462                           "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28463                           "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28464                           "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28465                           "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28466                           "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28467                           "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28468                           "\x21\x41\x56\x72\x13\xE1\x86\x07"
28469                           "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28470                           "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28471                           "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28472                           "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28473                           "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28474                           "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28475                           "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28476                           "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28477                           "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28478                           "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28479                           "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28480                           "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28481                           "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28482                           "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28483                           "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28484                           "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28485                           "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28486                           "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28487                           "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28488                           "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28489                           "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28490                           "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28491                           "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28492                           "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28493                           "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28494                           "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28495                           "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28496                           "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28497                           "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28498                           "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28499                           "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28500                           "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28501                           "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28502                           "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28503                           "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28504                           "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28505                           "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28506                           "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28507                           "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28508                           "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28509                           "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28510                           "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28511                           "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28512                           "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28513                           "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28514                           "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28515                           "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28516                           "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28517                           "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28518                           "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28519                           "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28520                           "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28521                           "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28522                           "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28523                           "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28524                           "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28525                           "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28526                           "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28527                           "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28528                           "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28529                           "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28530                           "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28531                 .rlen   = 1008,
28532                 .also_non_np = 1,
28533                 .np     = 3,
28534                 .tap    = { 1008 - 20, 4, 16 },
28535         },
28536 };
28537
28538 static const struct cipher_testvec camellia_cbc_dec_tv_template[] = {
28539         {
28540                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28541                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28542                 .klen   = 16,
28543                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28544                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28545                 .input  = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28546                           "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28547                 .ilen   = 16,
28548                 .result = "Single block msg",
28549                 .rlen   = 16,
28550         }, {
28551                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28552                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28553                 .klen   = 16,
28554                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28555                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28556                 .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28557                           "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28558                           "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28559                           "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28560                 .ilen   = 32,
28561                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
28562                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28563                           "\x10\x11\x12\x13\x14\x15\x16\x17"
28564                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28565                 .rlen   = 32,
28566         }, { /* Generated with Crypto++ */
28567                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28568                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28569                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28570                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28571                 .klen   = 32,
28572                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28573                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28574                 .input  = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28575                           "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28576                           "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28577                           "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28578                           "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28579                           "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28580                           "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28581                           "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28582                           "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28583                           "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28584                           "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28585                           "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28586                           "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28587                           "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28588                           "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28589                           "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28590                           "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28591                           "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28592                           "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28593                           "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28594                           "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28595                           "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28596                           "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28597                           "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28598                           "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28599                           "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28600                           "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28601                           "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28602                           "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28603                           "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28604                           "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28605                           "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28606                           "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28607                           "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28608                           "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28609                           "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28610                           "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28611                           "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28612                           "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28613                           "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28614                           "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28615                           "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28616                           "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28617                           "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28618                           "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28619                           "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28620                           "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28621                           "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28622                           "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28623                           "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28624                           "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28625                           "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28626                           "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28627                           "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28628                           "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28629                           "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28630                           "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28631                           "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28632                           "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28633                           "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28634                           "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28635                           "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28636                           "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28637                           "\x21\x41\x56\x72\x13\xE1\x86\x07"
28638                           "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28639                           "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28640                           "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28641                           "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28642                           "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28643                           "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28644                           "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28645                           "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28646                           "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28647                           "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28648                           "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28649                           "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28650                           "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28651                           "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28652                           "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28653                           "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28654                           "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28655                           "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28656                           "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28657                           "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28658                           "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28659                           "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28660                           "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28661                           "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28662                           "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28663                           "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28664                           "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28665                           "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28666                           "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28667                           "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28668                           "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28669                           "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28670                           "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28671                           "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28672                           "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28673                           "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28674                           "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28675                           "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28676                           "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28677                           "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28678                           "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28679                           "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28680                           "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28681                           "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28682                           "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28683                           "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28684                           "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28685                           "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28686                           "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28687                           "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28688                           "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28689                           "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28690                           "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28691                           "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28692                           "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28693                           "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28694                           "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28695                           "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28696                           "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28697                           "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28698                           "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28699                           "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28700                 .ilen   = 1008,
28701                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28702                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28703                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28704                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28705                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28706                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28707                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28708                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28709                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28710                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28711                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28712                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28713                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28714                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28715                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28716                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28717                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28718                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28719                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28720                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28721                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28722                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28723                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28724                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28725                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28726                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28727                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28728                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28729                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28730                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28731                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28732                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28733                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28734                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28735                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28736                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28737                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28738                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28739                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28740                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28741                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28742                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28743                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28744                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28745                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28746                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28747                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28748                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28749                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28750                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28751                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28752                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28753                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28754                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28755                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28756                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28757                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28758                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28759                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28760                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28761                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28762                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28763                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28764                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28765                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28766                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28767                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28768                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28769                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28770                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28771                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28772                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28773                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28774                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28775                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28776                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28777                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28778                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28779                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28780                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28781                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28782                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28783                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28784                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28785                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28786                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28787                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28788                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28789                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28790                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28791                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28792                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28793                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28794                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28795                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28796                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28797                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28798                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28799                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28800                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28801                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28802                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28803                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28804                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28805                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28806                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28807                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28808                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28809                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28810                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28811                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28812                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28813                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28814                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28815                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28816                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28817                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28818                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28819                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28820                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28821                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28822                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28823                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28824                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28825                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28826                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28827                 .rlen   = 1008,
28828                 .also_non_np = 1,
28829                 .np     = 3,
28830                 .tap    = { 1008 - 20, 4, 16 },
28831         },
28832 };
28833
28834 static const struct cipher_testvec camellia_ctr_enc_tv_template[] = {
28835         { /* Generated with Crypto++ */
28836                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28837                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28838                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28839                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28840                 .klen   = 32,
28841                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28842                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28843                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28844                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28845                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28846                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28847                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28848                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28849                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28850                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28851                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28852                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28853                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28854                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28855                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28856                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28857                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28858                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28859                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28860                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28861                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28862                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28863                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28864                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28865                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28866                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28867                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28868                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28869                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28870                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28871                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28872                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28873                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28874                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28875                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28876                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28877                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28878                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28879                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28880                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28881                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28882                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28883                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28884                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28885                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28886                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28887                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28888                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28889                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28890                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28891                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28892                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28893                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28894                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28895                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28896                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28897                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28898                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28899                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28900                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28901                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28902                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28903                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28904                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
28905                 .ilen   = 496,
28906                 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28907                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28908                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28909                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28910                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28911                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28912                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28913                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28914                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28915                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28916                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28917                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28918                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28919                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28920                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28921                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28922                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28923                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28924                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28925                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28926                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28927                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28928                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28929                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28930                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28931                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28932                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28933                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28934                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28935                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28936                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28937                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28938                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28939                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28940                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28941                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28942                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28943                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28944                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28945                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28946                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28947                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28948                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28949                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28950                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28951                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28952                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28953                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28954                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28955                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28956                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
28957                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28958                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28959                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28960                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28961                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28962                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28963                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28964                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28965                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28966                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28967                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
28968                 .rlen   = 496,
28969         }, { /* Generated with Crypto++ */
28970                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28971                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28972                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28973                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28974                 .klen   = 32,
28975                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28976                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28977                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28978                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28979                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28980                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28981                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28982                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28983                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28984                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28985                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28986                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28987                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28988                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28989                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28990                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28991                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28992                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28993                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28994                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28995                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28996                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28997                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28998                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28999                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29000                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29001                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29002                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29003                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29004                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29005                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29006                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29007                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29008                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29009                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29010                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29011                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29012                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29013                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29014                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29015                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29016                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29017                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29018                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29019                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29020                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29021                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29022                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29023                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29024                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29025                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29026                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29027                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29028                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29029                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29030                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29031                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29032                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29033                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29034                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29035                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29036                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29037                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29038                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29039                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29040                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29041                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29042                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29043                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29044                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29045                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29046                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29047                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29048                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29049                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29050                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29051                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29052                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29053                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29054                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29055                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29056                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29057                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29058                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29059                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29060                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29061                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29062                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29063                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29064                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29065                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29066                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29067                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29068                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29069                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29070                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29071                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29072                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29073                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29074                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29075                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29076                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29077                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29078                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29079                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29080                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29081                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29082                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29083                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29084                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29085                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29086                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29087                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29088                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29089                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29090                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29091                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29092                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29093                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29094                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29095                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29096                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29097                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29098                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29099                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29100                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29101                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29102                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29103                           "\xE4\x7B\x12",
29104                 .ilen   = 1011,
29105                 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29106                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29107                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29108                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29109                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29110                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29111                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29112                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29113                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29114                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29115                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29116                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29117                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29118                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29119                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29120                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29121                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29122                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29123                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29124                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29125                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29126                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29127                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29128                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29129                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29130                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29131                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29132                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29133                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29134                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29135                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29136                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29137                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29138                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29139                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29140                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29141                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29142                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29143                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29144                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29145                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29146                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29147                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29148                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29149                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29150                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29151                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29152                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29153                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29154                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29155                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
29156                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29157                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29158                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29159                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29160                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29161                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29162                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29163                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29164                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29165                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29166                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
29167                           "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29168                           "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29169                           "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29170                           "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29171                           "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29172                           "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29173                           "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29174                           "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29175                           "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29176                           "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29177                           "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29178                           "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29179                           "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29180                           "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29181                           "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29182                           "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29183                           "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29184                           "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29185                           "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29186                           "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29187                           "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29188                           "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29189                           "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29190                           "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29191                           "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29192                           "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29193                           "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29194                           "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29195                           "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29196                           "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29197                           "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29198                           "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29199                           "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29200                           "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29201                           "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29202                           "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29203                           "\x00\x70\x12\x56\x56\x50\xAD\x14"
29204                           "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29205                           "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29206                           "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29207                           "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29208                           "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29209                           "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29210                           "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29211                           "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29212                           "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29213                           "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29214                           "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29215                           "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29216                           "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29217                           "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29218                           "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29219                           "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29220                           "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29221                           "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29222                           "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29223                           "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29224                           "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29225                           "\x74\x28\x9D\x05\x30\x20\x62\x41"
29226                           "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29227                           "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29228                           "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29229                           "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29230                           "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29231                           "\xF1\x6B\xD9",
29232                 .rlen   = 1011,
29233                 .also_non_np = 1,
29234                 .np     = 2,
29235                 .tap    = { 1011 - 16, 16 },
29236         }, { /* Generated with Crypto++ */
29237                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29238                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29239                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29240                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29241                 .klen   = 32,
29242                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29243                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29244                 .input  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29245                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29246                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29247                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29248                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29249                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29250                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29251                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29252                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29253                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29254                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29255                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29256                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29257                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29258                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29259                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29260                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29261                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29262                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29263                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29264                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29265                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29266                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29267                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29268                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29269                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29270                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29271                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29272                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29273                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29274                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29275                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29276                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29277                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29278                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29279                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29280                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29281                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29282                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29283                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29284                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29285                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29286                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29287                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29288                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29289                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29290                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29291                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29292                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29293                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29294                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29295                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29296                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29297                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29298                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29299                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29300                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29301                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29302                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29303                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29304                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29305                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29306                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29307                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29308                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29309                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29310                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29311                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29312                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29313                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29314                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29315                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29316                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29317                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29318                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29319                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29320                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29321                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29322                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29323                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29324                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29325                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29326                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29327                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29328                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29329                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29330                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29331                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29332                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29333                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29334                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29335                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29336                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29337                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29338                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29339                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29340                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29341                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29342                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29343                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29344                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29345                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29346                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29347                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29348                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29349                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29350                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29351                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29352                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29353                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29354                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29355                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29356                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29357                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29358                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29359                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29360                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29361                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29362                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29363                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29364                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29365                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29366                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29367                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29368                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29369                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
29370                 .ilen   = 1008,
29371                 .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29372                           "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29373                           "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29374                           "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29375                           "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29376                           "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29377                           "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29378                           "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29379                           "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29380                           "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29381                           "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29382                           "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29383                           "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29384                           "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29385                           "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29386                           "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29387                           "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29388                           "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29389                           "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29390                           "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29391                           "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29392                           "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29393                           "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29394                           "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29395                           "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29396                           "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29397                           "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29398                           "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29399                           "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29400                           "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29401                           "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29402                           "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29403                           "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29404                           "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29405                           "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29406                           "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29407                           "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29408                           "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29409                           "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29410                           "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29411                           "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29412                           "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29413                           "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29414                           "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29415                           "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29416                           "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29417                           "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29418                           "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29419                           "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29420                           "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29421                           "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29422                           "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29423                           "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29424                           "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29425                           "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29426                           "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29427                           "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29428                           "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29429                           "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29430                           "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29431                           "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
29432                           "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29433                           "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29434                           "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29435                           "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29436                           "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29437                           "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29438                           "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29439                           "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29440                           "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29441                           "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29442                           "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29443                           "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29444                           "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29445                           "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29446                           "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29447                           "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29448                           "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29449                           "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29450                           "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29451                           "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29452                           "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29453                           "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29454                           "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29455                           "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29456                           "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29457                           "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29458                           "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29459                           "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29460                           "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29461                           "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29462                           "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29463                           "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29464                           "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29465                           "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29466                           "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29467                           "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29468                           "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29469                           "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29470                           "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29471                           "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29472                           "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29473                           "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29474                           "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29475                           "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29476                           "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29477                           "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29478                           "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29479                           "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29480                           "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29481                           "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29482                           "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29483                           "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29484                           "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29485                           "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29486                           "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
29487                           "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
29488                           "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
29489                           "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
29490                           "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
29491                           "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
29492                           "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
29493                           "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
29494                           "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
29495                           "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
29496                           "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
29497                 .rlen   = 1008,
29498         },
29499 };
29500
29501 static const struct cipher_testvec camellia_ctr_dec_tv_template[] = {
29502         { /* Generated with Crypto++ */
29503                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29504                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29505                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29506                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29507                 .klen   = 32,
29508                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29509                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29510                 .input  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29511                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29512                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29513                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29514                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29515                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29516                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29517                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29518                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29519                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29520                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29521                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29522                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29523                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29524                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29525                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29526                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29527                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29528                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29529                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29530                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29531                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29532                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29533                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29534                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29535                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29536                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29537                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29538                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29539                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29540                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29541                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29542                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29543                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29544                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29545                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29546                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29547                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29548                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29549                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29550                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29551                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29552                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29553                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29554                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29555                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29556                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29557                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29558                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29559                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29560                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
29561                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29562                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29563                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29564                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29565                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29566                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29567                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29568                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29569                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29570                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29571                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
29572                 .ilen   = 496,
29573                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29574                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29575                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29576                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29577                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29578                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29579                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29580                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29581                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29582                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29583                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29584                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29585                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29586                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29587                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29588                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29589                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29590                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29591                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29592                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29593                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29594                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29595                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29596                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29597                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29598                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29599                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29600                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29601                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29602                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29603                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29604                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29605                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29606                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29607                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29608                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29609                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29610                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29611                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29612                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29613                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29614                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29615                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29616                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29617                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29618                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29619                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29620                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29621                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29622                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29623                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29624                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29625                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29626                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29627                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29628                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29629                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29630                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29631                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29632                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29633                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29634                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
29635                 .rlen   = 496,
29636         }, { /* Generated with Crypto++ */
29637                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29638                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29639                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29640                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29641                 .klen   = 32,
29642                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29643                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29644                 .input  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29645                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29646                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29647                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29648                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29649                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29650                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29651                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29652                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29653                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29654                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29655                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29656                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29657                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29658                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29659                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29660                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29661                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29662                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29663                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29664                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29665                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29666                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29667                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29668                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29669                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29670                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29671                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29672                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29673                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29674                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29675                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29676                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29677                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29678                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29679                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29680                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29681                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29682                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29683                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29684                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29685                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29686                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29687                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29688                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29689                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29690                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29691                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29692                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29693                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29694                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
29695                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29696                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29697                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29698                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29699                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29700                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29701                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29702                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29703                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29704                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29705                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
29706                           "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29707                           "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29708                           "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29709                           "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29710                           "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29711                           "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29712                           "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29713                           "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29714                           "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29715                           "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29716                           "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29717                           "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29718                           "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29719                           "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29720                           "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29721                           "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29722                           "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29723                           "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29724                           "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29725                           "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29726                           "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29727                           "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29728                           "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29729                           "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29730                           "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29731                           "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29732                           "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29733                           "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29734                           "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29735                           "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29736                           "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29737                           "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29738                           "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29739                           "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29740                           "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29741                           "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29742                           "\x00\x70\x12\x56\x56\x50\xAD\x14"
29743                           "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29744                           "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29745                           "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29746                           "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29747                           "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29748                           "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29749                           "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29750                           "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29751                           "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29752                           "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29753                           "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29754                           "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29755                           "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29756                           "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29757                           "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29758                           "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29759                           "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29760                           "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29761                           "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29762                           "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29763                           "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29764                           "\x74\x28\x9D\x05\x30\x20\x62\x41"
29765                           "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29766                           "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29767                           "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29768                           "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29769                           "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29770                           "\xF1\x6B\xD9",
29771                 .ilen   = 1011,
29772                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29773                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29774                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29775                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29776                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29777                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29778                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29779                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29780                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29781                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29782                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29783                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29784                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29785                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29786                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29787                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29788                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29789                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29790                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29791                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29792                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29793                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29794                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29795                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29796                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29797                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29798                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29799                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29800                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29801                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29802                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29803                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29804                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29805                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29806                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29807                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29808                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29809                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29810                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29811                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29812                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29813                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29814                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29815                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29816                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29817                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29818                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29819                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29820                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29821                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29822                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29823                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29824                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29825                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29826                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29827                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29828                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29829                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29830                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29831                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29832                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29833                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29834                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29835                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29836                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29837                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29838                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29839                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29840                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29841                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29842                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29843                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29844                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29845                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29846                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29847                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29848                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29849                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29850                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29851                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29852                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29853                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29854                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29855                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29856                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29857                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29858                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29859                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29860                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29861                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29862                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29863                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29864                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29865                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29866                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29867                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29868                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29869                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29870                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29871                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29872                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29873                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29874                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29875                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29876                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29877                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29878                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29879                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29880                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29881                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29882                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29883                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29884                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29885                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29886                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29887                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29888                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29889                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29890                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29891                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29892                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29893                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29894                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29895                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29896                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29897                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29898                           "\xE4\x7B\x12",
29899                 .rlen   = 1011,
29900                 .also_non_np = 1,
29901                 .np     = 2,
29902                 .tap    = { 1011 - 16, 16 },
29903         }, { /* Generated with Crypto++ */
29904                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29905                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29906                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29907                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29908                 .klen   = 32,
29909                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29910                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29911                 .input  = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29912                           "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29913                           "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29914                           "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29915                           "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29916                           "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29917                           "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29918                           "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29919                           "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29920                           "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29921                           "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29922                           "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29923                           "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29924                           "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29925                           "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29926                           "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29927                           "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29928                           "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29929                           "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29930                           "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29931                           "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29932                           "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29933                           "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29934                           "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29935                           "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29936                           "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29937                           "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29938                           "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29939                           "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29940                           "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29941                           "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29942                           "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29943                           "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29944                           "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29945                           "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29946                           "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29947                           "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29948                           "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29949                           "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29950                           "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29951                           "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29952                           "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29953                           "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29954                           "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29955                           "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29956                           "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29957                           "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29958                           "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29959                           "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29960                           "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29961                           "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29962                           "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29963                           "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29964                           "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29965                           "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29966                           "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29967                           "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29968                           "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29969                           "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29970                           "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29971                           "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
29972                           "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29973                           "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29974                           "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29975                           "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29976                           "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29977                           "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29978                           "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29979                           "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29980                           "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29981                           "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29982                           "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29983                           "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29984                           "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29985                           "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29986                           "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29987                           "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29988                           "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29989                           "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29990                           "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29991                           "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29992                           "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29993                           "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29994                           "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29995                           "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29996                           "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29997                           "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29998                           "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29999                           "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
30000                           "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
30001                           "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
30002                           "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
30003                           "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
30004                           "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
30005                           "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
30006                           "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
30007                           "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
30008                           "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
30009                           "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
30010                           "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
30011                           "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
30012                           "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
30013                           "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
30014                           "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
30015                           "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
30016                           "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
30017                           "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
30018                           "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
30019                           "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
30020                           "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
30021                           "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
30022                           "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
30023                           "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
30024                           "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
30025                           "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
30026                           "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
30027                           "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
30028                           "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
30029                           "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
30030                           "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
30031                           "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
30032                           "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
30033                           "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
30034                           "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
30035                           "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
30036                           "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
30037                 .ilen   = 1008,
30038                 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
30039                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
30040                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
30041                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
30042                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
30043                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
30044                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
30045                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
30046                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
30047                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
30048                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
30049                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
30050                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
30051                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
30052                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
30053                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
30054                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
30055                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
30056                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
30057                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
30058                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
30059                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
30060                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
30061                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
30062                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
30063                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
30064                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
30065                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
30066                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
30067                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
30068                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
30069                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
30070                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
30071                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
30072                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
30073                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
30074                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
30075                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
30076                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
30077                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
30078                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
30079                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
30080                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
30081                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
30082                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
30083                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
30084                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
30085                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
30086                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
30087                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
30088                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
30089                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
30090                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
30091                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
30092                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
30093                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
30094                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
30095                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
30096                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
30097                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
30098                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
30099                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
30100                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
30101                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
30102                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
30103                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
30104                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
30105                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
30106                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
30107                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
30108                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
30109                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
30110                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
30111                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
30112                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
30113                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
30114                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
30115                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
30116                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
30117                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
30118                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
30119                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
30120                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
30121                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
30122                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
30123                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
30124                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
30125                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
30126                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
30127                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
30128                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
30129                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
30130                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
30131                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
30132                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
30133                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
30134                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
30135                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
30136                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
30137                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
30138                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
30139                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
30140                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
30141                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
30142                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
30143                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
30144                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
30145                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
30146                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
30147                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
30148                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
30149                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
30150                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
30151                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
30152                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
30153                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
30154                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
30155                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
30156                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
30157                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
30158                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
30159                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
30160                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
30161                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
30162                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
30163                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
30164                 .rlen   = 1008,
30165         },
30166 };
30167
30168 static const struct cipher_testvec camellia_lrw_enc_tv_template[] = {
30169         /* Generated from AES-LRW test vectors */
30170         {
30171                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30172                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30173                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30174                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30175                 .klen   = 32,
30176                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30177                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30178                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
30179                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30180                 .ilen   = 16,
30181                 .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30182                           "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30183                 .rlen   = 16,
30184         }, {
30185                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30186                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30187                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30188                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30189                 .klen   = 32,
30190                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30191                           "\x00\x00\x00\x00\x00\x00\x00\x02",
30192                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
30193                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30194                 .ilen   = 16,
30195                 .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30196                           "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30197                 .rlen   = 16,
30198         }, {
30199                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30200                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30201                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30202                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30203                 .klen   = 32,
30204                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30205                           "\x00\x00\x00\x02\x00\x00\x00\x00",
30206                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
30207                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30208                 .ilen   = 16,
30209                 .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30210                           "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30211                 .rlen   = 16,
30212         }, {
30213                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30214                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30215                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30216                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30217                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30218                 .klen   = 40,
30219                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30220                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30221                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
30222                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30223                 .ilen   = 16,
30224                 .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30225                           "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30226                 .rlen   = 16,
30227         }, {
30228                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30229                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30230                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30231                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30232                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30233                 .klen   = 40,
30234                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30235                           "\x00\x00\x00\x02\x00\x00\x00\x00",
30236                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
30237                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30238                 .ilen   = 16,
30239                 .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30240                           "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30241                 .rlen   = 16,
30242         }, {
30243                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30244                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30245                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30246                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30247                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30248                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30249                 .klen   = 48,
30250                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30251                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30252                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
30253                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30254                 .ilen   = 16,
30255                 .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30256                           "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
30257                 .rlen   = 16,
30258         }, {
30259                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30260                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30261                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30262                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30263                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30264                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30265                 .klen   = 48,
30266                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30267                           "\x00\x00\x00\x02\x00\x00\x00\x00",
30268                 .input  = "\x30\x31\x32\x33\x34\x35\x36\x37"
30269                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30270                 .ilen   = 16,
30271                 .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30272                           "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30273                 .rlen   = 16,
30274         }, {
30275                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30276                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30277                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30278                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30279                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30280                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30281                 .klen   = 48,
30282                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30283                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30284                 .input  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30285                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30286                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30287                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30288                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30289                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30290                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30291                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30292                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30293                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30294                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30295                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30296                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30297                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30298                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30299                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30300                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30301                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30302                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30303                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30304                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30305                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30306                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30307                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30308                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30309                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30310                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30311                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30312                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30313                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30314                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30315                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30316                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30317                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30318                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30319                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30320                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30321                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30322                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30323                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30324                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30325                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30326                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30327                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30328                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30329                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30330                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30331                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30332                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30333                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30334                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30335                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30336                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30337                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30338                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30339                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30340                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30341                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30342                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30343                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30344                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30345                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30346                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30347                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30348                 .ilen   = 512,
30349                 .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30350                           "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30351                           "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30352                           "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30353                           "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30354                           "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30355                           "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30356                           "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30357                           "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30358                           "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30359                           "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30360                           "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30361                           "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30362                           "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30363                           "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30364                           "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30365                           "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30366                           "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30367                           "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30368                           "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30369                           "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30370                           "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30371                           "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30372                           "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30373                           "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30374                           "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30375                           "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30376                           "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30377                           "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30378                           "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30379                           "\xed\x14\xa9\x57\x19\x63\x40\x04"
30380                           "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30381                           "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30382                           "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30383                           "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30384                           "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30385                           "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30386                           "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30387                           "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30388                           "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30389                           "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30390                           "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30391                           "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30392                           "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30393                           "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30394                           "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30395                           "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30396                           "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30397                           "\x35\xa5\x83\x04\x84\x01\x99\x56"
30398                           "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30399                           "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30400                           "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30401                           "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30402                           "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30403                           "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30404                           "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30405                           "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30406                           "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30407                           "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30408                           "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30409                           "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30410                           "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30411                           "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30412                           "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30413                 .rlen   = 512,
30414                 .also_non_np = 1,
30415                 .np     = 3,
30416                 .tap    = { 512 - 20, 4, 16 },
30417         },
30418 };
30419
30420 static const struct cipher_testvec camellia_lrw_dec_tv_template[] = {
30421         /* Generated from AES-LRW test vectors */
30422         /* same as enc vectors with input and result reversed */
30423         {
30424                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30425                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30426                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30427                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30428                 .klen   = 32,
30429                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30430                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30431                 .input  = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30432                           "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30433                 .ilen   = 16,
30434                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30435                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30436                 .rlen   = 16,
30437         }, {
30438                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30439                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30440                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30441                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30442                 .klen   = 32,
30443                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30444                           "\x00\x00\x00\x00\x00\x00\x00\x02",
30445                 .input  = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30446                           "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30447                 .ilen   = 16,
30448                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30449                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30450                 .rlen   = 16,
30451         }, {
30452                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30453                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30454                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30455                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30456                 .klen   = 32,
30457                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30458                           "\x00\x00\x00\x02\x00\x00\x00\x00",
30459                 .input  = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30460                           "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30461                 .ilen   = 16,
30462                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30463                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30464                 .rlen   = 16,
30465         }, {
30466                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30467                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30468                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30469                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30470                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30471                 .klen   = 40,
30472                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30473                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30474                 .input  = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30475                           "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30476                 .ilen   = 16,
30477                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30478                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30479                 .rlen   = 16,
30480         }, {
30481                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30482                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30483                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30484                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30485                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30486                 .klen   = 40,
30487                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30488                           "\x00\x00\x00\x02\x00\x00\x00\x00",
30489                 .input  = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30490                           "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30491                 .ilen   = 16,
30492                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30493                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30494                 .rlen   = 16,
30495         }, {
30496                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30497                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30498                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30499                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30500                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30501                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30502                 .klen   = 48,
30503                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30504                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30505                 .input  = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30506                           "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
30507                 .ilen   = 16,
30508                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30509                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30510                 .rlen   = 16,
30511         }, {
30512                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30513                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30514                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30515                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30516                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30517                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30518                 .klen   = 48,
30519                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30520                           "\x00\x00\x00\x02\x00\x00\x00\x00",
30521                 .input  = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30522                           "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30523                 .ilen   = 16,
30524                 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30525                           "\x38\x39\x41\x42\x43\x44\x45\x46",
30526                 .rlen   = 16,
30527         }, {
30528                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30529                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30530                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30531                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30532                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30533                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30534                 .klen   = 48,
30535                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30536                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30537                 .input  = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30538                           "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30539                           "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30540                           "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30541                           "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30542                           "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30543                           "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30544                           "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30545                           "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30546                           "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30547                           "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30548                           "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30549                           "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30550                           "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30551                           "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30552                           "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30553                           "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30554                           "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30555                           "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30556                           "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30557                           "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30558                           "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30559                           "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30560                           "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30561                           "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30562                           "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30563                           "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30564                           "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30565                           "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30566                           "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30567                           "\xed\x14\xa9\x57\x19\x63\x40\x04"
30568                           "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30569                           "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30570                           "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30571                           "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30572                           "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30573                           "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30574                           "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30575                           "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30576                           "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30577                           "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30578                           "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30579                           "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30580                           "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30581                           "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30582                           "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30583                           "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30584                           "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30585                           "\x35\xa5\x83\x04\x84\x01\x99\x56"
30586                           "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30587                           "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30588                           "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30589                           "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30590                           "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30591                           "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30592                           "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30593                           "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30594                           "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30595                           "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30596                           "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30597                           "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30598                           "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30599                           "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30600                           "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30601                 .ilen   = 512,
30602                 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30603                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30604                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30605                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30606                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30607                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30608                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30609                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30610                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30611                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30612                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30613                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30614                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30615                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30616                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30617                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30618                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30619                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30620                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30621                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30622                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30623                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30624                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30625                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30626                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30627                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30628                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30629                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30630                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30631                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30632                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30633                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30634                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30635                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30636                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30637                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30638                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30639                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30640                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30641                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30642                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30643                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30644                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30645                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30646                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30647                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30648                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30649                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30650                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30651                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30652                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30653                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30654                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30655                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30656                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30657                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30658                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30659                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30660                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30661                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30662                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30663                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30664                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30665                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30666                 .rlen   = 512,
30667                 .also_non_np = 1,
30668                 .np     = 3,
30669                 .tap    = { 512 - 20, 4, 16 },
30670         },
30671 };
30672
30673 static const struct cipher_testvec camellia_xts_enc_tv_template[] = {
30674         /* Generated from AES-XTS test vectors */
30675         {
30676                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
30677                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30678                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30679                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30680                 .klen   = 32,
30681                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30682                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30683                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
30684                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30685                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30686                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30687                 .ilen   = 32,
30688                 .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
30689                           "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
30690                           "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
30691                           "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
30692                 .rlen   = 32,
30693         }, {
30694                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
30695                           "\x11\x11\x11\x11\x11\x11\x11\x11"
30696                           "\x22\x22\x22\x22\x22\x22\x22\x22"
30697                           "\x22\x22\x22\x22\x22\x22\x22\x22",
30698                 .klen   = 32,
30699                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
30700                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30701                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
30702                           "\x44\x44\x44\x44\x44\x44\x44\x44"
30703                           "\x44\x44\x44\x44\x44\x44\x44\x44"
30704                           "\x44\x44\x44\x44\x44\x44\x44\x44",
30705                 .ilen   = 32,
30706                 .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
30707                           "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
30708                           "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
30709                           "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
30710                 .rlen   = 32,
30711         }, {
30712                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
30713                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
30714                           "\x22\x22\x22\x22\x22\x22\x22\x22"
30715                           "\x22\x22\x22\x22\x22\x22\x22\x22",
30716                 .klen   = 32,
30717                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
30718                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30719                 .input  = "\x44\x44\x44\x44\x44\x44\x44\x44"
30720                           "\x44\x44\x44\x44\x44\x44\x44\x44"
30721                           "\x44\x44\x44\x44\x44\x44\x44\x44"
30722                           "\x44\x44\x44\x44\x44\x44\x44\x44",
30723                 .ilen   = 32,
30724                 .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
30725                           "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
30726                           "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
30727                           "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
30728                 .rlen   = 32,
30729         }, {
30730                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
30731                           "\x23\x53\x60\x28\x74\x71\x35\x26"
30732                           "\x31\x41\x59\x26\x53\x58\x97\x93"
30733                           "\x23\x84\x62\x64\x33\x83\x27\x95",
30734                 .klen   = 32,
30735                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30736                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30737                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
30738                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30739                           "\x10\x11\x12\x13\x14\x15\x16\x17"
30740                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30741                           "\x20\x21\x22\x23\x24\x25\x26\x27"
30742                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30743                           "\x30\x31\x32\x33\x34\x35\x36\x37"
30744                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30745                           "\x40\x41\x42\x43\x44\x45\x46\x47"
30746                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30747                           "\x50\x51\x52\x53\x54\x55\x56\x57"
30748                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30749                           "\x60\x61\x62\x63\x64\x65\x66\x67"
30750                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30751                           "\x70\x71\x72\x73\x74\x75\x76\x77"
30752                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30753                           "\x80\x81\x82\x83\x84\x85\x86\x87"
30754                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30755                           "\x90\x91\x92\x93\x94\x95\x96\x97"
30756                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30757                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30758                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30759                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30760                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30761                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30762                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30763                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30764                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30765                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30766                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30767                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30768                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30769                           "\x00\x01\x02\x03\x04\x05\x06\x07"
30770                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30771                           "\x10\x11\x12\x13\x14\x15\x16\x17"
30772                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30773                           "\x20\x21\x22\x23\x24\x25\x26\x27"
30774                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30775                           "\x30\x31\x32\x33\x34\x35\x36\x37"
30776                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30777                           "\x40\x41\x42\x43\x44\x45\x46\x47"
30778                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30779                           "\x50\x51\x52\x53\x54\x55\x56\x57"
30780                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30781                           "\x60\x61\x62\x63\x64\x65\x66\x67"
30782                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30783                           "\x70\x71\x72\x73\x74\x75\x76\x77"
30784                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30785                           "\x80\x81\x82\x83\x84\x85\x86\x87"
30786                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30787                           "\x90\x91\x92\x93\x94\x95\x96\x97"
30788                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30789                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30790                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30791                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30792                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30793                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30794                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30795                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30796                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30797                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30798                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30799                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30800                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30801                 .ilen   = 512,
30802                 .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
30803                           "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
30804                           "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
30805                           "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
30806                           "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
30807                           "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
30808                           "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
30809                           "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
30810                           "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
30811                           "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
30812                           "\x08\xda\x76\x00\x65\xcf\x7b\x31"
30813                           "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
30814                           "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
30815                           "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
30816                           "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
30817                           "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
30818                           "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
30819                           "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
30820                           "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
30821                           "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
30822                           "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
30823                           "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
30824                           "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
30825                           "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
30826                           "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
30827                           "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
30828                           "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
30829                           "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
30830                           "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
30831                           "\x16\x31\xb2\x47\x91\x67\xaa\x28"
30832                           "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
30833                           "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
30834                           "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
30835                           "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
30836                           "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
30837                           "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
30838                           "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
30839                           "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
30840                           "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
30841                           "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
30842                           "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
30843                           "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
30844                           "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
30845                           "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
30846                           "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
30847                           "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
30848                           "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
30849                           "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
30850                           "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
30851                           "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
30852                           "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
30853                           "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
30854                           "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
30855                           "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
30856                           "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
30857                           "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
30858                           "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
30859                           "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
30860                           "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
30861                           "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
30862                           "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
30863                           "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
30864                           "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
30865                           "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
30866                 .rlen   = 512,
30867         }, {
30868                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
30869                           "\x23\x53\x60\x28\x74\x71\x35\x26"
30870                           "\x62\x49\x77\x57\x24\x70\x93\x69"
30871                           "\x99\x59\x57\x49\x66\x96\x76\x27"
30872                           "\x31\x41\x59\x26\x53\x58\x97\x93"
30873                           "\x23\x84\x62\x64\x33\x83\x27\x95"
30874                           "\x02\x88\x41\x97\x16\x93\x99\x37"
30875                           "\x51\x05\x82\x09\x74\x94\x45\x92",
30876                 .klen   = 64,
30877                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
30878                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30879                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
30880                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30881                           "\x10\x11\x12\x13\x14\x15\x16\x17"
30882                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30883                           "\x20\x21\x22\x23\x24\x25\x26\x27"
30884                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30885                           "\x30\x31\x32\x33\x34\x35\x36\x37"
30886                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30887                           "\x40\x41\x42\x43\x44\x45\x46\x47"
30888                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30889                           "\x50\x51\x52\x53\x54\x55\x56\x57"
30890                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30891                           "\x60\x61\x62\x63\x64\x65\x66\x67"
30892                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30893                           "\x70\x71\x72\x73\x74\x75\x76\x77"
30894                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30895                           "\x80\x81\x82\x83\x84\x85\x86\x87"
30896                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30897                           "\x90\x91\x92\x93\x94\x95\x96\x97"
30898                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30899                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30900                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30901                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30902                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30903                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30904                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30905                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30906                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30907                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30908                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30909                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30910                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30911                           "\x00\x01\x02\x03\x04\x05\x06\x07"
30912                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30913                           "\x10\x11\x12\x13\x14\x15\x16\x17"
30914                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30915                           "\x20\x21\x22\x23\x24\x25\x26\x27"
30916                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30917                           "\x30\x31\x32\x33\x34\x35\x36\x37"
30918                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30919                           "\x40\x41\x42\x43\x44\x45\x46\x47"
30920                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30921                           "\x50\x51\x52\x53\x54\x55\x56\x57"
30922                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30923                           "\x60\x61\x62\x63\x64\x65\x66\x67"
30924                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30925                           "\x70\x71\x72\x73\x74\x75\x76\x77"
30926                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30927                           "\x80\x81\x82\x83\x84\x85\x86\x87"
30928                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30929                           "\x90\x91\x92\x93\x94\x95\x96\x97"
30930                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30931                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30932                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30933                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30934                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30935                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30936                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30937                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30938                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30939                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30940                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30941                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30942                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30943                 .ilen   = 512,
30944                 .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
30945                           "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
30946                           "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
30947                           "\xf1\x74\xac\x96\x05\x7b\x32\xca"
30948                           "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
30949                           "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
30950                           "\x97\x07\x82\xf0\x07\x12\x38\x0a"
30951                           "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
30952                           "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
30953                           "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
30954                           "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
30955                           "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
30956                           "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
30957                           "\x41\x82\x0c\x45\x39\x35\xa8\x75"
30958                           "\x03\x29\x01\x84\x8c\xab\x48\xbe"
30959                           "\x11\x56\x22\x67\xb7\x67\x1a\x09"
30960                           "\xa1\x72\x25\x41\x3c\x39\x65\x80"
30961                           "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
30962                           "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
30963                           "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
30964                           "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
30965                           "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
30966                           "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
30967                           "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
30968                           "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
30969                           "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
30970                           "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
30971                           "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
30972                           "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
30973                           "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
30974                           "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
30975                           "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
30976                           "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
30977                           "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
30978                           "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
30979                           "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
30980                           "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
30981                           "\xef\x38\x52\x18\x0e\x29\x7e\xef"
30982                           "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
30983                           "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
30984                           "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
30985                           "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
30986                           "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
30987                           "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
30988                           "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
30989                           "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
30990                           "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
30991                           "\x21\x17\xf8\x59\x15\x24\x64\x22"
30992                           "\x57\x48\x80\xd5\x3d\x92\x30\x07"
30993                           "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
30994                           "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
30995                           "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
30996                           "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
30997                           "\x6b\x84\xf3\x00\xba\x52\x05\x02"
30998                           "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
30999                           "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
31000                           "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
31001                           "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
31002                           "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
31003                           "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
31004                           "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
31005                           "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
31006                           "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
31007                           "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
31008                 .rlen   = 512,
31009                 .also_non_np = 1,
31010                 .np     = 3,
31011                 .tap    = { 512 - 20, 4, 16 },
31012         },
31013 };
31014
31015 static const struct cipher_testvec camellia_xts_dec_tv_template[] = {
31016         /* Generated from AES-XTS test vectors */
31017         /* same as enc vectors with input and result reversed */
31018         {
31019                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
31020                           "\x00\x00\x00\x00\x00\x00\x00\x00"
31021                           "\x00\x00\x00\x00\x00\x00\x00\x00"
31022                           "\x00\x00\x00\x00\x00\x00\x00\x00",
31023                 .klen   = 32,
31024                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
31025                           "\x00\x00\x00\x00\x00\x00\x00\x00",
31026                 .input  = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
31027                           "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
31028                           "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
31029                           "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
31030                 .ilen   = 32,
31031                 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
31032                           "\x00\x00\x00\x00\x00\x00\x00\x00"
31033                           "\x00\x00\x00\x00\x00\x00\x00\x00"
31034                           "\x00\x00\x00\x00\x00\x00\x00\x00",
31035                 .rlen   = 32,
31036         }, {
31037                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
31038                           "\x11\x11\x11\x11\x11\x11\x11\x11"
31039                           "\x22\x22\x22\x22\x22\x22\x22\x22"
31040                           "\x22\x22\x22\x22\x22\x22\x22\x22",
31041                 .klen   = 32,
31042                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
31043                           "\x00\x00\x00\x00\x00\x00\x00\x00",
31044                 .input  = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
31045                           "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
31046                           "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
31047                           "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
31048                 .ilen   = 32,
31049                 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
31050                           "\x44\x44\x44\x44\x44\x44\x44\x44"
31051                           "\x44\x44\x44\x44\x44\x44\x44\x44"
31052                           "\x44\x44\x44\x44\x44\x44\x44\x44",
31053                 .rlen   = 32,
31054         }, {
31055                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
31056                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
31057                           "\x22\x22\x22\x22\x22\x22\x22\x22"
31058                           "\x22\x22\x22\x22\x22\x22\x22\x22",
31059                 .klen   = 32,
31060                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
31061                           "\x00\x00\x00\x00\x00\x00\x00\x00",
31062                 .input  = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
31063                           "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
31064                           "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
31065                           "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
31066                 .ilen   = 32,
31067                 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
31068                           "\x44\x44\x44\x44\x44\x44\x44\x44"
31069                           "\x44\x44\x44\x44\x44\x44\x44\x44"
31070                           "\x44\x44\x44\x44\x44\x44\x44\x44",
31071                 .rlen   = 32,
31072         }, {
31073                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
31074                           "\x23\x53\x60\x28\x74\x71\x35\x26"
31075                           "\x31\x41\x59\x26\x53\x58\x97\x93"
31076                           "\x23\x84\x62\x64\x33\x83\x27\x95",
31077                 .klen   = 32,
31078                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
31079                           "\x00\x00\x00\x00\x00\x00\x00\x00",
31080                 .input  = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
31081                           "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
31082                           "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
31083                           "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
31084                           "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
31085                           "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
31086                           "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
31087                           "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
31088                           "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
31089                           "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
31090                           "\x08\xda\x76\x00\x65\xcf\x7b\x31"
31091                           "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
31092                           "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
31093                           "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
31094                           "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
31095                           "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
31096                           "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
31097                           "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
31098                           "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
31099                           "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
31100                           "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
31101                           "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
31102                           "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
31103                           "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
31104                           "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
31105                           "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
31106                           "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
31107                           "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
31108                           "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
31109                           "\x16\x31\xb2\x47\x91\x67\xaa\x28"
31110                           "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
31111                           "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
31112                           "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
31113                           "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
31114                           "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
31115                           "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
31116                           "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
31117                           "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
31118                           "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
31119                           "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
31120                           "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
31121                           "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
31122                           "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
31123                           "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
31124                           "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
31125                           "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
31126                           "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
31127                           "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
31128                           "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
31129                           "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
31130                           "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
31131                           "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
31132                           "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
31133                           "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
31134                           "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
31135                           "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
31136                           "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
31137                           "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
31138                           "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
31139                           "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
31140                           "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
31141                           "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
31142                           "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
31143                           "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
31144                 .ilen   = 512,
31145                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31146                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31147                           "\x10\x11\x12\x13\x14\x15\x16\x17"
31148                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31149                           "\x20\x21\x22\x23\x24\x25\x26\x27"
31150                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31151                           "\x30\x31\x32\x33\x34\x35\x36\x37"
31152                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31153                           "\x40\x41\x42\x43\x44\x45\x46\x47"
31154                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31155                           "\x50\x51\x52\x53\x54\x55\x56\x57"
31156                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31157                           "\x60\x61\x62\x63\x64\x65\x66\x67"
31158                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31159                           "\x70\x71\x72\x73\x74\x75\x76\x77"
31160                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31161                           "\x80\x81\x82\x83\x84\x85\x86\x87"
31162                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31163                           "\x90\x91\x92\x93\x94\x95\x96\x97"
31164                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31165                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31166                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31167                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31168                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31169                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31170                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31171                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31172                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31173                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31174                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31175                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31176                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31177                           "\x00\x01\x02\x03\x04\x05\x06\x07"
31178                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31179                           "\x10\x11\x12\x13\x14\x15\x16\x17"
31180                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31181                           "\x20\x21\x22\x23\x24\x25\x26\x27"
31182                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31183                           "\x30\x31\x32\x33\x34\x35\x36\x37"
31184                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31185                           "\x40\x41\x42\x43\x44\x45\x46\x47"
31186                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31187                           "\x50\x51\x52\x53\x54\x55\x56\x57"
31188                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31189                           "\x60\x61\x62\x63\x64\x65\x66\x67"
31190                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31191                           "\x70\x71\x72\x73\x74\x75\x76\x77"
31192                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31193                           "\x80\x81\x82\x83\x84\x85\x86\x87"
31194                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31195                           "\x90\x91\x92\x93\x94\x95\x96\x97"
31196                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31197                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31198                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31199                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31200                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31201                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31202                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31203                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31204                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31205                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31206                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31207                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31208                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31209                 .rlen   = 512,
31210         }, {
31211                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
31212                           "\x23\x53\x60\x28\x74\x71\x35\x26"
31213                           "\x62\x49\x77\x57\x24\x70\x93\x69"
31214                           "\x99\x59\x57\x49\x66\x96\x76\x27"
31215                           "\x31\x41\x59\x26\x53\x58\x97\x93"
31216                           "\x23\x84\x62\x64\x33\x83\x27\x95"
31217                           "\x02\x88\x41\x97\x16\x93\x99\x37"
31218                           "\x51\x05\x82\x09\x74\x94\x45\x92",
31219                 .klen   = 64,
31220                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
31221                           "\x00\x00\x00\x00\x00\x00\x00\x00",
31222                 .input  = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
31223                           "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
31224                           "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
31225                           "\xf1\x74\xac\x96\x05\x7b\x32\xca"
31226                           "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
31227                           "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
31228                           "\x97\x07\x82\xf0\x07\x12\x38\x0a"
31229                           "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
31230                           "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
31231                           "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
31232                           "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
31233                           "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
31234                           "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
31235                           "\x41\x82\x0c\x45\x39\x35\xa8\x75"
31236                           "\x03\x29\x01\x84\x8c\xab\x48\xbe"
31237                           "\x11\x56\x22\x67\xb7\x67\x1a\x09"
31238                           "\xa1\x72\x25\x41\x3c\x39\x65\x80"
31239                           "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
31240                           "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
31241                           "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
31242                           "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
31243                           "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
31244                           "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
31245                           "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
31246                           "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
31247                           "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
31248                           "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
31249                           "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
31250                           "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
31251                           "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
31252                           "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
31253                           "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
31254                           "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
31255                           "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
31256                           "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
31257                           "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
31258                           "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
31259                           "\xef\x38\x52\x18\x0e\x29\x7e\xef"
31260                           "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
31261                           "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
31262                           "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
31263                           "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
31264                           "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
31265                           "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
31266                           "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
31267                           "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
31268                           "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
31269                           "\x21\x17\xf8\x59\x15\x24\x64\x22"
31270                           "\x57\x48\x80\xd5\x3d\x92\x30\x07"
31271                           "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
31272                           "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
31273                           "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
31274                           "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
31275                           "\x6b\x84\xf3\x00\xba\x52\x05\x02"
31276                           "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
31277                           "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
31278                           "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
31279                           "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
31280                           "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
31281                           "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
31282                           "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
31283                           "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
31284                           "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
31285                           "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
31286                 .ilen   = 512,
31287                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31288                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31289                           "\x10\x11\x12\x13\x14\x15\x16\x17"
31290                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31291                           "\x20\x21\x22\x23\x24\x25\x26\x27"
31292                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31293                           "\x30\x31\x32\x33\x34\x35\x36\x37"
31294                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31295                           "\x40\x41\x42\x43\x44\x45\x46\x47"
31296                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31297                           "\x50\x51\x52\x53\x54\x55\x56\x57"
31298                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31299                           "\x60\x61\x62\x63\x64\x65\x66\x67"
31300                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31301                           "\x70\x71\x72\x73\x74\x75\x76\x77"
31302                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31303                           "\x80\x81\x82\x83\x84\x85\x86\x87"
31304                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31305                           "\x90\x91\x92\x93\x94\x95\x96\x97"
31306                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31307                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31308                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31309                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31310                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31311                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31312                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31313                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31314                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31315                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31316                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31317                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31318                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31319                           "\x00\x01\x02\x03\x04\x05\x06\x07"
31320                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31321                           "\x10\x11\x12\x13\x14\x15\x16\x17"
31322                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31323                           "\x20\x21\x22\x23\x24\x25\x26\x27"
31324                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31325                           "\x30\x31\x32\x33\x34\x35\x36\x37"
31326                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31327                           "\x40\x41\x42\x43\x44\x45\x46\x47"
31328                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31329                           "\x50\x51\x52\x53\x54\x55\x56\x57"
31330                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31331                           "\x60\x61\x62\x63\x64\x65\x66\x67"
31332                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31333                           "\x70\x71\x72\x73\x74\x75\x76\x77"
31334                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31335                           "\x80\x81\x82\x83\x84\x85\x86\x87"
31336                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31337                           "\x90\x91\x92\x93\x94\x95\x96\x97"
31338                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31339                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31340                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31341                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31342                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31343                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31344                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31345                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31346                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31347                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31348                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31349                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31350                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31351                 .rlen   = 512,
31352                 .also_non_np = 1,
31353                 .np     = 3,
31354                 .tap    = { 512 - 20, 4, 16 },
31355         },
31356 };
31357
31358 /*
31359  * SEED test vectors
31360  */
31361 static const struct cipher_testvec seed_enc_tv_template[] = {
31362         {
31363                 .key    = zeroed_string,
31364                 .klen   = 16,
31365                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
31366                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31367                 .ilen   = 16,
31368                 .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31369                           "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31370                 .rlen   = 16,
31371         }, {
31372                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
31373                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31374                 .klen   = 16,
31375                 .input  = zeroed_string,
31376                 .ilen   = 16,
31377                 .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31378                           "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31379                 .rlen   = 16,
31380         }, {
31381                 .key    = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31382                           "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31383                 .klen   = 16,
31384                 .input  = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31385                           "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31386                 .ilen   = 16,
31387                 .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31388                           "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31389                 .rlen   = 16,
31390         }, {
31391                 .key    = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31392                           "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31393                 .klen   = 16,
31394                 .input  = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31395                           "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31396                 .ilen   = 16,
31397                 .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31398                           "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31399                 .rlen   = 16,
31400         }
31401 };
31402
31403 static const struct cipher_testvec seed_dec_tv_template[] = {
31404         {
31405                 .key    = zeroed_string,
31406                 .klen   = 16,
31407                 .input  = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31408                           "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31409                 .ilen   = 16,
31410                 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31411                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31412                 .rlen   = 16,
31413         }, {
31414                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
31415                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31416                 .klen   = 16,
31417                 .input  = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31418                           "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31419                 .ilen   = 16,
31420                 .result = zeroed_string,
31421                 .rlen   = 16,
31422         }, {
31423                 .key    = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31424                           "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31425                 .klen   = 16,
31426                 .input  = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31427                           "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31428                 .ilen   = 16,
31429                 .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31430                           "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31431                 .rlen   = 16,
31432         }, {
31433                 .key    = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31434                           "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31435                 .klen   = 16,
31436                 .input  = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31437                           "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31438                 .ilen   = 16,
31439                 .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31440                           "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31441                 .rlen   = 16,
31442         }
31443 };
31444
31445 static const struct cipher_testvec salsa20_stream_enc_tv_template[] = {
31446         /*
31447         * Testvectors from verified.test-vectors submitted to ECRYPT.
31448         * They are truncated to size 39, 64, 111, 129 to test a variety
31449         * of input length.
31450         */
31451         { /* Set 3, vector 0 */
31452                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
31453                         "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
31454                 .klen   = 16,
31455                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
31456                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
31457                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31458                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31459                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31460                         "\x00\x00\x00\x00\x00\x00\x00",
31461                 .ilen   = 39,
31462                 .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
31463                          "\x68\x02\x41\x0C\x68\x86\x88\x89"
31464                          "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
31465                          "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
31466                          "\x58\x3F\x52\x79\x70\xEB\xC1",
31467                 .rlen   = 39,
31468         }, { /* Set 5, vector 0 */
31469                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
31470                         "\x00\x00\x00\x00\x00\x00\x00\x00",
31471                 .klen   = 16,
31472                 .iv     = "\x80\x00\x00\x00\x00\x00\x00\x00",
31473                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
31474                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31475                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31476                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31477                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31478                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31479                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31480                         "\x00\x00\x00\x00\x00\x00\x00\x00",
31481                 .ilen   = 64,
31482                 .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
31483                          "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
31484                          "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
31485                          "\x46\x26\xBF\x44\x3F\x21\x97\x76"
31486                          "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
31487                          "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
31488                          "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
31489                          "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
31490                 .rlen   = 64,
31491         }, { /* Set 3, vector 27 */
31492                 .key    = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
31493                         "\x23\x24\x25\x26\x27\x28\x29\x2A"
31494                         "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
31495                         "\x33\x34\x35\x36\x37\x38\x39\x3A",
31496                 .klen   = 32,
31497                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
31498                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
31499                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31500                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31501                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31502                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31503                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31504                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31505                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31506                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31507                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31508                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31509                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31510                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31511                         "\x00\x00\x00\x00\x00\x00\x00",
31512                 .ilen   = 111,
31513                 .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
31514                          "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
31515                          "\x87\xD9\x47\xF8\x28\x91\x35\x98"
31516                          "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
31517                          "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
31518                          "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
31519                          "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
31520                          "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
31521                          "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
31522                          "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
31523                          "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
31524                          "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
31525                          "\x95\x46\x45\x54\xE9\x75\x03\x08"
31526                          "\x44\xAF\xE5\x8A\x81\x12\x09",
31527                 .rlen   = 111,
31528         }, { /* Set 5, vector 27 */
31529                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
31530                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31531                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31532                         "\x00\x00\x00\x00\x00\x00\x00\x00",
31533                 .klen   = 32,
31534                 .iv     = "\x00\x00\x00\x10\x00\x00\x00\x00",
31535                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
31536                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31537                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31538                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31539                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31540                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31541                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31542                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31543                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31544                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31545                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31546                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31547                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31548                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31549                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31550                         "\x00\x00\x00\x00\x00\x00\x00\x00"
31551                         "\x00",
31552                 .ilen   = 129,
31553                 .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
31554                          "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
31555                          "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
31556                          "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
31557                          "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
31558                          "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
31559                          "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
31560                          "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
31561                          "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
31562                          "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
31563                          "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
31564                          "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
31565                          "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
31566                          "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
31567                          "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
31568                          "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
31569                          "\x5A",
31570                 .rlen   = 129,
31571         }, { /* large test vector generated using Crypto++ */
31572                 .key =  "\x00\x01\x02\x03\x04\x05\x06\x07"
31573                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31574                         "\x10\x11\x12\x13\x14\x15\x16\x17"
31575                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
31576                 .klen = 32,
31577                 .iv =   "\x00\x00\x00\x00\x00\x00\x00\x00"
31578                         "\x00\x00\x00\x00\x00\x00\x00\x00",
31579                 .input =
31580                         "\x00\x01\x02\x03\x04\x05\x06\x07"
31581                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31582                         "\x10\x11\x12\x13\x14\x15\x16\x17"
31583                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31584                         "\x20\x21\x22\x23\x24\x25\x26\x27"
31585                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31586                         "\x30\x31\x32\x33\x34\x35\x36\x37"
31587                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31588                         "\x40\x41\x42\x43\x44\x45\x46\x47"
31589                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31590                         "\x50\x51\x52\x53\x54\x55\x56\x57"
31591                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31592                         "\x60\x61\x62\x63\x64\x65\x66\x67"
31593                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31594                         "\x70\x71\x72\x73\x74\x75\x76\x77"
31595                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31596                         "\x80\x81\x82\x83\x84\x85\x86\x87"
31597                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31598                         "\x90\x91\x92\x93\x94\x95\x96\x97"
31599                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31600                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31601                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31602                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31603                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31604                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31605                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31606                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31607                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31608                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31609                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31610                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31611                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31612                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
31613                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
31614                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
31615                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
31616                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
31617                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
31618                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
31619                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
31620                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
31621                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
31622                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
31623                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
31624                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
31625                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
31626                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
31627                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
31628                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
31629                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
31630                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
31631                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
31632                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
31633                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
31634                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
31635                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
31636                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
31637                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
31638                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
31639                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
31640                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
31641                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
31642                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
31643                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
31644                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
31645                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
31646                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
31647                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
31648                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
31649                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
31650                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
31651                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
31652                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
31653                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
31654                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
31655                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
31656                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
31657                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
31658                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
31659                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
31660                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
31661                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
31662                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
31663                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
31664                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
31665                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
31666                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
31667                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
31668                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
31669                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
31670                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
31671                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
31672                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
31673                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
31674                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
31675                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
31676                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
31677                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
31678                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
31679                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
31680                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
31681                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
31682                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
31683                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
31684                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
31685                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
31686                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
31687                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
31688                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
31689                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
31690                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
31691                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
31692                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
31693                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
31694                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
31695                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
31696                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
31697                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
31698                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
31699                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
31700                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
31701                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
31702                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
31703                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
31704                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
31705                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
31706                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
31707                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
31708                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
31709                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
31710                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
31711                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
31712                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
31713                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
31714                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
31715                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
31716                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
31717                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
31718                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
31719                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
31720                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
31721                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
31722                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
31723                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
31724                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
31725                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
31726                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
31727                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
31728                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
31729                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
31730                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
31731                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
31732                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
31733                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
31734                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
31735                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
31736                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
31737                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
31738                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
31739                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
31740                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
31741                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
31742                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
31743                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
31744                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
31745                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
31746                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
31747                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
31748                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
31749                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
31750                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
31751                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
31752                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
31753                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
31754                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
31755                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
31756                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
31757                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
31758                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
31759                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
31760                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
31761                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
31762                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
31763                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
31764                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
31765                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
31766                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
31767                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
31768                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
31769                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
31770                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
31771                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
31772                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
31773                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
31774                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
31775                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
31776                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
31777                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
31778                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
31779                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
31780                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
31781                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
31782                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
31783                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
31784                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
31785                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
31786                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
31787                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
31788                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
31789                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
31790                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
31791                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
31792                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
31793                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
31794                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
31795                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
31796                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
31797                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
31798                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
31799                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
31800                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
31801                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
31802                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
31803                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
31804                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
31805                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
31806                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
31807                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
31808                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
31809                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
31810                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
31811                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
31812                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
31813                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
31814                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
31815                         "\x28\x37\x46\x55\x64\x73\x82\x91"
31816                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
31817                         "\x18\x27\x36\x45\x54\x63\x72\x81"
31818                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
31819                         "\x08\x17\x26\x35\x44\x53\x62\x71"
31820                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
31821                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
31822                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
31823                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
31824                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
31825                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
31826                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
31827                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
31828                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
31829                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
31830                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
31831                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
31832                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
31833                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
31834                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
31835                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
31836                         "\x00\x11\x22\x33\x44\x55\x66\x77"
31837                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
31838                         "\x10\x21\x32\x43\x54\x65\x76\x87"
31839                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
31840                         "\x20\x31\x42\x53\x64\x75\x86\x97"
31841                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
31842                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
31843                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
31844                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
31845                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
31846                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
31847                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
31848                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
31849                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
31850                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
31851                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
31852                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
31853                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
31854                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
31855                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
31856                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
31857                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
31858                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
31859                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
31860                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
31861                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
31862                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
31863                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
31864                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
31865                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
31866                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
31867                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
31868                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
31869                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
31870                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
31871                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
31872                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
31873                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
31874                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
31875                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
31876                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
31877                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
31878                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
31879                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
31880                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
31881                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
31882                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
31883                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
31884                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
31885                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
31886                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
31887                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
31888                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
31889                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
31890                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
31891                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
31892                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
31893                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
31894                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
31895                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
31896                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
31897                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
31898                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
31899                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
31900                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
31901                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
31902                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
31903                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
31904                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
31905                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
31906                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
31907                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
31908                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
31909                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
31910                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
31911                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
31912                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
31913                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
31914                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
31915                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
31916                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
31917                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
31918                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
31919                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
31920                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
31921                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
31922                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
31923                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
31924                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
31925                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
31926                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
31927                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
31928                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
31929                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
31930                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
31931                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
31932                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
31933                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
31934                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
31935                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
31936                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
31937                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
31938                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
31939                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
31940                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
31941                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
31942                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
31943                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
31944                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
31945                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
31946                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
31947                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
31948                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
31949                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
31950                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
31951                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
31952                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
31953                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
31954                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
31955                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
31956                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
31957                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
31958                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
31959                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
31960                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
31961                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
31962                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
31963                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
31964                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
31965                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
31966                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
31967                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
31968                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
31969                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
31970                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
31971                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
31972                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
31973                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
31974                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
31975                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
31976                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
31977                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
31978                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
31979                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
31980                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
31981                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
31982                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
31983                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
31984                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
31985                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
31986                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
31987                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
31988                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
31989                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
31990                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
31991                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
31992                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
31993                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
31994                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
31995                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
31996                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
31997                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
31998                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
31999                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
32000                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
32001                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
32002                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
32003                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
32004                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
32005                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
32006                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
32007                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
32008                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
32009                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
32010                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
32011                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
32012                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
32013                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
32014                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
32015                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
32016                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
32017                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
32018                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
32019                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
32020                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
32021                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
32022                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
32023                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
32024                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
32025                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
32026                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
32027                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
32028                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
32029                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
32030                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
32031                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
32032                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
32033                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
32034                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
32035                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
32036                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
32037                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
32038                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
32039                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
32040                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
32041                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
32042                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
32043                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
32044                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
32045                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
32046                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
32047                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
32048                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
32049                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
32050                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
32051                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
32052                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
32053                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
32054                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
32055                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
32056                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
32057                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
32058                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
32059                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
32060                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
32061                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
32062                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
32063                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
32064                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
32065                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
32066                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
32067                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
32068                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
32069                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
32070                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
32071                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
32072                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
32073                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
32074                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
32075                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
32076                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
32077                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
32078                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
32079                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
32080                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
32081                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
32082                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
32083                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
32084                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
32085                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
32086                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
32087                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
32088                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
32089                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
32090                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
32091                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
32092                         "\x00\x21\x42\x63",
32093                 .ilen = 4100,
32094                 .result =
32095                         "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
32096                         "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
32097                         "\x29\x01\xce\x98\x55\x53\xf9\x0c"
32098                         "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
32099                         "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
32100                         "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
32101                         "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
32102                         "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
32103                         "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
32104                         "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
32105                         "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
32106                         "\xbb\xde\x56\x86\xab\x65\x21\x30"
32107                         "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
32108                         "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
32109                         "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
32110                         "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
32111                         "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
32112                         "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
32113                         "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
32114                         "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
32115                         "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
32116                         "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
32117                         "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
32118                         "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
32119                         "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
32120                         "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
32121                         "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
32122                         "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
32123                         "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
32124                         "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
32125                         "\x45\xff\x3f\xce\x55\xf6\x95\x10"
32126                         "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
32127                         "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
32128                         "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
32129                         "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
32130                         "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
32131                         "\x62\x08\x18\x7a\x25\x49\x28\xac"
32132                         "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
32133                         "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
32134                         "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
32135                         "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
32136                         "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
32137                         "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
32138                         "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
32139                         "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
32140                         "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
32141                         "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
32142                         "\x33\xee\x14\x19\x22\x52\x89\xa7"
32143                         "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
32144                         "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
32145                         "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
32146                         "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
32147                         "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
32148                         "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
32149                         "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
32150                         "\x04\x07\x08\x52\xe6\xc0\xda\x93"
32151                         "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
32152                         "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
32153                         "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
32154                         "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
32155                         "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
32156                         "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
32157                         "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
32158                         "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
32159                         "\x5a\x90\xae\x75\x0a\x74\x18\x89"
32160                         "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
32161                         "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
32162                         "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
32163                         "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
32164                         "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
32165                         "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
32166                         "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
32167                         "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
32168                         "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
32169                         "\x49\x97\x33\xab\x36\x14\x0a\x70"
32170                         "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
32171                         "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
32172                         "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
32173                         "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
32174                         "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
32175                         "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
32176                         "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
32177                         "\x47\x13\x28\x73\x3c\xbb\x00\x90"
32178                         "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
32179                         "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
32180                         "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
32181                         "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
32182                         "\xad\x04\x07\xae\x22\x90\x4a\x93"
32183                         "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
32184                         "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
32185                         "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
32186                         "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
32187                         "\x53\xf9\x80\x10\xde\x80\xa2\x41"
32188                         "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
32189                         "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
32190                         "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
32191                         "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
32192                         "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
32193                         "\xde\xff\x07\x44\xdd\x56\x1b\xad"
32194                         "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
32195                         "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
32196                         "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
32197                         "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
32198                         "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
32199                         "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
32200                         "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
32201                         "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
32202                         "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
32203                         "\x23\xf8\x66\x18\x14\x28\x34\x0f"
32204                         "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
32205                         "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
32206                         "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
32207                         "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
32208                         "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
32209                         "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
32210                         "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
32211                         "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
32212                         "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
32213                         "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
32214                         "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
32215                         "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
32216                         "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
32217                         "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
32218                         "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
32219                         "\xca\x8e\x61\x87\xde\xad\x80\xd2"
32220                         "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
32221                         "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
32222                         "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
32223                         "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
32224                         "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
32225                         "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
32226                         "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
32227                         "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
32228                         "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
32229                         "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
32230                         "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
32231                         "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
32232                         "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
32233                         "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
32234                         "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
32235                         "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
32236                         "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
32237                         "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
32238                         "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
32239                         "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
32240                         "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
32241                         "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
32242                         "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
32243                         "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
32244                         "\x54\xda\x24\x6a\xc4\x41\x65\x46"
32245                         "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
32246                         "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
32247                         "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
32248                         "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
32249                         "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
32250                         "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
32251                         "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
32252                         "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
32253                         "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
32254                         "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
32255                         "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
32256                         "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
32257                         "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
32258                         "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
32259                         "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
32260                         "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
32261                         "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
32262                         "\xef\xcc\xa7\xec\xab\x43\x09\x18"
32263                         "\xd3\xab\x68\xd1\x07\x99\x44\x47"
32264                         "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
32265                         "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
32266                         "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
32267                         "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
32268                         "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
32269                         "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
32270                         "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
32271                         "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
32272                         "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
32273                         "\x71\x6e\x9f\x58\x15\x67\x72\x87"
32274                         "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
32275                         "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
32276                         "\xba\x41\x54\xac\xf0\xfc\x59\x12"
32277                         "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
32278                         "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
32279                         "\x2e\x53\x49\x97\x94\x33\xae\x40"
32280                         "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
32281                         "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
32282                         "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
32283                         "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
32284                         "\xce\x87\xad\xcc\x72\x05\x00\x29"
32285                         "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
32286                         "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
32287                         "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
32288                         "\xac\xc0\x79\x50\x69\xca\x59\x32"
32289                         "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
32290                         "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
32291                         "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
32292                         "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
32293                         "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
32294                         "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
32295                         "\x05\x68\x6b\xab\xe3\x41\x49\xed"
32296                         "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
32297                         "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
32298                         "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
32299                         "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
32300                         "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
32301                         "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
32302                         "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
32303                         "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
32304                         "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
32305                         "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
32306                         "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
32307                         "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
32308                         "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
32309                         "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
32310                         "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
32311                         "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
32312                         "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
32313                         "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
32314                         "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
32315                         "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
32316                         "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
32317                         "\x85\x75\xe6\x43\xf6\x87\x08\x68"
32318                         "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
32319                         "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
32320                         "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
32321                         "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
32322                         "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
32323                         "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
32324                         "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
32325                         "\xaf\x55\xeb\x22\xac\x93\x68\x32"
32326                         "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
32327                         "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
32328                         "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
32329                         "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
32330                         "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
32331                         "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
32332                         "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
32333                         "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
32334                         "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
32335                         "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
32336                         "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
32337                         "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
32338                         "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
32339                         "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
32340                         "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
32341                         "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
32342                         "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
32343                         "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
32344                         "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
32345                         "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
32346                         "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
32347                         "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
32348                         "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
32349                         "\x38\x55\xab\x33\x26\xef\x9f\x43"
32350                         "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
32351                         "\x58\x09\x09\x1b\xc3\x65\x46\x46"
32352                         "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
32353                         "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
32354                         "\x63\x86\xf2\x03\x67\x45\xd2\x72"
32355                         "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
32356                         "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
32357                         "\x2b\x82\x39\xbd\x69\x54\xed\x62"
32358                         "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
32359                         "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
32360                         "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
32361                         "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
32362                         "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
32363                         "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
32364                         "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
32365                         "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
32366                         "\x55\xad\xa4\xd1\x22\x54\x70\x94"
32367                         "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
32368                         "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
32369                         "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
32370                         "\x62\x36\x43\xb2\x82\x15\x75\x50"
32371                         "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
32372                         "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
32373                         "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
32374                         "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
32375                         "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
32376                         "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
32377                         "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
32378                         "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
32379                         "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
32380                         "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
32381                         "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
32382                         "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
32383                         "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
32384                         "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
32385                         "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
32386                         "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
32387                         "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
32388                         "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
32389                         "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
32390                         "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
32391                         "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
32392                         "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
32393                         "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
32394                         "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
32395                         "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
32396                         "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
32397                         "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
32398                         "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
32399                         "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
32400                         "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
32401                         "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
32402                         "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
32403                         "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
32404                         "\x42\x19\x23\x7d\xc8\x73\xee\x25"
32405                         "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
32406                         "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
32407                         "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
32408                         "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
32409                         "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
32410                         "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
32411                         "\xdb\x87\xee\xef\x55\x89\x2a\x59"
32412                         "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
32413                         "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
32414                         "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
32415                         "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
32416                         "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
32417                         "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
32418                         "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
32419                         "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
32420                         "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
32421                         "\xae\xab\x86\x09\x89\xc9\xc2\x40"
32422                         "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
32423                         "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
32424                         "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
32425                         "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
32426                         "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
32427                         "\x95\xd9\x34\x34\x86\xc6\x41\x94"
32428                         "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
32429                         "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
32430                         "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
32431                         "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
32432                         "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
32433                         "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
32434                         "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
32435                         "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
32436                         "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
32437                         "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
32438                         "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
32439                         "\xa7\x33\x34\x86\xca\xe4\x96\x23"
32440                         "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
32441                         "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
32442                         "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
32443                         "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
32444                         "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
32445                         "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
32446                         "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
32447                         "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
32448                         "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
32449                         "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
32450                         "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
32451                         "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
32452                         "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
32453                         "\x68\xc8\x7f\x51\x22\x42\xef\x49"
32454                         "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
32455                         "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
32456                         "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
32457                         "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
32458                         "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
32459                         "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
32460                         "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
32461                         "\x73\x2e\x71\x79\x16\x06\x63\x28"
32462                         "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
32463                         "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
32464                         "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
32465                         "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
32466                         "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
32467                         "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
32468                         "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
32469                         "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
32470                         "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
32471                         "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
32472                         "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
32473                         "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
32474                         "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
32475                         "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
32476                         "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
32477                         "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
32478                         "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
32479                         "\x19\x07\xaf\x90\x62\x5c\x68\x98"
32480                         "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
32481                         "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
32482                         "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
32483                         "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
32484                         "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
32485                         "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
32486                         "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
32487                         "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
32488                         "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
32489                         "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
32490                         "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
32491                         "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
32492                         "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
32493                         "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
32494                         "\x21\x33\x44\xfe\x7f\x35\x32\x93"
32495                         "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
32496                         "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
32497                         "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
32498                         "\x64\xf0\x48\xe5\x57\x99\xee\x75"
32499                         "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
32500                         "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
32501                         "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
32502                         "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
32503                         "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
32504                         "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
32505                         "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
32506                         "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
32507                         "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
32508                         "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
32509                         "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
32510                         "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
32511                         "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
32512                         "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
32513                         "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
32514                         "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
32515                         "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
32516                         "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
32517                         "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
32518                         "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
32519                         "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
32520                         "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
32521                         "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
32522                         "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
32523                         "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
32524                         "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
32525                         "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
32526                         "\x56\xf5\x4e\x01\x35\x27\x45\x77"
32527                         "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
32528                         "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
32529                         "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
32530                         "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
32531                         "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
32532                         "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
32533                         "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
32534                         "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
32535                         "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
32536                         "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
32537                         "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
32538                         "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
32539                         "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
32540                         "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
32541                         "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
32542                         "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
32543                         "\x87\x8f\x03\x21\x28\x95\x0c\x89"
32544                         "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
32545                         "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
32546                         "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
32547                         "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
32548                         "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
32549                         "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
32550                         "\x85\x73\x78\x45\x20\x7f\xae\x13"
32551                         "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
32552                         "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
32553                         "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
32554                         "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
32555                         "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
32556                         "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
32557                         "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
32558                         "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
32559                         "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
32560                         "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
32561                         "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
32562                         "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
32563                         "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
32564                         "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
32565                         "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
32566                         "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
32567                         "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
32568                         "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
32569                         "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
32570                         "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
32571                         "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
32572                         "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
32573                         "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
32574                         "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
32575                         "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
32576                         "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
32577                         "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
32578                         "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
32579                         "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
32580                         "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
32581                         "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
32582                         "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
32583                         "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
32584                         "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
32585                         "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
32586                         "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
32587                         "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
32588                         "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
32589                         "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
32590                         "\x6e\x12\x17\x72\x63\x57\xc7\xba"
32591                         "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
32592                         "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
32593                         "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
32594                         "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
32595                         "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
32596                         "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
32597                         "\x0c\x24\x43\x31\x40\x57\xf1\x72"
32598                         "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
32599                         "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
32600                         "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
32601                         "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
32602                         "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
32603                         "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
32604                         "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
32605                         "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
32606                         "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
32607                         "\xaf\xdf\x11\x95",
32608                 .rlen   = 4100,
32609                 .np     = 2,
32610                 .tap    = { 4064, 36 },
32611         },
32612 };
32613
32614 static const struct cipher_testvec chacha20_enc_tv_template[] = {
32615         { /* RFC7539 A.2. Test Vector #1 */
32616                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
32617                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32618                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32619                           "\x00\x00\x00\x00\x00\x00\x00\x00",
32620                 .klen   = 32,
32621                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
32622                           "\x00\x00\x00\x00\x00\x00\x00\x00",
32623                 .input  = "\x00\x00\x00\x00\x00\x00\x00\x00"
32624                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32625                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32626                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32627                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32628                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32629                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32630                           "\x00\x00\x00\x00\x00\x00\x00\x00",
32631                 .ilen   = 64,
32632                 .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
32633                           "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
32634                           "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
32635                           "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
32636                           "\xda\x41\x59\x7c\x51\x57\x48\x8d"
32637                           "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
32638                           "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
32639                           "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
32640                 .rlen   = 64,
32641         }, { /* RFC7539 A.2. Test Vector #2 */
32642                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
32643                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32644                           "\x00\x00\x00\x00\x00\x00\x00\x00"
32645                           "\x00\x00\x00\x00\x00\x00\x00\x01",
32646                 .klen   = 32,
32647                 .iv     = "\x01\x00\x00\x00\x00\x00\x00\x00"
32648                           "\x00\x00\x00\x00\x00\x00\x00\x02",
32649                 .input  = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
32650                           "\x69\x73\x73\x69\x6f\x6e\x20\x74"
32651                           "\x6f\x20\x74\x68\x65\x20\x49\x45"
32652                           "\x54\x46\x20\x69\x6e\x74\x65\x6e"
32653                           "\x64\x65\x64\x20\x62\x79\x20\x74"
32654                           "\x68\x65\x20\x43\x6f\x6e\x74\x72"
32655                           "\x69\x62\x75\x74\x6f\x72\x20\x66"
32656                           "\x6f\x72\x20\x70\x75\x62\x6c\x69"
32657                           "\x63\x61\x74\x69\x6f\x6e\x20\x61"
32658                           "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
32659                           "\x20\x70\x61\x72\x74\x20\x6f\x66"
32660                           "\x20\x61\x6e\x20\x49\x45\x54\x46"
32661                           "\x20\x49\x6e\x74\x65\x72\x6e\x65"
32662                           "\x74\x2d\x44\x72\x61\x66\x74\x20"
32663                           "\x6f\x72\x20\x52\x46\x43\x20\x61"
32664                           "\x6e\x64\x20\x61\x6e\x79\x20\x73"
32665                           "\x74\x61\x74\x65\x6d\x65\x6e\x74"
32666                           "\x20\x6d\x61\x64\x65\x20\x77\x69"
32667                           "\x74\x68\x69\x6e\x20\x74\x68\x65"
32668                           "\x20\x63\x6f\x6e\x74\x65\x78\x74"
32669                           "\x20\x6f\x66\x20\x61\x6e\x20\x49"
32670                           "\x45\x54\x46\x20\x61\x63\x74\x69"
32671                           "\x76\x69\x74\x79\x20\x69\x73\x20"
32672                           "\x63\x6f\x6e\x73\x69\x64\x65\x72"
32673                           "\x65\x64\x20\x61\x6e\x20\x22\x49"
32674                           "\x45\x54\x46\x20\x43\x6f\x6e\x74"
32675                           "\x72\x69\x62\x75\x74\x69\x6f\x6e"
32676                           "\x22\x2e\x20\x53\x75\x63\x68\x20"
32677                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32678                           "\x74\x73\x20\x69\x6e\x63\x6c\x75"
32679                           "\x64\x65\x20\x6f\x72\x61\x6c\x20"
32680                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32681                           "\x74\x73\x20\x69\x6e\x20\x49\x45"
32682                           "\x54\x46\x20\x73\x65\x73\x73\x69"
32683                           "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
32684                           "\x77\x65\x6c\x6c\x20\x61\x73\x20"
32685                           "\x77\x72\x69\x74\x74\x65\x6e\x20"
32686                           "\x61\x6e\x64\x20\x65\x6c\x65\x63"
32687                           "\x74\x72\x6f\x6e\x69\x63\x20\x63"
32688                           "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
32689                           "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
32690                           "\x64\x65\x20\x61\x74\x20\x61\x6e"
32691                           "\x79\x20\x74\x69\x6d\x65\x20\x6f"
32692                           "\x72\x20\x70\x6c\x61\x63\x65\x2c"
32693                           "\x20\x77\x68\x69\x63\x68\x20\x61"
32694                           "\x72\x65\x20\x61\x64\x64\x72\x65"
32695                           "\x73\x73\x65\x64\x20\x74\x6f",
32696                 .ilen   = 375,
32697                 .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
32698                           "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
32699                           "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
32700                           "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
32701                           "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
32702                           "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
32703                           "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
32704                           "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
32705                           "\x40\x42\xe0\x27\x85\xec\xec\xfa"
32706                           "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
32707                           "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
32708                           "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
32709                           "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
32710                           "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
32711                           "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
32712                           "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
32713                           "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
32714                           "\xd6\x62\xab\x05\x26\x91\xca\x66"
32715                           "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
32716                           "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
32717                           "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
32718                           "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
32719                           "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
32720                           "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
32721                           "\x08\x71\xcd\xac\x63\x89\x39\xe2"
32722                           "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
32723                           "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
32724                           "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
32725                           "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
32726                           "\x37\x20\xfc\x88\xdc\x95\xed\x84"
32727                           "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
32728                           "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
32729                           "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
32730                           "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
32731                           "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
32732                           "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
32733                           "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
32734                           "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
32735                           "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
32736                           "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
32737                           "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
32738                           "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
32739                           "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
32740                           "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
32741                           "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
32742                           "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
32743                           "\xc4\xfd\x80\x6c\x22\xf2\x21",
32744                 .rlen   = 375,
32745                 .also_non_np = 1,
32746                 .np     = 3,
32747                 .tap    = { 375 - 20, 4, 16 },
32748
32749         }, { /* RFC7539 A.2. Test Vector #3 */
32750                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32751                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32752                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32753                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32754                 .klen   = 32,
32755                 .iv     = "\x2a\x00\x00\x00\x00\x00\x00\x00"
32756                           "\x00\x00\x00\x00\x00\x00\x00\x02",
32757                 .input  = "\x27\x54\x77\x61\x73\x20\x62\x72"
32758                           "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
32759                           "\x6e\x64\x20\x74\x68\x65\x20\x73"
32760                           "\x6c\x69\x74\x68\x79\x20\x74\x6f"
32761                           "\x76\x65\x73\x0a\x44\x69\x64\x20"
32762                           "\x67\x79\x72\x65\x20\x61\x6e\x64"
32763                           "\x20\x67\x69\x6d\x62\x6c\x65\x20"
32764                           "\x69\x6e\x20\x74\x68\x65\x20\x77"
32765                           "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
32766                           "\x20\x6d\x69\x6d\x73\x79\x20\x77"
32767                           "\x65\x72\x65\x20\x74\x68\x65\x20"
32768                           "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
32769                           "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
32770                           "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
32771                           "\x72\x61\x74\x68\x73\x20\x6f\x75"
32772                           "\x74\x67\x72\x61\x62\x65\x2e",
32773                 .ilen   = 127,
32774                 .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
32775                           "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
32776                           "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
32777                           "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
32778                           "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
32779                           "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
32780                           "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
32781                           "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
32782                           "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
32783                           "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
32784                           "\x1a\x55\x32\x05\x57\x16\xea\xd6"
32785                           "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
32786                           "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
32787                           "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
32788                           "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
32789                           "\x75\x7a\x79\x7a\xc1\x88\xd1",
32790                 .rlen   = 127,
32791         }, { /* Self-made test vector for long data */
32792                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32793                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32794                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32795                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32796                 .klen   = 32,
32797                 .iv     = "\x1c\x00\x00\x00\x00\x00\x00\x00"
32798                           "\x00\x00\x00\x00\x00\x00\x00\x01",
32799                 .input  = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
32800                           "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
32801                           "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
32802                           "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
32803                           "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
32804                           "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
32805                           "\x01\xc6\x67\xda\x03\x91\x18\x90"
32806                           "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
32807                           "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
32808                           "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
32809                           "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
32810                           "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
32811                           "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
32812                           "\x33\x97\xc3\x77\xba\xc5\x70\xde"
32813                           "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
32814                           "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
32815                           "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
32816                           "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
32817                           "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
32818                           "\x79\x49\x41\xf4\x58\x18\xcb\x86"
32819                           "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
32820                           "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
32821                           "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
32822                           "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
32823                           "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
32824                           "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
32825                           "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
32826                           "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
32827                           "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
32828                           "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
32829                           "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
32830                           "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
32831                           "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
32832                           "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
32833                           "\x24\x74\x75\x7f\x95\x81\xb7\x30"
32834                           "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
32835                           "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
32836                           "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
32837                           "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
32838                           "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
32839                           "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
32840                           "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
32841                           "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
32842                           "\x49\x46\x00\x88\x22\x8d\xce\xea"
32843                           "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
32844                           "\x72\x11\xf5\x50\x73\x04\x40\x47"
32845                           "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
32846                           "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
32847                           "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
32848                           "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
32849                           "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
32850                           "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
32851                           "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
32852                           "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
32853                           "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
32854                           "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
32855                           "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
32856                           "\x8b\x10\x67\xa3\x01\x57\x94\x25"
32857                           "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
32858                           "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
32859                           "\x58\xb1\x47\x90\xfe\x42\x21\x72"
32860                           "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
32861                           "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
32862                           "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
32863                           "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
32864                           "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
32865                           "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
32866                           "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
32867                           "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
32868                           "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
32869                           "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
32870                           "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
32871                           "\x65\x69\x8a\x45\x29\xef\x74\x85"
32872                           "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
32873                           "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
32874                           "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
32875                           "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
32876                           "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
32877                           "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
32878                           "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
32879                           "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
32880                           "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
32881                           "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
32882                           "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
32883                           "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
32884                           "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
32885                           "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
32886                           "\x10\x26\x38\x07\xe5\xc7\x36\x80"
32887                           "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
32888                           "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
32889                           "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
32890                           "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
32891                           "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
32892                           "\x83\x66\x80\x47\x80\xe8\xfd\x35"
32893                           "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
32894                           "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
32895                           "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
32896                           "\x25\x94\x10\x5f\x40\x00\x64\x99"
32897                           "\xdc\xae\xd7\x21\x09\x78\x50\x15"
32898                           "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
32899                           "\x87\x6e\x6d\xab\xde\x08\x51\x16"
32900                           "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
32901                           "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
32902                           "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
32903                           "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
32904                           "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
32905                           "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
32906                           "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
32907                           "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
32908                           "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
32909                           "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
32910                           "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
32911                           "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
32912                           "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
32913                           "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
32914                           "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
32915                           "\xb9\x83\x90\xef\x20\x59\x46\xff"
32916                           "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
32917                           "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
32918                           "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
32919                           "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
32920                           "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
32921                           "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
32922                           "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
32923                           "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
32924                           "\x94\x97\xea\xdd\x58\x9e\xae\x76"
32925                           "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
32926                           "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
32927                           "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
32928                           "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
32929                           "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
32930                           "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
32931                           "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
32932                           "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
32933                           "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
32934                           "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
32935                           "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
32936                           "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
32937                           "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
32938                           "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
32939                           "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
32940                           "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
32941                           "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
32942                           "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
32943                           "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
32944                           "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
32945                           "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
32946                           "\xac\xf3\x13\x53\x27\x45\xaf\x64"
32947                           "\x46\xdc\xea\x23\xda\x97\xd1\xab"
32948                           "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
32949                           "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
32950                           "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
32951                           "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
32952                           "\xca\x34\x83\x27\x10\x5b\x68\x45"
32953                           "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
32954                           "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
32955                           "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
32956                           "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
32957                           "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
32958                           "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
32959                           "\x72",
32960                 .ilen   = 1281,
32961                 .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
32962                           "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
32963                           "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
32964                           "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
32965                           "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
32966                           "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
32967                           "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
32968                           "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
32969                           "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
32970                           "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
32971                           "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
32972                           "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
32973                           "\x33\x4a\x71\x15\xfe\xee\x12\x54"
32974                           "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
32975                           "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
32976                           "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
32977                           "\x57\x0e\x94\x17\x26\x39\xbb\x54"
32978                           "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
32979                           "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
32980                           "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
32981                           "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
32982                           "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
32983                           "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
32984                           "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
32985                           "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
32986                           "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
32987                           "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
32988                           "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
32989                           "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
32990                           "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
32991                           "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
32992                           "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
32993                           "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
32994                           "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
32995                           "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
32996                           "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
32997                           "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
32998                           "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
32999                           "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
33000                           "\xae\xe7\x61\x32\xef\x41\x6c\x75"
33001                           "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
33002                           "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
33003                           "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
33004                           "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
33005                           "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
33006                           "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
33007                           "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
33008                           "\xc1\x22\xf3\x79\xae\x95\x78\x66"
33009                           "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
33010                           "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
33011                           "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
33012                           "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
33013                           "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
33014                           "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
33015                           "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
33016                           "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
33017                           "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
33018                           "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
33019                           "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
33020                           "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
33021                           "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
33022                           "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
33023                           "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
33024                           "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
33025                           "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
33026                           "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
33027                           "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
33028                           "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
33029                           "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
33030                           "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
33031                           "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
33032                           "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
33033                           "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
33034                           "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
33035                           "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
33036                           "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
33037                           "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
33038                           "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
33039                           "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
33040                           "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
33041                           "\x54\x1c\x34\x72\xde\x0c\x68\x39"
33042                           "\x9d\x32\xa5\x75\x92\x13\x32\xea"
33043                           "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
33044                           "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
33045                           "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
33046                           "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
33047                           "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
33048                           "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
33049                           "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
33050                           "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
33051                           "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
33052                           "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
33053                           "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
33054                           "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
33055                           "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
33056                           "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
33057                           "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
33058                           "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
33059                           "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
33060                           "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
33061                           "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
33062                           "\x79\x61\x23\xe0\xa2\x99\x73\x55"
33063                           "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
33064                           "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
33065                           "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
33066                           "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
33067                           "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
33068                           "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
33069                           "\x48\x56\xaa\x85\x22\xd8\x36\xed"
33070                           "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
33071                           "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
33072                           "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
33073                           "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
33074                           "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
33075                           "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
33076                           "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
33077                           "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
33078                           "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
33079                           "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
33080                           "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
33081                           "\xec\x83\x92\x99\x87\x47\xe0\x7c"
33082                           "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
33083                           "\x98\xb0\x87\xb6\x86\x13\x64\x33"
33084                           "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
33085                           "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
33086                           "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
33087                           "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
33088                           "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
33089                           "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
33090                           "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
33091                           "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
33092                           "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
33093                           "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
33094                           "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
33095                           "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
33096                           "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
33097                           "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
33098                           "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
33099                           "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
33100                           "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
33101                           "\x5f\xae\x25\x84\x22\x90\x5f\x26"
33102                           "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
33103                           "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
33104                           "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
33105                           "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
33106                           "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
33107                           "\x74\x06\x89\x0e\x90\xeb\x85\xff"
33108                           "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
33109                           "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
33110                           "\x02\x85\x68\xd0\x03\x12\xde\x92"
33111                           "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
33112                           "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
33113                           "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
33114                           "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
33115                           "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
33116                           "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
33117                           "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
33118                           "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
33119                           "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
33120                           "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
33121                           "\x98",
33122                 .rlen   = 1281,
33123                 .also_non_np = 1,
33124                 .np     = 3,
33125                 .tap    = { 1200, 1, 80 },
33126         },
33127 };
33128
33129 /*
33130  * CTS (Cipher Text Stealing) mode tests
33131  */
33132 static const struct cipher_testvec cts_mode_enc_tv_template[] = {
33133         { /* from rfc3962 */
33134                 .klen   = 16,
33135                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33136                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33137                 .ilen   = 17,
33138                 .input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33139                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33140                           "\x20",
33141                 .rlen   = 17,
33142                 .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33143                           "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33144                           "\x97",
33145         }, {
33146                 .klen   = 16,
33147                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33148                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33149                 .ilen   = 31,
33150                 .input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33151                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33152                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33153                           "\x20\x47\x61\x75\x27\x73\x20",
33154                 .rlen   = 31,
33155                 .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33156                           "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33157                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33158                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33159         }, {
33160                 .klen   = 16,
33161                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33162                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33163                 .ilen   = 32,
33164                 .input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33165                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33166                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33167                           "\x20\x47\x61\x75\x27\x73\x20\x43",
33168                 .rlen   = 32,
33169                 .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33170                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33171                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33172                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
33173         }, {
33174                 .klen   = 16,
33175                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33176                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33177                 .ilen   = 47,
33178                 .input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33179                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33180                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33181                           "\x20\x47\x61\x75\x27\x73\x20\x43"
33182                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33183                           "\x70\x6c\x65\x61\x73\x65\x2c",
33184                 .rlen   = 47,
33185                 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33186                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33187                           "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33188                           "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33189                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33190                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
33191         }, {
33192                 .klen   = 16,
33193                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33194                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33195                 .ilen   = 48,
33196                 .input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33197                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33198                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33199                           "\x20\x47\x61\x75\x27\x73\x20\x43"
33200                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33201                           "\x70\x6c\x65\x61\x73\x65\x2c\x20",
33202                 .rlen   = 48,
33203                 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33204                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33205                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33206                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33207                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33208                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33209         }, {
33210                 .klen   = 16,
33211                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33212                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33213                 .ilen   = 64,
33214                 .input  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33215                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33216                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33217                           "\x20\x47\x61\x75\x27\x73\x20\x43"
33218                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33219                           "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33220                           "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33221                           "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33222                 .rlen   = 64,
33223                 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33224                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33225                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33226                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33227                           "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33228                           "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33229                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33230                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33231         }
33232 };
33233
33234 static const struct cipher_testvec cts_mode_dec_tv_template[] = {
33235         { /* from rfc3962 */
33236                 .klen   = 16,
33237                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33238                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33239                 .rlen   = 17,
33240                 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33241                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33242                           "\x20",
33243                 .ilen   = 17,
33244                 .input  = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33245                           "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33246                           "\x97",
33247         }, {
33248                 .klen   = 16,
33249                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33250                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33251                 .rlen   = 31,
33252                 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33253                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33254                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33255                           "\x20\x47\x61\x75\x27\x73\x20",
33256                 .ilen   = 31,
33257                 .input  = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33258                           "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33259                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33260                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33261         }, {
33262                 .klen   = 16,
33263                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33264                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33265                 .rlen   = 32,
33266                 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33267                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33268                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33269                           "\x20\x47\x61\x75\x27\x73\x20\x43",
33270                 .ilen   = 32,
33271                 .input  = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33272                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33273                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33274                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
33275         }, {
33276                 .klen   = 16,
33277                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33278                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33279                 .rlen   = 47,
33280                 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33281                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33282                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33283                           "\x20\x47\x61\x75\x27\x73\x20\x43"
33284                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33285                           "\x70\x6c\x65\x61\x73\x65\x2c",
33286                 .ilen   = 47,
33287                 .input  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33288                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33289                           "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33290                           "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33291                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33292                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
33293         }, {
33294                 .klen   = 16,
33295                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33296                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33297                 .rlen   = 48,
33298                 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33299                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33300                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33301                           "\x20\x47\x61\x75\x27\x73\x20\x43"
33302                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33303                           "\x70\x6c\x65\x61\x73\x65\x2c\x20",
33304                 .ilen   = 48,
33305                 .input  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33306                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33307                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33308                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33309                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33310                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33311         }, {
33312                 .klen   = 16,
33313                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33314                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
33315                 .rlen   = 64,
33316                 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33317                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33318                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33319                           "\x20\x47\x61\x75\x27\x73\x20\x43"
33320                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33321                           "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33322                           "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33323                           "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33324                 .ilen   = 64,
33325                 .input  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33326                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33327                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33328                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33329                           "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33330                           "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33331                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33332                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33333         }
33334 };
33335
33336 /*
33337  * Compression stuff.
33338  */
33339 #define COMP_BUF_SIZE           512
33340
33341 struct comp_testvec {
33342         int inlen, outlen;
33343         char input[COMP_BUF_SIZE];
33344         char output[COMP_BUF_SIZE];
33345 };
33346
33347 /*
33348  * Deflate test vectors (null-terminated strings).
33349  * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
33350  */
33351
33352 static const struct comp_testvec deflate_comp_tv_template[] = {
33353         {
33354                 .inlen  = 70,
33355                 .outlen = 38,
33356                 .input  = "Join us now and share the software "
33357                         "Join us now and share the software ",
33358                 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33359                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33360                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33361                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
33362                           "\x71\xbc\x08\x2b\x01\x00",
33363         }, {
33364                 .inlen  = 191,
33365                 .outlen = 122,
33366                 .input  = "This document describes a compression method based on the DEFLATE"
33367                         "compression algorithm.  This document defines the application of "
33368                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33369                 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33370                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33371                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33372                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33373                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
33374                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33375                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33376                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33377                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33378                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33379                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33380                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33381                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33382                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33383                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33384                           "\xfa\x02",
33385         },
33386 };
33387
33388 static const struct comp_testvec deflate_decomp_tv_template[] = {
33389         {
33390                 .inlen  = 122,
33391                 .outlen = 191,
33392                 .input  = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33393                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33394                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33395                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33396                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
33397                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33398                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33399                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33400                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33401                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33402                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33403                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33404                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33405                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33406                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33407                           "\xfa\x02",
33408                 .output = "This document describes a compression method based on the DEFLATE"
33409                         "compression algorithm.  This document defines the application of "
33410                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33411         }, {
33412                 .inlen  = 38,
33413                 .outlen = 70,
33414                 .input  = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33415                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33416                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33417                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
33418                           "\x71\xbc\x08\x2b\x01\x00",
33419                 .output = "Join us now and share the software "
33420                         "Join us now and share the software ",
33421         },
33422 };
33423
33424 static const struct comp_testvec zlib_deflate_comp_tv_template[] = {
33425         {
33426                 .inlen  = 70,
33427                 .outlen = 44,
33428                 .input  = "Join us now and share the software "
33429                         "Join us now and share the software ",
33430                 .output = "\x78\x5e\xf3\xca\xcf\xcc\x53\x28"
33431                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
33432                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
33433                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
33434                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
33435                           "\x7c\x65\x19\x3d",
33436         }, {
33437                 .inlen  = 191,
33438                 .outlen = 129,
33439                 .input  = "This document describes a compression method based on the DEFLATE"
33440                         "compression algorithm.  This document defines the application of "
33441                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33442                 .output = "\x78\x5e\x5d\xce\x41\x0a\xc3\x30"
33443                           "\x0c\x04\xc0\xaf\xec\x0b\xf2\x87"
33444                           "\xd2\xa6\x50\xe8\xc1\x07\x7f\x40"
33445                           "\xb1\x95\x5a\x60\x5b\xc6\x56\x0f"
33446                           "\xfd\x7d\x93\x1e\x42\xe8\x51\xec"
33447                           "\xee\x20\x9f\x64\x20\x6a\x78\x17"
33448                           "\xae\x86\xc8\x23\x74\x59\x78\x80"
33449                           "\x10\xb4\xb4\xce\x63\x88\x56\x14"
33450                           "\xb6\xa4\x11\x0b\x0d\x8e\xd8\x6e"
33451                           "\x4b\x8c\xdb\x7c\x7f\x5e\xfc\x7c"
33452                           "\xae\x51\x7e\x69\x17\x4b\x65\x02"
33453                           "\xfc\x1f\xbc\x4a\xdd\xd8\x7d\x48"
33454                           "\xad\x65\x09\x64\x3b\xac\xeb\xd9"
33455                           "\xc2\x01\xc0\xf4\x17\x3c\x1c\x1c"
33456                           "\x7d\xb2\x52\xc4\xf5\xf4\x8f\xeb"
33457                           "\x6a\x1a\x34\x4f\x5f\x2e\x32\x45"
33458                           "\x4e",
33459         },
33460 };
33461
33462 static const struct comp_testvec zlib_deflate_decomp_tv_template[] = {
33463         {
33464                 .inlen  = 128,
33465                 .outlen = 191,
33466                 .input  = "\x78\x9c\x5d\x8d\x31\x0e\xc2\x30"
33467                           "\x10\x04\xbf\xb2\x2f\xc8\x1f\x10"
33468                           "\x04\x09\x89\xc2\x85\x3f\x70\xb1"
33469                           "\x2f\xf8\x24\xdb\x67\xd9\x47\xc1"
33470                           "\xef\x49\x68\x12\x51\xae\x76\x67"
33471                           "\xd6\x27\x19\x88\x1a\xde\x85\xab"
33472                           "\x21\xf2\x08\x5d\x16\x1e\x20\x04"
33473                           "\x2d\xad\xf3\x18\xa2\x15\x85\x2d"
33474                           "\x69\xc4\x42\x83\x23\xb6\x6c\x89"
33475                           "\x71\x9b\xef\xcf\x8b\x9f\xcf\x33"
33476                           "\xca\x2f\xed\x62\xa9\x4c\x80\xff"
33477                           "\x13\xaf\x52\x37\xed\x0e\x52\x6b"
33478                           "\x59\x02\xd9\x4e\xe8\x7a\x76\x1d"
33479                           "\x02\x98\xfe\x8a\x87\x83\xa3\x4f"
33480                           "\x56\x8a\xb8\x9e\x8e\x5c\x57\xd3"
33481                           "\xa0\x79\xfa\x02\x2e\x32\x45\x4e",
33482                 .output = "This document describes a compression method based on the DEFLATE"
33483                         "compression algorithm.  This document defines the application of "
33484                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33485         }, {
33486                 .inlen  = 44,
33487                 .outlen = 70,
33488                 .input  = "\x78\x9c\xf3\xca\xcf\xcc\x53\x28"
33489                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
33490                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
33491                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
33492                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
33493                           "\x7c\x65\x19\x3d",
33494                 .output = "Join us now and share the software "
33495                         "Join us now and share the software ",
33496         },
33497 };
33498
33499 /*
33500  * LZO test vectors (null-terminated strings).
33501  */
33502 static const struct comp_testvec lzo_comp_tv_template[] = {
33503         {
33504                 .inlen  = 70,
33505                 .outlen = 57,
33506                 .input  = "Join us now and share the software "
33507                         "Join us now and share the software ",
33508                 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
33509                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33510                           "\x64\x20\x73\x68\x61\x72\x65\x20"
33511                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
33512                           "\x77\x70\x01\x32\x88\x00\x0c\x65"
33513                           "\x20\x74\x68\x65\x20\x73\x6f\x66"
33514                           "\x74\x77\x61\x72\x65\x20\x11\x00"
33515                           "\x00",
33516         }, {
33517                 .inlen  = 159,
33518                 .outlen = 131,
33519                 .input  = "This document describes a compression method based on the LZO "
33520                         "compression algorithm.  This document defines the application of "
33521                         "the LZO algorithm used in UBIFS.",
33522                 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
33523                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33524                           "\x64\x65\x73\x63\x72\x69\x62\x65"
33525                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33526                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33527                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33528                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
33529                           "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
33530                           "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
33531                           "\x72\x69\x74\x68\x6d\x2e\x20\x20"
33532                           "\x2e\x54\x01\x03\x66\x69\x6e\x65"
33533                           "\x73\x20\x74\x06\x05\x61\x70\x70"
33534                           "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
33535                           "\x66\x88\x02\x60\x09\x27\xf0\x00"
33536                           "\x0c\x20\x75\x73\x65\x64\x20\x69"
33537                           "\x6e\x20\x55\x42\x49\x46\x53\x2e"
33538                           "\x11\x00\x00",
33539         },
33540 };
33541
33542 static const struct comp_testvec lzo_decomp_tv_template[] = {
33543         {
33544                 .inlen  = 133,
33545                 .outlen = 159,
33546                 .input  = "\x00\x2b\x54\x68\x69\x73\x20\x64"
33547                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33548                           "\x64\x65\x73\x63\x72\x69\x62\x65"
33549                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33550                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33551                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33552                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
33553                           "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
33554                           "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
33555                           "\x69\x74\x68\x6d\x2e\x20\x20\x54"
33556                           "\x68\x69\x73\x2a\x54\x01\x02\x66"
33557                           "\x69\x6e\x65\x73\x94\x06\x05\x61"
33558                           "\x70\x70\x6c\x69\x63\x61\x74\x76"
33559                           "\x0a\x6f\x66\x88\x02\x60\x09\x27"
33560                           "\xf0\x00\x0c\x20\x75\x73\x65\x64"
33561                           "\x20\x69\x6e\x20\x55\x42\x49\x46"
33562                           "\x53\x2e\x11\x00\x00",
33563                 .output = "This document describes a compression method based on the LZO "
33564                         "compression algorithm.  This document defines the application of "
33565                         "the LZO algorithm used in UBIFS.",
33566         }, {
33567                 .inlen  = 46,
33568                 .outlen = 70,
33569                 .input  = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
33570                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33571                           "\x64\x20\x73\x68\x61\x72\x65\x20"
33572                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
33573                           "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
33574                           "\x3d\x88\x00\x11\x00\x00",
33575                 .output = "Join us now and share the software "
33576                         "Join us now and share the software ",
33577         },
33578 };
33579
33580 /*
33581  * Michael MIC test vectors from IEEE 802.11i
33582  */
33583 #define MICHAEL_MIC_TEST_VECTORS 6
33584
33585 static const struct hash_testvec michael_mic_tv_template[] = {
33586         {
33587                 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
33588                 .ksize = 8,
33589                 .plaintext = zeroed_string,
33590                 .psize = 0,
33591                 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33592         },
33593         {
33594                 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33595                 .ksize = 8,
33596                 .plaintext = "M",
33597                 .psize = 1,
33598                 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33599         },
33600         {
33601                 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33602                 .ksize = 8,
33603                 .plaintext = "Mi",
33604                 .psize = 2,
33605                 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33606         },
33607         {
33608                 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33609                 .ksize = 8,
33610                 .plaintext = "Mic",
33611                 .psize = 3,
33612                 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33613         },
33614         {
33615                 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33616                 .ksize = 8,
33617                 .plaintext = "Mich",
33618                 .psize = 4,
33619                 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33620         },
33621         {
33622                 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33623                 .ksize = 8,
33624                 .plaintext = "Michael",
33625                 .psize = 7,
33626                 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
33627         }
33628 };
33629
33630 /*
33631  * CRC32 test vectors
33632  */
33633 static const struct hash_testvec crc32_tv_template[] = {
33634         {
33635                 .key = "\x87\xa9\xcb\xed",
33636                 .ksize = 4,
33637                 .psize = 0,
33638                 .digest = "\x87\xa9\xcb\xed",
33639         },
33640         {
33641                 .key = "\xff\xff\xff\xff",
33642                 .ksize = 4,
33643                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33644                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33645                              "\x11\x12\x13\x14\x15\x16\x17\x18"
33646                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33647                              "\x21\x22\x23\x24\x25\x26\x27\x28",
33648                 .psize = 40,
33649                 .digest = "\x3a\xdf\x4b\xb0",
33650         },
33651         {
33652                 .key = "\xff\xff\xff\xff",
33653                 .ksize = 4,
33654                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33655                              "\x31\x32\x33\x34\x35\x36\x37\x38"
33656                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33657                              "\x41\x42\x43\x44\x45\x46\x47\x48"
33658                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33659                 .psize = 40,
33660                 .digest = "\xa9\x7a\x7f\x7b",
33661         },
33662         {
33663                 .key = "\xff\xff\xff\xff",
33664                 .ksize = 4,
33665                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33666                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33667                              "\x61\x62\x63\x64\x65\x66\x67\x68"
33668                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33669                              "\x71\x72\x73\x74\x75\x76\x77\x78",
33670                 .psize = 40,
33671                 .digest = "\xba\xd3\xf8\x1c",
33672         },
33673         {
33674                 .key = "\xff\xff\xff\xff",
33675                 .ksize = 4,
33676                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33677                              "\x81\x82\x83\x84\x85\x86\x87\x88"
33678                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33679                              "\x91\x92\x93\x94\x95\x96\x97\x98"
33680                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33681                 .psize = 40,
33682                 .digest = "\xa8\xa9\xc2\x02",
33683         },
33684         {
33685                 .key = "\xff\xff\xff\xff",
33686                 .ksize = 4,
33687                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33688                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33689                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33690                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33691                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33692                 .psize = 40,
33693                 .digest = "\x27\xf0\x57\xe2",
33694         },
33695         {
33696                 .key = "\xff\xff\xff\xff",
33697                 .ksize = 4,
33698                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33699                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33700                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33701                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33702                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33703                 .psize = 40,
33704                 .digest = "\x49\x78\x10\x08",
33705         },
33706         {
33707                 .key = "\x80\xea\xd3\xf1",
33708                 .ksize = 4,
33709                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33710                              "\x31\x32\x33\x34\x35\x36\x37\x38"
33711                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33712                              "\x41\x42\x43\x44\x45\x46\x47\x48"
33713                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33714                 .psize = 40,
33715                 .digest = "\x9a\xb1\xdc\xf0",
33716         },
33717         {
33718                 .key = "\xf3\x4a\x1d\x5d",
33719                 .ksize = 4,
33720                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33721                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33722                              "\x61\x62\x63\x64\x65\x66\x67\x68"
33723                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33724                              "\x71\x72\x73\x74\x75\x76\x77\x78",
33725                 .psize = 40,
33726                 .digest = "\xb4\x97\xcc\xd4",
33727         },
33728         {
33729                 .key = "\x2e\x80\x04\x59",
33730                 .ksize = 4,
33731                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33732                              "\x81\x82\x83\x84\x85\x86\x87\x88"
33733                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33734                              "\x91\x92\x93\x94\x95\x96\x97\x98"
33735                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33736                 .psize = 40,
33737                 .digest = "\x67\x9b\xfa\x79",
33738         },
33739         {
33740                 .key = "\xa6\xcc\x19\x85",
33741                 .ksize = 4,
33742                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33743                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33744                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33745                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33746                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33747                 .psize = 40,
33748                 .digest = "\x24\xb5\x16\xef",
33749         },
33750         {
33751                 .key = "\x41\xfc\xfe\x2d",
33752                 .ksize = 4,
33753                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33754                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33755                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33756                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33757                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33758                 .psize = 40,
33759                 .digest = "\x15\x94\x80\x39",
33760         },
33761         {
33762                 .key = "\xff\xff\xff\xff",
33763                 .ksize = 4,
33764                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33765                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33766                              "\x11\x12\x13\x14\x15\x16\x17\x18"
33767                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33768                              "\x21\x22\x23\x24\x25\x26\x27\x28"
33769                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33770                              "\x31\x32\x33\x34\x35\x36\x37\x38"
33771                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33772                              "\x41\x42\x43\x44\x45\x46\x47\x48"
33773                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
33774                              "\x51\x52\x53\x54\x55\x56\x57\x58"
33775                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33776                              "\x61\x62\x63\x64\x65\x66\x67\x68"
33777                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33778                              "\x71\x72\x73\x74\x75\x76\x77\x78"
33779                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33780                              "\x81\x82\x83\x84\x85\x86\x87\x88"
33781                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33782                              "\x91\x92\x93\x94\x95\x96\x97\x98"
33783                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
33784                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33785                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33786                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33787                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33788                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
33789                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33790                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33791                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33792                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33793                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33794                 .psize = 240,
33795                 .digest = "\x6c\xc6\x56\xde",
33796                 .np = 2,
33797                 .tap = { 31, 209 }
33798         }, {
33799                 .key = "\xff\xff\xff\xff",
33800                 .ksize = 4,
33801                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
33802                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
33803                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
33804                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
33805                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
33806                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
33807                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
33808                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
33809                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
33810                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
33811                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
33812                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
33813                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
33814                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
33815                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
33816                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
33817                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
33818                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
33819                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
33820                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
33821                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
33822                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
33823                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
33824                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
33825                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
33826                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
33827                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
33828                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
33829                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
33830                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
33831                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
33832                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
33833                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
33834                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
33835                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
33836                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
33837                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
33838                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
33839                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
33840                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
33841                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
33842                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
33843                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
33844                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
33845                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
33846                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
33847                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
33848                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
33849                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
33850                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
33851                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
33852                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
33853                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
33854                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
33855                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
33856                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
33857                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
33858                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
33859                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
33860                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
33861                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
33862                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
33863                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
33864                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
33865                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
33866                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
33867                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
33868                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
33869                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
33870                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
33871                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
33872                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
33873                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
33874                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
33875                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
33876                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
33877                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
33878                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
33879                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
33880                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
33881                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
33882                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
33883                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
33884                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
33885                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
33886                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
33887                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
33888                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
33889                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
33890                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
33891                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
33892                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
33893                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
33894                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
33895                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
33896                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
33897                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
33898                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
33899                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
33900                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
33901                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
33902                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
33903                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
33904                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
33905                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
33906                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
33907                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
33908                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
33909                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
33910                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
33911                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
33912                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
33913                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
33914                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
33915                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
33916                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
33917                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
33918                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
33919                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
33920                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
33921                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
33922                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
33923                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
33924                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
33925                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
33926                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
33927                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
33928                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
33929                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
33930                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
33931                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
33932                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
33933                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
33934                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
33935                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
33936                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
33937                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
33938                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
33939                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
33940                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
33941                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
33942                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
33943                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
33944                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
33945                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
33946                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
33947                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
33948                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
33949                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
33950                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
33951                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
33952                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
33953                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
33954                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
33955                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
33956                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
33957                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
33958                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
33959                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
33960                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
33961                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
33962                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
33963                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
33964                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
33965                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
33966                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
33967                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
33968                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
33969                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
33970                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
33971                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
33972                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
33973                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
33974                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
33975                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
33976                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
33977                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
33978                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
33979                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
33980                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
33981                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
33982                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
33983                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
33984                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
33985                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
33986                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
33987                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
33988                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
33989                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
33990                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
33991                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
33992                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
33993                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
33994                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
33995                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
33996                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
33997                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
33998                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
33999                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
34000                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
34001                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
34002                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
34003                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
34004                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
34005                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
34006                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
34007                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
34008                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
34009                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
34010                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
34011                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
34012                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
34013                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
34014                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
34015                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
34016                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
34017                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
34018                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
34019                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
34020                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
34021                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
34022                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
34023                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
34024                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
34025                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
34026                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
34027                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
34028                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
34029                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
34030                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
34031                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
34032                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
34033                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
34034                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
34035                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
34036                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
34037                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
34038                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
34039                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
34040                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
34041                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
34042                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
34043                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
34044                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
34045                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
34046                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
34047                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
34048                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
34049                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
34050                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
34051                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
34052                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
34053                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
34054                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
34055                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
34056                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
34057                 .psize = 2048,
34058                 .digest = "\xfb\x3a\x7a\xda",
34059         }
34060 };
34061
34062 /*
34063  * CRC32C test vectors
34064  */
34065 static const struct hash_testvec crc32c_tv_template[] = {
34066         {
34067                 .psize = 0,
34068                 .digest = "\x00\x00\x00\x00",
34069         },
34070         {
34071                 .key = "\x87\xa9\xcb\xed",
34072                 .ksize = 4,
34073                 .psize = 0,
34074                 .digest = "\x78\x56\x34\x12",
34075         },
34076         {
34077                 .key = "\xff\xff\xff\xff",
34078                 .ksize = 4,
34079                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34080                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34081                              "\x11\x12\x13\x14\x15\x16\x17\x18"
34082                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34083                              "\x21\x22\x23\x24\x25\x26\x27\x28",
34084                 .psize = 40,
34085                 .digest = "\x7f\x15\x2c\x0e",
34086         },
34087         {
34088                 .key = "\xff\xff\xff\xff",
34089                 .ksize = 4,
34090                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34091                              "\x31\x32\x33\x34\x35\x36\x37\x38"
34092                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34093                              "\x41\x42\x43\x44\x45\x46\x47\x48"
34094                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34095                 .psize = 40,
34096                 .digest = "\xf6\xeb\x80\xe9",
34097         },
34098         {
34099                 .key = "\xff\xff\xff\xff",
34100                 .ksize = 4,
34101                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34102                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34103                              "\x61\x62\x63\x64\x65\x66\x67\x68"
34104                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34105                              "\x71\x72\x73\x74\x75\x76\x77\x78",
34106                 .psize = 40,
34107                 .digest = "\xed\xbd\x74\xde",
34108         },
34109         {
34110                 .key = "\xff\xff\xff\xff",
34111                 .ksize = 4,
34112                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34113                              "\x81\x82\x83\x84\x85\x86\x87\x88"
34114                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34115                              "\x91\x92\x93\x94\x95\x96\x97\x98"
34116                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34117                 .psize = 40,
34118                 .digest = "\x62\xc8\x79\xd5",
34119         },
34120         {
34121                 .key = "\xff\xff\xff\xff",
34122                 .ksize = 4,
34123                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34124                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34125                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34126                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34127                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34128                 .psize = 40,
34129                 .digest = "\xd0\x9a\x97\xba",
34130         },
34131         {
34132                 .key = "\xff\xff\xff\xff",
34133                 .ksize = 4,
34134                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34135                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34136                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34137                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34138                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34139                 .psize = 40,
34140                 .digest = "\x13\xd9\x29\x2b",
34141         },
34142         {
34143                 .key = "\x80\xea\xd3\xf1",
34144                 .ksize = 4,
34145                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34146                              "\x31\x32\x33\x34\x35\x36\x37\x38"
34147                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34148                              "\x41\x42\x43\x44\x45\x46\x47\x48"
34149                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34150                 .psize = 40,
34151                 .digest = "\x0c\xb5\xe2\xa2",
34152         },
34153         {
34154                 .key = "\xf3\x4a\x1d\x5d",
34155                 .ksize = 4,
34156                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34157                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34158                              "\x61\x62\x63\x64\x65\x66\x67\x68"
34159                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34160                              "\x71\x72\x73\x74\x75\x76\x77\x78",
34161                 .psize = 40,
34162                 .digest = "\xd1\x7f\xfb\xa6",
34163         },
34164         {
34165                 .key = "\x2e\x80\x04\x59",
34166                 .ksize = 4,
34167                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34168                              "\x81\x82\x83\x84\x85\x86\x87\x88"
34169                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34170                              "\x91\x92\x93\x94\x95\x96\x97\x98"
34171                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34172                 .psize = 40,
34173                 .digest = "\x59\x33\xe6\x7a",
34174         },
34175         {
34176                 .key = "\xa6\xcc\x19\x85",
34177                 .ksize = 4,
34178                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34179                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34180                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34181                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34182                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34183                 .psize = 40,
34184                 .digest = "\xbe\x03\x01\xd2",
34185         },
34186         {
34187                 .key = "\x41\xfc\xfe\x2d",
34188                 .ksize = 4,
34189                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34190                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34191                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34192                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34193                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34194                 .psize = 40,
34195                 .digest = "\x75\xd3\xc5\x24",
34196         },
34197         {
34198                 .key = "\xff\xff\xff\xff",
34199                 .ksize = 4,
34200                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34201                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34202                              "\x11\x12\x13\x14\x15\x16\x17\x18"
34203                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34204                              "\x21\x22\x23\x24\x25\x26\x27\x28"
34205                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34206                              "\x31\x32\x33\x34\x35\x36\x37\x38"
34207                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34208                              "\x41\x42\x43\x44\x45\x46\x47\x48"
34209                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34210                              "\x51\x52\x53\x54\x55\x56\x57\x58"
34211                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34212                              "\x61\x62\x63\x64\x65\x66\x67\x68"
34213                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34214                              "\x71\x72\x73\x74\x75\x76\x77\x78"
34215                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34216                              "\x81\x82\x83\x84\x85\x86\x87\x88"
34217                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34218                              "\x91\x92\x93\x94\x95\x96\x97\x98"
34219                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34220                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34221                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34222                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34223                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34224                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34225                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34226                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34227                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34228                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34229                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34230                 .psize = 240,
34231                 .digest = "\x75\xd3\xc5\x24",
34232                 .np = 2,
34233                 .tap = { 31, 209 }
34234         }, {
34235                 .key = "\xff\xff\xff\xff",
34236                 .ksize = 4,
34237                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
34238                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
34239                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
34240                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
34241                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
34242                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
34243                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
34244                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
34245                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
34246                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
34247                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
34248                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
34249                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
34250                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
34251                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
34252                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
34253                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
34254                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
34255                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
34256                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
34257                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
34258                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
34259                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
34260                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
34261                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
34262                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
34263                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
34264                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
34265                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
34266                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
34267                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
34268                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
34269                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
34270                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
34271                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
34272                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
34273                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
34274                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
34275                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
34276                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
34277                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
34278                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
34279                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
34280                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
34281                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
34282                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
34283                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
34284                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
34285                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
34286                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
34287                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
34288                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
34289                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
34290                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
34291                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
34292                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
34293                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
34294                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
34295                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
34296                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
34297                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
34298                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
34299                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
34300                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
34301                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
34302                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
34303                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
34304                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
34305                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
34306                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
34307                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
34308                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
34309                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
34310                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
34311                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
34312                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
34313                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
34314                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
34315                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
34316                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
34317                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
34318                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
34319                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
34320                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
34321                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
34322                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
34323                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
34324                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
34325                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
34326                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
34327                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
34328                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
34329                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
34330                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
34331                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
34332                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
34333                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
34334                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
34335                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
34336                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
34337                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
34338                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
34339                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
34340                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
34341                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
34342                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
34343                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
34344                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
34345                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
34346                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
34347                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
34348                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
34349                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
34350                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
34351                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
34352                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
34353                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
34354                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
34355                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
34356                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
34357                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
34358                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
34359                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
34360                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
34361                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
34362                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
34363                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
34364                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
34365                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
34366                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
34367                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
34368                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
34369                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
34370                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
34371                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
34372                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
34373                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
34374                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
34375                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
34376                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
34377                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
34378                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
34379                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
34380                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
34381                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
34382                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
34383                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
34384                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
34385                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
34386                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
34387                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
34388                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
34389                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
34390                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
34391                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
34392                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
34393                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
34394                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
34395                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
34396                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
34397                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
34398                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
34399                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
34400                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
34401                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
34402                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
34403                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
34404                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
34405                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
34406                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
34407                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
34408                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
34409                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
34410                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
34411                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
34412                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
34413                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
34414                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
34415                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
34416                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
34417                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
34418                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
34419                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
34420                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
34421                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
34422                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
34423                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
34424                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
34425                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
34426                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
34427                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
34428                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
34429                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
34430                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
34431                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
34432                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
34433                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
34434                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
34435                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
34436                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
34437                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
34438                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
34439                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
34440                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
34441                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
34442                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
34443                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
34444                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
34445                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
34446                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
34447                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
34448                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
34449                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
34450                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
34451                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
34452                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
34453                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
34454                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
34455                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
34456                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
34457                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
34458                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
34459                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
34460                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
34461                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
34462                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
34463                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
34464                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
34465                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
34466                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
34467                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
34468                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
34469                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
34470                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
34471                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
34472                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
34473                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
34474                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
34475                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
34476                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
34477                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
34478                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
34479                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
34480                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
34481                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
34482                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
34483                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
34484                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
34485                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
34486                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
34487                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
34488                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
34489                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
34490                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
34491                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
34492                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
34493                 .psize = 2048,
34494                 .digest = "\xec\x26\x4d\x95",
34495         }
34496 };
34497
34498 /*
34499  * Blakcifn CRC test vectors
34500  */
34501 static const struct hash_testvec bfin_crc_tv_template[] = {
34502         {
34503                 .psize = 0,
34504                 .digest = "\x00\x00\x00\x00",
34505         },
34506         {
34507                 .key = "\x87\xa9\xcb\xed",
34508                 .ksize = 4,
34509                 .psize = 0,
34510                 .digest = "\x87\xa9\xcb\xed",
34511         },
34512         {
34513                 .key = "\xff\xff\xff\xff",
34514                 .ksize = 4,
34515                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34516                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34517                              "\x11\x12\x13\x14\x15\x16\x17\x18"
34518                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34519                              "\x21\x22\x23\x24\x25\x26\x27\x28",
34520                 .psize = 40,
34521                 .digest = "\x84\x0c\x8d\xa2",
34522         },
34523         {
34524                 .key = "\xff\xff\xff\xff",
34525                 .ksize = 4,
34526                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34527                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34528                              "\x11\x12\x13\x14\x15\x16\x17\x18"
34529                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34530                              "\x21\x22\x23\x24\x25\x26",
34531                 .psize = 38,
34532                 .digest = "\x8c\x58\xec\xb7",
34533         },
34534         {
34535                 .key = "\xff\xff\xff\xff",
34536                 .ksize = 4,
34537                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34538                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34539                              "\x11\x12\x13\x14\x15\x16\x17\x18"
34540                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34541                              "\x21\x22\x23\x24\x25\x26\x27",
34542                 .psize = 39,
34543                 .digest = "\xdc\x50\x28\x7b",
34544         },
34545         {
34546                 .key = "\xff\xff\xff\xff",
34547                 .ksize = 4,
34548                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34549                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34550                              "\x11\x12\x13\x14\x15\x16\x17\x18"
34551                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34552                              "\x21\x22\x23\x24\x25\x26\x27\x28"
34553                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34554                              "\x31\x32\x33\x34\x35\x36\x37\x38"
34555                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34556                              "\x41\x42\x43\x44\x45\x46\x47\x48"
34557                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34558                              "\x51\x52\x53\x54\x55\x56\x57\x58"
34559                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34560                              "\x61\x62\x63\x64\x65\x66\x67\x68"
34561                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34562                              "\x71\x72\x73\x74\x75\x76\x77\x78"
34563                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34564                              "\x81\x82\x83\x84\x85\x86\x87\x88"
34565                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34566                              "\x91\x92\x93\x94\x95\x96\x97\x98"
34567                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34568                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34569                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34570                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34571                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34572                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34573                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34574                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34575                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34576                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34577                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34578                 .psize = 240,
34579                 .digest = "\x10\x19\x4a\x5c",
34580                 .np = 2,
34581                 .tap = { 31, 209 }
34582         },
34583
34584 };
34585
34586 static const struct comp_testvec lz4_comp_tv_template[] = {
34587         {
34588                 .inlen  = 255,
34589                 .outlen = 218,
34590                 .input  = "LZ4 is lossless compression algorithm, providing"
34591                          " compression speed at 400 MB/s per core, scalable "
34592                          "with multi-cores CPU. It features an extremely fast "
34593                          "decoder, with speed in multiple GB/s per core, "
34594                          "typically reaching RAM speed limits on multi-core "
34595                          "systems.",
34596                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
34597                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
34598                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
34599                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
34600                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
34601                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
34602                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
34603                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
34604                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
34605                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
34606                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
34607                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
34608                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
34609                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
34610                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
34611                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
34612                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
34613
34614         },
34615 };
34616
34617 static const struct comp_testvec lz4_decomp_tv_template[] = {
34618         {
34619                 .inlen  = 218,
34620                 .outlen = 255,
34621                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
34622                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
34623                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
34624                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
34625                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
34626                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
34627                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
34628                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
34629                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
34630                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
34631                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
34632                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
34633                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
34634                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
34635                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
34636                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
34637                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
34638                 .output = "LZ4 is lossless compression algorithm, providing"
34639                          " compression speed at 400 MB/s per core, scalable "
34640                          "with multi-cores CPU. It features an extremely fast "
34641                          "decoder, with speed in multiple GB/s per core, "
34642                          "typically reaching RAM speed limits on multi-core "
34643                          "systems.",
34644         },
34645 };
34646
34647 static const struct comp_testvec lz4hc_comp_tv_template[] = {
34648         {
34649                 .inlen  = 255,
34650                 .outlen = 216,
34651                 .input  = "LZ4 is lossless compression algorithm, providing"
34652                          " compression speed at 400 MB/s per core, scalable "
34653                          "with multi-cores CPU. It features an extremely fast "
34654                          "decoder, with speed in multiple GB/s per core, "
34655                          "typically reaching RAM speed limits on multi-core "
34656                          "systems.",
34657                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
34658                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
34659                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
34660                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
34661                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
34662                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
34663                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
34664                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
34665                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
34666                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
34667                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
34668                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
34669                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
34670                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
34671                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
34672                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
34673                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
34674
34675         },
34676 };
34677
34678 static const struct comp_testvec lz4hc_decomp_tv_template[] = {
34679         {
34680                 .inlen  = 216,
34681                 .outlen = 255,
34682                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
34683                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
34684                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
34685                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
34686                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
34687                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
34688                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
34689                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
34690                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
34691                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
34692                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
34693                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
34694                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
34695                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
34696                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
34697                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
34698                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
34699                 .output = "LZ4 is lossless compression algorithm, providing"
34700                          " compression speed at 400 MB/s per core, scalable "
34701                          "with multi-cores CPU. It features an extremely fast "
34702                          "decoder, with speed in multiple GB/s per core, "
34703                          "typically reaching RAM speed limits on multi-core "
34704                          "systems.",
34705         },
34706 };
34707
34708 #endif  /* _CRYPTO_TESTMGR_H */