GNU Linux-libre 4.19.211-gnu1
[releases.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 symmetric cipher test
48  * @key:        Pointer to key
49  * @klen:       Length of @key in bytes
50  * @iv:         Pointer to IV (optional for some ciphers)
51  * @ptext:      Pointer to plaintext
52  * @ctext:      Pointer to ciphertext
53  * @len:        Length of @ptext and @ctext in bytes
54  * @fail:       If set to one, the test need to fail
55  * @wk:         Does the test need CRYPTO_TFM_REQ_WEAK_KEY
56  *              ( e.g. test needs to fail due to a weak key )
57  * @np:         numbers of SG to distribute data in (from 1 to MAX_TAP)
58  * @tap:        How to distribute data in @np SGs
59  * @also_non_np:        if set to 1, the test will be also done without
60  *                      splitting data in @np SGs
61  * @fips_skip:  Skip the test vector in FIPS mode
62  * @generates_iv: Encryption should ignore the given IV, and output @iv.
63  *                Decryption takes @iv.  Needed for AES Keywrap ("kw(aes)").
64  */
65 struct cipher_testvec {
66         const char *key;
67         const char *iv;
68         const char *ptext;
69         const char *ctext;
70         unsigned short tap[MAX_TAP];
71         int np;
72         unsigned char also_non_np;
73         bool fail;
74         unsigned char wk; /* weak key flag */
75         unsigned char klen;
76         unsigned short len;
77         bool fips_skip;
78         bool generates_iv;
79 };
80
81 struct aead_testvec {
82         const char *key;
83         const char *iv;
84         const char *input;
85         const char *assoc;
86         const char *result;
87         unsigned char tap[MAX_TAP];
88         unsigned char atap[MAX_TAP];
89         int np;
90         int anp;
91         bool fail;
92         unsigned char novrfy;   /* ccm dec verification failure expected */
93         unsigned char wk; /* weak key flag */
94         unsigned char klen;
95         unsigned short ilen;
96         unsigned short alen;
97         unsigned short rlen;
98 };
99
100 struct cprng_testvec {
101         const char *key;
102         const char *dt;
103         const char *v;
104         const char *result;
105         unsigned char klen;
106         unsigned short dtlen;
107         unsigned short vlen;
108         unsigned short rlen;
109         unsigned short loops;
110 };
111
112 struct drbg_testvec {
113         const unsigned char *entropy;
114         size_t entropylen;
115         const unsigned char *entpra;
116         const unsigned char *entprb;
117         size_t entprlen;
118         const unsigned char *addtla;
119         const unsigned char *addtlb;
120         size_t addtllen;
121         const unsigned char *pers;
122         size_t perslen;
123         const unsigned char *expected;
124         size_t expectedlen;
125 };
126
127 struct akcipher_testvec {
128         const unsigned char *key;
129         const unsigned char *m;
130         const unsigned char *c;
131         unsigned int key_len;
132         unsigned int m_size;
133         unsigned int c_size;
134         bool public_key_vec;
135         bool siggen_sigver_test;
136 };
137
138 struct kpp_testvec {
139         const unsigned char *secret;
140         const unsigned char *b_secret;
141         const unsigned char *b_public;
142         const unsigned char *expected_a_public;
143         const unsigned char *expected_ss;
144         unsigned short secret_size;
145         unsigned short b_secret_size;
146         unsigned short b_public_size;
147         unsigned short expected_a_public_size;
148         unsigned short expected_ss_size;
149         bool genkey;
150 };
151
152 static const char zeroed_string[48];
153
154 /*
155  * RSA test vectors. Borrowed from openSSL.
156  */
157 static const struct akcipher_testvec rsa_tv_template[] = {
158         {
159 #ifndef CONFIG_CRYPTO_FIPS
160         .key =
161         "\x30\x81\x9A" /* sequence of 154 bytes */
162         "\x02\x01\x01" /* version - integer of 1 byte */
163         "\x02\x41" /* modulus - integer of 65 bytes */
164         "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
165         "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
166         "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
167         "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
168         "\xF5"
169         "\x02\x01\x11" /* public key - integer of 1 byte */
170         "\x02\x40" /* private key - integer of 64 bytes */
171         "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
172         "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
173         "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
174         "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
175         "\x02\x01\x00" /* prime1 - integer of 1 byte */
176         "\x02\x01\x00" /* prime2 - integer of 1 byte */
177         "\x02\x01\x00" /* exponent1 - integer of 1 byte */
178         "\x02\x01\x00" /* exponent2 - integer of 1 byte */
179         "\x02\x01\x00", /* coefficient - integer of 1 byte */
180         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
181         .c =
182         "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
183         "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
184         "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
185         "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
186         .key_len = 157,
187         .m_size = 8,
188         .c_size = 64,
189         }, {
190         .key =
191         "\x30\x82\x01\x1D" /* sequence of 285 bytes */
192         "\x02\x01\x01" /* version - integer of 1 byte */
193         "\x02\x81\x81" /* modulus - integer of 129 bytes */
194         "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
195         "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
196         "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
197         "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
198         "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
199         "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
200         "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
201         "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
202         "\xCB"
203         "\x02\x01\x11" /* public key - integer of 1 byte */
204         "\x02\x81\x81"  /* private key - integer of 129 bytes */
205         "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
206         "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
207         "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
208         "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
209         "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
210         "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
211         "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
212         "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
213         "\xC1"
214         "\x02\x01\x00" /* prime1 - integer of 1 byte */
215         "\x02\x01\x00" /* prime2 - integer of 1 byte */
216         "\x02\x01\x00" /* exponent1 - integer of 1 byte */
217         "\x02\x01\x00" /* exponent2 - integer of 1 byte */
218         "\x02\x01\x00", /* coefficient - integer of 1 byte */
219         .key_len = 289,
220         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
221         .c =
222         "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
223         "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
224         "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
225         "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
226         "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
227         "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
228         "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
229         "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
230         .m_size = 8,
231         .c_size = 128,
232         }, {
233 #endif
234         .key =
235         "\x30\x82\x02\x1F" /* sequence of 543 bytes */
236         "\x02\x01\x01" /* version - integer of 1 byte */
237         "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
238         "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
239         "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
240         "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
241         "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
242         "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
243         "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
244         "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
245         "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
246         "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
247         "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
248         "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
249         "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
250         "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
251         "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
252         "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
253         "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
254         "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
255         "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
256         "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
257         "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
258         "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
259         "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
260         "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
261         "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
262         "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
263         "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
264         "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
265         "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
266         "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
267         "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
268         "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
269         "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
270         "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
271         "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
272         "\x02\x01\x00" /* prime1 - integer of 1 byte */
273         "\x02\x01\x00" /* prime2 - integer of 1 byte */
274         "\x02\x01\x00" /* exponent1 - integer of 1 byte */
275         "\x02\x01\x00" /* exponent2 - integer of 1 byte */
276         "\x02\x01\x00", /* coefficient - integer of 1 byte */
277         .key_len = 547,
278         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
279         .c =
280         "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
281         "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
282         "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
283         "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
284         "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
285         "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
286         "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
287         "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
288         "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
289         "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
290         "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
291         "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
292         "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
293         "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
294         "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
295         "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
296         .m_size = 8,
297         .c_size = 256,
298         }, {
299         .key =
300         "\x30\x82\x01\x09" /* sequence of 265 bytes */
301         "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
302         "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
303         "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
304         "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
305         "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
306         "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
307         "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
308         "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
309         "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
310         "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
311         "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
312         "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
313         "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
314         "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
315         "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
316         "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
317         "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
318         "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
319         .key_len = 269,
320         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
321         .c =
322         "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
323         "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
324         "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
325         "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
326         "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
327         "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
328         "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
329         "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
330         "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
331         "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
332         "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
333         "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
334         "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
335         "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
336         "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
337         "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
338         .m_size = 8,
339         .c_size = 256,
340         .public_key_vec = true,
341 #ifndef CONFIG_CRYPTO_FIPS
342         }, {
343         .key =
344         "\x30\x82\x09\x29" /* sequence of 2345 bytes */
345         "\x02\x01\x00" /* version integer of 1 byte */
346         "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
347         "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
348         "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
349         "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
350         "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
351         "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
352         "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
353         "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
354         "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
355         "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
356         "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
357         "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
358         "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
359         "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
360         "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
361         "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
362         "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
363         "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
364         "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
365         "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
366         "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
367         "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
368         "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
369         "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
370         "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
371         "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
372         "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
373         "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
374         "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
375         "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
376         "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
377         "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
378         "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
379         "\x9D"
380         "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
381         "\x02\x82\x02\x00" /* private key integer of 512 bytes */
382         "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
383         "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
384         "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
385         "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
386         "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
387         "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
388         "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
389         "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
390         "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
391         "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
392         "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
393         "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
394         "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
395         "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
396         "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
397         "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
398         "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
399         "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
400         "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
401         "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
402         "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
403         "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
404         "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
405         "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
406         "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
407         "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
408         "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
409         "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
410         "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
411         "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
412         "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
413         "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
414         "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
415         "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
416         "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
417         "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
418         "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
419         "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
420         "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
421         "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
422         "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
423         "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
424         "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
425         "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
426         "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
427         "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
428         "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
429         "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
430         "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
431         "\xAB"
432         "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
433         "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
434         "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
435         "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
436         "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
437         "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
438         "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
439         "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
440         "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
441         "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
442         "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
443         "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
444         "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
445         "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
446         "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
447         "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
448         "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
449         "\xD7"
450         "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
451         "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
452         "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
453         "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
454         "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
455         "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
456         "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
457         "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
458         "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
459         "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
460         "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
461         "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
462         "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
463         "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
464         "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
465         "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
466         "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
467         "\x6F"
468         "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
469         "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
470         "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
471         "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
472         "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
473         "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
474         "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
475         "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
476         "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
477         "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
478         "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
479         "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
480         "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
481         "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
482         "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
483         "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
484         "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
485         "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
486         "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
487         "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
488         "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
489         "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
490         "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
491         "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
492         "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
493         "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
494         "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
495         "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
496         "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
497         "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
498         "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
499         "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
500         "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
501         "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
502         "\x3D",
503         .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
504         .c =
505         "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
506         "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
507         "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
508         "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
509         "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
510         "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
511         "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
512         "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
513         "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
514         "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
515         "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
516         "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
517         "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
518         "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
519         "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
520         "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
521         "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
522         "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
523         "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
524         "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
525         "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
526         "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
527         "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
528         "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
529         "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
530         "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
531         "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
532         "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
533         "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
534         "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
535         "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
536         "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
537         .key_len = 2349,
538         .m_size = 8,
539         .c_size = 512,
540 #endif
541         }
542 };
543
544 /*
545  * PKCS#1 RSA test vectors. Obtained from CAVS testing.
546  */
547 static const struct akcipher_testvec pkcs1pad_rsa_tv_template[] = {
548         {
549         .key =
550         "\x30\x82\x03\x1f\x02\x01\x00\x02\x82\x01\x01\x00\xd7\x1e\x77\x82"
551         "\x8c\x92\x31\xe7\x69\x02\xa2\xd5\x5c\x78\xde\xa2\x0c\x8f\xfe\x28"
552         "\x59\x31\xdf\x40\x9c\x60\x61\x06\xb9\x2f\x62\x40\x80\x76\xcb\x67"
553         "\x4a\xb5\x59\x56\x69\x17\x07\xfa\xf9\x4c\xbd\x6c\x37\x7a\x46\x7d"
554         "\x70\xa7\x67\x22\xb3\x4d\x7a\x94\xc3\xba\x4b\x7c\x4b\xa9\x32\x7c"
555         "\xb7\x38\x95\x45\x64\xa4\x05\xa8\x9f\x12\x7c\x4e\xc6\xc8\x2d\x40"
556         "\x06\x30\xf4\x60\xa6\x91\xbb\x9b\xca\x04\x79\x11\x13\x75\xf0\xae"
557         "\xd3\x51\x89\xc5\x74\xb9\xaa\x3f\xb6\x83\xe4\x78\x6b\xcd\xf9\x5c"
558         "\x4c\x85\xea\x52\x3b\x51\x93\xfc\x14\x6b\x33\x5d\x30\x70\xfa\x50"
559         "\x1b\x1b\x38\x81\x13\x8d\xf7\xa5\x0c\xc0\x8e\xf9\x63\x52\x18\x4e"
560         "\xa9\xf9\xf8\x5c\x5d\xcd\x7a\x0d\xd4\x8e\x7b\xee\x91\x7b\xad\x7d"
561         "\xb4\x92\xd5\xab\x16\x3b\x0a\x8a\xce\x8e\xde\x47\x1a\x17\x01\x86"
562         "\x7b\xab\x99\xf1\x4b\x0c\x3a\x0d\x82\x47\xc1\x91\x8c\xbb\x2e\x22"
563         "\x9e\x49\x63\x6e\x02\xc1\xc9\x3a\x9b\xa5\x22\x1b\x07\x95\xd6\x10"
564         "\x02\x50\xfd\xfd\xd1\x9b\xbe\xab\xc2\xc0\x74\xd7\xec\x00\xfb\x11"
565         "\x71\xcb\x7a\xdc\x81\x79\x9f\x86\x68\x46\x63\x82\x4d\xb7\xf1\xe6"
566         "\x16\x6f\x42\x63\xf4\x94\xa0\xca\x33\xcc\x75\x13\x02\x82\x01\x00"
567         "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x01\x00\x01"
583         "\x02\x82\x01\x00\x62\xb5\x60\x31\x4f\x3f\x66\x16\xc1\x60\xac\x47"
584         "\x2a\xff\x6b\x69\x00\x4a\xb2\x5c\xe1\x50\xb9\x18\x74\xa8\xe4\xdc"
585         "\xa8\xec\xcd\x30\xbb\xc1\xc6\xe3\xc6\xac\x20\x2a\x3e\x5e\x8b\x12"
586         "\xe6\x82\x08\x09\x38\x0b\xab\x7c\xb3\xcc\x9c\xce\x97\x67\xdd\xef"
587         "\x95\x40\x4e\x92\xe2\x44\xe9\x1d\xc1\x14\xfd\xa9\xb1\xdc\x71\x9c"
588         "\x46\x21\xbd\x58\x88\x6e\x22\x15\x56\xc1\xef\xe0\xc9\x8d\xe5\x80"
589         "\x3e\xda\x7e\x93\x0f\x52\xf6\xf5\xc1\x91\x90\x9e\x42\x49\x4f\x8d"
590         "\x9c\xba\x38\x83\xe9\x33\xc2\x50\x4f\xec\xc2\xf0\xa8\xb7\x6e\x28"
591         "\x25\x56\x6b\x62\x67\xfe\x08\xf1\x56\xe5\x6f\x0e\x99\xf1\xe5\x95"
592         "\x7b\xef\xeb\x0a\x2c\x92\x97\x57\x23\x33\x36\x07\xdd\xfb\xae\xf1"
593         "\xb1\xd8\x33\xb7\x96\x71\x42\x36\xc5\xa4\xa9\x19\x4b\x1b\x52\x4c"
594         "\x50\x69\x91\xf0\x0e\xfa\x80\x37\x4b\xb5\xd0\x2f\xb7\x44\x0d\xd4"
595         "\xf8\x39\x8d\xab\x71\x67\x59\x05\x88\x3d\xeb\x48\x48\x33\x88\x4e"
596         "\xfe\xf8\x27\x1b\xd6\x55\x60\x5e\x48\xb7\x6d\x9a\xa8\x37\xf9\x7a"
597         "\xde\x1b\xcd\x5d\x1a\x30\xd4\xe9\x9e\x5b\x3c\x15\xf8\x9c\x1f\xda"
598         "\xd1\x86\x48\x55\xce\x83\xee\x8e\x51\xc7\xde\x32\x12\x47\x7d\x46"
599         "\xb8\x35\xdf\x41\x02\x01\x00\x02\x01\x00\x02\x01\x00\x02\x01\x00"
600         "\x02\x01\x00",
601         .key_len = 804,
602         /*
603          * m is SHA256 hash of following message:
604          * "\x49\x41\xbe\x0a\x0c\xc9\xf6\x35\x51\xe4\x27\x56\x13\x71\x4b\xd0"
605          * "\x36\x92\x84\x89\x1b\xf8\x56\x4a\x72\x61\x14\x69\x4f\x5e\x98\xa5"
606          * "\x80\x5a\x37\x51\x1f\xd8\xf5\xb5\x63\xfc\xf4\xb1\xbb\x4d\x33\xa3"
607          * "\x1e\xb9\x75\x8b\x9c\xda\x7e\x6d\x3a\x77\x85\xf7\xfc\x4e\xe7\x64"
608          * "\x43\x10\x19\xa0\x59\xae\xe0\xad\x4b\xd3\xc4\x45\xf7\xb1\xc2\xc1"
609          * "\x65\x01\x41\x39\x5b\x45\x47\xed\x2b\x51\xed\xe3\xd0\x09\x10\xd2"
610          * "\x39\x6c\x4a\x3f\xe5\xd2\x20\xe6\xb0\x71\x7d\x5b\xed\x26\x60\xf1"
611          * "\xb4\x73\xd1\xdb\x7d\xc4\x19\x91\xee\xf6\x32\x76\xf2\x19\x7d\xb7"
612          */
613         .m =
614         "\x3e\xc8\xa1\x26\x20\x54\x44\x52\x48\x0d\xe5\x66\xf3\xb3\xf5\x04"
615         "\xbe\x10\xa8\x48\x94\x22\x2d\xdd\xba\x7a\xb4\x76\x8d\x79\x98\x89",
616         .m_size = 32,
617         .c =
618         "\xc7\xa3\x98\xeb\x43\xd1\x08\xc2\x3d\x78\x45\x04\x70\xc9\x01\xee"
619         "\xf8\x85\x37\x7c\x0b\xf9\x19\x70\x5c\x45\x7b\x2f\x3a\x0b\xb7\x8b"
620         "\xc4\x0d\x7b\x3a\x64\x0b\x0f\xdb\x78\xa9\x0b\xfd\x8d\x82\xa4\x86"
621         "\x39\xbf\x21\xb8\x84\xc4\xce\x9f\xc2\xe8\xb6\x61\x46\x17\xb9\x4e"
622         "\x0b\x57\x05\xb4\x4f\xf9\x9c\x93\x2d\x9b\xd5\x48\x1d\x80\x12\xef"
623         "\x3a\x77\x7f\xbc\xb5\x8e\x2b\x6b\x7c\xfc\x9f\x8c\x9d\xa2\xc4\x85"
624         "\xb0\x87\xe9\x17\x9b\xb6\x23\x62\xd2\xa9\x9f\x57\xe8\xf7\x04\x45"
625         "\x24\x3a\x45\xeb\xeb\x6a\x08\x8e\xaf\xc8\xa0\x84\xbc\x5d\x13\x38"
626         "\xf5\x17\x8c\xa3\x96\x9b\xa9\x38\x8d\xf0\x35\xad\x32\x8a\x72\x5b"
627         "\xdf\x21\xab\x4b\x0e\xa8\x29\xbb\x61\x54\xbf\x05\xdb\x84\x84\xde"
628         "\xdd\x16\x36\x31\xda\xf3\x42\x6d\x7a\x90\x22\x9b\x11\x29\xa6\xf8"
629         "\x30\x61\xda\xd3\x8b\x54\x1e\x42\xd1\x47\x1d\x6f\xd1\xcd\x42\x0b"
630         "\xd1\xe4\x15\x85\x7e\x08\xd6\x59\x64\x4c\x01\x34\x91\x92\x26\xe8"
631         "\xb0\x25\x8c\xf8\xf4\xfa\x8b\xc9\x31\x33\x76\x72\xfb\x64\x92\x9f"
632         "\xda\x62\x8d\xe1\x2a\x71\x91\x43\x40\x61\x3c\x5a\xbe\x86\xfc\x5b"
633         "\xe6\xf9\xa9\x16\x31\x1f\xaf\x25\x6d\xc2\x4a\x23\x6e\x63\x02\xa2",
634         .c_size = 256,
635         .siggen_sigver_test = true,
636         }
637 };
638
639 static const struct kpp_testvec dh_tv_template[] = {
640         {
641         .secret =
642 #ifdef __LITTLE_ENDIAN
643         "\x01\x00" /* type */
644         "\x15\x02" /* len */
645         "\x00\x01\x00\x00" /* key_size */
646         "\x00\x01\x00\x00" /* p_size */
647         "\x00\x00\x00\x00" /* q_size */
648         "\x01\x00\x00\x00" /* g_size */
649 #else
650         "\x00\x01" /* type */
651         "\x02\x15" /* len */
652         "\x00\x00\x01\x00" /* key_size */
653         "\x00\x00\x01\x00" /* p_size */
654         "\x00\x00\x00\x00" /* q_size */
655         "\x00\x00\x00\x01" /* g_size */
656 #endif
657         /* xa */
658         "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
659         "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
660         "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
661         "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
662         "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
663         "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
664         "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
665         "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
666         "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
667         "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
668         "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
669         "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
670         "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
671         "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
672         "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
673         "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
674         /* p */
675         "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
676         "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
677         "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
678         "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
679         "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
680         "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
681         "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
682         "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
683         "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
684         "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
685         "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
686         "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
687         "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
688         "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
689         "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
690         "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
691         /* g */
692         "\x02",
693         .b_public =
694         "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
695         "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
696         "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
697         "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
698         "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
699         "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
700         "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
701         "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
702         "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
703         "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
704         "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
705         "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
706         "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
707         "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
708         "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
709         "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
710         .expected_a_public =
711         "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
712         "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
713         "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
714         "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
715         "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
716         "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
717         "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
718         "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
719         "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
720         "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
721         "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
722         "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
723         "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
724         "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
725         "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
726         "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
727         .expected_ss =
728         "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
729         "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
730         "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
731         "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
732         "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
733         "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
734         "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
735         "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
736         "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
737         "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
738         "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
739         "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
740         "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
741         "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
742         "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
743         "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
744         .secret_size = 533,
745         .b_public_size = 256,
746         .expected_a_public_size = 256,
747         .expected_ss_size = 256,
748         },
749         {
750         .secret =
751 #ifdef __LITTLE_ENDIAN
752         "\x01\x00" /* type */
753         "\x15\x02" /* len */
754         "\x00\x01\x00\x00" /* key_size */
755         "\x00\x01\x00\x00" /* p_size */
756         "\x00\x00\x00\x00" /* q_size */
757         "\x01\x00\x00\x00" /* g_size */
758 #else
759         "\x00\x01" /* type */
760         "\x02\x15" /* len */
761         "\x00\x00\x01\x00" /* key_size */
762         "\x00\x00\x01\x00" /* p_size */
763         "\x00\x00\x00\x00" /* q_size */
764         "\x00\x00\x00\x01" /* g_size */
765 #endif
766         /* xa */
767         "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
768         "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
769         "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
770         "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
771         "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
772         "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
773         "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
774         "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
775         "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
776         "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
777         "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
778         "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
779         "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
780         "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
781         "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
782         "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
783         /* p */
784         "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
785         "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
786         "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
787         "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
788         "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
789         "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
790         "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
791         "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
792         "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
793         "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
794         "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
795         "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
796         "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
797         "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
798         "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
799         "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
800         /* g */
801         "\x02",
802         .b_public =
803         "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
804         "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
805         "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
806         "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
807         "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
808         "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
809         "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
810         "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
811         "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
812         "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
813         "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
814         "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
815         "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
816         "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
817         "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
818         "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
819         .expected_a_public =
820         "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
821         "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
822         "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
823         "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
824         "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
825         "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
826         "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
827         "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
828         "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
829         "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
830         "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
831         "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
832         "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
833         "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
834         "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
835         "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
836         .expected_ss =
837         "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
838         "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
839         "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
840         "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
841         "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
842         "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
843         "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
844         "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
845         "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
846         "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
847         "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
848         "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
849         "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
850         "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
851         "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
852         "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
853         .secret_size = 533,
854         .b_public_size = 256,
855         .expected_a_public_size = 256,
856         .expected_ss_size = 256,
857         }
858 };
859
860 static const struct kpp_testvec ecdh_tv_template[] = {
861         {
862 #ifndef CONFIG_CRYPTO_FIPS
863         .secret =
864 #ifdef __LITTLE_ENDIAN
865         "\x02\x00" /* type */
866         "\x20\x00" /* len */
867         "\x01\x00" /* curve_id */
868         "\x18\x00" /* key_size */
869 #else
870         "\x00\x02" /* type */
871         "\x00\x20" /* len */
872         "\x00\x01" /* curve_id */
873         "\x00\x18" /* key_size */
874 #endif
875         "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
876         "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
877         "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
878         .b_public =
879         "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
880         "\x7a\x99\x75\x64\x36\x13\x9a\x94"
881         "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
882         "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
883         "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
884         "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
885         .expected_a_public =
886         "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
887         "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
888         "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
889         "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
890         "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
891         "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
892         .expected_ss =
893         "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
894         "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
895         "\x99\x80\x81\x28\xaf\xc5\x51\x74",
896         .secret_size = 32,
897         .b_public_size = 48,
898         .expected_a_public_size = 48,
899         .expected_ss_size = 24
900         }, {
901 #endif
902         .secret =
903 #ifdef __LITTLE_ENDIAN
904         "\x02\x00" /* type */
905         "\x28\x00" /* len */
906         "\x02\x00" /* curve_id */
907         "\x20\x00" /* key_size */
908 #else
909         "\x00\x02" /* type */
910         "\x00\x28" /* len */
911         "\x00\x02" /* curve_id */
912         "\x00\x20" /* key_size */
913 #endif
914         "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
915         "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
916         "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
917         "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
918         .expected_a_public =
919         "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
920         "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
921         "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
922         "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
923         "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
924         "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
925         "\x6a\x02\x6e\x41\x87\x68\x38\x77"
926         "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
927         .expected_ss =
928         "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
929         "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
930         "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
931         "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
932         .b_public =
933         "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
934         "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
935         "\x29\xb2\x47\x03\x19\xab\xdd\x34"
936         "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
937         "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
938         "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
939         "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
940         "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
941         .secret_size = 40,
942         .b_public_size = 64,
943         .expected_a_public_size = 64,
944         .expected_ss_size = 32
945         }, {
946         .secret =
947 #ifdef __LITTLE_ENDIAN
948         "\x02\x00" /* type */
949         "\x08\x00" /* len */
950         "\x02\x00" /* curve_id */
951         "\x00\x00", /* key_size */
952 #else
953         "\x00\x02" /* type */
954         "\x00\x08" /* len */
955         "\x00\x02" /* curve_id */
956         "\x00\x00", /* key_size */
957 #endif
958         .b_secret =
959 #ifdef __LITTLE_ENDIAN
960         "\x02\x00" /* type */
961         "\x28\x00" /* len */
962         "\x02\x00" /* curve_id */
963         "\x20\x00" /* key_size */
964 #else
965         "\x00\x02" /* type */
966         "\x00\x28" /* len */
967         "\x00\x02" /* curve_id */
968         "\x00\x20" /* key_size */
969 #endif
970         "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
971         "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
972         "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
973         "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
974         .b_public =
975         "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
976         "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
977         "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
978         "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
979         "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
980         "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
981         "\x6a\x02\x6e\x41\x87\x68\x38\x77"
982         "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
983         .secret_size = 8,
984         .b_secret_size = 40,
985         .b_public_size = 64,
986         .expected_a_public_size = 64,
987         .expected_ss_size = 32,
988         .genkey = true,
989         }
990 };
991
992 /*
993  * MD4 test vectors from RFC1320
994  */
995 static const struct hash_testvec md4_tv_template[] = {
996         {
997                 .plaintext = "",
998                 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
999                           "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
1000         }, {
1001                 .plaintext = "a",
1002                 .psize  = 1,
1003                 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
1004                           "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
1005         }, {
1006                 .plaintext = "abc",
1007                 .psize  = 3,
1008                 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
1009                           "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
1010         }, {
1011                 .plaintext = "message digest",
1012                 .psize  = 14,
1013                 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
1014                         "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
1015         }, {
1016                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1017                 .psize  = 26,
1018                 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
1019                           "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
1020                 .np     = 2,
1021                 .tap    = { 13, 13 },
1022         }, {
1023                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1024                 .psize  = 62,
1025                 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
1026                           "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
1027         }, {
1028                 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
1029                            "45678901234567890",
1030                 .psize  = 80,
1031                 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
1032                           "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
1033         },
1034 };
1035
1036 static const struct hash_testvec sha3_224_tv_template[] = {
1037         {
1038                 .plaintext = "",
1039                 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
1040                                 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
1041                                 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
1042                                 "\x5b\x5a\x6b\xc7",
1043         }, {
1044                 .plaintext = "a",
1045                 .psize  = 1,
1046                 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
1047                                 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
1048                                 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
1049                                 "\x48\x2b\x6a\x8b",
1050         }, {
1051                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1052                                 "jklmklmnlmnomnopnopq",
1053                 .psize  = 56,
1054                 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
1055                                 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
1056                                 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
1057                                 "\xd0\xfc\xce\x33",
1058                 .np     = 2,
1059                 .tap    = { 28, 28 },
1060         }, {
1061                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1062                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1063                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1064                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1065                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1066                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1067                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1068                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1069                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1070                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1071                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1072                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1073                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1074                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1075                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1076                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1077                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1078                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1079                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1080                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1081                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1082                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1083                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1084                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1085                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1086                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1087                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1088                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1089                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1090                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1091                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1092                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1093                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1094                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1095                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1096                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1097                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1098                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1099                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1100                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1101                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1102                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1103                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1104                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1105                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1106                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1107                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1108                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1109                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1110                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1111                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1112                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1113                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1114                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1115                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1116                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1117                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1118                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1119                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1120                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1121                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1122                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1123                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1124                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1125                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1126                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1127                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1128                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1129                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1130                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1131                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1132                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1133                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1134                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1135                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1136                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1137                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1138                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1139                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1140                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1141                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1142                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1143                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1144                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1145                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1146                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1147                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1148                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1149                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1150                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1151                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1152                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1153                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1154                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1155                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1156                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1157                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1158                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1159                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1160                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1161                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1162                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1163                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1164                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1165                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1166                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1167                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1168                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1169                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1170                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1171                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1172                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1173                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1174                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1175                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1176                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1177                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1178                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1179                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1180                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1181                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1182                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1183                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1184                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1185                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1186                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1187                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1188                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1189                 .psize     = 1023,
1190                 .digest    = "\x7d\x0f\x2f\xb7\x65\x3b\xa7\x26"
1191                              "\xc3\x88\x20\x71\x15\x06\xe8\x2d"
1192                              "\xa3\x92\x44\xab\x3e\xe7\xff\x86"
1193                              "\xb6\x79\x10\x72",
1194         },
1195 };
1196
1197 static const struct hash_testvec sha3_256_tv_template[] = {
1198         {
1199                 .plaintext = "",
1200                 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
1201                                 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
1202                                 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
1203                                 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
1204         }, {
1205                 .plaintext = "a",
1206                 .psize  = 1,
1207                 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
1208                                 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
1209                                 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
1210                                 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
1211         }, {
1212                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1213                              "jklmklmnlmnomnopnopq",
1214                 .psize  = 56,
1215                 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
1216                                 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
1217                                 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
1218                                 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
1219                 .np     = 2,
1220                 .tap    = { 28, 28 },
1221         }, {
1222                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1223                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1224                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1225                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1226                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1227                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1228                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1229                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1230                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1231                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1232                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1233                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1234                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1235                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1236                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1237                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1238                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1239                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1240                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1241                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1242                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1243                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1244                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1245                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1246                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1247                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1248                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1249                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1250                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1251                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1252                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1253                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1254                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1255                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1256                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1257                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1258                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1259                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1260                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1261                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1262                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1263                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1264                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1265                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1266                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1267                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1268                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1269                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1270                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1271                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1272                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1273                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1274                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1275                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1276                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1277                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1278                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1279                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1280                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1281                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1282                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1283                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1284                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1285                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1286                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1287                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1288                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1289                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1290                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1291                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1292                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1293                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1294                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1295                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1296                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1297                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1298                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1299                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1300                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1301                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1302                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1303                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1304                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1305                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1306                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1307                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1308                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1309                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1310                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1311                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1312                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1313                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1314                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1315                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1316                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1317                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1318                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1319                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1320                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1321                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1322                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1323                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1324                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1325                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1326                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1327                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1328                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1329                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1330                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1331                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1332                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1333                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1334                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1335                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1336                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1337                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1338                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1339                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1340                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1341                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1342                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1343                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1344                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1345                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1346                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1347                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1348                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1349                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1350                 .psize     = 1023,
1351                 .digest    = "\xde\x41\x04\xbd\xda\xda\xd9\x71"
1352                              "\xf7\xfa\x80\xf5\xea\x11\x03\xb1"
1353                              "\x3b\x6a\xbc\x5f\xb9\x66\x26\xf7"
1354                              "\x8a\x97\xbb\xf2\x07\x08\x38\x30",
1355         },
1356 };
1357
1358
1359 static const struct hash_testvec sha3_384_tv_template[] = {
1360         {
1361                 .plaintext = "",
1362                 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
1363                                 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
1364                                 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
1365                                 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
1366                                 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
1367                                 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
1368         }, {
1369                 .plaintext = "a",
1370                 .psize  = 1,
1371                 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
1372                                 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
1373                                 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
1374                                 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
1375                                 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
1376                                 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
1377         }, {
1378                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1379                              "jklmklmnlmnomnopnopq",
1380                 .psize  = 56,
1381                 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
1382                                 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
1383                                 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
1384                                 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
1385                                 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
1386                                 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
1387                 .np     = 2,
1388                 .tap    = { 28, 28 },
1389         }, {
1390                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1391                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1392                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1393                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1394                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1395                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1396                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1397                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1398                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1399                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1400                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1401                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1402                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1403                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1404                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1405                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1406                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1407                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1408                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1409                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1410                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1411                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1412                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1413                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1414                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1415                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1416                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1417                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1418                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1419                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1420                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1421                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1422                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1423                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1424                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1425                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1426                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1427                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1428                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1429                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1430                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1431                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1432                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1433                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1434                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1435                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1436                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1437                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1438                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1439                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1440                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1441                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1442                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1443                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1444                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1445                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1446                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1447                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1448                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1449                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1450                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1451                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1452                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1453                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1454                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1455                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1456                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1457                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1458                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1459                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1460                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1461                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1462                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1463                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1464                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1465                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1466                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1467                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1468                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1469                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1470                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1471                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1472                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1473                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1474                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1475                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1476                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1477                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1478                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1479                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1480                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1481                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1482                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1483                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1484                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1485                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1486                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1487                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1488                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1489                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1490                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1491                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1492                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1493                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1494                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1495                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1496                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1497                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1498                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1499                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1500                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1501                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1502                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1503                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1504                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1505                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1506                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1507                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1508                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1509                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1510                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1511                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1512                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1513                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1514                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1515                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1516                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1517                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1518                 .psize     = 1023,
1519                 .digest    = "\x1b\x19\x4d\x8f\xd5\x36\x87\x71"
1520                              "\xcf\xca\x30\x85\x9b\xc1\x25\xc7"
1521                              "\x00\xcb\x73\x8a\x8e\xd4\xfe\x2b"
1522                              "\x1a\xa2\xdc\x2e\x41\xfd\x52\x51"
1523                              "\xd2\x21\xae\x2d\xc7\xae\x8c\x40"
1524                              "\xb9\xe6\x56\x48\x03\xcd\x88\x6b",
1525         },
1526 };
1527
1528
1529 static const struct hash_testvec sha3_512_tv_template[] = {
1530         {
1531                 .plaintext = "",
1532                 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
1533                                 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
1534                                 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
1535                                 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
1536                                 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
1537                                 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
1538                                 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
1539                                 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
1540         }, {
1541                 .plaintext = "a",
1542                 .psize  = 1,
1543                 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1544                                 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1545                                 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1546                                 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1547                                 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1548                                 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1549                                 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1550                                 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1551         }, {
1552                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1553                              "jklmklmnlmnomnopnopq",
1554                 .psize  = 56,
1555                 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1556                                 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1557                                 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1558                                 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1559                                 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1560                                 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1561                                 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1562                                 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
1563                 .np     = 2,
1564                 .tap    = { 28, 28 },
1565         }, {
1566                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1567                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1568                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1569                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1570                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1571                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1572                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1573                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1574                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1575                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1576                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1577                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1578                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1579                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1580                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1581                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1582                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1583                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1584                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1585                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1586                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1587                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1588                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1589                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1590                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1591                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1592                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1593                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1594                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1595                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1596                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1597                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1598                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1599                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1600                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1601                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1602                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1603                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1604                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1605                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1606                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1607                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1608                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1609                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1610                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1611                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1612                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1613                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1614                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1615                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1616                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1617                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1618                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1619                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1620                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1621                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1622                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1623                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1624                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1625                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1626                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1627                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1628                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1629                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1630                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1631                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1632                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1633                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1634                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1635                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1636                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1637                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1638                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1639                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1640                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1641                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1642                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1643                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1644                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1645                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1646                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1647                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1648                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1649                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1650                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1651                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1652                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1653                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1654                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1655                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1656                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1657                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1658                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1659                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1660                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1661                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1662                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1663                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1664                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1665                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1666                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1667                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1668                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1669                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1670                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1671                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1672                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1673                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1674                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1675                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1676                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1677                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1678                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1679                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1680                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1681                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1682                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1683                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1684                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1685                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1686                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1687                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1688                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1689                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1690                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1691                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1692                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1693                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1694                 .psize     = 1023,
1695                 .digest    = "\x59\xda\x30\xe3\x90\xe4\x3d\xde"
1696                              "\xf0\xc6\x42\x17\xd7\xb2\x26\x47"
1697                              "\x90\x28\xa6\x84\xe8\x49\x7a\x86"
1698                              "\xd6\xb8\x9e\xf8\x07\x59\x21\x03"
1699                              "\xad\xd2\xed\x48\xa3\xb9\xa5\xf0"
1700                              "\xb3\xae\x02\x2b\xb8\xaf\xc3\x3b"
1701                              "\xd6\xb0\x8f\xcb\x76\x8b\xa7\x41"
1702                              "\x32\xc2\x8e\x50\x91\x86\x90\xfb",
1703         },
1704 };
1705
1706
1707 /*
1708  * MD5 test vectors from RFC1321
1709  */
1710 static const struct hash_testvec md5_tv_template[] = {
1711         {
1712                 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1713                           "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1714         }, {
1715                 .plaintext = "a",
1716                 .psize  = 1,
1717                 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1718                           "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1719         }, {
1720                 .plaintext = "abc",
1721                 .psize  = 3,
1722                 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1723                           "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1724         }, {
1725                 .plaintext = "message digest",
1726                 .psize  = 14,
1727                 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1728                           "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1729         }, {
1730                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1731                 .psize  = 26,
1732                 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1733                           "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
1734                 .np     = 2,
1735                 .tap    = {13, 13}
1736         }, {
1737                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1738                 .psize  = 62,
1739                 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1740                           "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1741         }, {
1742                 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1743                            "345678901234567890",
1744                 .psize  = 80,
1745                 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1746                           "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1747         }
1748
1749 };
1750
1751 /*
1752  * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1753  */
1754 static const struct hash_testvec rmd128_tv_template[] = {
1755         {
1756                 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1757                           "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1758         }, {
1759                 .plaintext = "a",
1760                 .psize  = 1,
1761                 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1762                           "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1763         }, {
1764                 .plaintext = "abc",
1765                 .psize  = 3,
1766                 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1767                           "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1768         }, {
1769                 .plaintext = "message digest",
1770                 .psize  = 14,
1771                 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1772                           "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1773         }, {
1774                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1775                 .psize  = 26,
1776                 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1777                           "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1778         }, {
1779                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1780                              "fghijklmnopqrstuvwxyz0123456789",
1781                 .psize  = 62,
1782                 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1783                           "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1784         }, {
1785                 .plaintext = "1234567890123456789012345678901234567890"
1786                              "1234567890123456789012345678901234567890",
1787                 .psize  = 80,
1788                 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1789                           "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1790         }, {
1791                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1792                              "hijkijkljklmklmnlmnomnopnopq",
1793                 .psize  = 56,
1794                 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1795                           "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
1796                 .np     = 2,
1797                 .tap    = { 28, 28 },
1798         }, {
1799                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1800                              "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1801                              "lmnopqrsmnopqrstnopqrstu",
1802                 .psize  = 112,
1803                 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1804                           "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1805         }, {
1806                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1807                 .psize  = 32,
1808                 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1809                           "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1810         }
1811 };
1812
1813 /*
1814  * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1815  */
1816 static const struct hash_testvec rmd160_tv_template[] = {
1817         {
1818                 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1819                           "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1820         }, {
1821                 .plaintext = "a",
1822                 .psize  = 1,
1823                 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1824                           "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1825         }, {
1826                 .plaintext = "abc",
1827                 .psize  = 3,
1828                 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1829                           "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1830         }, {
1831                 .plaintext = "message digest",
1832                 .psize  = 14,
1833                 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1834                           "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1835         }, {
1836                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1837                 .psize  = 26,
1838                 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1839                           "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1840         }, {
1841                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1842                              "fghijklmnopqrstuvwxyz0123456789",
1843                 .psize  = 62,
1844                 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
1845                           "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
1846         }, {
1847                 .plaintext = "1234567890123456789012345678901234567890"
1848                              "1234567890123456789012345678901234567890",
1849                 .psize  = 80,
1850                 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
1851                           "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
1852         }, {
1853                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1854                              "hijkijkljklmklmnlmnomnopnopq",
1855                 .psize  = 56,
1856                 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
1857                           "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
1858                 .np     = 2,
1859                 .tap    = { 28, 28 },
1860         }, {
1861                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1862                              "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1863                              "lmnopqrsmnopqrstnopqrstu",
1864                 .psize  = 112,
1865                 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
1866                           "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
1867         }, {
1868                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1869                 .psize  = 32,
1870                 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
1871                           "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
1872         }
1873 };
1874
1875 /*
1876  * RIPEMD-256 test vectors
1877  */
1878 static const struct hash_testvec rmd256_tv_template[] = {
1879         {
1880                 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
1881                           "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
1882                           "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
1883                           "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
1884         }, {
1885                 .plaintext = "a",
1886                 .psize  = 1,
1887                 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
1888                           "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
1889                           "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
1890                           "\xcd\x88\x3a\x91\x34\x69\x29\x25",
1891         }, {
1892                 .plaintext = "abc",
1893                 .psize  = 3,
1894                 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
1895                           "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
1896                           "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
1897                           "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
1898         }, {
1899                 .plaintext = "message digest",
1900                 .psize  = 14,
1901                 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
1902                           "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
1903                           "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
1904                           "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
1905         }, {
1906                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1907                 .psize  = 26,
1908                 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
1909                           "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
1910                           "\x78\x96\x11\x8a\x51\x97\x96\x87"
1911                           "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
1912         }, {
1913                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1914                              "fghijklmnopqrstuvwxyz0123456789",
1915                 .psize  = 62,
1916                 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
1917                           "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
1918                           "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
1919                           "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
1920         }, {
1921                 .plaintext = "1234567890123456789012345678901234567890"
1922                              "1234567890123456789012345678901234567890",
1923                 .psize  = 80,
1924                 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
1925                           "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
1926                           "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
1927                           "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
1928         }, {
1929                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1930                              "hijkijkljklmklmnlmnomnopnopq",
1931                 .psize  = 56,
1932                 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
1933                           "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
1934                           "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
1935                           "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
1936                 .np     = 2,
1937                 .tap    = { 28, 28 },
1938         }
1939 };
1940
1941 /*
1942  * RIPEMD-320 test vectors
1943  */
1944 static const struct hash_testvec rmd320_tv_template[] = {
1945         {
1946                 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
1947                           "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
1948                           "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
1949                           "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
1950         }, {
1951                 .plaintext = "a",
1952                 .psize  = 1,
1953                 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
1954                           "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
1955                           "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
1956                           "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
1957         }, {
1958                 .plaintext = "abc",
1959                 .psize  = 3,
1960                 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
1961                           "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
1962                           "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
1963                           "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
1964         }, {
1965                 .plaintext = "message digest",
1966                 .psize  = 14,
1967                 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
1968                           "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
1969                           "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
1970                           "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
1971         }, {
1972                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1973                 .psize  = 26,
1974                 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
1975                           "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
1976                           "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
1977                           "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
1978         }, {
1979                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1980                              "fghijklmnopqrstuvwxyz0123456789",
1981                 .psize  = 62,
1982                 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
1983                           "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
1984                           "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
1985                           "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
1986         }, {
1987                 .plaintext = "1234567890123456789012345678901234567890"
1988                              "1234567890123456789012345678901234567890",
1989                 .psize  = 80,
1990                 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
1991                           "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
1992                           "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
1993                           "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
1994         }, {
1995                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1996                              "hijkijkljklmklmnlmnomnopnopq",
1997                 .psize  = 56,
1998                 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
1999                           "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
2000                           "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
2001                           "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
2002                 .np     = 2,
2003                 .tap    = { 28, 28 },
2004         }
2005 };
2006
2007 static const struct hash_testvec crct10dif_tv_template[] = {
2008         {
2009                 .plaintext      = "abc",
2010                 .psize          = 3,
2011                 .digest         = (u8 *)(u16 []){ 0x443b },
2012         }, {
2013                 .plaintext      = "1234567890123456789012345678901234567890"
2014                                   "123456789012345678901234567890123456789",
2015                 .psize          = 79,
2016                 .digest         = (u8 *)(u16 []){ 0x4b70 },
2017                 .np             = 2,
2018                 .tap            = { 63, 16 },
2019         }, {
2020                 .plaintext      = "abcdddddddddddddddddddddddddddddddddddddddd"
2021                                   "ddddddddddddd",
2022                 .psize          = 56,
2023                 .digest         = (u8 *)(u16 []){ 0x9ce3 },
2024                 .np             = 8,
2025                 .tap            = { 1, 2, 28, 7, 6, 5, 4, 3 },
2026         }, {
2027                 .plaintext      = "1234567890123456789012345678901234567890"
2028                                   "1234567890123456789012345678901234567890"
2029                                   "1234567890123456789012345678901234567890"
2030                                   "1234567890123456789012345678901234567890"
2031                                   "1234567890123456789012345678901234567890"
2032                                   "1234567890123456789012345678901234567890"
2033                                   "1234567890123456789012345678901234567890"
2034                                   "123456789012345678901234567890123456789",
2035                 .psize          = 319,
2036                 .digest         = (u8 *)(u16 []){ 0x44c6 },
2037         }, {
2038                 .plaintext      = "1234567890123456789012345678901234567890"
2039                                   "1234567890123456789012345678901234567890"
2040                                   "1234567890123456789012345678901234567890"
2041                                   "1234567890123456789012345678901234567890"
2042                                   "1234567890123456789012345678901234567890"
2043                                   "1234567890123456789012345678901234567890"
2044                                   "1234567890123456789012345678901234567890"
2045                                   "123456789012345678901234567890123456789",
2046                 .psize          = 319,
2047                 .digest         = (u8 *)(u16 []){ 0x44c6 },
2048                 .np             = 4,
2049                 .tap            = { 1, 255, 57, 6 },
2050         }, {
2051                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
2052                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
2053                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
2054                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
2055                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
2056                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
2057                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
2058                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
2059                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
2060                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
2061                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
2062                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
2063                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
2064                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
2065                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
2066                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
2067                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
2068                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
2069                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
2070                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
2071                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
2072                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
2073                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
2074                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
2075                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
2076                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
2077                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
2078                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
2079                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
2080                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
2081                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
2082                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
2083                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
2084                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
2085                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
2086                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
2087                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
2088                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
2089                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
2090                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
2091                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
2092                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
2093                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
2094                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
2095                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
2096                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
2097                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
2098                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
2099                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
2100                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
2101                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
2102                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
2103                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
2104                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
2105                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
2106                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
2107                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
2108                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
2109                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
2110                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
2111                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
2112                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
2113                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
2114                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
2115                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
2116                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
2117                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
2118                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
2119                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
2120                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
2121                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
2122                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
2123                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
2124                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
2125                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
2126                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
2127                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
2128                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
2129                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
2130                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
2131                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
2132                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
2133                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
2134                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
2135                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
2136                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
2137                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
2138                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
2139                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
2140                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
2141                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
2142                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
2143                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
2144                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
2145                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
2146                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
2147                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
2148                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
2149                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
2150                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
2151                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
2152                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
2153                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
2154                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
2155                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
2156                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
2157                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
2158                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
2159                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
2160                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
2161                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
2162                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
2163                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
2164                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
2165                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
2166                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
2167                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
2168                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
2169                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
2170                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
2171                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
2172                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
2173                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
2174                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
2175                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
2176                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
2177                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
2178                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
2179                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
2180                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
2181                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
2182                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
2183                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
2184                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
2185                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
2186                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
2187                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
2188                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
2189                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
2190                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
2191                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
2192                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
2193                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
2194                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
2195                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
2196                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
2197                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
2198                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
2199                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
2200                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
2201                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
2202                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
2203                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
2204                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
2205                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
2206                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
2207                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
2208                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
2209                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
2210                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
2211                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
2212                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
2213                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
2214                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
2215                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
2216                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
2217                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
2218                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
2219                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
2220                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
2221                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
2222                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
2223                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
2224                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
2225                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
2226                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
2227                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
2228                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
2229                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
2230                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
2231                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
2232                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
2233                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
2234                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
2235                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
2236                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
2237                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
2238                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
2239                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
2240                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
2241                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
2242                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
2243                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
2244                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
2245                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
2246                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
2247                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
2248                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
2249                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
2250                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
2251                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
2252                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
2253                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
2254                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
2255                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
2256                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
2257                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
2258                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
2259                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
2260                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
2261                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
2262                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
2263                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
2264                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
2265                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
2266                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
2267                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
2268                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
2269                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
2270                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
2271                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
2272                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
2273                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
2274                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
2275                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
2276                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
2277                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
2278                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
2279                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
2280                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
2281                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
2282                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
2283                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
2284                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
2285                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
2286                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
2287                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
2288                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
2289                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
2290                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
2291                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
2292                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
2293                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
2294                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
2295                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
2296                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
2297                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
2298                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
2299                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
2300                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
2301                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
2302                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
2303                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
2304                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
2305                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
2306                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
2307                 .psize = 2048,
2308                 .digest         = (u8 *)(u16 []){ 0x23ca },
2309         }
2310 };
2311
2312 /* Example vectors below taken from
2313  * http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
2314  *
2315  * The rest taken from
2316  * https://github.com/adamws/oscca-sm3
2317  */
2318 static const struct hash_testvec sm3_tv_template[] = {
2319         {
2320                 .plaintext = "",
2321                 .psize = 0,
2322                 .digest = (u8 *)(u8 []) {
2323                         0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F,
2324                         0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F,
2325                         0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74,
2326                         0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B }
2327         }, {
2328                 .plaintext = "a",
2329                 .psize = 1,
2330                 .digest = (u8 *)(u8 []) {
2331                         0x62, 0x34, 0x76, 0xAC, 0x18, 0xF6, 0x5A, 0x29,
2332                         0x09, 0xE4, 0x3C, 0x7F, 0xEC, 0x61, 0xB4, 0x9C,
2333                         0x7E, 0x76, 0x4A, 0x91, 0xA1, 0x8C, 0xCB, 0x82,
2334                         0xF1, 0x91, 0x7A, 0x29, 0xC8, 0x6C, 0x5E, 0x88 }
2335         }, {
2336                 /* A.1. Example 1 */
2337                 .plaintext = "abc",
2338                 .psize = 3,
2339                 .digest = (u8 *)(u8 []) {
2340                         0x66, 0xC7, 0xF0, 0xF4, 0x62, 0xEE, 0xED, 0xD9,
2341                         0xD1, 0xF2, 0xD4, 0x6B, 0xDC, 0x10, 0xE4, 0xE2,
2342                         0x41, 0x67, 0xC4, 0x87, 0x5C, 0xF2, 0xF7, 0xA2,
2343                         0x29, 0x7D, 0xA0, 0x2B, 0x8F, 0x4B, 0xA8, 0xE0 }
2344         }, {
2345                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2346                 .psize = 26,
2347                 .digest = (u8 *)(u8 []) {
2348                         0xB8, 0x0F, 0xE9, 0x7A, 0x4D, 0xA2, 0x4A, 0xFC,
2349                         0x27, 0x75, 0x64, 0xF6, 0x6A, 0x35, 0x9E, 0xF4,
2350                         0x40, 0x46, 0x2A, 0xD2, 0x8D, 0xCC, 0x6D, 0x63,
2351                         0xAD, 0xB2, 0x4D, 0x5C, 0x20, 0xA6, 0x15, 0x95 }
2352         }, {
2353                 /* A.1. Example 2 */
2354                 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdab"
2355                              "cdabcdabcdabcdabcd",
2356                 .psize = 64,
2357                 .digest = (u8 *)(u8 []) {
2358                         0xDE, 0xBE, 0x9F, 0xF9, 0x22, 0x75, 0xB8, 0xA1,
2359                         0x38, 0x60, 0x48, 0x89, 0xC1, 0x8E, 0x5A, 0x4D,
2360                         0x6F, 0xDB, 0x70, 0xE5, 0x38, 0x7E, 0x57, 0x65,
2361                         0x29, 0x3D, 0xCB, 0xA3, 0x9C, 0x0C, 0x57, 0x32 }
2362         }, {
2363                 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2364                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2365                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2366                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2367                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2368                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2369                              "abcdabcdabcdabcdabcdabcdabcdabcd",
2370                 .psize = 256,
2371                 .digest = (u8 *)(u8 []) {
2372                         0xB9, 0x65, 0x76, 0x4C, 0x8B, 0xEB, 0xB0, 0x91,
2373                         0xC7, 0x60, 0x2B, 0x74, 0xAF, 0xD3, 0x4E, 0xEF,
2374                         0xB5, 0x31, 0xDC, 0xCB, 0x4E, 0x00, 0x76, 0xD9,
2375                         0xB7, 0xCD, 0x81, 0x31, 0x99, 0xB4, 0x59, 0x71 }
2376         }
2377 };
2378
2379 /*
2380  * SHA1 test vectors  from from FIPS PUB 180-1
2381  * Long vector from CAVS 5.0
2382  */
2383 static const struct hash_testvec sha1_tv_template[] = {
2384         {
2385                 .plaintext = "",
2386                 .psize  = 0,
2387                 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
2388                           "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
2389         }, {
2390                 .plaintext = "abc",
2391                 .psize  = 3,
2392                 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
2393                           "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
2394         }, {
2395                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2396                 .psize  = 56,
2397                 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
2398                           "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
2399                 .np     = 2,
2400                 .tap    = { 28, 28 }
2401         }, {
2402                 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
2403                              "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
2404                              "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
2405                              "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
2406                              "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
2407                              "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
2408                              "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
2409                              "\x72\x28\x26\xc0\x66\x86\x9e\xda"
2410                              "\xcd\x73\xb2\x54\x80\x35\x18\x58"
2411                              "\x13\xe2\x26\x34\xa9\xda\x44\x00"
2412                              "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
2413                              "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
2414                              "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
2415                              "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
2416                              "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
2417                              "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
2418                              "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
2419                              "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
2420                              "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
2421                              "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
2422                              "\x5a\x90\x11",
2423                 .psize  = 163,
2424                 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
2425                           "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
2426                 .np     = 4,
2427                 .tap    = { 63, 64, 31, 5 }
2428         }, {
2429                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2430                 .psize  = 64,
2431                 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
2432                           "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
2433         }, {
2434                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2435                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2436                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2437                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2438                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2439                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2440                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2441                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2442                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2443                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2444                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2445                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2446                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2447                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2448                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2449                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2450                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2451                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2452                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2453                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2454                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2455                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2456                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2457                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2458                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2459                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2460                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2461                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2462                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2463                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2464                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2465                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2466                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2467                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2468                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2469                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2470                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2471                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2472                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2473                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2474                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2475                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2476                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2477                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2478                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2479                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2480                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2481                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2482                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2483                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2484                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2485                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2486                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2487                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2488                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2489                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2490                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2491                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2492                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2493                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2494                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2495                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2496                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2497                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2498                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2499                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2500                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2501                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2502                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2503                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2504                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2505                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2506                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2507                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2508                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2509                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2510                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2511                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2512                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2513                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2514                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2515                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2516                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2517                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2518                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2519                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2520                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2521                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2522                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2523                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2524                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2525                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2526                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2527                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2528                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2529                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2530                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2531                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2532                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2533                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2534                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2535                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2536                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2537                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2538                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2539                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2540                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2541                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2542                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2543                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2544                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2545                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2546                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2547                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2548                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2549                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2550                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2551                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2552                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2553                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2554                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2555                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2556                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2557                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2558                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2559                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2560                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2561                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2562                 .psize     = 1023,
2563                 .digest    = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
2564                              "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
2565                              "\x30\xd6\xc9\x85",
2566         }
2567 };
2568
2569
2570 /*
2571  * SHA224 test vectors from from FIPS PUB 180-2
2572  */
2573 static const struct hash_testvec sha224_tv_template[] = {
2574         {
2575                 .plaintext = "",
2576                 .psize  = 0,
2577                 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
2578                           "\x47\x61\x02\xbb\x28\x82\x34\xc4"
2579                           "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
2580                           "\xc5\xb3\xe4\x2f",
2581         }, {
2582                 .plaintext = "abc",
2583                 .psize  = 3,
2584                 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
2585                           "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
2586                           "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
2587                           "\xE3\x6C\x9D\xA7",
2588         }, {
2589                 .plaintext =
2590                 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2591                 .psize  = 56,
2592                 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
2593                           "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
2594                           "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
2595                           "\x52\x52\x25\x25",
2596                 .np     = 2,
2597                 .tap    = { 28, 28 }
2598         }, {
2599                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2600                 .psize  = 64,
2601                 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
2602                           "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
2603                           "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
2604                           "\xef\x3b\xcb\x0e",
2605         }, {
2606                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2607                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2608                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2609                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2610                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2611                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2612                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2613                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2614                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2615                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2616                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2617                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2618                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2619                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2620                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2621                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2622                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2623                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2624                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2625                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2626                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2627                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2628                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2629                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2630                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2631                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2632                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2633                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2634                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2635                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2636                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2637                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2638                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2639                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2640                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2641                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2642                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2643                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2644                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2645                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2646                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2647                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2648                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2649                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2650                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2651                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2652                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2653                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2654                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2655                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2656                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2657                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2658                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2659                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2660                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2661                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2662                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2663                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2664                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2665                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2666                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2667                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2668                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2669                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2670                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2671                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2672                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2673                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2674                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2675                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2676                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2677                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2678                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2679                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2680                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2681                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2682                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2683                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2684                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2685                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2686                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2687                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2688                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2689                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2690                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2691                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2692                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2693                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2694                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2695                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2696                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2697                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2698                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2699                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2700                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2701                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2702                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2703                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2704                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2705                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2706                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2707                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2708                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2709                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2710                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2711                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2712                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2713                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2714                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2715                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2716                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2717                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2718                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2719                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2720                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2721                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2722                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2723                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2724                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2725                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2726                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2727                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2728                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2729                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2730                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2731                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2732                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2733                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2734                 .psize     = 1023,
2735                 .digest    = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
2736                              "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
2737                              "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
2738                              "\xe6\xf9\x4f\xcc",
2739         }
2740 };
2741
2742 /*
2743  * SHA256 test vectors from from NIST
2744  */
2745 static const struct hash_testvec sha256_tv_template[] = {
2746         {
2747                 .plaintext = "",
2748                 .psize  = 0,
2749                 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
2750                           "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
2751                           "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
2752                           "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
2753         }, {
2754                 .plaintext = "abc",
2755                 .psize  = 3,
2756                 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
2757                           "\x41\x41\x40\xde\x5d\xae\x22\x23"
2758                           "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
2759                           "\xb4\x10\xff\x61\xf2\x00\x15\xad",
2760         }, {
2761                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2762                 .psize  = 56,
2763                 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
2764                           "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
2765                           "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
2766                           "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
2767                 .np     = 2,
2768                 .tap    = { 28, 28 }
2769         }, {
2770                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2771                 .psize  = 64,
2772                 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
2773                           "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
2774                           "\xd6\xff\x94\xa3\x72\x91\x85\x66"
2775                           "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
2776         }, {
2777                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2778                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2779                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2780                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2781                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2782                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2783                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2784                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2785                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2786                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2787                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2788                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2789                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2790                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2791                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2792                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2793                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2794                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2795                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2796                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2797                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2798                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2799                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2800                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2801                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2802                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2803                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2804                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2805                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2806                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2807                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2808                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2809                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2810                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2811                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2812                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2813                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2814                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2815                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2816                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2817                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2818                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2819                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2820                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2821                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2822                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2823                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2824                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2825                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2826                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2827                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2828                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2829                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2830                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2831                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2832                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2833                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2834                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2835                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2836                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2837                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2838                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2839                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2840                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2841                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2842                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2843                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2844                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2845                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2846                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2847                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2848                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2849                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2850                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2851                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2852                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2853                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2854                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2855                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2856                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2857                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2858                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2859                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2860                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2861                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2862                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2863                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2864                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2865                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2866                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2867                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2868                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2869                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2870                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2871                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2872                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2873                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2874                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2875                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2876                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2877                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2878                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2879                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2880                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2881                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2882                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2883                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2884                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2885                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2886                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2887                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2888                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2889                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2890                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2891                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2892                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2893                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2894                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2895                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2896                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2897                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2898                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2899                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2900                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2901                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2902                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2903                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2904                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2905                 .psize     = 1023,
2906                 .digest    = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
2907                              "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
2908                              "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
2909                              "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
2910         }
2911 };
2912
2913 /*
2914  * SHA384 test vectors from from NIST and kerneli
2915  */
2916 static const struct hash_testvec sha384_tv_template[] = {
2917         {
2918                 .plaintext = "",
2919                 .psize  = 0,
2920                 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
2921                           "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
2922                           "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
2923                           "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
2924                           "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
2925                           "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
2926         }, {
2927                 .plaintext= "abc",
2928                 .psize  = 3,
2929                 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
2930                           "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
2931                           "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
2932                           "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
2933                           "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
2934                           "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
2935         }, {
2936                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2937                 .psize  = 56,
2938                 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
2939                           "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
2940                           "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
2941                           "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
2942                           "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
2943                           "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
2944         }, {
2945                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
2946                            "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
2947                 .psize  = 112,
2948                 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
2949                           "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
2950                           "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
2951                           "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
2952                           "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
2953                           "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
2954         }, {
2955                 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
2956                            "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
2957                 .psize  = 104,
2958                 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
2959                           "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
2960                           "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
2961                           "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
2962                           "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
2963                           "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
2964                 .np     = 4,
2965                 .tap    = { 26, 26, 26, 26 }
2966         }, {
2967                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2968                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2969                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2970                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2971                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2972                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2973                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2974                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2975                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2976                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2977                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2978                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2979                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2980                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2981                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2982                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2983                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2984                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2985                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2986                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2987                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2988                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2989                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2990                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2991                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2992                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2993                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2994                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2995                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2996                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2997                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2998                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2999                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3000                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3001                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3002                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3003                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3004                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3005                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3006                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3007                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3008                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3009                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3010                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3011                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3012                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3013                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3014                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3015                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3016                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3017                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3018                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3019                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3020                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3021                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3022                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3023                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3024                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3025                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3026                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3027                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3028                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3029                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3030                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3031                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3032                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3033                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3034                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3035                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3036                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3037                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3038                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3039                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3040                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3041                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3042                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3043                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3044                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3045                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3046                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3047                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3048                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3049                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3050                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3051                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3052                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3053                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3054                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3055                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3056                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3057                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3058                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3059                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3060                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3061                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3062                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3063                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3064                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3065                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3066                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3067                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3068                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3069                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3070                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3071                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3072                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3073                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3074                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3075                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3076                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3077                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3078                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3079                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3080                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3081                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3082                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3083                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3084                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3085                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3086                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3087                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3088                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3089                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3090                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3091                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3092                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3093                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3094                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3095                 .psize     = 1023,
3096                 .digest    = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
3097                              "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
3098                              "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
3099                              "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
3100                              "\x75\x29\x62\x83\xae\x3f\x17\xab"
3101                              "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
3102         }
3103 };
3104
3105 /*
3106  * SHA512 test vectors from from NIST and kerneli
3107  */
3108 static const struct hash_testvec sha512_tv_template[] = {
3109         {
3110                 .plaintext = "",
3111                 .psize  = 0,
3112                 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
3113                           "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
3114                           "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
3115                           "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
3116                           "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
3117                           "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
3118                           "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
3119                           "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
3120         }, {
3121                 .plaintext = "abc",
3122                 .psize  = 3,
3123                 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
3124                           "\xcc\x41\x73\x49\xae\x20\x41\x31"
3125                           "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
3126                           "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
3127                           "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
3128                           "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
3129                           "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
3130                           "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
3131         }, {
3132                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3133                 .psize  = 56,
3134                 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
3135                           "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
3136                           "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
3137                           "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
3138                           "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
3139                           "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
3140                           "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
3141                           "\x54\xec\x63\x12\x38\xca\x34\x45",
3142         }, {
3143                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
3144                            "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
3145                 .psize  = 112,
3146                 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
3147                           "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
3148                           "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
3149                           "\x72\x99\xae\xad\xb6\x88\x90\x18"
3150                           "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
3151                           "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
3152                           "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
3153                           "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
3154         }, {
3155                 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
3156                            "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
3157                 .psize  = 104,
3158                 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
3159                           "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
3160                           "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
3161                           "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
3162                           "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
3163                           "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
3164                           "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
3165                           "\xed\xb4\x19\x87\x23\x28\x50\xc9",
3166                 .np     = 4,
3167                 .tap    = { 26, 26, 26, 26 }
3168         }, {
3169                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
3170                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
3171                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
3172                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
3173                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
3174                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
3175                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
3176                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
3177                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
3178                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
3179                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
3180                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
3181                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
3182                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
3183                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
3184                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
3185                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
3186                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
3187                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
3188                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
3189                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
3190                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
3191                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
3192                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
3193                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
3194                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
3195                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
3196                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
3197                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
3198                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
3199                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
3200                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
3201                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3202                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3203                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3204                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3205                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3206                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3207                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3208                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3209                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3210                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3211                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3212                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3213                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3214                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3215                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3216                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3217                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3218                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3219                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3220                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3221                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3222                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3223                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3224                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3225                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3226                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3227                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3228                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3229                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3230                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3231                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3232                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3233                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3234                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3235                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3236                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3237                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3238                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3239                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3240                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3241                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3242                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3243                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3244                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3245                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3246                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3247                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3248                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3249                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3250                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3251                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3252                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3253                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3254                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3255                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3256                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3257                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3258                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3259                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3260                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3261                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3262                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3263                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3264                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3265                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3266                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3267                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3268                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3269                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3270                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3271                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3272                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3273                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3274                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3275                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3276                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3277                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3278                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3279                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3280                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3281                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3282                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3283                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3284                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3285                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3286                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3287                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3288                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3289                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3290                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3291                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3292                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3293                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3294                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3295                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3296                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3297                 .psize     = 1023,
3298                 .digest    = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
3299                              "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
3300                              "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
3301                              "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
3302                              "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
3303                              "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
3304                              "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
3305                              "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
3306         }
3307 };
3308
3309
3310 /*
3311  * WHIRLPOOL test vectors from Whirlpool package
3312  * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
3313  * submission
3314  */
3315 static const struct hash_testvec wp512_tv_template[] = {
3316         {
3317                 .plaintext = "",
3318                 .psize  = 0,
3319                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3320                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3321                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3322                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3323                           "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3324                           "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
3325                           "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
3326                           "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
3327
3328
3329         }, {
3330                 .plaintext = "a",
3331                 .psize  = 1,
3332                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3333                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3334                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3335                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3336                           "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3337                           "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
3338                           "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
3339                           "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
3340         }, {
3341                 .plaintext = "abc",
3342                 .psize  = 3,
3343                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3344                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3345                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3346                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3347                           "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3348                           "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
3349                           "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
3350                           "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
3351         }, {
3352                 .plaintext = "message digest",
3353                 .psize  = 14,
3354                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3355                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3356                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3357                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3358                           "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3359                           "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
3360                           "\x92\xED\x92\x00\x52\x83\x8F\x33"
3361                           "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
3362         }, {
3363                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3364                 .psize  = 26,
3365                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3366                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3367                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3368                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3369                           "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3370                           "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
3371                           "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
3372                           "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
3373         }, {
3374                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3375                            "abcdefghijklmnopqrstuvwxyz0123456789",
3376                 .psize  = 62,
3377                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3378                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3379                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3380                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3381                           "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3382                           "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
3383                           "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
3384                           "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
3385         }, {
3386                 .plaintext = "1234567890123456789012345678901234567890"
3387                            "1234567890123456789012345678901234567890",
3388                 .psize  = 80,
3389                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3390                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3391                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3392                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3393                           "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3394                           "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
3395                           "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
3396                           "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
3397         }, {
3398                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3399                 .psize  = 32,
3400                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3401                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3402                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3403                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3404                           "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3405                           "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
3406                           "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
3407                           "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
3408         },
3409 };
3410
3411 static const struct hash_testvec wp384_tv_template[] = {
3412         {
3413                 .plaintext = "",
3414                 .psize  = 0,
3415                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3416                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3417                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3418                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3419                           "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3420                           "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
3421
3422
3423         }, {
3424                 .plaintext = "a",
3425                 .psize  = 1,
3426                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3427                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3428                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3429                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3430                           "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3431                           "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
3432         }, {
3433                 .plaintext = "abc",
3434                 .psize  = 3,
3435                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3436                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3437                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3438                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3439                           "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3440                           "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
3441         }, {
3442                 .plaintext = "message digest",
3443                 .psize  = 14,
3444                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3445                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3446                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3447                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3448                           "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3449                           "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
3450         }, {
3451                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3452                 .psize  = 26,
3453                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3454                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3455                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3456                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3457                           "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3458                           "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
3459         }, {
3460                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3461                            "abcdefghijklmnopqrstuvwxyz0123456789",
3462                 .psize  = 62,
3463                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3464                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3465                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3466                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3467                           "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3468                           "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
3469         }, {
3470                 .plaintext = "1234567890123456789012345678901234567890"
3471                            "1234567890123456789012345678901234567890",
3472                 .psize  = 80,
3473                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3474                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3475                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3476                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3477                           "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3478                           "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
3479         }, {
3480                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3481                 .psize  = 32,
3482                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3483                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3484                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3485                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3486                           "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3487                           "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
3488         },
3489 };
3490
3491 static const struct hash_testvec wp256_tv_template[] = {
3492         {
3493                 .plaintext = "",
3494                 .psize  = 0,
3495                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3496                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3497                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3498                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
3499
3500
3501         }, {
3502                 .plaintext = "a",
3503                 .psize  = 1,
3504                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3505                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3506                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3507                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
3508         }, {
3509                 .plaintext = "abc",
3510                 .psize  = 3,
3511                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3512                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3513                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3514                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
3515         }, {
3516                 .plaintext = "message digest",
3517                 .psize  = 14,
3518                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3519                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3520                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3521                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
3522         }, {
3523                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3524                 .psize  = 26,
3525                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3526                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3527                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3528                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
3529         }, {
3530                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3531                            "abcdefghijklmnopqrstuvwxyz0123456789",
3532                 .psize  = 62,
3533                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3534                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3535                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3536                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
3537         }, {
3538                 .plaintext = "1234567890123456789012345678901234567890"
3539                            "1234567890123456789012345678901234567890",
3540                 .psize  = 80,
3541                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3542                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3543                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3544                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
3545         }, {
3546                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3547                 .psize  = 32,
3548                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3549                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3550                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3551                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
3552         },
3553 };
3554
3555 /*
3556  * TIGER test vectors from Tiger website
3557  */
3558 static const struct hash_testvec tgr192_tv_template[] = {
3559         {
3560                 .plaintext = "",
3561                 .psize  = 0,
3562                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3563                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3564                           "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
3565         }, {
3566                 .plaintext = "abc",
3567                 .psize  = 3,
3568                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3569                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3570                           "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
3571         }, {
3572                 .plaintext = "Tiger",
3573                 .psize  = 5,
3574                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3575                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3576                           "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
3577         }, {
3578                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3579                 .psize  = 64,
3580                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3581                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3582                           "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
3583         }, {
3584                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3585                 .psize  = 64,
3586                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3587                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3588                           "\x57\x89\x65\x65\x97\x5f\x91\x97",
3589         }, {
3590                 .plaintext = "Tiger - A Fast New Hash Function, "
3591                            "by Ross Anderson and Eli Biham, "
3592                            "proceedings of Fast Software Encryption 3, "
3593                            "Cambridge, 1996.",
3594                 .psize  = 125,
3595                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3596                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3597                           "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
3598         },
3599 };
3600
3601 static const struct hash_testvec tgr160_tv_template[] = {
3602         {
3603                 .plaintext = "",
3604                 .psize  = 0,
3605                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3606                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3607                           "\xf3\x73\xde\x2d",
3608         }, {
3609                 .plaintext = "abc",
3610                 .psize  = 3,
3611                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3612                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3613                           "\x93\x5f\x7b\x95",
3614         }, {
3615                 .plaintext = "Tiger",
3616                 .psize  = 5,
3617                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3618                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3619                           "\x37\x79\x0c\x11",
3620         }, {
3621                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3622                 .psize  = 64,
3623                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3624                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3625                           "\xb5\x86\x44\x50",
3626         }, {
3627                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3628                 .psize  = 64,
3629                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3630                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3631                           "\x57\x89\x65\x65",
3632         }, {
3633                 .plaintext = "Tiger - A Fast New Hash Function, "
3634                            "by Ross Anderson and Eli Biham, "
3635                            "proceedings of Fast Software Encryption 3, "
3636                            "Cambridge, 1996.",
3637                 .psize  = 125,
3638                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3639                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3640                           "\xdd\x68\x15\x1d",
3641         },
3642 };
3643
3644 static const struct hash_testvec tgr128_tv_template[] = {
3645         {
3646                 .plaintext = "",
3647                 .psize  = 0,
3648                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3649                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
3650         }, {
3651                 .plaintext = "abc",
3652                 .psize  = 3,
3653                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3654                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
3655         }, {
3656                 .plaintext = "Tiger",
3657                 .psize  = 5,
3658                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3659                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
3660         }, {
3661                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3662                 .psize  = 64,
3663                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3664                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
3665         }, {
3666                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3667                 .psize  = 64,
3668                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3669                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
3670         }, {
3671                 .plaintext = "Tiger - A Fast New Hash Function, "
3672                            "by Ross Anderson and Eli Biham, "
3673                            "proceedings of Fast Software Encryption 3, "
3674                            "Cambridge, 1996.",
3675                 .psize  = 125,
3676                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3677                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
3678         },
3679 };
3680
3681 static const struct hash_testvec ghash_tv_template[] =
3682 {
3683         {
3684                 .key    = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
3685                           "\xff\xca\xff\x95\xf8\x30\xf0\x61",
3686                 .ksize  = 16,
3687                 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
3688                              "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
3689                 .psize  = 16,
3690                 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
3691                           "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
3692         }, {
3693                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3694                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3695                 .ksize  = 16,
3696                 .plaintext = "what do ya want for nothing?",
3697                 .psize  = 28,
3698                 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
3699                           "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
3700                 .np     = 2,
3701                 .tap    = {14, 14}
3702         }, {
3703                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3704                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3705                 .ksize  = 16,
3706                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3707                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3708                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3709                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3710                 .psize  = 50,
3711                 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
3712                           "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
3713         }, {
3714                 .key    = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
3715                           "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
3716                 .ksize  = 16,
3717                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3718                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3719                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3720                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3721                 .psize  = 50,
3722                 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
3723                           "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
3724         }, {
3725                 .key    = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
3726                           "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
3727                 .ksize  = 16,
3728                 .plaintext = "Test With Truncation",
3729                 .psize  = 20,
3730                 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
3731                           "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
3732         }, {
3733                 .key    = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
3734                         "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
3735                 .ksize  = 16,
3736                 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
3737                         "\x65\x72\x20\x4c\x61\x75\x73\x63"
3738                         "\x68\x65\x6e\x20\x75\x6e\x64\x20"
3739                         "\x53\x74\x61\x75\x6e\x65\x6e\x20"
3740                         "\x73\x65\x69\x20\x73\x74\x69\x6c"
3741                         "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
3742                         "\x69\x6e\x20\x74\x69\x65\x66\x74"
3743                         "\x69\x65\x66\x65\x73\x20\x4c\x65"
3744                         "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
3745                         "\x73\x20\x64\x75\x20\x77\x65\x69"
3746                         "\xc3\x9f\x74\x20\x77\x61\x73\x20"
3747                         "\x64\x65\x72\x20\x57\x69\x6e\x64"
3748                         "\x20\x64\x69\x72\x20\x77\x69\x6c"
3749                         "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
3750                         "\x63\x68\x20\x64\x69\x65\x20\x42"
3751                         "\x69\x72\x6b\x65\x6e\x20\x62\x65"
3752                         "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
3753                         "\x64\x20\x77\x65\x6e\x6e\x20\x64"
3754                         "\x69\x72\x20\x65\x69\x6e\x6d\x61"
3755                         "\x6c\x20\x64\x61\x73\x20\x53\x63"
3756                         "\x68\x77\x65\x69\x67\x65\x6e\x20"
3757                         "\x73\x70\x72\x61\x63\x68\x2c\x0a"
3758                         "\x6c\x61\x73\x73\x20\x64\x65\x69"
3759                         "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
3760                         "\x20\x62\x65\x73\x69\x65\x67\x65"
3761                         "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
3762                         "\x20\x48\x61\x75\x63\x68\x65\x20"
3763                         "\x67\x69\x62\x74\x20\x64\x69\x63"
3764                         "\x68\x2c\x20\x67\x69\x62\x20\x6e"
3765                         "\x61\x63\x68\x2c\x0a\x65\x72\x20"
3766                         "\x77\x69\x72\x64\x20\x64\x69\x63"
3767                         "\x68\x20\x6c\x69\x65\x62\x65\x6e"
3768                         "\x20\x75\x6e\x64\x20\x77\x69\x65"
3769                         "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
3770                         "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
3771                         "\x65\x69\x6e\x65\x20\x53\x65\x65"
3772                         "\x6c\x65\x20\x73\x65\x69\x74\x20"
3773                         "\x77\x65\x69\x74\x2c\x20\x73\x65"
3774                         "\x69\x20\x77\x65\x69\x74\x2c\x0a"
3775                         "\x64\x61\x73\x73\x20\x64\x69\x72"
3776                         "\x20\x64\x61\x73\x20\x4c\x65\x62"
3777                         "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
3778                         "\x67\x65\x2c\x0a\x62\x72\x65\x69"
3779                         "\x74\x65\x20\x64\x69\x63\x68\x20"
3780                         "\x77\x69\x65\x20\x65\x69\x6e\x20"
3781                         "\x46\x65\x69\x65\x72\x6b\x6c\x65"
3782                         "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
3783                         "\x20\x64\x69\x65\x20\x73\x69\x6e"
3784                         "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
3785                         "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
3786                 .psize  = 400,
3787                 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
3788                         "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
3789         },
3790 };
3791
3792 /*
3793  * HMAC-MD5 test vectors from RFC2202
3794  * (These need to be fixed to not use strlen).
3795  */
3796 static const struct hash_testvec hmac_md5_tv_template[] =
3797 {
3798         {
3799                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3800                 .ksize  = 16,
3801                 .plaintext = "Hi There",
3802                 .psize  = 8,
3803                 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
3804                           "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
3805         }, {
3806                 .key    = "Jefe",
3807                 .ksize  = 4,
3808                 .plaintext = "what do ya want for nothing?",
3809                 .psize  = 28,
3810                 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
3811                           "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
3812                 .np     = 2,
3813                 .tap    = {14, 14}
3814         }, {
3815                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3816                 .ksize  = 16,
3817                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3818                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3819                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3820                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3821                 .psize  = 50,
3822                 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
3823                           "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
3824         }, {
3825                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3826                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3827                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3828                 .ksize  = 25,
3829                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3830                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3831                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3832                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3833                 .psize  = 50,
3834                 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
3835                           "\x3a\x75\x16\x47\x46\xff\xaa\x79",
3836         }, {
3837                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3838                 .ksize  = 16,
3839                 .plaintext = "Test With Truncation",
3840                 .psize  = 20,
3841                 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
3842                           "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
3843         }, {
3844                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3845                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3846                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3847                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3848                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3849                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3850                         "\xaa\xaa",
3851                 .ksize  = 80,
3852                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3853                 .psize  = 54,
3854                 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
3855                           "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
3856         }, {
3857                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3858                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3859                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3860                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3861                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3862                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3863                         "\xaa\xaa",
3864                 .ksize  = 80,
3865                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3866                            "Block-Size Data",
3867                 .psize  = 73,
3868                 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
3869                           "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
3870         },
3871 };
3872
3873 /*
3874  * HMAC-RIPEMD128 test vectors from RFC2286
3875  */
3876 static const struct hash_testvec hmac_rmd128_tv_template[] = {
3877         {
3878                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3879                 .ksize  = 16,
3880                 .plaintext = "Hi There",
3881                 .psize  = 8,
3882                 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
3883                           "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
3884         }, {
3885                 .key    = "Jefe",
3886                 .ksize  = 4,
3887                 .plaintext = "what do ya want for nothing?",
3888                 .psize  = 28,
3889                 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
3890                           "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
3891                 .np     = 2,
3892                 .tap    = { 14, 14 },
3893         }, {
3894                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3895                 .ksize  = 16,
3896                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3897                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3898                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3899                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3900                 .psize  = 50,
3901                 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
3902                           "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
3903         }, {
3904                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3905                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3906                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3907                 .ksize  = 25,
3908                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3909                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3910                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3911                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3912                 .psize  = 50,
3913                 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
3914                           "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
3915         }, {
3916                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3917                 .ksize  = 16,
3918                 .plaintext = "Test With Truncation",
3919                 .psize  = 20,
3920                 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
3921                           "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
3922         }, {
3923                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3924                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3925                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3926                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3927                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3928                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3929                         "\xaa\xaa",
3930                 .ksize  = 80,
3931                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3932                 .psize  = 54,
3933                 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
3934                           "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
3935         }, {
3936                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3937                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3938                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3939                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3940                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3941                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3942                         "\xaa\xaa",
3943                 .ksize  = 80,
3944                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3945                            "Block-Size Data",
3946                 .psize  = 73,
3947                 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
3948                           "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
3949         },
3950 };
3951
3952 /*
3953  * HMAC-RIPEMD160 test vectors from RFC2286
3954  */
3955 static const struct hash_testvec hmac_rmd160_tv_template[] = {
3956         {
3957                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3958                 .ksize  = 20,
3959                 .plaintext = "Hi There",
3960                 .psize  = 8,
3961                 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
3962                           "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
3963         }, {
3964                 .key    = "Jefe",
3965                 .ksize  = 4,
3966                 .plaintext = "what do ya want for nothing?",
3967                 .psize  = 28,
3968                 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
3969                           "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
3970                 .np     = 2,
3971                 .tap    = { 14, 14 },
3972         }, {
3973                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3974                 .ksize  = 20,
3975                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3976                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3977                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3978                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3979                 .psize  = 50,
3980                 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
3981                           "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
3982         }, {
3983                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3984                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3985                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3986                 .ksize  = 25,
3987                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3988                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3989                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3990                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3991                 .psize  = 50,
3992                 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
3993                           "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
3994         }, {
3995                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3996                 .ksize  = 20,
3997                 .plaintext = "Test With Truncation",
3998                 .psize  = 20,
3999                 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
4000                           "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
4001         }, {
4002                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4003                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4004                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4005                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4006                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4007                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4008                         "\xaa\xaa",
4009                 .ksize  = 80,
4010                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4011                 .psize  = 54,
4012                 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
4013                           "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
4014         }, {
4015                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4016                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4017                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4018                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4019                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4020                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4021                         "\xaa\xaa",
4022                 .ksize  = 80,
4023                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4024                            "Block-Size Data",
4025                 .psize  = 73,
4026                 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
4027                           "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
4028         },
4029 };
4030
4031 /*
4032  * HMAC-SHA1 test vectors from RFC2202
4033  */
4034 static const struct hash_testvec hmac_sha1_tv_template[] = {
4035         {
4036                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4037                 .ksize  = 20,
4038                 .plaintext = "Hi There",
4039                 .psize  = 8,
4040                 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
4041                           "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
4042                           "\x46\xbe",
4043         }, {
4044                 .key    = "Jefe",
4045                 .ksize  = 4,
4046                 .plaintext = "what do ya want for nothing?",
4047                 .psize  = 28,
4048                 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
4049                           "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
4050                 .np     = 2,
4051                 .tap    = { 14, 14 }
4052         }, {
4053                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4054                 .ksize  = 20,
4055                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4056                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4057                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4058                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4059                 .psize  = 50,
4060                 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
4061                           "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
4062         }, {
4063                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4064                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4065                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4066                 .ksize  = 25,
4067                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4068                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4069                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4070                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4071                 .psize  = 50,
4072                 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
4073                           "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
4074         }, {
4075                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4076                 .ksize  = 20,
4077                 .plaintext = "Test With Truncation",
4078                 .psize  = 20,
4079                 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
4080                           "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
4081         }, {
4082                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4083                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4084                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4085                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4086                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4087                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4088                         "\xaa\xaa",
4089                 .ksize  = 80,
4090                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4091                 .psize  = 54,
4092                 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
4093                           "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
4094         }, {
4095                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4096                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4097                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4098                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4099                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4100                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4101                         "\xaa\xaa",
4102                 .ksize  = 80,
4103                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4104                            "Block-Size Data",
4105                 .psize  = 73,
4106                 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
4107                           "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
4108         },
4109 };
4110
4111
4112 /*
4113  * SHA224 HMAC test vectors from RFC4231
4114  */
4115 static const struct hash_testvec hmac_sha224_tv_template[] = {
4116         {
4117                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4118                         "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4119                         "\x0b\x0b\x0b\x0b",
4120                 .ksize  = 20,
4121                 /*  ("Hi There") */
4122                 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
4123                 .psize  = 8,
4124                 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
4125                         "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
4126                         "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
4127                         "\x53\x68\x4b\x22",
4128         }, {
4129                 .key    = "Jefe",
4130                 .ksize  = 4,
4131                 /* ("what do ya want for nothing?") */
4132                 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
4133                         "\x79\x61\x20\x77\x61\x6e\x74\x20"
4134                         "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
4135                         "\x69\x6e\x67\x3f",
4136                 .psize  = 28,
4137                 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
4138                         "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
4139                         "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
4140                         "\x8f\xd0\x5e\x44",
4141                 .np = 4,
4142                 .tap    = { 7, 7, 7, 7 }
4143         }, {
4144                 .key    = "\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\xaa\xaa\xaa\xaa\xaa"
4148                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4149                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4150                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4151                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4152                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4153                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4154                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4155                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4156                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4157                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4158                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4159                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4160                         "\xaa\xaa\xaa",
4161                 .ksize  = 131,
4162                 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
4163                 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
4164                         "\x6e\x67\x20\x4c\x61\x72\x67\x65"
4165                         "\x72\x20\x54\x68\x61\x6e\x20\x42"
4166                         "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
4167                         "\x65\x20\x4b\x65\x79\x20\x2d\x20"
4168                         "\x48\x61\x73\x68\x20\x4b\x65\x79"
4169                         "\x20\x46\x69\x72\x73\x74",
4170                 .psize  = 54,
4171                 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
4172                         "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
4173                         "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
4174                         "\x3f\xa6\x87\x0e",
4175         }, {
4176                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4177                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4178                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4179                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4180                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4181                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4182                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4183                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4184                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4185                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4186                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4187                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4188                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4189                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4190                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4191                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4192                         "\xaa\xaa\xaa",
4193                 .ksize  = 131,
4194                 /* ("This is a test using a larger than block-size key and a")
4195                 (" larger than block-size data. The key needs to be")
4196                         (" hashed before being used by the HMAC algorithm.") */
4197                 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
4198                         "\x61\x20\x74\x65\x73\x74\x20\x75"
4199                         "\x73\x69\x6e\x67\x20\x61\x20\x6c"
4200                         "\x61\x72\x67\x65\x72\x20\x74\x68"
4201                         "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
4202                         "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
4203                         "\x79\x20\x61\x6e\x64\x20\x61\x20"
4204                         "\x6c\x61\x72\x67\x65\x72\x20\x74"
4205                         "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
4206                         "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
4207                         "\x61\x74\x61\x2e\x20\x54\x68\x65"
4208                         "\x20\x6b\x65\x79\x20\x6e\x65\x65"
4209                         "\x64\x73\x20\x74\x6f\x20\x62\x65"
4210                         "\x20\x68\x61\x73\x68\x65\x64\x20"
4211                         "\x62\x65\x66\x6f\x72\x65\x20\x62"
4212                         "\x65\x69\x6e\x67\x20\x75\x73\x65"
4213                         "\x64\x20\x62\x79\x20\x74\x68\x65"
4214                         "\x20\x48\x4d\x41\x43\x20\x61\x6c"
4215                         "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
4216                 .psize  = 152,
4217                 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
4218                         "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
4219                         "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
4220                         "\xf6\xf5\x65\xd1",
4221         },
4222 };
4223
4224 /*
4225  * HMAC-SHA256 test vectors from
4226  * draft-ietf-ipsec-ciph-sha-256-01.txt
4227  */
4228 static const struct hash_testvec hmac_sha256_tv_template[] = {
4229         {
4230                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4231                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4232                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4233                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4234                 .ksize  = 32,
4235                 .plaintext = "abc",
4236                 .psize  = 3,
4237                 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
4238                           "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
4239                           "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
4240                           "\x92\x75\x90\x21\xcf\xab\x81\x81",
4241         }, {
4242                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4243                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4244                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4245                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4246                 .ksize  = 32,
4247                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4248                 .psize  = 56,
4249                 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
4250                           "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
4251                           "\xe6\x98\xe3\x61\x19\x42\x11\x49"
4252                           "\xea\x8c\x71\x24\x56\x69\x7d\x30",
4253         }, {
4254                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4255                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4256                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4257                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4258                 .ksize  = 32,
4259                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
4260                            "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4261                 .psize  = 112,
4262                 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
4263                           "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
4264                           "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
4265                           "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
4266         }, {
4267                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4268                         "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4269                         "\x0b\x0b\x0b\x0b\x0b\x0b",
4270                 .ksize  = 32,
4271                 .plaintext = "Hi There",
4272                 .psize  = 8,
4273                 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
4274                           "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
4275                           "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
4276                           "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
4277         }, {
4278                 .key    = "Jefe",
4279                 .ksize  = 4,
4280                 .plaintext = "what do ya want for nothing?",
4281                 .psize  = 28,
4282                 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
4283                           "\x6a\x04\x24\x26\x08\x95\x75\xc7"
4284                           "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
4285                           "\x9d\xec\x58\xb9\x64\xec\x38\x43",
4286                 .np     = 2,
4287                 .tap    = { 14, 14 }
4288         }, {
4289                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4290                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4291                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4292                 .ksize  = 32,
4293                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4294                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4295                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4296                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4297                 .psize  = 50,
4298                 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
4299                           "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
4300                           "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
4301                           "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
4302         }, {
4303                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4304                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4305                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4306                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
4307                           "\x21\x22\x23\x24\x25",
4308                 .ksize  = 37,
4309                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4310                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4311                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4312                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4313                 .psize  = 50,
4314                 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
4315                           "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
4316                           "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
4317                           "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
4318         }, {
4319                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4320                         "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4321                         "\x0c\x0c\x0c\x0c\x0c\x0c",
4322                 .ksize  = 32,
4323                 .plaintext = "Test With Truncation",
4324                 .psize  = 20,
4325                 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
4326                           "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
4327                           "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
4328                           "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
4329         }, {
4330                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4331                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4332                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4333                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4334                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4335                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4336                         "\xaa\xaa",
4337                 .ksize  = 80,
4338                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4339                 .psize  = 54,
4340                 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
4341                           "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
4342                           "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
4343                           "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
4344         }, {
4345                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4346                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4347                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4348                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4349                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4350                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4351                         "\xaa\xaa",
4352                 .ksize  = 80,
4353                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
4354                            "One Block-Size Data",
4355                 .psize  = 73,
4356                 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
4357                           "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
4358                           "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
4359                           "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
4360         },
4361 };
4362
4363 static const struct hash_testvec aes_cmac128_tv_template[] = {
4364         { /* From NIST Special Publication 800-38B, AES-128 */
4365                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4366                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4367                 .plaintext      = zeroed_string,
4368                 .digest         = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
4369                                   "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
4370                 .psize          = 0,
4371                 .ksize          = 16,
4372         }, {
4373                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4374                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4375                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4376                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4377                 .digest         = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
4378                                   "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
4379                 .psize          = 16,
4380                 .ksize          = 16,
4381         }, {
4382                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4383                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4384                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4385                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4386                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4387                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4388                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
4389                 .digest         = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
4390                                   "\x30\xca\x32\x61\x14\x97\xc8\x27",
4391                 .psize          = 40,
4392                 .ksize          = 16,
4393         }, {
4394                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4395                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4396                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4397                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4398                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4399                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4400                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4401                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4402                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4403                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4404                 .digest         = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
4405                                   "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
4406                 .psize          = 64,
4407                 .ksize          = 16,
4408         }, { /* From NIST Special Publication 800-38B, AES-256 */
4409                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4410                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4411                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4412                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4413                 .plaintext      = zeroed_string,
4414                 .digest         = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
4415                                   "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
4416                 .psize          = 0,
4417                 .ksize          = 32,
4418         }, {
4419                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4420                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4421                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4422                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4423                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4424                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4425                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4426                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4427                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4428                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4429                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4430                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4431                 .digest         = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
4432                                   "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
4433                 .psize          = 64,
4434                 .ksize          = 32,
4435         }
4436 };
4437
4438 static const struct hash_testvec aes_cbcmac_tv_template[] = {
4439         {
4440                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4441                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4442                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4443                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4444                 .digest         = "\x3a\xd7\x7b\xb4\x0d\x7a\x36\x60"
4445                                   "\xa8\x9e\xca\xf3\x24\x66\xef\x97",
4446                 .psize          = 16,
4447                 .ksize          = 16,
4448         }, {
4449                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4450                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4451                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4452                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4453                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4454                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4455                                   "\x30",
4456                 .digest         = "\x9d\x0d\xd0\x63\xfb\xcb\x24\x43"
4457                                   "\xf8\xf2\x76\x03\xac\x39\xb0\x9d",
4458                 .psize          = 33,
4459                 .ksize          = 16,
4460                 .np             = 2,
4461                 .tap            = { 7, 26 },
4462         }, {
4463                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4464                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4465                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4466                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4467                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4468                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4469                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4470                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4471                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4472                                   "\xad\x2b\x41\x7b\xe6\x6c\x37",
4473                 .digest         = "\xc0\x71\x73\xb8\xa0\x2c\x11\x7c"
4474                                   "\xaf\xdc\xb2\xf8\x89\x32\xa3\x3a",
4475                 .psize          = 63,
4476                 .ksize          = 16,
4477         }, {
4478                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4479                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4480                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4481                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4482                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4483                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4484                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4485                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4486                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4487                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4488                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4489                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10"
4490                                   "\x1c",
4491                 .digest         = "\x6a\x4e\xdb\x21\x47\x51\xdf\x4f"
4492                                   "\xa8\x4d\x4c\x10\x3b\x72\x7d\xd6",
4493                 .psize          = 65,
4494                 .ksize          = 32,
4495         }
4496 };
4497
4498 static const struct hash_testvec des3_ede_cmac64_tv_template[] = {
4499 /*
4500  * From NIST Special Publication 800-38B, Three Key TDEA
4501  * Corrected test vectors from:
4502  *  http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
4503  */
4504         {
4505                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4506                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4507                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4508                 .plaintext      = zeroed_string,
4509                 .digest         = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
4510                 .psize          = 0,
4511                 .ksize          = 24,
4512         }, {
4513                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4514                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4515                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4516                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
4517                 .digest         = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
4518                 .psize          = 8,
4519                 .ksize          = 24,
4520         }, {
4521                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4522                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4523                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4524                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4525                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4526                                   "\xae\x2d\x8a\x57",
4527                 .digest         = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
4528                 .psize          = 20,
4529                 .ksize          = 24,
4530         }, {
4531                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4532                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4533                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4534                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4535                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4536                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4537                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
4538                 .digest         = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
4539                 .psize          = 32,
4540                 .ksize          = 24,
4541         }
4542 };
4543
4544 static const struct hash_testvec aes_xcbc128_tv_template[] = {
4545         {
4546                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4547                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4548                 .plaintext = zeroed_string,
4549                 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
4550                           "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
4551                 .psize  = 0,
4552                 .ksize  = 16,
4553         }, {
4554                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4555                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4556                 .plaintext = "\x00\x01\x02",
4557                 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
4558                           "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
4559                 .psize  = 3,
4560                 .ksize  = 16,
4561         } , {
4562                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4563                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4564                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4565                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4566                 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
4567                           "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
4568                 .psize  = 16,
4569                 .ksize  = 16,
4570         }, {
4571                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4572                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4573                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4574                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4575                              "\x10\x11\x12\x13",
4576                 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
4577                           "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
4578                 .tap    = { 10, 10 },
4579                 .psize  = 20,
4580                 .np     = 2,
4581                 .ksize  = 16,
4582         }, {
4583                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4584                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4585                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4586                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4587                              "\x10\x11\x12\x13\x14\x15\x16\x17"
4588                              "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
4589                 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
4590                           "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
4591                 .psize  = 32,
4592                 .ksize  = 16,
4593         }, {
4594                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4595                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4596                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4597                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4598                              "\x10\x11\x12\x13\x14\x15\x16\x17"
4599                              "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
4600                              "\x20\x21",
4601                 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
4602                           "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
4603                 .tap    = { 17, 17 },
4604                 .psize  = 34,
4605                 .np     = 2,
4606                 .ksize  = 16,
4607         }
4608 };
4609
4610 static const char vmac64_string1[144] = {
4611         '\0',     '\0',   '\0',   '\0',   '\0',   '\0',   '\0',   '\0',
4612         '\0',     '\0',   '\0',   '\0',   '\0',   '\0',   '\0',   '\0',
4613         '\x01', '\x01', '\x01', '\x01', '\x02', '\x03', '\x02', '\x02',
4614         '\x02', '\x04', '\x01', '\x07', '\x04', '\x01', '\x04', '\x03',
4615 };
4616
4617 static const char vmac64_string2[144] = {
4618         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4619         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4620          'a',  'b',  'c',
4621 };
4622
4623 static const char vmac64_string3[144] = {
4624         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4625         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4626          'a',  'b',  'c',  'a',  'b',  'c',  'a',  'b',
4627          'c',  'a',  'b',  'c',  'a',  'b',  'c',  'a',
4628          'b',  'c',  'a',  'b',  'c',  'a',  'b',  'c',
4629          'a',  'b',  'c',  'a',  'b',  'c',  'a',  'b',
4630          'c',  'a',  'b',  'c',  'a',  'b',  'c',  'a',
4631          'b',  'c',  'a',  'b',  'c',  'a',  'b',  'c',
4632 };
4633
4634 static const char vmac64_string4[33] = {
4635         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4636         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4637         'b',   'c',  'e',  'f',  'i',  'j',  'l',  'm',
4638         'o',   'p',  'r',  's',  't',  'u',  'w',  'x',
4639         'z',
4640 };
4641
4642 static const char vmac64_string5[143] = {
4643         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4644         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4645          'r',  'm',  'b',  't',  'c',  'o',  'l',  'k',
4646          ']',  '%',  '9',  '2',  '7',  '!',  'A',
4647 };
4648
4649 static const char vmac64_string6[145] = {
4650         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4651         '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4652          'p',  't',  '*',  '7',  'l',  'i',  '!',  '#',
4653          'w',  '0',  'z',  '/',  '4',  'A',  'n',
4654 };
4655
4656 static const struct hash_testvec vmac64_aes_tv_template[] = {
4657         { /* draft-krovetz-vmac-01 test vector 1 */
4658                 .key    = "abcdefghijklmnop",
4659                 .ksize  = 16,
4660                 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi",
4661                 .psize  = 16,
4662                 .digest = "\x25\x76\xbe\x1c\x56\xd8\xb8\x1b",
4663         }, { /* draft-krovetz-vmac-01 test vector 2 */
4664                 .key    = "abcdefghijklmnop",
4665                 .ksize  = 16,
4666                 .plaintext = "\0\0\0\0\0\0\0\0bcdefghiabc",
4667                 .psize  = 19,
4668                 .digest = "\x2d\x37\x6c\xf5\xb1\x81\x3c\xe5",
4669         }, { /* draft-krovetz-vmac-01 test vector 3 */
4670                 .key    = "abcdefghijklmnop",
4671                 .ksize  = 16,
4672                 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi"
4673                           "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc",
4674                 .psize  = 64,
4675                 .digest = "\xe8\x42\x1f\x61\xd5\x73\xd2\x98",
4676         }, { /* draft-krovetz-vmac-01 test vector 4 */
4677                 .key    = "abcdefghijklmnop",
4678                 .ksize  = 16,
4679                 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi"
4680                           "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4681                           "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4682                           "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4683                           "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4684                           "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4685                           "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabc",
4686                 .psize  = 316,
4687                 .digest = "\x44\x92\xdf\x6c\x5c\xac\x1b\xbe",
4688                 .tap    = { 1, 100, 200, 15 },
4689                 .np     = 4,
4690         }, {
4691                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4692                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4693                 .ksize  = 16,
4694                 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4695                           "\x00\x00\x00\x00\x00\x00\x00\x00",
4696                 .psize  = 16,
4697                 .digest = "\x54\x7b\xa4\x77\x35\x80\x58\x07",
4698         }, {
4699                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4700                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4701                 .ksize  = 16,
4702                 .plaintext = vmac64_string1,
4703                 .psize  = sizeof(vmac64_string1),
4704                 .digest = "\xa1\x8c\x68\xae\xd3\x3c\xf5\xce",
4705         }, {
4706                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4707                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4708                 .ksize  = 16,
4709                 .plaintext = vmac64_string2,
4710                 .psize  = sizeof(vmac64_string2),
4711                 .digest = "\x2d\x14\xbd\x81\x73\xb0\x27\xc9",
4712         }, {
4713                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4714                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4715                 .ksize  = 16,
4716                 .plaintext = vmac64_string3,
4717                 .psize  = sizeof(vmac64_string3),
4718                 .digest = "\x19\x0b\x47\x98\x8c\x95\x1a\x8d",
4719         }, {
4720                 .key    = "abcdefghijklmnop",
4721                 .ksize  = 16,
4722                 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4723                           "\x00\x00\x00\x00\x00\x00\x00\x00",
4724                 .psize  = 16,
4725                 .digest = "\x84\x8f\x55\x9e\x26\xa1\x89\x3b",
4726         }, {
4727                 .key    = "abcdefghijklmnop",
4728                 .ksize  = 16,
4729                 .plaintext = vmac64_string1,
4730                 .psize  = sizeof(vmac64_string1),
4731                 .digest = "\xc2\x74\x8d\xf6\xb0\xab\x5e\xab",
4732         }, {
4733                 .key    = "abcdefghijklmnop",
4734                 .ksize  = 16,
4735                 .plaintext = vmac64_string2,
4736                 .psize  = sizeof(vmac64_string2),
4737                 .digest = "\xdf\x09\x7b\x3d\x42\x68\x15\x11",
4738         }, {
4739                 .key    = "abcdefghijklmnop",
4740                 .ksize  = 16,
4741                 .plaintext = vmac64_string3,
4742                 .psize  = sizeof(vmac64_string3),
4743                 .digest = "\xd4\xfa\x8f\xed\xe1\x8f\x32\x8b",
4744         }, {
4745                 .key    = "a09b5cd!f#07K\x00\x00\x00",
4746                 .ksize  = 16,
4747                 .plaintext = vmac64_string4,
4748                 .psize  = sizeof(vmac64_string4),
4749                 .digest = "\x5f\xa1\x4e\x42\xea\x0f\xa5\xab",
4750         }, {
4751                 .key    = "a09b5cd!f#07K\x00\x00\x00",
4752                 .ksize  = 16,
4753                 .plaintext = vmac64_string5,
4754                 .psize  = sizeof(vmac64_string5),
4755                 .digest = "\x60\x67\xe8\x1d\xbc\x98\x31\x25",
4756         }, {
4757                 .key    = "a09b5cd!f#07K\x00\x00\x00",
4758                 .ksize  = 16,
4759                 .plaintext = vmac64_string6,
4760                 .psize  = sizeof(vmac64_string6),
4761                 .digest = "\x41\xeb\x65\x95\x47\x9b\xae\xc4",
4762         },
4763 };
4764
4765 /*
4766  * SHA384 HMAC test vectors from RFC4231
4767  */
4768
4769 static const struct hash_testvec hmac_sha384_tv_template[] = {
4770         {
4771                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4772                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4773                           "\x0b\x0b\x0b\x0b",
4774                 .ksize  = 20,
4775                 .plaintext = "Hi There",
4776                 .psize  = 8,
4777                 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
4778                           "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
4779                           "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
4780                           "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
4781                           "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
4782                           "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
4783         }, {
4784                 .key    = "Jefe",
4785                 .ksize  = 4,
4786                 .plaintext = "what do ya want for nothing?",
4787                 .psize  = 28,
4788                 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
4789                           "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
4790                           "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
4791                           "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
4792                           "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
4793                           "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
4794                 .np     = 4,
4795                 .tap    = { 7, 7, 7, 7 }
4796         }, {
4797                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4798                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4799                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4800                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4801                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4802                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4803                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4804                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4805                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4806                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4807                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4808                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4809                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4810                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4811                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4812                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4813                           "\xaa\xaa\xaa",
4814                 .ksize  = 131,
4815                 .plaintext = "Test Using Larger Than Block-Siz"
4816                            "e Key - Hash Key First",
4817                 .psize  = 54,
4818                 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
4819                           "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
4820                           "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
4821                           "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
4822                           "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
4823                           "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
4824         }, {
4825                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4826                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4827                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4828                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4829                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4830                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4831                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4832                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4833                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4834                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4835                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4836                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4837                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4838                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4839                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4840                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4841                           "\xaa\xaa\xaa",
4842                 .ksize  = 131,
4843                 .plaintext = "This is a test u"
4844                            "sing a larger th"
4845                            "an block-size ke"
4846                            "y and a larger t"
4847                            "han block-size d"
4848                            "ata. The key nee"
4849                            "ds to be hashed "
4850                            "before being use"
4851                            "d by the HMAC al"
4852                            "gorithm.",
4853                 .psize  = 152,
4854                 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
4855                           "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
4856                           "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
4857                           "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
4858                           "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
4859                           "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
4860         },
4861 };
4862
4863 /*
4864  * SHA512 HMAC test vectors from RFC4231
4865  */
4866
4867 static const struct hash_testvec hmac_sha512_tv_template[] = {
4868         {
4869                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4870                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4871                           "\x0b\x0b\x0b\x0b",
4872                 .ksize  = 20,
4873                 .plaintext = "Hi There",
4874                 .psize  = 8,
4875                 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
4876                           "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
4877                           "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
4878                           "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
4879                           "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
4880                           "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
4881                           "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
4882                           "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
4883         }, {
4884                 .key    = "Jefe",
4885                 .ksize  = 4,
4886                 .plaintext = "what do ya want for nothing?",
4887                 .psize  = 28,
4888                 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
4889                           "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
4890                           "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
4891                           "\x10\x27\x0c\xd7\xea\x25\x05\x54"
4892                           "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
4893                           "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
4894                           "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
4895                           "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
4896                 .np     = 4,
4897                 .tap    = { 7, 7, 7, 7 }
4898         }, {
4899                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4900                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4901                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4902                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4903                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4904                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4905                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4906                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4907                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4908                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4909                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4910                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4911                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4912                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4913                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4914                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4915                           "\xaa\xaa\xaa",
4916                 .ksize  = 131,
4917                 .plaintext = "Test Using Large"
4918                            "r Than Block-Siz"
4919                            "e Key - Hash Key"
4920                            " First",
4921                 .psize  = 54,
4922                 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
4923                         "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
4924                         "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
4925                         "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
4926                         "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
4927                         "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
4928                         "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
4929                         "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
4930         }, {
4931                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4932                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4933                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4934                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4935                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4936                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4937                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4938                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4939                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4940                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4941                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4942                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4943                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4944                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4945                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4946                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4947                         "\xaa\xaa\xaa",
4948                 .ksize  = 131,
4949                 .plaintext =
4950                           "This is a test u"
4951                           "sing a larger th"
4952                           "an block-size ke"
4953                           "y and a larger t"
4954                           "han block-size d"
4955                           "ata. The key nee"
4956                           "ds to be hashed "
4957                           "before being use"
4958                           "d by the HMAC al"
4959                           "gorithm.",
4960                 .psize  = 152,
4961                 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
4962                         "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
4963                         "\xde\xbd\x71\xf8\x86\x72\x89\x86"
4964                         "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
4965                         "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
4966                         "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
4967                         "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
4968                         "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
4969         },
4970 };
4971
4972 static const struct hash_testvec hmac_sha3_224_tv_template[] = {
4973         {
4974                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4975                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4976                           "\x0b\x0b\x0b\x0b",
4977                 .ksize  = 20,
4978                 .plaintext = "Hi There",
4979                 .psize  = 8,
4980                 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
4981                           "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
4982                           "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
4983                           "\xf3\xc8\x60\xf7",
4984         }, {
4985                 .key    = "Jefe",
4986                 .ksize  = 4,
4987                 .plaintext = "what do ya want for nothing?",
4988                 .psize  = 28,
4989                 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
4990                           "\x1b\x79\x86\x34\xad\x38\x68\x11"
4991                           "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
4992                           "\xba\xce\x5e\x66",
4993                 .np     = 4,
4994                 .tap    = { 7, 7, 7, 7 }
4995         }, {
4996                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4997                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4998                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4999                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5000                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5001                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5002                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5003                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5004                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5005                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5006                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5007                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5008                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5009                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5010                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5011                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5012                           "\xaa\xaa\xaa",
5013                 .ksize  = 131,
5014                 .plaintext = "Test Using Large"
5015                            "r Than Block-Siz"
5016                            "e Key - Hash Key"
5017                            " First",
5018                 .psize  = 54,
5019                 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
5020                           "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
5021                           "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
5022                           "\x5f\xb9\x99\x5f",
5023         }, {
5024                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5025                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5026                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5027                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5028                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5029                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5030                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5031                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5032                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5033                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5034                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5035                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5036                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5037                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5038                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5039                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5040                           "\xaa\xaa\xaa",
5041                 .ksize  = 131,
5042                 .plaintext =
5043                           "This is a test u"
5044                           "sing a larger th"
5045                           "an block-size ke"
5046                           "y and a larger t"
5047                           "han block-size d"
5048                           "ata. The key nee"
5049                           "ds to be hashed "
5050                           "before being use"
5051                           "d by the HMAC al"
5052                           "gorithm.",
5053                 .psize  = 152,
5054                 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
5055                           "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
5056                           "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
5057                           "\x29\xcd\x62\xa0",
5058         },
5059 };
5060
5061 static const struct hash_testvec hmac_sha3_256_tv_template[] = {
5062         {
5063                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5064                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5065                           "\x0b\x0b\x0b\x0b",
5066                 .ksize  = 20,
5067                 .plaintext = "Hi There",
5068                 .psize  = 8,
5069                 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
5070                           "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
5071                           "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
5072                           "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
5073         }, {
5074                 .key    = "Jefe",
5075                 .ksize  = 4,
5076                 .plaintext = "what do ya want for nothing?",
5077                 .psize  = 28,
5078                 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
5079                           "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
5080                           "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
5081                           "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
5082                 .np     = 4,
5083                 .tap    = { 7, 7, 7, 7 }
5084         }, {
5085                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5086                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5087                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5088                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5089                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5090                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5091                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5092                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5093                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5094                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5095                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5096                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5097                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5098                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5099                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5100                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5101                           "\xaa\xaa\xaa",
5102                 .ksize  = 131,
5103                 .plaintext = "Test Using Large"
5104                            "r Than Block-Siz"
5105                            "e Key - Hash Key"
5106                            " First",
5107                 .psize  = 54,
5108                 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
5109                           "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
5110                           "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
5111                           "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
5112         }, {
5113                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5114                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5115                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5116                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5117                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5118                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5119                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5120                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5121                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5122                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5123                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5124                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5125                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5126                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5127                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5128                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5129                           "\xaa\xaa\xaa",
5130                 .ksize  = 131,
5131                 .plaintext =
5132                           "This is a test u"
5133                           "sing a larger th"
5134                           "an block-size ke"
5135                           "y and a larger t"
5136                           "han block-size d"
5137                           "ata. The key nee"
5138                           "ds to be hashed "
5139                           "before being use"
5140                           "d by the HMAC al"
5141                           "gorithm.",
5142                 .psize  = 152,
5143                 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
5144                           "\x7a\xef\x87\x63\x26\x1e\x49\xad"
5145                           "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
5146                           "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
5147         },
5148 };
5149
5150 static const struct hash_testvec hmac_sha3_384_tv_template[] = {
5151         {
5152                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5153                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5154                           "\x0b\x0b\x0b\x0b",
5155                 .ksize  = 20,
5156                 .plaintext = "Hi There",
5157                 .psize  = 8,
5158                 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
5159                           "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
5160                           "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
5161                           "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
5162                           "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
5163                           "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
5164         }, {
5165                 .key    = "Jefe",
5166                 .ksize  = 4,
5167                 .plaintext = "what do ya want for nothing?",
5168                 .psize  = 28,
5169                 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
5170                           "\x67\x64\xd2\xed\x61\x90\x3f\x21"
5171                           "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
5172                           "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
5173                           "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
5174                           "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
5175                 .np     = 4,
5176                 .tap    = { 7, 7, 7, 7 }
5177         }, {
5178                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5179                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5180                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5181                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5182                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5183                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5184                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5185                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5186                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5187                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5188                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5189                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5190                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5191                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5192                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5193                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5194                           "\xaa\xaa\xaa",
5195                 .ksize  = 131,
5196                 .plaintext = "Test Using Large"
5197                            "r Than Block-Siz"
5198                            "e Key - Hash Key"
5199                            " First",
5200                 .psize  = 54,
5201                 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
5202                           "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
5203                           "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
5204                           "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
5205                           "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
5206                           "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
5207         }, {
5208                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5209                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5210                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5211                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5212                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5213                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5214                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5215                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5216                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5217                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5218                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5219                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5220                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5221                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5222                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5223                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5224                           "\xaa\xaa\xaa",
5225                 .ksize  = 131,
5226                 .plaintext =
5227                           "This is a test u"
5228                           "sing a larger th"
5229                           "an block-size ke"
5230                           "y and a larger t"
5231                           "han block-size d"
5232                           "ata. The key nee"
5233                           "ds to be hashed "
5234                           "before being use"
5235                           "d by the HMAC al"
5236                           "gorithm.",
5237                 .psize  = 152,
5238                 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
5239                           "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
5240                           "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
5241                           "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
5242                           "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
5243                           "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
5244         },
5245 };
5246
5247 static const struct hash_testvec hmac_sha3_512_tv_template[] = {
5248         {
5249                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5250                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5251                           "\x0b\x0b\x0b\x0b",
5252                 .ksize  = 20,
5253                 .plaintext = "Hi There",
5254                 .psize  = 8,
5255                 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
5256                           "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
5257                           "\xec\x15\x77\x0a\x7c\xab\xac\x53"
5258                           "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
5259                           "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
5260                           "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
5261                           "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
5262                           "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
5263         }, {
5264                 .key    = "Jefe",
5265                 .ksize  = 4,
5266                 .plaintext = "what do ya want for nothing?",
5267                 .psize  = 28,
5268                 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
5269                           "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
5270                           "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
5271                           "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
5272                           "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
5273                           "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
5274                           "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
5275                           "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
5276                 .np     = 4,
5277                 .tap    = { 7, 7, 7, 7 }
5278         }, {
5279                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5280                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5281                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5282                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5283                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5284                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5285                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5286                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5287                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5288                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5289                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5290                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5291                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5292                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5293                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5294                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5295                           "\xaa\xaa\xaa",
5296                 .ksize  = 131,
5297                 .plaintext = "Test Using Large"
5298                            "r Than Block-Siz"
5299                            "e Key - Hash Key"
5300                            " First",
5301                 .psize  = 54,
5302                 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
5303                           "\x90\xed\x69\x11\xa4\xb6\x55\x24"
5304                           "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
5305                           "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
5306                           "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
5307                           "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
5308                           "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
5309                           "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
5310         }, {
5311                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5312                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5313                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5314                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5315                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5316                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5317                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5318                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5319                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5320                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5321                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5322                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5323                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5324                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5325                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5326                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5327                           "\xaa\xaa\xaa",
5328                 .ksize  = 131,
5329                 .plaintext =
5330                           "This is a test u"
5331                           "sing a larger th"
5332                           "an block-size ke"
5333                           "y and a larger t"
5334                           "han block-size d"
5335                           "ata. The key nee"
5336                           "ds to be hashed "
5337                           "before being use"
5338                           "d by the HMAC al"
5339                           "gorithm.",
5340                 .psize  = 152,
5341                 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
5342                           "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
5343                           "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
5344                           "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
5345                           "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
5346                           "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
5347                           "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
5348                           "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
5349         },
5350 };
5351
5352 /*
5353  * Poly1305 test vectors from RFC7539 A.3.
5354  */
5355
5356 static const struct hash_testvec poly1305_tv_template[] = {
5357         { /* Test Vector #1 */
5358                 .plaintext      = "\x00\x00\x00\x00\x00\x00\x00\x00"
5359                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5360                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5361                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5362                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5363                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5364                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5365                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5366                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5367                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5368                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5369                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5370                 .psize          = 96,
5371                 .digest         = "\x00\x00\x00\x00\x00\x00\x00\x00"
5372                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5373         }, { /* Test Vector #2 */
5374                 .plaintext      = "\x00\x00\x00\x00\x00\x00\x00\x00"
5375                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5376                                   "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5377                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5378                                   "\x41\x6e\x79\x20\x73\x75\x62\x6d"
5379                                   "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5380                                   "\x6f\x20\x74\x68\x65\x20\x49\x45"
5381                                   "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5382                                   "\x64\x65\x64\x20\x62\x79\x20\x74"
5383                                   "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5384                                   "\x69\x62\x75\x74\x6f\x72\x20\x66"
5385                                   "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5386                                   "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5387                                   "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5388                                   "\x20\x70\x61\x72\x74\x20\x6f\x66"
5389                                   "\x20\x61\x6e\x20\x49\x45\x54\x46"
5390                                   "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5391                                   "\x74\x2d\x44\x72\x61\x66\x74\x20"
5392                                   "\x6f\x72\x20\x52\x46\x43\x20\x61"
5393                                   "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5394                                   "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5395                                   "\x20\x6d\x61\x64\x65\x20\x77\x69"
5396                                   "\x74\x68\x69\x6e\x20\x74\x68\x65"
5397                                   "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5398                                   "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5399                                   "\x45\x54\x46\x20\x61\x63\x74\x69"
5400                                   "\x76\x69\x74\x79\x20\x69\x73\x20"
5401                                   "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5402                                   "\x65\x64\x20\x61\x6e\x20\x22\x49"
5403                                   "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5404                                   "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5405                                   "\x22\x2e\x20\x53\x75\x63\x68\x20"
5406                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5407                                   "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5408                                   "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5409                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5410                                   "\x74\x73\x20\x69\x6e\x20\x49\x45"
5411                                   "\x54\x46\x20\x73\x65\x73\x73\x69"
5412                                   "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5413                                   "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5414                                   "\x77\x72\x69\x74\x74\x65\x6e\x20"
5415                                   "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5416                                   "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5417                                   "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5418                                   "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5419                                   "\x64\x65\x20\x61\x74\x20\x61\x6e"
5420                                   "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5421                                   "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5422                                   "\x20\x77\x68\x69\x63\x68\x20\x61"
5423                                   "\x72\x65\x20\x61\x64\x64\x72\x65"
5424                                   "\x73\x73\x65\x64\x20\x74\x6f",
5425                 .psize          = 407,
5426                 .digest         = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5427                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
5428         }, { /* Test Vector #3 */
5429                 .plaintext      = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5430                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5431                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5432                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5433                                   "\x41\x6e\x79\x20\x73\x75\x62\x6d"
5434                                   "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5435                                   "\x6f\x20\x74\x68\x65\x20\x49\x45"
5436                                   "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5437                                   "\x64\x65\x64\x20\x62\x79\x20\x74"
5438                                   "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5439                                   "\x69\x62\x75\x74\x6f\x72\x20\x66"
5440                                   "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5441                                   "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5442                                   "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5443                                   "\x20\x70\x61\x72\x74\x20\x6f\x66"
5444                                   "\x20\x61\x6e\x20\x49\x45\x54\x46"
5445                                   "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5446                                   "\x74\x2d\x44\x72\x61\x66\x74\x20"
5447                                   "\x6f\x72\x20\x52\x46\x43\x20\x61"
5448                                   "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5449                                   "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5450                                   "\x20\x6d\x61\x64\x65\x20\x77\x69"
5451                                   "\x74\x68\x69\x6e\x20\x74\x68\x65"
5452                                   "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5453                                   "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5454                                   "\x45\x54\x46\x20\x61\x63\x74\x69"
5455                                   "\x76\x69\x74\x79\x20\x69\x73\x20"
5456                                   "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5457                                   "\x65\x64\x20\x61\x6e\x20\x22\x49"
5458                                   "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5459                                   "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5460                                   "\x22\x2e\x20\x53\x75\x63\x68\x20"
5461                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5462                                   "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5463                                   "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5464                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5465                                   "\x74\x73\x20\x69\x6e\x20\x49\x45"
5466                                   "\x54\x46\x20\x73\x65\x73\x73\x69"
5467                                   "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5468                                   "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5469                                   "\x77\x72\x69\x74\x74\x65\x6e\x20"
5470                                   "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5471                                   "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5472                                   "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5473                                   "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5474                                   "\x64\x65\x20\x61\x74\x20\x61\x6e"
5475                                   "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5476                                   "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5477                                   "\x20\x77\x68\x69\x63\x68\x20\x61"
5478                                   "\x72\x65\x20\x61\x64\x64\x72\x65"
5479                                   "\x73\x73\x65\x64\x20\x74\x6f",
5480                 .psize          = 407,
5481                 .digest         = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
5482                                   "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
5483         }, { /* Test Vector #4 */
5484                 .plaintext      = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
5485                                   "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
5486                                   "\x47\x39\x17\xc1\x40\x2b\x80\x09"
5487                                   "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
5488                                   "\x27\x54\x77\x61\x73\x20\x62\x72"
5489                                   "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
5490                                   "\x6e\x64\x20\x74\x68\x65\x20\x73"
5491                                   "\x6c\x69\x74\x68\x79\x20\x74\x6f"
5492                                   "\x76\x65\x73\x0a\x44\x69\x64\x20"
5493                                   "\x67\x79\x72\x65\x20\x61\x6e\x64"
5494                                   "\x20\x67\x69\x6d\x62\x6c\x65\x20"
5495                                   "\x69\x6e\x20\x74\x68\x65\x20\x77"
5496                                   "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
5497                                   "\x20\x6d\x69\x6d\x73\x79\x20\x77"
5498                                   "\x65\x72\x65\x20\x74\x68\x65\x20"
5499                                   "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
5500                                   "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
5501                                   "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
5502                                   "\x72\x61\x74\x68\x73\x20\x6f\x75"
5503                                   "\x74\x67\x72\x61\x62\x65\x2e",
5504                 .psize          = 159,
5505                 .digest         = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
5506                                   "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
5507         }, { /* Test Vector #5 */
5508                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
5509                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5510                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5511                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5512                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5513                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
5514                 .psize          = 48,
5515                 .digest         = "\x03\x00\x00\x00\x00\x00\x00\x00"
5516                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5517         }, { /* Test Vector #6 */
5518                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
5519                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5520                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5521                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5522                                   "\x02\x00\x00\x00\x00\x00\x00\x00"
5523                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5524                 .psize          = 48,
5525                 .digest         = "\x03\x00\x00\x00\x00\x00\x00\x00"
5526                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5527         }, { /* Test Vector #7 */
5528                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5529                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5530                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5531                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5532                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5533                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5534                                   "\xf0\xff\xff\xff\xff\xff\xff\xff"
5535                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5536                                   "\x11\x00\x00\x00\x00\x00\x00\x00"
5537                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5538                 .psize          = 80,
5539                 .digest         = "\x05\x00\x00\x00\x00\x00\x00\x00"
5540                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5541         }, { /* Test Vector #8 */
5542                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5543                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5544                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5545                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5546                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5547                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5548                                   "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5549                                   "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5550                                   "\x01\x01\x01\x01\x01\x01\x01\x01"
5551                                   "\x01\x01\x01\x01\x01\x01\x01\x01",
5552                 .psize          = 80,
5553                 .digest         = "\x00\x00\x00\x00\x00\x00\x00\x00"
5554                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5555         }, { /* Test Vector #9 */
5556                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
5557                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5558                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5559                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5560                                   "\xfd\xff\xff\xff\xff\xff\xff\xff"
5561                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
5562                 .psize          = 48,
5563                 .digest         = "\xfa\xff\xff\xff\xff\xff\xff\xff"
5564                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
5565         }, { /* Test Vector #10 */
5566                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5567                                   "\x04\x00\x00\x00\x00\x00\x00\x00"
5568                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5569                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5570                                   "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
5571                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5572                                   "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5573                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
5574                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5575                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5576                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
5577                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5578                 .psize          = 96,
5579                 .digest         = "\x14\x00\x00\x00\x00\x00\x00\x00"
5580                                   "\x55\x00\x00\x00\x00\x00\x00\x00",
5581         }, { /* Test Vector #11 */
5582                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5583                                   "\x04\x00\x00\x00\x00\x00\x00\x00"
5584                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5585                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5586                                   "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
5587                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5588                                   "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5589                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
5590                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5591                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5592                 .psize          = 80,
5593                 .digest         = "\x13\x00\x00\x00\x00\x00\x00\x00"
5594                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5595         }, { /* Regression test for overflow in AVX2 implementation */
5596                 .plaintext      = "\xff\xff\xff\xff\xff\xff\xff\xff"
5597                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5598                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5599                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5600                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5601                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5602                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5603                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5604                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5605                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5606                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5607                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5608                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5609                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5610                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5611                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5612                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5613                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5614                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5615                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5616                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5617                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5618                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5619                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5620                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5621                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5622                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5623                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5624                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5625                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5626                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5627                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5628                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5629                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5630                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5631                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5632                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5633                                   "\xff\xff\xff\xff",
5634                 .psize          = 300,
5635                 .digest         = "\xfb\x5e\x96\xd8\x61\xd5\xc7\xc8"
5636                                   "\x78\xe5\x87\xcc\x2d\x5a\x22\xe1",
5637         }
5638 };
5639
5640 /*
5641  * DES test vectors.
5642  */
5643 static const struct cipher_testvec des_tv_template[] = {
5644         { /* From Applied Cryptography */
5645                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5646                 .klen   = 8,
5647                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5648                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5649                 .len    = 8,
5650         }, { /* Same key, different plaintext block */
5651                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5652                 .klen   = 8,
5653                 .ptext  = "\x22\x33\x44\x55\x66\x77\x88\x99",
5654                 .ctext  = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5655                 .len    = 8,
5656         }, { /* Sbox test from NBS */
5657                 .key    = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
5658                 .klen   = 8,
5659                 .ptext  = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
5660                 .ctext  = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5661                 .len    = 8,
5662         }, { /* Three blocks */
5663                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5664                 .klen   = 8,
5665                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5666                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5667                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
5668                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5669                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5670                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
5671                 .len    = 24,
5672         }, { /* Weak key */
5673                 .fail   = true,
5674                 .wk     = 1,
5675                 .key    = "\x01\x01\x01\x01\x01\x01\x01\x01",
5676                 .klen   = 8,
5677                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5678                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5679                 .len    = 8,
5680         }, { /* Two blocks -- for testing encryption across pages */
5681                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5682                 .klen   = 8,
5683                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5684                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5685                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5686                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5687                 .len    = 16,
5688                 .np     = 2,
5689                 .tap    = { 8, 8 }
5690         }, {
5691                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5692                 .klen   = 8,
5693                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5694                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
5695                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5696                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5697                 .len    = 16,
5698                 .np     = 2,
5699                 .tap    = { 8, 8 }
5700         }, {
5701                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5702                 .klen   = 8,
5703                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5704                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
5705                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5706                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5707                 .len    = 16,
5708                 .np     = 3,
5709                 .tap    = { 3, 12, 1 }
5710         }, { /* Four blocks -- for testing encryption with chunking */
5711                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5712                 .klen   = 8,
5713                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5714                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5715                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
5716                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5717                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5718                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5719                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
5720                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5721                 .len    = 32,
5722                 .np     = 3,
5723                 .tap    = { 14, 10, 8 }
5724         }, {
5725                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5726                 .klen   = 8,
5727                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5728                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5729                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
5730                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5731                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5732                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
5733                 .len    = 24,
5734                 .np     = 4,
5735                 .tap    = { 2, 1, 3, 18 }
5736         }, {
5737                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5738                 .klen   = 8,
5739                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5740                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5741                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5742                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5743                 .len    = 16,
5744                 .np     = 5,
5745                 .tap    = { 2, 2, 2, 2, 8 }
5746         }, {
5747                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5748                 .klen   = 8,
5749                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5750                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5751                 .len    = 8,
5752                 .np     = 8,
5753                 .tap    = { 1, 1, 1, 1, 1, 1, 1, 1 }
5754         }, { /* Generated with Crypto++ */
5755                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5756                 .klen   = 8,
5757                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5758                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5759                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5760                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5761                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5762                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5763                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5764                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5765                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5766                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5767                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5768                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5769                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5770                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5771                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5772                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5773                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5774                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5775                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5776                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5777                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5778                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5779                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5780                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5781                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5782                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5783                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5784                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5785                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5786                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5787                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5788                 .ctext  = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
5789                           "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
5790                           "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
5791                           "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
5792                           "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
5793                           "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
5794                           "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
5795                           "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
5796                           "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
5797                           "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
5798                           "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
5799                           "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
5800                           "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
5801                           "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
5802                           "\x2E\x51\x16\xCA\x09\x89\x54\x62"
5803                           "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
5804                           "\x62\xF0\x02\x58\x83\xAF\x30\x87"
5805                           "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
5806                           "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
5807                           "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
5808                           "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
5809                           "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
5810                           "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
5811                           "\xE9\x95\x61\x74\x12\xED\x07\xD7"
5812                           "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
5813                           "\x51\x96\x16\xF7\x94\x61\xB8\x87"
5814                           "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
5815                           "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
5816                           "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
5817                           "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
5818                           "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
5819                 .len    = 248,
5820                 .also_non_np = 1,
5821                 .np     = 3,
5822                 .tap    = { 248 - 10, 2, 8 },
5823         },
5824 };
5825
5826 static const struct cipher_testvec des_cbc_tv_template[] = {
5827         { /* From OpenSSL */
5828                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5829                 .klen   = 8,
5830                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5831                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5832                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5833                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5834                 .ctext  = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5835                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5836                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5837                 .len    = 24,
5838         }, { /* FIPS Pub 81 */
5839                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5840                 .klen   = 8,
5841                 .iv     = "\x12\x34\x56\x78\x90\xab\xcd\xef",
5842                 .ptext  = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
5843                 .ctext  = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5844                 .len    = 8,
5845         }, {
5846                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5847                 .klen   = 8,
5848                 .iv     = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5849                 .ptext  = "\x68\x65\x20\x74\x69\x6d\x65\x20",
5850                 .ctext  = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5851                 .len    = 8,
5852         }, {
5853                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5854                 .klen   = 8,
5855                 .iv     = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5856                 .ptext  = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5857                 .ctext  = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5858                 .len    = 8,
5859                 .np     = 2,
5860                 .tap    = { 4, 4 },
5861                 .also_non_np = 1,
5862         }, { /* Copy of openssl vector for chunk testing */
5863              /* From OpenSSL */
5864                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5865                 .klen   = 8,
5866                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5867                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5868                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5869                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5870                 .ctext  = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5871                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5872                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5873                 .len    = 24,
5874                 .np     = 2,
5875                 .tap    = { 13, 11 }
5876         }, { /* Generated with Crypto++ */
5877                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5878                 .klen   = 8,
5879                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5880                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5881                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5882                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5883                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5884                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5885                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5886                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5887                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5888                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5889                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5890                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5891                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5892                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5893                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5894                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5895                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5896                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5897                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5898                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5899                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5900                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5901                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5902                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5903                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5904                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5905                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5906                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5907                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5908                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5909                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5910                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5911                 .ctext  = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
5912                           "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5913                           "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5914                           "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5915                           "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5916                           "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5917                           "\x81\x72\x74\xDE\x30\x19\x69\x49"
5918                           "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5919                           "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5920                           "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5921                           "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5922                           "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5923                           "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5924                           "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5925                           "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5926                           "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5927                           "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5928                           "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5929                           "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5930                           "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5931                           "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5932                           "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5933                           "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5934                           "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5935                           "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5936                           "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5937                           "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5938                           "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5939                           "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5940                           "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5941                           "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5942                 .len    = 248,
5943                 .also_non_np = 1,
5944                 .np     = 3,
5945                 .tap    = { 248 - 10, 2, 8 },
5946         },
5947 };
5948
5949 static const struct cipher_testvec des_ctr_tv_template[] = {
5950         { /* Generated with Crypto++ */
5951                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5952                 .klen   = 8,
5953                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5954                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5955                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5956                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5957                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5958                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5959                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5960                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5961                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5962                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5963                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5964                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5965                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5966                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5967                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5968                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5969                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5970                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5971                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5972                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5973                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5974                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5975                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5976                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5977                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5978                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5979                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5980                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5981                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5982                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5983                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5984                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5985                 .ctext  = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5986                           "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5987                           "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5988                           "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5989                           "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5990                           "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5991                           "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5992                           "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5993                           "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5994                           "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5995                           "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5996                           "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5997                           "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5998                           "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5999                           "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
6000                           "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
6001                           "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
6002                           "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
6003                           "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
6004                           "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
6005                           "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
6006                           "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
6007                           "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
6008                           "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
6009                           "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
6010                           "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
6011                           "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
6012                           "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
6013                           "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
6014                           "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
6015                           "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
6016                 .len    = 248,
6017                 .also_non_np = 1,
6018                 .np     = 3,
6019                 .tap    = { 248 - 10, 2, 8 },
6020         }, { /* Generated with Crypto++ */
6021                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
6022                 .klen   = 8,
6023                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
6024                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
6025                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
6026                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
6027                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
6028                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
6029                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
6030                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
6031                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
6032                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
6033                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
6034                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
6035                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
6036                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
6037                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
6038                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
6039                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
6040                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
6041                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
6042                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
6043                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
6044                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
6045                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
6046                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
6047                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
6048                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
6049                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
6050                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
6051                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
6052                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
6053                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
6054                           "\xC6\x2F\xBB\x24\x8D\x19\x82",
6055                 .ctext  = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
6056                           "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
6057                           "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
6058                           "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
6059                           "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
6060                           "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
6061                           "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
6062                           "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
6063                           "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
6064                           "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
6065                           "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
6066                           "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
6067                           "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
6068                           "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
6069                           "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
6070                           "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
6071                           "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
6072                           "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
6073                           "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
6074                           "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
6075                           "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
6076                           "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
6077                           "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
6078                           "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
6079                           "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
6080                           "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
6081                           "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
6082                           "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
6083                           "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
6084                           "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
6085                           "\x91\x45\x05\x3E\x58\xBF\x32",
6086                 .len    = 247,
6087                 .also_non_np = 1,
6088                 .np     = 2,
6089                 .tap    = { 247 - 8, 8 },
6090         },
6091 };
6092
6093 static const struct cipher_testvec des3_ede_tv_template[] = {
6094         { /* These are from openssl */
6095                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6096                           "\x55\x55\x55\x55\x55\x55\x55\x55"
6097                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6098                 .klen   = 24,
6099                 .ptext  = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
6100                 .ctext  = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
6101                 .len    = 8,
6102         }, {
6103                 .key    = "\x03\x52\x02\x07\x67\x20\x82\x17"
6104                           "\x86\x02\x87\x66\x59\x08\x21\x98"
6105                           "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
6106                 .klen   = 24,
6107                 .ptext  = "\x73\x71\x75\x69\x67\x67\x6c\x65",
6108                 .ctext  = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
6109                 .len    = 8,
6110         }, {
6111                 .key    = "\x10\x46\x10\x34\x89\x98\x80\x20"
6112                           "\x91\x07\xd0\x15\x89\x19\x01\x01"
6113                           "\x19\x07\x92\x10\x98\x1a\x01\x01",
6114                 .klen   = 24,
6115                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
6116                 .ctext  = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
6117                 .len    = 8,
6118         }, { /* Generated with Crypto++ */
6119                 .key    = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
6120                           "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
6121                           "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
6122                 .klen   = 24,
6123                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6124                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6125                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6126                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6127                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6128                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6129                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6130                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6131                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6132                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6133                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6134                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6135                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6136                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6137                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6138                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6139                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6140                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6141                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6142                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6143                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6144                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6145                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6146                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6147                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6148                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6149                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6150                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6151                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6152                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6153                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6154                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6155                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6156                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6157                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6158                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6159                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6160                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6161                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6162                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6163                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6164                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6165                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6166                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6167                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6168                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6169                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6170                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6171                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6172                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6173                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6174                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6175                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6176                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6177                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6178                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6179                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6180                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6181                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6182                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6183                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6184                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6185                 .ctext  = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
6186                           "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
6187                           "\x81\x01\x04\x00\x76\xFA\xED\xD3"
6188                           "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
6189                           "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
6190                           "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
6191                           "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
6192                           "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
6193                           "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
6194                           "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
6195                           "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
6196                           "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
6197                           "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
6198                           "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
6199                           "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
6200                           "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
6201                           "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
6202                           "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
6203                           "\x45\x86\x50\x01\x70\x35\x99\x92"
6204                           "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
6205                           "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
6206                           "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
6207                           "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
6208                           "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
6209                           "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
6210                           "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
6211                           "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
6212                           "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
6213                           "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
6214                           "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
6215                           "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
6216                           "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
6217                           "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
6218                           "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
6219                           "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
6220                           "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
6221                           "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
6222                           "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
6223                           "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
6224                           "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
6225                           "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
6226                           "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
6227                           "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
6228                           "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
6229                           "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
6230                           "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
6231                           "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
6232                           "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
6233                           "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
6234                           "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
6235                           "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
6236                           "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
6237                           "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
6238                           "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
6239                           "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
6240                           "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
6241                           "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
6242                           "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
6243                           "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
6244                           "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
6245                           "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
6246                           "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
6247                 .len    = 496,
6248                 .also_non_np = 1,
6249                 .np     = 3,
6250                 .tap    = { 496 - 20, 4, 16 },
6251         },
6252 };
6253
6254 static const struct cipher_testvec des3_ede_cbc_tv_template[] = {
6255         { /* Generated from openssl */
6256                 .key    = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
6257                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
6258                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
6259                 .klen   = 24,
6260                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
6261                 .ptext  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
6262                           "\x53\x20\x63\x65\x65\x72\x73\x74"
6263                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
6264                           "\x20\x79\x65\x53\x72\x63\x74\x65"
6265                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
6266                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
6267                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
6268                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
6269                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
6270                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
6271                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
6272                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
6273                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
6274                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
6275                           "\x63\x65\x65\x72\x73\x74\x54\x20"
6276                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
6277                 .ctext  = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
6278                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
6279                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
6280                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
6281                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
6282                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
6283                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
6284                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
6285                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
6286                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
6287                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
6288                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
6289                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
6290                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
6291                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
6292                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
6293                 .len    = 128,
6294         }, { /* Generated with Crypto++ */
6295                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6296                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6297                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6298                 .klen   = 24,
6299                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6300                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6301                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6302                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6303                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6304                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6305                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6306                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6307                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6308                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6309                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6310                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6311                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6312                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6313                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6314                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6315                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6316                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6317                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6318                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6319                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6320                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6321                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6322                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6323                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6324                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6325                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6326                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6327                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6328                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6329                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6330                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6331                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6332                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6333                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6334                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6335                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6336                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6337                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6338                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6339                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6340                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6341                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6342                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6343                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6344                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6345                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6346                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6347                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6348                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6349                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6350                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6351                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6352                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6353                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6354                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6355                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6356                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6357                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6358                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6359                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6360                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6361                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6362                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6363                 .ctext  = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
6364                           "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
6365                           "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
6366                           "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
6367                           "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
6368                           "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
6369                           "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
6370                           "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
6371                           "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
6372                           "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
6373                           "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
6374                           "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
6375                           "\x11\x35\x61\x94\x88\x7B\x1C\x48"
6376                           "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
6377                           "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
6378                           "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
6379                           "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
6380                           "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
6381                           "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
6382                           "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
6383                           "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
6384                           "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
6385                           "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
6386                           "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
6387                           "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
6388                           "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
6389                           "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
6390                           "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
6391                           "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
6392                           "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
6393                           "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
6394                           "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
6395                           "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
6396                           "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
6397                           "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
6398                           "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
6399                           "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
6400                           "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
6401                           "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
6402                           "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
6403                           "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
6404                           "\x73\x50\x08\x56\x20\x9B\x94\x23"
6405                           "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
6406                           "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
6407                           "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
6408                           "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
6409                           "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
6410                           "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
6411                           "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
6412                           "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
6413                           "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
6414                           "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
6415                           "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
6416                           "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
6417                           "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
6418                           "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
6419                           "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
6420                           "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
6421                           "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
6422                           "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
6423                           "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
6424                           "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
6425                 .len    = 496,
6426                 .also_non_np = 1,
6427                 .np     = 3,
6428                 .tap    = { 496 - 20, 4, 16 },
6429         },
6430 };
6431
6432 static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
6433         { /* Generated with Crypto++ */
6434                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6435                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6436                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6437                 .klen   = 24,
6438                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6439                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6440                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6441                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6442                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6443                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6444                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6445                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6446                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6447                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6448                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6449                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6450                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6451                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6452                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6453                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6454                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6455                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6456                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6457                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6458                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6459                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6460                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6461                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6462                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6463                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6464                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6465                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6466                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6467                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6468                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6469                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6470                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6471                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6472                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6473                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6474                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6475                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6476                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6477                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6478                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6479                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6480                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6481                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6482                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6483                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6484                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6485                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6486                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6487                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6488                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6489                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6490                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6491                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6492                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6493                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6494                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6495                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6496                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6497                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6498                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6499                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6500                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6501                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6502                 .ctext  = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6503                           "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6504                           "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6505                           "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6506                           "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6507                           "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6508                           "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6509                           "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6510                           "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6511                           "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6512                           "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6513                           "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6514                           "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6515                           "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6516                           "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6517                           "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6518                           "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6519                           "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6520                           "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6521                           "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6522                           "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6523                           "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6524                           "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6525                           "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6526                           "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6527                           "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6528                           "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6529                           "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6530                           "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6531                           "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6532                           "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6533                           "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6534                           "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6535                           "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6536                           "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6537                           "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6538                           "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6539                           "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6540                           "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6541                           "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6542                           "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6543                           "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6544                           "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6545                           "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6546                           "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6547                           "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6548                           "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6549                           "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6550                           "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6551                           "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6552                           "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6553                           "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6554                           "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6555                           "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6556                           "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6557                           "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6558                           "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6559                           "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6560                           "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6561                           "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6562                           "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6563                           "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6564                 .len    = 496,
6565                 .also_non_np = 1,
6566                 .np     = 3,
6567                 .tap    = { 496 - 20, 4, 16 },
6568         }, { /* Generated with Crypto++ */
6569                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6570                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6571                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6572                 .klen   = 24,
6573                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6574                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6575                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6576                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6577                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6578                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6579                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6580                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6581                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6582                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6583                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6584                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6585                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6586                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6587                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6588                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6589                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6590                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6591                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6592                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6593                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6594                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6595                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6596                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6597                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6598                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6599                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6600                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6601                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6602                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6603                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6604                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6605                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6606                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6607                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6608                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6609                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6610                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6611                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6612                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6613                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6614                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6615                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6616                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6617                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6618                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6619                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6620                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6621                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6622                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6623                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6624                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6625                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6626                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6627                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6628                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6629                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6630                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6631                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6632                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6633                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6634                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6635                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6636                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6637                           "\x2E\xB1\x18",
6638                 .ctext  = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6639                           "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6640                           "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6641                           "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6642                           "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6643                           "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6644                           "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6645                           "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6646                           "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6647                           "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6648                           "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6649                           "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6650                           "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6651                           "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6652                           "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6653                           "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6654                           "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6655                           "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6656                           "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6657                           "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6658                           "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6659                           "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6660                           "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6661                           "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6662                           "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6663                           "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6664                           "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6665                           "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6666                           "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6667                           "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6668                           "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6669                           "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6670                           "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6671                           "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6672                           "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6673                           "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6674                           "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6675                           "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6676                           "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6677                           "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6678                           "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6679                           "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6680                           "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6681                           "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6682                           "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6683                           "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6684                           "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6685                           "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6686                           "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6687                           "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6688                           "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6689                           "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6690                           "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6691                           "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6692                           "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6693                           "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6694                           "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6695                           "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6696                           "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6697                           "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6698                           "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6699                           "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6700                           "\xF2\x79\xD9",
6701                 .len    = 499,
6702                 .also_non_np = 1,
6703                 .np     = 2,
6704                 .tap    = { 499 - 16, 16 },
6705         },
6706 };
6707
6708 /*
6709  * Blowfish test vectors.
6710  */
6711 static const struct cipher_testvec bf_tv_template[] = {
6712         { /* DES test vectors from OpenSSL */
6713                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
6714                 .klen   = 8,
6715                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
6716                 .ctext  = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6717                 .len    = 8,
6718         }, {
6719                 .key    = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6720                 .klen   = 8,
6721                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6722                 .ctext  = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6723                 .len    = 8,
6724         }, {
6725                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6726                 .klen   = 8,
6727                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6728                 .ctext  = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6729                 .len    = 8,
6730         }, { /* Vary the keylength... */
6731                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6732                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6733                 .klen   = 16,
6734                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6735                 .ctext  = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6736                 .len    = 8,
6737         }, {
6738                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6739                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6740                           "\x00\x11\x22\x33\x44",
6741                 .klen   = 21,
6742                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6743                 .ctext  = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6744                 .len    = 8,
6745         }, { /* Generated with bf488 */
6746                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6747                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6748                           "\x00\x11\x22\x33\x44\x55\x66\x77"
6749                           "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6750                           "\x58\x40\x23\x64\x1a\xba\x61\x76"
6751                           "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6752                           "\xff\xff\xff\xff\xff\xff\xff\xff",
6753                 .klen   = 56,
6754                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6755                 .ctext  = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6756                 .len    = 8,
6757         }, { /* Generated with Crypto++ */
6758                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6759                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6760                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6761                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6762                 .klen   = 32,
6763                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6764                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6765                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6766                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6767                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6768                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6769                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6770                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6771                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6772                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6773                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6774                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6775                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6776                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6777                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6778                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6779                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6780                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6781                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6782                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6783                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6784                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6785                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6786                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6787                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6788                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6789                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6790                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6791                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6792                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6793                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6794                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6795                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6796                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6797                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6798                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6799                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6800                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6801                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6802                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6803                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6804                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6805                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6806                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6807                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6808                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6809                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6810                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6811                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6812                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6813                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6814                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6815                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6816                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6817                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6818                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6819                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6820                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6821                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6822                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6823                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6824                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6825                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6826                 .ctext  = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6827                           "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6828                           "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6829                           "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6830                           "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6831                           "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6832                           "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6833                           "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6834                           "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6835                           "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6836                           "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6837                           "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6838                           "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6839                           "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6840                           "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6841                           "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6842                           "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6843                           "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6844                           "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6845                           "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6846                           "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6847                           "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6848                           "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6849                           "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6850                           "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6851                           "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6852                           "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6853                           "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6854                           "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6855                           "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6856                           "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6857                           "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6858                           "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6859                           "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6860                           "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6861                           "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6862                           "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6863                           "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6864                           "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6865                           "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6866                           "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6867                           "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6868                           "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6869                           "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6870                           "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6871                           "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6872                           "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6873                           "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6874                           "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6875                           "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6876                           "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6877                           "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6878                           "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6879                           "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6880                           "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6881                           "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6882                           "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6883                           "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6884                           "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6885                           "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6886                           "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6887                           "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6888                           "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6889                 .len    = 504,
6890                 .also_non_np = 1,
6891                 .np     = 3,
6892                 .tap    = { 504 - 10, 2, 8 },
6893         },
6894 };
6895
6896 static const struct cipher_testvec bf_cbc_tv_template[] = {
6897         { /* From OpenSSL */
6898                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6899                           "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6900                 .klen   = 16,
6901                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6902                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
6903                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
6904                           "\x68\x65\x20\x74\x69\x6d\x65\x20"
6905                           "\x66\x6f\x72\x20\x00\x00\x00\x00",
6906                 .ctext  = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
6907                           "\x05\xb1\x56\xe2\x74\x03\x97\x93"
6908                           "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
6909                           "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
6910                 .len    = 32,
6911         }, { /* Generated with Crypto++ */
6912                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6913                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6914                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6915                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6916                 .klen   = 32,
6917                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6918                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6919                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6920                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6921                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6922                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6923                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6924                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6925                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6926                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6927                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6928                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6929                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6930                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6931                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6932                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6933                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6934                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6935                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6936                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6937                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6938                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6939                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6940                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6941                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6942                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6943                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6944                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6945                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6946                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6947                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6948                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6949                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6950                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6951                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6952                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6953                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6954                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6955                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6956                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6957                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6958                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6959                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6960                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6961                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6962                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6963                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6964                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6965                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6966                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6967                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6968                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6969                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6970                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6971                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6972                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6973                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6974                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6975                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6976                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6977                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6978                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6979                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6980                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6981                 .ctext  = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
6982                           "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
6983                           "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
6984                           "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
6985                           "\x01\x9C\x93\x63\x51\x60\x82\xD2"
6986                           "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
6987                           "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
6988                           "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
6989                           "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
6990                           "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
6991                           "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
6992                           "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
6993                           "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
6994                           "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
6995                           "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
6996                           "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
6997                           "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
6998                           "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
6999                           "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7000                           "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7001                           "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7002                           "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7003                           "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7004                           "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7005                           "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7006                           "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7007                           "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7008                           "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7009                           "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7010                           "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7011                           "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7012                           "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7013                           "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7014                           "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7015                           "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7016                           "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7017                           "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7018                           "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7019                           "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7020                           "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7021                           "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7022                           "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7023                           "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7024                           "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7025                           "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7026                           "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7027                           "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7028                           "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7029                           "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7030                           "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7031                           "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7032                           "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7033                           "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7034                           "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7035                           "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7036                           "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7037                           "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7038                           "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7039                           "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7040                           "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7041                           "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7042                           "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7043                           "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7044                 .len    = 504,
7045                 .also_non_np = 1,
7046                 .np     = 3,
7047                 .tap    = { 504 - 10, 2, 8 },
7048         },
7049 };
7050
7051 static const struct cipher_testvec bf_ctr_tv_template[] = {
7052         { /* Generated with Crypto++ */
7053                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7054                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7055                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7056                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7057                 .klen   = 32,
7058                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7059                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7060                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7061                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7062                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7063                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7064                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7065                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7066                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7067                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7068                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7069                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7070                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7071                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7072                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7073                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7074                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7075                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7076                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7077                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7078                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7079                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7080                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7081                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7082                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7083                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7084                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7085                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7086                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7087                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7088                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7089                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7090                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7091                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7092                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7093                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7094                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7095                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7096                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7097                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7098                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7099                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7100                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7101                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7102                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7103                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7104                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7105                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7106                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7107                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7108                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7109                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7110                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7111                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7112                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7113                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7114                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7115                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7116                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7117                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7118                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7119                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7120                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7121                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7122                 .ctext  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7123                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7124                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7125                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7126                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7127                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7128                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7129                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7130                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7131                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7132                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7133                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7134                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7135                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7136                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7137                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7138                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7139                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7140                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7141                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7142                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7143                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7144                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7145                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7146                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7147                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7148                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7149                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7150                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7151                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7152                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7153                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7154                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7155                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7156                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7157                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7158                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7159                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7160                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7161                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7162                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7163                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7164                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7165                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7166                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7167                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7168                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7169                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7170                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7171                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7172                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7173                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7174                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7175                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7176                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7177                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7178                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7179                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7180                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7181                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7182                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7183                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7184                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7185                 .len    = 504,
7186         }, { /* Generated with Crypto++ */
7187                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7188                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7189                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7190                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7191                 .klen   = 32,
7192                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7193                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7194                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7195                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7196                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7197                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7198                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7199                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7200                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7201                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7202                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7203                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7204                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7205                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7206                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7207                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7208                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7209                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7210                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7211                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7212                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7213                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7214                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7215                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7216                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7217                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7218                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7219                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7220                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7221                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7222                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7223                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7224                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7225                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7226                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7227                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7228                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7229                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7230                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7231                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7232                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7233                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7234                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7235                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7236                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7237                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7238                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7239                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7240                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7241                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7242                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7243                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7244                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7245                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7246                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7247                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7248                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7249                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7250                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7251                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7252                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7253                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7254                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7255                           "\x2B\xC2\x59\xF0\x64\xFB\x92",
7256                 .ctext  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7257                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7258                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7259                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7260                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7261                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7262                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7263                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7264                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7265                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7266                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7267                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7268                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7269                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7270                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7271                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7272                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7273                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7274                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7275                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7276                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7277                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7278                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7279                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7280                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7281                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7282                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7283                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7284                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7285                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7286                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7287                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7288                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7289                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7290                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7291                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7292                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7293                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7294                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7295                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7296                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7297                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7298                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7299                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7300                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7301                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7302                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7303                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7304                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7305                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7306                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7307                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7308                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7309                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7310                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7311                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7312                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7313                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7314                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7315                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7316                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7317                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7318                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7319                 .len    = 503,
7320                 .also_non_np = 1,
7321                 .np     = 2,
7322                 .tap    = { 503 - 8, 8 },
7323         }, { /* Generated with Crypto++ */
7324                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7325                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7326                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7327                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7328                 .klen   = 32,
7329                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7330                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7331                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7332                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7333                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7334                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7335                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7336                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7337                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7338                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7339                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7340                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7341                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7342                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7343                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7344                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7345                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7346                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7347                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7348                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7349                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7350                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7351                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7352                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7353                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7354                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7355                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7356                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7357                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7358                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7359                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7360                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7361                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7362                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7363                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7364                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7365                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7366                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7367                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7368                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7369                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7370                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7371                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7372                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7373                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7374                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7375                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7376                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7377                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7378                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7379                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7380                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7381                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7382                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7383                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7384                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7385                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7386                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7387                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7388                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7389                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7390                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7391                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7392                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7393                 .ctext  = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
7394                           "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7395                           "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7396                           "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7397                           "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7398                           "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7399                           "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7400                           "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7401                           "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7402                           "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7403                           "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7404                           "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7405                           "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7406                           "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7407                           "\x0B\x82\x59\x14\x26\x67\x08\x09"
7408                           "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7409                           "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7410                           "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7411                           "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7412                           "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7413                           "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7414                           "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7415                           "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7416                           "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7417                           "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7418                           "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7419                           "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7420                           "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7421                           "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7422                           "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7423                           "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7424                           "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7425                           "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7426                           "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7427                           "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7428                           "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7429                           "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7430                           "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7431                           "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7432                           "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7433                           "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7434                           "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7435                           "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7436                           "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7437                           "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7438                           "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7439                           "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7440                           "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7441                           "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7442                           "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7443                           "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7444                           "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7445                           "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7446                           "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7447                           "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7448                           "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7449                           "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7450                           "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7451                           "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7452                           "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7453                           "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7454                           "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7455                           "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
7456                 .len    = 504,
7457         },
7458 };
7459
7460 /*
7461  * Twofish test vectors.
7462  */
7463 static const struct cipher_testvec tf_tv_template[] = {
7464         {
7465                 .key    = zeroed_string,
7466                 .klen   = 16,
7467                 .ptext  = zeroed_string,
7468                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7469                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7470                 .len    = 16,
7471         }, {
7472                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7473                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7474                           "\x00\x11\x22\x33\x44\x55\x66\x77",
7475                 .klen   = 24,
7476                 .ptext  = zeroed_string,
7477                 .ctext  = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
7478                           "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
7479                 .len    = 16,
7480         }, {
7481                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7482                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7483                           "\x00\x11\x22\x33\x44\x55\x66\x77"
7484                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
7485                 .klen   = 32,
7486                 .ptext  = zeroed_string,
7487                 .ctext  = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
7488                           "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
7489                 .len    = 16,
7490         }, { /* Generated with Crypto++ */
7491                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
7492                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
7493                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
7494                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
7495                 .klen   = 32,
7496                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7497                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7498                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7499                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7500                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7501                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7502                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7503                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7504                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7505                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7506                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7507                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7508                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7509                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7510                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7511                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7512                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7513                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7514                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7515                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7516                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7517                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7518                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7519                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7520                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7521                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7522                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7523                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7524                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7525                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7526                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7527                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7528                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7529                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7530                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7531                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7532                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7533                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7534                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7535                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7536                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7537                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7538                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7539                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7540                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7541                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7542                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7543                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7544                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7545                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7546                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7547                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7548                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7549                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7550                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7551                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7552                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7553                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7554                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7555                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7556                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7557                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7558                 .ctext  = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
7559                           "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
7560                           "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
7561                           "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
7562                           "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
7563                           "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
7564                           "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
7565                           "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
7566                           "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
7567                           "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
7568                           "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
7569                           "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
7570                           "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
7571                           "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
7572                           "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
7573                           "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
7574                           "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
7575                           "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
7576                           "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
7577                           "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
7578                           "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
7579                           "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
7580                           "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
7581                           "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
7582                           "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
7583                           "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
7584                           "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
7585                           "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
7586                           "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
7587                           "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
7588                           "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
7589                           "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
7590                           "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
7591                           "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
7592                           "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
7593                           "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
7594                           "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
7595                           "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
7596                           "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
7597                           "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
7598                           "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
7599                           "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
7600                           "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
7601                           "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
7602                           "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
7603                           "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
7604                           "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
7605                           "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
7606                           "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
7607                           "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
7608                           "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
7609                           "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
7610                           "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
7611                           "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
7612                           "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
7613                           "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
7614                           "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
7615                           "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
7616                           "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
7617                           "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
7618                           "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
7619                           "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
7620                 .len    = 496,
7621                 .also_non_np = 1,
7622                 .np     = 3,
7623                 .tap    = { 496 - 20, 4, 16 },
7624         },
7625 };
7626
7627 static const struct cipher_testvec tf_cbc_tv_template[] = {
7628         { /* Generated with Nettle */
7629                 .key    = zeroed_string,
7630                 .klen   = 16,
7631                 .iv     = zeroed_string,
7632                 .ptext  = zeroed_string,
7633                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7634                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7635                 .len    = 16,
7636         }, {
7637                 .key    = zeroed_string,
7638                 .klen   = 16,
7639                 .iv     = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7640                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7641                 .ptext  = zeroed_string,
7642                 .ctext  = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7643                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7644                 .len    = 16,
7645         }, {
7646                 .key    = zeroed_string,
7647                 .klen   = 16,
7648                 .iv     = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7649                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7650                 .ptext  = zeroed_string,
7651                 .ctext  = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7652                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7653                 .len    = 16,
7654         }, {
7655                 .key    = zeroed_string,
7656                 .klen   = 16,
7657                 .iv     = zeroed_string,
7658                 .ptext  = zeroed_string,
7659                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7660                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
7661                           "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7662                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
7663                           "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7664                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7665                 .len    = 48,
7666         }, { /* Generated with Crypto++ */
7667                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7668                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7669                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7670                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7671                 .klen   = 32,
7672                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7673                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7674                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7675                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7676                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7677                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7678                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7679                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7680                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7681                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7682                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7683                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7684                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7685                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7686                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7687                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7688                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7689                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7690                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7691                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7692                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7693                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7694                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7695                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7696                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7697                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7698                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7699                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7700                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7701                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7702                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7703                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7704                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7705                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7706                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7707                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7708                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7709                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7710                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7711                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7712                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7713                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7714                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7715                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7716                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7717                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7718                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7719                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7720                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7721                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7722                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7723                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7724                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7725                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7726                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7727                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7728                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7729                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7730                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7731                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7732                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7733                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7734                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7735                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7736                 .ctext  = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
7737                           "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
7738                           "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
7739                           "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
7740                           "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
7741                           "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
7742                           "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
7743                           "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
7744                           "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
7745                           "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
7746                           "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
7747                           "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
7748                           "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
7749                           "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
7750                           "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
7751                           "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7752                           "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7753                           "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7754                           "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7755                           "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7756                           "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7757                           "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7758                           "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7759                           "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7760                           "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7761                           "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7762                           "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7763                           "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7764                           "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7765                           "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7766                           "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7767                           "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7768                           "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7769                           "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7770                           "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7771                           "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7772                           "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7773                           "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7774                           "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7775                           "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7776                           "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7777                           "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7778                           "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7779                           "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7780                           "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7781                           "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7782                           "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7783                           "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7784                           "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7785                           "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7786                           "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7787                           "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7788                           "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7789                           "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7790                           "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7791                           "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7792                           "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7793                           "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7794                           "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7795                           "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7796                           "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7797                           "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
7798                 .len    = 496,
7799                 .also_non_np = 1,
7800                 .np     = 3,
7801                 .tap    = { 496 - 20, 4, 16 },
7802         },
7803 };
7804
7805 static const struct cipher_testvec tf_ctr_tv_template[] = {
7806         { /* Generated with Crypto++ */
7807                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7808                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7809                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7810                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7811                 .klen   = 32,
7812                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7813                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7814                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7815                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7816                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7817                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7818                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7819                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7820                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7821                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7822                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7823                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7824                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7825                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7826                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7827                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7828                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7829                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7830                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7831                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7832                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7833                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7834                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7835                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7836                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7837                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7838                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7839                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7840                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7841                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7842                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7843                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7844                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7845                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7846                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7847                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7848                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7849                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7850                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7851                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7852                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7853                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7854                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7855                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7856                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7857                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7858                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7859                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7860                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7861                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7862                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7863                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7864                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7865                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7866                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7867                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7868                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7869                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7870                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7871                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7872                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7873                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7874                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7875                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7876                 .ctext  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7877                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7878                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7879                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7880                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7881                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7882                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7883                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7884                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7885                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7886                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7887                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7888                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7889                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7890                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7891                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7892                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7893                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7894                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7895                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7896                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7897                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7898                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7899                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7900                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7901                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7902                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7903                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7904                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7905                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7906                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7907                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7908                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7909                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7910                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7911                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7912                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7913                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7914                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7915                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7916                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7917                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7918                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7919                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7920                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7921                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7922                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7923                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7924                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7925                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7926                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7927                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7928                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7929                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7930                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7931                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7932                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7933                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7934                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7935                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7936                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7937                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
7938                 .len    = 496,
7939         }, { /* Generated with Crypto++ */
7940                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7941                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7942                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7943                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7944                 .klen   = 32,
7945                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7946                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7947                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7948                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7949                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7950                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7951                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7952                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7953                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7954                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7955                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7956                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7957                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7958                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7959                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7960                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7961                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7962                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7963                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7964                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7965                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7966                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7967                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7968                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7969                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7970                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7971                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7972                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7973                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7974                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7975                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7976                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7977                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7978                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7979                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7980                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7981                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7982                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7983                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7984                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7985                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7986                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7987                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7988                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7989                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7990                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7991                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7992                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7993                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7994                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7995                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7996                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7997                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7998                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7999                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8000                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8001                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8002                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8003                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8004                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8005                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8006                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8007                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8008                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8009                 .ctext  = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
8010                           "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
8011                           "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
8012                           "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
8013                           "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
8014                           "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
8015                           "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
8016                           "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
8017                           "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
8018                           "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
8019                           "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
8020                           "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
8021                           "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
8022                           "\x39\x18\x09\xA4\x82\x59\x78\xE7"
8023                           "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
8024                           "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
8025                           "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
8026                           "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
8027                           "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
8028                           "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
8029                           "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
8030                           "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
8031                           "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
8032                           "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
8033                           "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
8034                           "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
8035                           "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
8036                           "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
8037                           "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
8038                           "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
8039                           "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
8040                           "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
8041                           "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
8042                           "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
8043                           "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
8044                           "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
8045                           "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
8046                           "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
8047                           "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
8048                           "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
8049                           "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
8050                           "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
8051                           "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
8052                           "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
8053                           "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
8054                           "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
8055                           "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
8056                           "\xDE\x55\x1B\x50\x14\x53\x44\x17"
8057                           "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
8058                           "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
8059                           "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
8060                           "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
8061                           "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
8062                           "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
8063                           "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
8064                           "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
8065                           "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
8066                           "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
8067                           "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
8068                           "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
8069                           "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
8070                           "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
8071                 .len    = 496,
8072         }, { /* Generated with Crypto++ */
8073                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8074                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8075                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8076                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8077                 .klen   = 32,
8078                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8079                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8080                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8081                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8082                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8083                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8084                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8085                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8086                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8087                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8088                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8089                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8090                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8091                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8092                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8093                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8094                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8095                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8096                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8097                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8098                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8099                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8100                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8101                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8102                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8103                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8104                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8105                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8106                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8107                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8108                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8109                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8110                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8111                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8112                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8113                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8114                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8115                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8116                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8117                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8118                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8119                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8120                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8121                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8122                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8123                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8124                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8125                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8126                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8127                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8128                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8129                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8130                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8131                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8132                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8133                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8134                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8135                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8136                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8137                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8138                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8139                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8140                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8141                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8142                           "\x2B\xC2\x59",
8143                 .ctext  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
8144                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
8145                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
8146                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
8147                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
8148                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
8149                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
8150                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
8151                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
8152                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
8153                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
8154                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
8155                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
8156                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
8157                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
8158                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
8159                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
8160                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
8161                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
8162                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8163                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8164                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8165                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8166                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8167                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8168                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8169                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8170                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8171                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8172                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8173                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8174                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
8175                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
8176                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
8177                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
8178                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
8179                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
8180                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
8181                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
8182                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
8183                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
8184                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
8185                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
8186                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
8187                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
8188                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
8189                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
8190                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
8191                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
8192                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
8193                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
8194                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8195                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8196                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8197                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8198                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8199                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8200                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8201                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8202                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
8203                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
8204                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
8205                           "\x6C\x82\x9D",
8206                 .len    = 499,
8207                 .also_non_np = 1,
8208                 .np     = 2,
8209                 .tap    = { 499 - 16, 16 },
8210         },
8211 };
8212
8213 static const struct cipher_testvec tf_lrw_tv_template[] = {
8214         /* Generated from AES-LRW test vectors */
8215         {
8216                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8217                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8218                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8219                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8220                 .klen   = 32,
8221                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8222                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8223                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8224                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8225                 .ctext  = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
8226                           "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
8227                 .len    = 16,
8228         }, {
8229                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8230                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8231                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8232                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8233                 .klen   = 32,
8234                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8235                           "\x00\x00\x00\x00\x00\x00\x00\x02",
8236                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8237                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8238                 .ctext  = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
8239                           "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
8240                 .len    = 16,
8241         }, {
8242                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8243                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8244                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8245                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8246                 .klen   = 32,
8247                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8248                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8249                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8250                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8251                 .ctext  = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
8252                           "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
8253                 .len    = 16,
8254         }, {
8255                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8256                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8257                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8258                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8259                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8260                 .klen   = 40,
8261                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8262                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8263                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8264                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8265                 .ctext  = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
8266                           "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
8267                 .len    = 16,
8268         }, {
8269                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8270                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8271                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8272                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8273                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8274                 .klen   = 40,
8275                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8276                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8277                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8278                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8279                 .ctext  = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
8280                           "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
8281                 .len    = 16,
8282         }, {
8283                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8284                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8285                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8286                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8287                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8288                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8289                 .klen   = 48,
8290                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8291                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8292                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8293                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8294                 .ctext  = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
8295                           "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
8296                 .len    = 16,
8297         }, {
8298                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8299                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8300                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8301                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8302                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8303                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8304                 .klen   = 48,
8305                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8306                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8307                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8308                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8309                 .ctext  = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
8310                           "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
8311                 .len    = 16,
8312         }, {
8313                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8314                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8315                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8316                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8317                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8318                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8319                 .klen   = 48,
8320                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8321                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8322                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
8323                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8324                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8325                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8326                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8327                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8328                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8329                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8330                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8331                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8332                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8333                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8334                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8335                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8336                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8337                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8338                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8339                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8340                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8341                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8342                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8343                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8344                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8345                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8346                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8347                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8348                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8349                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8350                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8351                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8352                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8353                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8354                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8355                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8356                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8357                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8358                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8359                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8360                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8361                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8362                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8363                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8364                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8365                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8366                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8367                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8368                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8369                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8370                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8371                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8372                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8373                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8374                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8375                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8376                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8377                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8378                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8379                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8380                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8381                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8382                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8383                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8384                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8385                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
8386                 .ctext  = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
8387                           "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8388                           "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8389                           "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8390                           "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8391                           "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8392                           "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8393                           "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8394                           "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8395                           "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8396                           "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8397                           "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8398                           "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8399                           "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8400                           "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8401                           "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8402                           "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8403                           "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8404                           "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8405                           "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8406                           "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8407                           "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8408                           "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8409                           "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8410                           "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8411                           "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8412                           "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8413                           "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8414                           "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8415                           "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8416                           "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8417                           "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8418                           "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8419                           "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8420                           "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8421                           "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8422                           "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8423                           "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8424                           "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8425                           "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8426                           "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8427                           "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8428                           "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8429                           "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8430                           "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8431                           "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8432                           "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8433                           "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8434                           "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8435                           "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8436                           "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8437                           "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8438                           "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8439                           "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8440                           "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8441                           "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8442                           "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8443                           "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8444                           "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8445                           "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8446                           "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8447                           "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8448                           "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8449                           "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
8450                 .len    = 512,
8451                 .also_non_np = 1,
8452                 .np     = 3,
8453                 .tap    = { 512 - 20, 4, 16 },
8454         },
8455 };
8456
8457 static const struct cipher_testvec tf_xts_tv_template[] = {
8458         /* Generated from AES-XTS test vectors */
8459 {
8460                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
8461                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8462                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8463                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8464                 .klen   = 32,
8465                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8466                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8467                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8468                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8469                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8470                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8471                 .ctext  = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8472                           "\x30\x74\xe4\x44\x52\x77\x97\x43"
8473                           "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8474                           "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8475                 .len    = 32,
8476         }, {
8477                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
8478                           "\x11\x11\x11\x11\x11\x11\x11\x11"
8479                           "\x22\x22\x22\x22\x22\x22\x22\x22"
8480                           "\x22\x22\x22\x22\x22\x22\x22\x22",
8481                 .klen   = 32,
8482                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
8483                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8484                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
8485                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8486                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8487                           "\x44\x44\x44\x44\x44\x44\x44\x44",
8488                 .ctext  = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8489                           "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8490                           "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8491                           "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8492                 .len    = 32,
8493         }, {
8494                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8495                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8496                           "\x22\x22\x22\x22\x22\x22\x22\x22"
8497                           "\x22\x22\x22\x22\x22\x22\x22\x22",
8498                 .klen   = 32,
8499                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
8500                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8501                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
8502                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8503                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8504                           "\x44\x44\x44\x44\x44\x44\x44\x44",
8505                 .ctext  = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
8506                           "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8507                           "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8508                           "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
8509                 .len    = 32,
8510         }, {
8511                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
8512                           "\x23\x53\x60\x28\x74\x71\x35\x26"
8513                           "\x31\x41\x59\x26\x53\x58\x97\x93"
8514                           "\x23\x84\x62\x64\x33\x83\x27\x95",
8515                 .klen   = 32,
8516                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8517                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8518                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8519                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8520                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8521                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8522                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8523                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8524                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8525                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8526                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8527                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8528                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8529                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8530                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8531                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8532                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8533                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8534                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8535                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8536                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8537                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8538                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8539                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8540                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8541                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8542                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8543                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8544                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8545                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8546                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8547                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8548                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8549                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8550                           "\x00\x01\x02\x03\x04\x05\x06\x07"
8551                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8552                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8553                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8554                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8555                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8556                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8557                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8558                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8559                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8560                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8561                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8562                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8563                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8564                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8565                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8566                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8567                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8568                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8569                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8570                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8571                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8572                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8573                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8574                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8575                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8576                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8577                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8578                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8579                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8580                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8581                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8582                 .ctext  = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
8583                           "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8584                           "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8585                           "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8586                           "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8587                           "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8588                           "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8589                           "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8590                           "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8591                           "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8592                           "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8593                           "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8594                           "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8595                           "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8596                           "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8597                           "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8598                           "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8599                           "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8600                           "\x39\x80\x39\x09\x97\x65\xf2\x83"
8601                           "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8602                           "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8603                           "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8604                           "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8605                           "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8606                           "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8607                           "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8608                           "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8609                           "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8610                           "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8611                           "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
8612                           "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
8613                           "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
8614                           "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
8615                           "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
8616                           "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
8617                           "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
8618                           "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
8619                           "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
8620                           "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
8621                           "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
8622                           "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
8623                           "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
8624                           "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
8625                           "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
8626                           "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
8627                           "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
8628                           "\x04\x39\x73\x32\xb2\x86\x79\xe7"
8629                           "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
8630                           "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
8631                           "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
8632                           "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
8633                           "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
8634                           "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
8635                           "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
8636                           "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
8637                           "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
8638                           "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
8639                           "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
8640                           "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
8641                           "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
8642                           "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
8643                           "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
8644                           "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
8645                           "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
8646                 .len    = 512,
8647         }, {
8648                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
8649                           "\x23\x53\x60\x28\x74\x71\x35\x26"
8650                           "\x62\x49\x77\x57\x24\x70\x93\x69"
8651                           "\x99\x59\x57\x49\x66\x96\x76\x27"
8652                           "\x31\x41\x59\x26\x53\x58\x97\x93"
8653                           "\x23\x84\x62\x64\x33\x83\x27\x95"
8654                           "\x02\x88\x41\x97\x16\x93\x99\x37"
8655                           "\x51\x05\x82\x09\x74\x94\x45\x92",
8656                 .klen   = 64,
8657                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
8658                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8659                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8660                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8661                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8662                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8663                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8664                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8665                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8666                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8667                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8668                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8669                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8670                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8671                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8672                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8673                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8674                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8675                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8676                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8677                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8678                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8679                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8680                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8681                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8682                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8683                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8684                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8685                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8686                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8687                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8688                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8689                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8690                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8691                           "\x00\x01\x02\x03\x04\x05\x06\x07"
8692                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8693                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8694                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8695                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8696                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8697                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8698                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8699                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8700                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8701                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8702                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8703                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8704                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8705                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8706                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8707                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8708                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8709                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8710                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8711                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8712                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8713                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8714                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8715                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8716                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8717                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8718                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8719                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8720                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8721                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8722                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8723                 .ctext  = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
8724                           "\x35\x39\x71\x88\x76\x1e\xc9\xea"
8725                           "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
8726                           "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
8727                           "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
8728                           "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
8729                           "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
8730                           "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
8731                           "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
8732                           "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
8733                           "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
8734                           "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
8735                           "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
8736                           "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
8737                           "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
8738                           "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
8739                           "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
8740                           "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
8741                           "\x69\x35\x61\x86\xf8\x86\xb9\x89"
8742                           "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
8743                           "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
8744                           "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
8745                           "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
8746                           "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
8747                           "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
8748                           "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
8749                           "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
8750                           "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
8751                           "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
8752                           "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
8753                           "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
8754                           "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
8755                           "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
8756                           "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
8757                           "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
8758                           "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
8759                           "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
8760                           "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
8761                           "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
8762                           "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
8763                           "\xad\x12\x32\x31\x03\xf7\x21\xbe"
8764                           "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
8765                           "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
8766                           "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
8767                           "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
8768                           "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
8769                           "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
8770                           "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
8771                           "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
8772                           "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
8773                           "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
8774                           "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
8775                           "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
8776                           "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
8777                           "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
8778                           "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
8779                           "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8780                           "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8781                           "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8782                           "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8783                           "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8784                           "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8785                           "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8786                           "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
8787                 .len    = 512,
8788                 .also_non_np = 1,
8789                 .np     = 3,
8790                 .tap    = { 512 - 20, 4, 16 },
8791         },
8792 };
8793
8794 /*
8795  * Serpent test vectors.  These are backwards because Serpent writes
8796  * octet sequences in right-to-left mode.
8797  */
8798 static const struct cipher_testvec serpent_tv_template[] = {
8799         {
8800                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8801                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8802                 .ctext  = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
8803                           "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
8804                 .len    = 16,
8805         }, {
8806                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8807                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8808                 .klen   = 16,
8809                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8810                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8811                 .ctext  = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
8812                           "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
8813                 .len    = 16,
8814         }, {
8815                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8816                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8817                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8818                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8819                 .klen   = 32,
8820                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8821                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8822                 .ctext  = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
8823                           "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
8824                 .len    = 16,
8825         }, {
8826                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8827                 .klen   = 16,
8828                 .ptext  = zeroed_string,
8829                 .ctext  = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
8830                           "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
8831                 .len    = 16,
8832         }, { /* Generated with Crypto++ */
8833                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8834                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8835                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8836                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8837                 .klen   = 32,
8838                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8839                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8840                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8841                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8842                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8843                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8844                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8845                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8846                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8847                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8848                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8849                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8850                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8851                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8852                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8853                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8854                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8855                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8856                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8857                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8858                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8859                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8860                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8861                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8862                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8863                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8864                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8865                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8866                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8867                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8868                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8869                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8870                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8871                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8872                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8873                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8874                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8875                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8876                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8877                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8878                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8879                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8880                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8881                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8882                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8883                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8884                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8885                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8886                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8887                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8888                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8889                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8890                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8891                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8892                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8893                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8894                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8895                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8896                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8897                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8898                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8899                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8900                 .ctext  = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
8901                           "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
8902                           "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
8903                           "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
8904                           "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
8905                           "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
8906                           "\x99\x34\x89\x5B\x54\xE9\x12\x13"
8907                           "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
8908                           "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
8909                           "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
8910                           "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
8911                           "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
8912                           "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
8913                           "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
8914                           "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
8915                           "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
8916                           "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
8917                           "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
8918                           "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
8919                           "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
8920                           "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
8921                           "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
8922                           "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
8923                           "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
8924                           "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
8925                           "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
8926                           "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
8927                           "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
8928                           "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
8929                           "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
8930                           "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
8931                           "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
8932                           "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
8933                           "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
8934                           "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
8935                           "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
8936                           "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
8937                           "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
8938                           "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
8939                           "\x87\x70\x14\xD0\x01\x57\xCB\x42"
8940                           "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
8941                           "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
8942                           "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
8943                           "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
8944                           "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
8945                           "\x71\x80\x05\x35\x3F\x40\x0B\x21"
8946                           "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
8947                           "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
8948                           "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
8949                           "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
8950                           "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
8951                           "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
8952                           "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
8953                           "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
8954                           "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
8955                           "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
8956                           "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
8957                           "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
8958                           "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
8959                           "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
8960                           "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
8961                           "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
8962                 .len    = 496,
8963                 .also_non_np = 1,
8964                 .np     = 3,
8965                 .tap    = { 496 - 20, 4, 16 },
8966         },
8967 };
8968
8969 static const struct cipher_testvec tnepres_tv_template[] = {
8970         { /* KeySize=0 */
8971                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8972                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8973                 .ctext  = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
8974                           "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
8975                 .len    = 16,
8976         },
8977         { /* KeySize=128, PT=0, I=1 */
8978                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8979                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8980                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8981                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8982                 .klen   = 16,
8983                 .ctext  = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
8984                           "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
8985                 .len    = 16,
8986         }, { /* KeySize=128 */
8987                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8988                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8989                 .klen   = 16,
8990                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8991                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8992                 .ctext  = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
8993                           "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
8994                 .len    = 16,
8995         }, { /* KeySize=128, I=121 */
8996                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8997                 .klen   = 16,
8998                 .ptext  = zeroed_string,
8999                 .ctext  = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
9000                           "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
9001                 .len    = 16,
9002         }, { /* KeySize=192, PT=0, I=1 */
9003                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
9004                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9005                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9006                 .klen   = 24,
9007                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
9008                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9009                 .ctext  = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
9010                           "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
9011                 .len    = 16,
9012         }, { /* KeySize=256, PT=0, I=1 */
9013                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
9014                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9015                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9016                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9017                 .klen   = 32,
9018                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
9019                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9020                 .ctext  = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
9021                           "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
9022                 .len    = 16,
9023         }, { /* KeySize=256, I=257 */
9024                 .key    = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
9025                           "\x17\x16\x15\x14\x13\x12\x11\x10"
9026                           "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
9027                           "\x07\x06\x05\x04\x03\x02\x01\x00",
9028                 .klen   = 32,
9029                 .ptext  = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
9030                           "\x07\x06\x05\x04\x03\x02\x01\x00",
9031                 .ctext  = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
9032                           "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
9033                 .len    = 16,
9034         }, { /* KeySize=256 */
9035                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
9036                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9037                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9038                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9039                 .klen   = 32,
9040                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
9041                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9042                 .ctext  = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
9043                           "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
9044                 .len    = 16,
9045         }
9046 };
9047
9048 static const struct cipher_testvec serpent_cbc_tv_template[] = {
9049         { /* Generated with Crypto++ */
9050                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9051                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9052                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9053                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9054                 .klen   = 32,
9055                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9056                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9057                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9058                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9059                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9060                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9061                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9062                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9063                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9064                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9065                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9066                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9067                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9068                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9069                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9070                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9071                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9072                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9073                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9074                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9075                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9076                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9077                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9078                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9079                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9080                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9081                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9082                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9083                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9084                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9085                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9086                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9087                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9088                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9089                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9090                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9091                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9092                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9093                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9094                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9095                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9096                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9097                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9098                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9099                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9100                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9101                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9102                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9103                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9104                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9105                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9106                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9107                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9108                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9109                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9110                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9111                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9112                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9113                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9114                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9115                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9116                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9117                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9118                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9119                 .ctext  = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
9120                           "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9121                           "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9122                           "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9123                           "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9124                           "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9125                           "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9126                           "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9127                           "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9128                           "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9129                           "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9130                           "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9131                           "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9132                           "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9133                           "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9134                           "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9135                           "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9136                           "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9137                           "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9138                           "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9139                           "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9140                           "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9141                           "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9142                           "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9143                           "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9144                           "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9145                           "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9146                           "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9147                           "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9148                           "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9149                           "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9150                           "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9151                           "\x81\x92\x66\x67\x15\x1E\x39\x98"
9152                           "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9153                           "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9154                           "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9155                           "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9156                           "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9157                           "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9158                           "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9159                           "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9160                           "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9161                           "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9162                           "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9163                           "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9164                           "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9165                           "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9166                           "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9167                           "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9168                           "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9169                           "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9170                           "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9171                           "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9172                           "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9173                           "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9174                           "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9175                           "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9176                           "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9177                           "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9178                           "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9179                           "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9180                           "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9181                 .len    = 496,
9182                 .also_non_np = 1,
9183                 .np     = 3,
9184                 .tap    = { 496 - 20, 4, 16 },
9185         },
9186 };
9187
9188 static const struct cipher_testvec serpent_ctr_tv_template[] = {
9189         { /* Generated with Crypto++ */
9190                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9191                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9192                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9193                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9194                 .klen   = 32,
9195                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9196                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9197                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9198                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9199                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9200                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9201                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9202                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9203                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9204                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9205                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9206                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9207                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9208                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9209                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9210                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9211                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9212                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9213                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9214                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9215                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9216                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9217                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9218                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9219                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9220                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9221                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9222                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9223                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9224                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9225                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9226                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9227                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9228                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9229                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9230                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9231                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9232                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9233                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9234                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9235                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9236                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9237                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9238                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9239                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9240                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9241                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9242                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9243                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9244                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9245                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9246                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9247                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9248                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9249                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9250                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9251                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9252                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9253                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9254                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9255                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9256                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9257                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9258                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9259                 .ctext  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9260                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9261                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9262                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9263                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9264                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9265                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9266                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9267                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9268                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9269                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9270                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9271                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9272                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9273                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9274                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9275                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9276                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9277                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9278                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9279                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9280                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9281                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9282                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9283                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9284                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9285                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9286                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9287                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9288                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9289                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9290                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9291                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9292                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9293                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9294                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9295                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9296                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9297                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9298                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9299                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9300                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9301                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9302                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9303                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9304                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9305                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9306                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9307                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9308                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9309                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9310                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9311                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9312                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9313                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9314                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9315                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9316                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9317                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9318                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9319                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9320                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
9321                 .len    = 496,
9322         }, { /* Generated with Crypto++ */
9323                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9324                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9325                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9326                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9327                 .klen   = 32,
9328                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9329                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9330                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9331                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9332                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9333                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9334                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9335                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9336                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9337                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9338                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9339                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9340                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9341                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9342                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9343                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9344                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9345                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9346                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9347                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9348                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9349                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9350                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9351                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9352                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9353                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9354                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9355                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9356                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9357                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9358                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9359                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9360                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9361                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9362                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9363                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9364                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9365                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9366                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9367                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9368                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9369                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9370                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9371                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9372                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9373                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9374                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9375                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9376                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9377                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9378                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9379                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9380                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9381                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9382                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9383                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9384                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9385                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9386                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9387                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9388                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9389                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9390                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9391                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9392                           "\x2B\xC2\x59",
9393                 .ctext  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9394                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9395                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9396                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9397                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9398                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9399                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9400                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9401                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9402                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9403                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9404                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9405                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9406                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9407                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9408                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9409                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9410                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9411                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9412                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9413                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9414                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9415                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9416                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9417                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9418                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9419                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9420                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9421                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9422                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9423                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9424                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9425                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9426                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9427                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9428                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9429                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9430                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9431                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9432                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9433                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9434                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9435                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9436                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9437                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9438                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9439                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9440                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9441                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9442                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9443                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9444                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9445                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9446                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9447                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9448                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9449                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9450                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9451                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9452                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9453                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9454                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
9455                           "\x38\xE2\xE5",
9456                 .len    = 499,
9457                 .also_non_np = 1,
9458                 .np     = 2,
9459                 .tap    = { 499 - 16, 16 },
9460         }, { /* Generated with Crypto++ */
9461                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9462                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9463                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9464                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9465                 .klen   = 32,
9466                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9467                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9468                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9469                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9470                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9471                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9472                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9473                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9474                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9475                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9476                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9477                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9478                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9479                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9480                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9481                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9482                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9483                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9484                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9485                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9486                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9487                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9488                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9489                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9490                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9491                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9492                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9493                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9494                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9495                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9496                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9497                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9498                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9499                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9500                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9501                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9502                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9503                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9504                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9505                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9506                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9507                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9508                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9509                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9510                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9511                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9512                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9513                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9514                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9515                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9516                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9517                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9518                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9519                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9520                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9521                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9522                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9523                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9524                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9525                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9526                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9527                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9528                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9529                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9530                 .ctext  = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
9531                           "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
9532                           "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
9533                           "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
9534                           "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
9535                           "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
9536                           "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
9537                           "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
9538                           "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
9539                           "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
9540                           "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
9541                           "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
9542                           "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
9543                           "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
9544                           "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
9545                           "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
9546                           "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
9547                           "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
9548                           "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
9549                           "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
9550                           "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
9551                           "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
9552                           "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
9553                           "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
9554                           "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
9555                           "\x29\x5E\x01\x47\x13\x32\x78\xBE"
9556                           "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
9557                           "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
9558                           "\x38\x35\x11\x26\x4A\xB4\x06\x32"
9559                           "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
9560                           "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
9561                           "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
9562                           "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
9563                           "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
9564                           "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
9565                           "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
9566                           "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
9567                           "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
9568                           "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
9569                           "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
9570                           "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
9571                           "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
9572                           "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
9573                           "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
9574                           "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
9575                           "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
9576                           "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
9577                           "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
9578                           "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
9579                           "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
9580                           "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
9581                           "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
9582                           "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
9583                           "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
9584                           "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
9585                           "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
9586                           "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
9587                           "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
9588                           "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
9589                           "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
9590                           "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
9591                           "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
9592                 .len    = 496,
9593         },
9594 };
9595
9596 static const struct cipher_testvec serpent_lrw_tv_template[] = {
9597         /* Generated from AES-LRW test vectors */
9598         {
9599                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9600                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9601                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9602                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9603                 .klen   = 32,
9604                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9605                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9606                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9607                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9608                 .ctext  = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
9609                           "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
9610                 .len    = 16,
9611         }, {
9612                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9613                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9614                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9615                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9616                 .klen   = 32,
9617                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9618                           "\x00\x00\x00\x00\x00\x00\x00\x02",
9619                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9620                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9621                 .ctext  = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
9622                           "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
9623                 .len    = 16,
9624         }, {
9625                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9626                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9627                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9628                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9629                 .klen   = 32,
9630                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9631                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9632                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9633                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9634                 .ctext  = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
9635                           "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
9636                 .len    = 16,
9637         }, {
9638                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9639                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9640                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9641                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9642                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9643                 .klen   = 40,
9644                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9645                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9646                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9647                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9648                 .ctext  = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
9649                           "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
9650                 .len    = 16,
9651         }, {
9652                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9653                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9654                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9655                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9656                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9657                 .klen   = 40,
9658                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9659                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9660                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9661                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9662                 .ctext  = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
9663                           "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
9664                 .len    = 16,
9665         }, {
9666                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9667                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9668                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9669                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9670                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9671                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9672                 .klen   = 48,
9673                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9674                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9675                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9676                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9677                 .ctext  = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
9678                           "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
9679                 .len    = 16,
9680         }, {
9681                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9682                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9683                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9684                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9685                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9686                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9687                 .klen   = 48,
9688                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9689                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9690                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9691                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9692                 .ctext  = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
9693                           "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
9694                 .len    = 16,
9695         }, {
9696                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9697                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9698                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9699                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9700                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9701                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9702                 .klen   = 48,
9703                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9704                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9705                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
9706                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9707                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9708                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9709                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9710                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9711                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9712                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9713                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9714                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9715                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9716                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9717                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9718                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9719                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9720                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9721                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9722                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9723                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9724                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9725                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9726                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9727                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9728                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9729                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9730                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9731                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9732                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9733                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9734                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9735                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9736                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9737                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9738                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9739                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9740                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9741                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9742                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9743                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9744                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9745                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9746                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9747                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9748                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9749                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9750                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9751                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9752                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9753                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9754                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9755                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9756                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9757                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9758                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9759                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9760                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9761                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9762                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9763                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9764                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9765                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9766                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9767                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9768                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
9769                 .ctext  = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
9770                           "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
9771                           "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
9772                           "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
9773                           "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
9774                           "\xce\xab\xda\x33\x30\x20\x12\xfa"
9775                           "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
9776                           "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
9777                           "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
9778                           "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
9779                           "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
9780                           "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
9781                           "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
9782                           "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
9783                           "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
9784                           "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
9785                           "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
9786                           "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
9787                           "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
9788                           "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
9789                           "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
9790                           "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
9791                           "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
9792                           "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
9793                           "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
9794                           "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
9795                           "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
9796                           "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
9797                           "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
9798                           "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
9799                           "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
9800                           "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
9801                           "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
9802                           "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
9803                           "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
9804                           "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
9805                           "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
9806                           "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
9807                           "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
9808                           "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
9809                           "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
9810                           "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
9811                           "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
9812                           "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
9813                           "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
9814                           "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
9815                           "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
9816                           "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
9817                           "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
9818                           "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
9819                           "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
9820                           "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
9821                           "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
9822                           "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
9823                           "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
9824                           "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
9825                           "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
9826                           "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
9827                           "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
9828                           "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
9829                           "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
9830                           "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
9831                           "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
9832                           "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
9833                 .len    = 512,
9834                 .also_non_np = 1,
9835                 .np     = 3,
9836                 .tap    = { 512 - 20, 4, 16 },
9837         },
9838 };
9839
9840 static const struct cipher_testvec serpent_xts_tv_template[] = {
9841         /* Generated from AES-XTS test vectors */
9842         {
9843                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
9844                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9845                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9846                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9847                 .klen   = 32,
9848                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9849                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9850                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
9851                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9852                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9853                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9854                 .ctext  = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
9855                           "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
9856                           "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
9857                           "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
9858                 .len    = 32,
9859         }, {
9860                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
9861                           "\x11\x11\x11\x11\x11\x11\x11\x11"
9862                           "\x22\x22\x22\x22\x22\x22\x22\x22"
9863                           "\x22\x22\x22\x22\x22\x22\x22\x22",
9864                 .klen   = 32,
9865                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
9866                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9867                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
9868                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9869                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9870                           "\x44\x44\x44\x44\x44\x44\x44\x44",
9871                 .ctext  = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
9872                           "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
9873                           "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
9874                           "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
9875                 .len    = 32,
9876         }, {
9877                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
9878                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
9879                           "\x22\x22\x22\x22\x22\x22\x22\x22"
9880                           "\x22\x22\x22\x22\x22\x22\x22\x22",
9881                 .klen   = 32,
9882                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
9883                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9884                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
9885                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9886                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9887                           "\x44\x44\x44\x44\x44\x44\x44\x44",
9888                 .ctext  = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
9889                           "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
9890                           "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
9891                           "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
9892                 .len    = 32,
9893         }, {
9894                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
9895                           "\x23\x53\x60\x28\x74\x71\x35\x26"
9896                           "\x31\x41\x59\x26\x53\x58\x97\x93"
9897                           "\x23\x84\x62\x64\x33\x83\x27\x95",
9898                 .klen   = 32,
9899                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9900                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9901                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
9902                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9903                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9904                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9905                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9906                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9907                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9908                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9909                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9910                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9911                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9912                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9913                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9914                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9915                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9916                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9917                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9918                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9919                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9920                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9921                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9922                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9923                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9924                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9925                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9926                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9927                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9928                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9929                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9930                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9931                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9932                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9933                           "\x00\x01\x02\x03\x04\x05\x06\x07"
9934                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9935                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9936                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9937                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9938                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9939                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9940                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9941                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9942                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9943                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9944                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9945                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9946                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9947                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9948                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9949                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9950                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9951                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9952                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9953                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9954                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9955                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9956                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9957                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9958                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9959                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9960                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9961                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9962                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9963                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9964                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
9965                 .ctext  = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
9966                           "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
9967                           "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
9968                           "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
9969                           "\x00\x5c\x75\x14\x06\xd6\x25\x82"
9970                           "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
9971                           "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
9972                           "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
9973                           "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
9974                           "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
9975                           "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
9976                           "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
9977                           "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
9978                           "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
9979                           "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
9980                           "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
9981                           "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
9982                           "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
9983                           "\x58\xfa\x43\x91\x16\x85\x40\xbb"
9984                           "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
9985                           "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
9986                           "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
9987                           "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
9988                           "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
9989                           "\x6e\x29\x60\xbd\x10\x14\x84\x82"
9990                           "\x83\x82\x0c\x63\x73\x92\x02\x7c"
9991                           "\x55\x37\x20\x80\x17\x51\xc8\xbc"
9992                           "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
9993                           "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
9994                           "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
9995                           "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
9996                           "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
9997                           "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
9998                           "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
9999                           "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
10000                           "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
10001                           "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
10002                           "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
10003                           "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
10004                           "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
10005                           "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
10006                           "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
10007                           "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
10008                           "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
10009                           "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
10010                           "\x43\x42\x35\xd0\xcf\xec\x77\x67"
10011                           "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
10012                           "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
10013                           "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
10014                           "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
10015                           "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
10016                           "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
10017                           "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
10018                           "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
10019                           "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
10020                           "\x03\x57\xe6\x98\x52\x2f\x61\x62"
10021                           "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
10022                           "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
10023                           "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
10024                           "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
10025                           "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
10026                           "\xef\x91\x64\x1d\x18\x07\x4e\x31"
10027                           "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
10028                           "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
10029                 .len    = 512,
10030         }, {
10031                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10032                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10033                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10034                           "\x99\x59\x57\x49\x66\x96\x76\x27"
10035                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10036                           "\x23\x84\x62\x64\x33\x83\x27\x95"
10037                           "\x02\x88\x41\x97\x16\x93\x99\x37"
10038                           "\x51\x05\x82\x09\x74\x94\x45\x92",
10039                 .klen   = 64,
10040                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10041                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10042                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10043                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10044                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10045                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10046                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10047                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10048                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10049                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10050                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10051                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10052                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10053                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10054                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10055                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10056                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10057                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10058                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10059                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10060                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10061                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10062                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10063                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10064                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10065                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10066                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10067                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10068                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10069                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10070                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10071                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10072                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10073                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10074                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10075                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10076                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10077                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10078                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10079                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10080                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10081                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10082                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10083                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10084                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10085                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10086                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10087                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10088                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10089                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10090                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10091                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10092                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10093                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10094                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10095                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10096                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10097                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10098                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10099                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10100                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10101                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10102                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10103                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10104                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10105                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10106                 .ctext  = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
10107                           "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
10108                           "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
10109                           "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
10110                           "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
10111                           "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
10112                           "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
10113                           "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
10114                           "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
10115                           "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
10116                           "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
10117                           "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
10118                           "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
10119                           "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
10120                           "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
10121                           "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
10122                           "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
10123                           "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
10124                           "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
10125                           "\xec\x9a\xda\x64\x96\xb5\x61\xff"
10126                           "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
10127                           "\x81\x85\x14\xa8\x59\xac\x8c\x94"
10128                           "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
10129                           "\x82\xc6\x4d\xca\x86\xea\x53\x28"
10130                           "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
10131                           "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
10132                           "\x05\xca\x81\x7b\xda\xa2\xde\x63"
10133                           "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
10134                           "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
10135                           "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
10136                           "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
10137                           "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
10138                           "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
10139                           "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
10140                           "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
10141                           "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
10142                           "\xfd\x43\x7d\xda\x42\x51\x87\x43"
10143                           "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
10144                           "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
10145                           "\x27\x5f\x11\xac\x71\xc7\x48\x46"
10146                           "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
10147                           "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
10148                           "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
10149                           "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
10150                           "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
10151                           "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
10152                           "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
10153                           "\x50\x88\x97\x40\x69\xb1\x37\xf5"
10154                           "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
10155                           "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
10156                           "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
10157                           "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
10158                           "\xc1\x16\x73\x50\x77\xba\xa6\x65"
10159                           "\x20\x2d\xb0\x02\x27\x89\xda\x99"
10160                           "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
10161                           "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
10162                           "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
10163                           "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
10164                           "\xa3\x0e\x33\x74\x40\x18\x39\x72"
10165                           "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
10166                           "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
10167                           "\x30\x05\xc8\x92\x98\x80\xff\x7a"
10168                           "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
10169                           "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
10170                 .len    = 512,
10171                 .also_non_np = 1,
10172                 .np     = 3,
10173                 .tap    = { 512 - 20, 4, 16 },
10174         },
10175 };
10176
10177 /*
10178  * SM4 test vector taken from the draft RFC
10179  * https://tools.ietf.org/html/draft-crypto-sm4-00#ref-GBT.32907-2016
10180  */
10181
10182 static const struct cipher_testvec sm4_tv_template[] = {
10183         { /* SM4 Appendix A: Example Calculations. Example 1. */
10184                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10185                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10186                 .klen   = 16,
10187                 .ptext  = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10188                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10189                 .ctext  = "\x68\x1E\xDF\x34\xD2\x06\x96\x5E"
10190                           "\x86\xB3\xE9\x4F\x53\x6E\x42\x46",
10191                 .len    = 16,
10192         }, { /*
10193               *  SM4 Appendix A: Example Calculations.
10194               *  Last 10 iterations of Example 2.
10195               */
10196                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10197                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10198                 .klen   = 16,
10199                 .ptext  = "\x99\x4a\xc3\xe7\xc3\x57\x89\x6a"
10200                           "\x81\xfc\xa8\xe\x38\x3e\xef\x80"
10201                           "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
10202                           "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10203                           "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10204                           "\xad\x57\x15\xab\x31\x5d\xc\xef"
10205                           "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10206                           "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10207                           "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10208                           "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10209                           "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10210                           "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10211                           "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10212                           "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10213                           "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10214                           "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10215                           "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10216                           "\xed\xce\x0\x19\xe\x16\x2\x6e"
10217                           "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10218                           "\x31\x51\xec\x47\xc3\x51\x83\xc1",
10219                 .ctext  = "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
10220                           "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10221                           "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10222                           "\xad\x57\x15\xab\x31\x5d\xc\xef"
10223                           "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10224                           "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10225                           "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10226                           "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10227                           "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10228                           "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10229                           "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10230                           "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10231                           "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10232                           "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10233                           "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10234                           "\xed\xce\x0\x19\xe\x16\x2\x6e"
10235                           "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10236                           "\x31\x51\xec\x47\xc3\x51\x83\xc1"
10237                           "\x59\x52\x98\xc7\xc6\xfd\x27\x1f"
10238                           "\x4\x2\xf8\x4\xc3\x3d\x3f\x66",
10239                 .len    = 160
10240         }
10241 };
10242
10243 /* Cast6 test vectors from RFC 2612 */
10244 static const struct cipher_testvec cast6_tv_template[] = {
10245         {
10246                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10247                           "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
10248                 .klen   = 16,
10249                 .ptext  = zeroed_string,
10250                 .ctext  = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
10251                           "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
10252                 .len    = 16,
10253         }, {
10254                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10255                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10256                           "\xba\xc7\x7a\x77\x17\x94\x28\x63",
10257                 .klen   = 24,
10258                 .ptext  = zeroed_string,
10259                 .ctext  = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
10260                           "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
10261                 .len    = 16,
10262         }, {
10263                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10264                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10265                           "\x8d\x7c\x47\xce\x26\x49\x08\x46"
10266                           "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
10267                 .klen   = 32,
10268                 .ptext  = zeroed_string,
10269                 .ctext  = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
10270                           "\xc9\x87\x01\x36\x55\x33\x17\xfa",
10271                 .len    = 16,
10272         }, { /* Generated from TF test vectors */
10273                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10274                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10275                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10276                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10277                 .klen   = 32,
10278                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10279                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10280                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10281                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10282                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10283                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10284                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10285                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10286                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10287                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10288                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10289                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10290                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10291                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10292                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10293                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10294                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10295                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10296                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10297                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10298                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10299                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10300                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10301                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10302                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10303                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10304                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10305                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10306                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10307                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10308                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10309                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10310                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10311                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10312                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10313                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10314                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10315                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10316                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10317                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10318                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10319                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10320                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10321                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10322                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10323                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10324                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10325                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10326                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10327                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10328                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10329                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10330                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10331                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10332                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10333                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10334                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10335                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10336                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10337                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10338                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10339                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10340                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10341                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10342                 .ctext  = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
10343                           "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
10344                           "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
10345                           "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
10346                           "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
10347                           "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
10348                           "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
10349                           "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
10350                           "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
10351                           "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
10352                           "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
10353                           "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
10354                           "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
10355                           "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
10356                           "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
10357                           "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
10358                           "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
10359                           "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
10360                           "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
10361                           "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
10362                           "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
10363                           "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
10364                           "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
10365                           "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
10366                           "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
10367                           "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
10368                           "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
10369                           "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
10370                           "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
10371                           "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
10372                           "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
10373                           "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
10374                           "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
10375                           "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
10376                           "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
10377                           "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
10378                           "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
10379                           "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
10380                           "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
10381                           "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
10382                           "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
10383                           "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
10384                           "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
10385                           "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
10386                           "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
10387                           "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
10388                           "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
10389                           "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
10390                           "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
10391                           "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
10392                           "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
10393                           "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
10394                           "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
10395                           "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
10396                           "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
10397                           "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
10398                           "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
10399                           "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
10400                           "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
10401                           "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
10402                           "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
10403                           "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
10404                 .len    = 496,
10405                 .also_non_np = 1,
10406                 .np     = 3,
10407                 .tap    = { 496 - 20, 4, 16 },
10408         },
10409 };
10410
10411 static const struct cipher_testvec cast6_cbc_tv_template[] = {
10412         { /* Generated from TF test vectors */
10413                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10414                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10415                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10416                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10417                 .klen   = 32,
10418                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10419                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10420                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10421                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10422                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10423                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10424                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10425                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10426                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10427                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10428                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10429                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10430                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10431                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10432                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10433                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10434                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10435                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10436                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10437                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10438                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10439                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10440                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10441                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10442                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10443                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10444                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10445                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10446                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10447                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10448                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10449                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10450                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10451                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10452                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10453                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10454                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10455                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10456                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10457                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10458                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10459                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10460                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10461                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10462                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10463                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10464                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10465                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10466                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10467                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10468                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10469                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10470                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10471                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10472                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10473                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10474                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10475                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10476                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10477                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10478                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10479                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10480                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10481                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10482                 .ctext  = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
10483                           "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
10484                           "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
10485                           "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
10486                           "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
10487                           "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
10488                           "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
10489                           "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
10490                           "\x57\x95\xE1\x21\x26\x10\x9A\x21"
10491                           "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
10492                           "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
10493                           "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
10494                           "\x23\x16\x47\x72\x81\x13\x3A\x72"
10495                           "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
10496                           "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
10497                           "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
10498                           "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
10499                           "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
10500                           "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
10501                           "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
10502                           "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
10503                           "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
10504                           "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
10505                           "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
10506                           "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
10507                           "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
10508                           "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
10509                           "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
10510                           "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
10511                           "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
10512                           "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
10513                           "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
10514                           "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
10515                           "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
10516                           "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
10517                           "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
10518                           "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
10519                           "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
10520                           "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
10521                           "\x73\x3F\x12\x91\x47\x54\xBA\x39"
10522                           "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
10523                           "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
10524                           "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
10525                           "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
10526                           "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
10527                           "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
10528                           "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
10529                           "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
10530                           "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
10531                           "\x80\x21\x83\x58\x3C\x76\xFD\x28"
10532                           "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
10533                           "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
10534                           "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
10535                           "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
10536                           "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
10537                           "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
10538                           "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
10539                           "\x56\x4D\x82\x62\x37\xA3\x48\x01"
10540                           "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
10541                           "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
10542                           "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
10543                           "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
10544                 .len    = 496,
10545                 .also_non_np = 1,
10546                 .np     = 3,
10547                 .tap    = { 496 - 20, 4, 16 },
10548         },
10549 };
10550
10551 static const struct cipher_testvec cast6_ctr_tv_template[] = {
10552         { /* Generated from TF test vectors */
10553                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10554                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10555                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10556                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10557                 .klen   = 32,
10558                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10559                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10560                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10561                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10562                           "\x3A",
10563                 .ctext  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
10564                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
10565                           "\x57",
10566                 .len    = 17,
10567         }, { /* Generated from TF test vectors */
10568                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10569                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10570                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10571                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10572                 .klen   = 32,
10573                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10574                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10575                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10576                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10577                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10578                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10579                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10580                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10581                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10582                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10583                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10584                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10585                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10586                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10587                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10588                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10589                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10590                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10591                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10592                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10593                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10594                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10595                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10596                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10597                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10598                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10599                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10600                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10601                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10602                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10603                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10604                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10605                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10606                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10607                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10608                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10609                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10610                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10611                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10612                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10613                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10614                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10615                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10616                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10617                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10618                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10619                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10620                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10621                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10622                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10623                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10624                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10625                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10626                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10627                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10628                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10629                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10630                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10631                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10632                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10633                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10634                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10635                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10636                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10637                 .ctext  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
10638                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
10639                           "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
10640                           "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
10641                           "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
10642                           "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
10643                           "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
10644                           "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
10645                           "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
10646                           "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
10647                           "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
10648                           "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
10649                           "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
10650                           "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
10651                           "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
10652                           "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
10653                           "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
10654                           "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
10655                           "\x49\x61\x22\x52\x64\x8C\x46\x41"
10656                           "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
10657                           "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
10658                           "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
10659                           "\x00\x14\x15\x59\xC1\x30\x64\xAF"
10660                           "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
10661                           "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
10662                           "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
10663                           "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
10664                           "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
10665                           "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
10666                           "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
10667                           "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
10668                           "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
10669                           "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
10670                           "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
10671                           "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
10672                           "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
10673                           "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
10674                           "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
10675                           "\x60\x40\x38\x90\x20\x46\xC7\xB3"
10676                           "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
10677                           "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
10678                           "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
10679                           "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
10680                           "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
10681                           "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
10682                           "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
10683                           "\x73\xFC\x91\xAB\x79\x41\x23\x14"
10684                           "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
10685                           "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
10686                           "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
10687                           "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
10688                           "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
10689                           "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
10690                           "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
10691                           "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
10692                           "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
10693                           "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
10694                           "\x19\x35\x88\x22\x45\x59\x0E\x8F"
10695                           "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
10696                           "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
10697                           "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
10698                           "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
10699                 .len    = 496,
10700                 .also_non_np = 1,
10701                 .np     = 3,
10702                 .tap    = { 496 - 20, 4, 16 },
10703         },
10704 };
10705
10706 static const struct cipher_testvec cast6_lrw_tv_template[] = {
10707         { /* Generated from TF test vectors */
10708                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10709                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10710                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10711                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10712                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10713                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10714                 .klen   = 48,
10715                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10716                           "\x00\x00\x00\x00\x00\x00\x00\x01",
10717                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10718                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10719                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10720                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10721                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10722                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10723                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10724                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10725                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10726                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10727                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10728                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10729                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10730                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10731                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10732                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10733                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10734                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10735                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10736                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10737                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10738                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10739                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10740                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10741                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10742                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10743                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10744                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10745                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10746                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10747                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10748                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10749                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10750                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10751                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10752                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10753                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10754                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10755                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10756                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10757                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10758                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10759                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10760                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10761                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10762                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10763                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10764                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10765                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10766                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10767                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10768                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10769                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10770                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10771                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10772                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10773                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10774                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10775                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10776                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10777                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10778                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10779                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10780                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10781                 .ctext  = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
10782                           "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
10783                           "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
10784                           "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
10785                           "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
10786                           "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
10787                           "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
10788                           "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
10789                           "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
10790                           "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
10791                           "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
10792                           "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
10793                           "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
10794                           "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
10795                           "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
10796                           "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
10797                           "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
10798                           "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
10799                           "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
10800                           "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
10801                           "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
10802                           "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
10803                           "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
10804                           "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
10805                           "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
10806                           "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
10807                           "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
10808                           "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
10809                           "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
10810                           "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
10811                           "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
10812                           "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
10813                           "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
10814                           "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
10815                           "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
10816                           "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
10817                           "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
10818                           "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
10819                           "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
10820                           "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
10821                           "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
10822                           "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
10823                           "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
10824                           "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
10825                           "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
10826                           "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
10827                           "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
10828                           "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
10829                           "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
10830                           "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
10831                           "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
10832                           "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
10833                           "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
10834                           "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
10835                           "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
10836                           "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
10837                           "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
10838                           "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
10839                           "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
10840                           "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
10841                           "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
10842                           "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
10843                           "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
10844                           "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
10845                 .len    = 512,
10846                 .also_non_np = 1,
10847                 .np     = 3,
10848                 .tap    = { 512 - 20, 4, 16 },
10849         },
10850 };
10851
10852 static const struct cipher_testvec cast6_xts_tv_template[] = {
10853         { /* Generated from TF test vectors */
10854                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10855                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10856                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10857                           "\x99\x59\x57\x49\x66\x96\x76\x27"
10858                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10859                           "\x23\x84\x62\x64\x33\x83\x27\x95"
10860                           "\x02\x88\x41\x97\x16\x93\x99\x37"
10861                           "\x51\x05\x82\x09\x74\x94\x45\x92",
10862                 .klen   = 64,
10863                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10864                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10865                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10866                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10867                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10868                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10869                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10870                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10871                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10872                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10873                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10874                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10875                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10876                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10877                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10878                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10879                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10880                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10881                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10882                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10883                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10884                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10885                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10886                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10887                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10888                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10889                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10890                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10891                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10892                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10893                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10894                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10895                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10896                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10897                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10898                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10899                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10900                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10901                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10902                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10903                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10904                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10905                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10906                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10907                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10908                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10909                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10910                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10911                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10912                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10913                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10914                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10915                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10916                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10917                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10918                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10919                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10920                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10921                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10922                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10923                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10924                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10925                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10926                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10927                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10928                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10929                 .ctext  = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
10930                           "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
10931                           "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
10932                           "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
10933                           "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
10934                           "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
10935                           "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
10936                           "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
10937                           "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
10938                           "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
10939                           "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
10940                           "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
10941                           "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
10942                           "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
10943                           "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
10944                           "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
10945                           "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
10946                           "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
10947                           "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
10948                           "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
10949                           "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
10950                           "\x71\x38\x17\x91\x44\xE8\xFC\x65"
10951                           "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
10952                           "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
10953                           "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
10954                           "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
10955                           "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
10956                           "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
10957                           "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
10958                           "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
10959                           "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
10960                           "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
10961                           "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
10962                           "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
10963                           "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
10964                           "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
10965                           "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
10966                           "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
10967                           "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
10968                           "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
10969                           "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
10970                           "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
10971                           "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
10972                           "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
10973                           "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
10974                           "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
10975                           "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
10976                           "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
10977                           "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
10978                           "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
10979                           "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
10980                           "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
10981                           "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
10982                           "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
10983                           "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
10984                           "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
10985                           "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
10986                           "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
10987                           "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
10988                           "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
10989                           "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
10990                           "\x45\x72\x80\x17\x81\xBD\x9D\x62"
10991                           "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
10992                           "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
10993                 .len    = 512,
10994                 .also_non_np = 1,
10995                 .np     = 3,
10996                 .tap    = { 512 - 20, 4, 16 },
10997         },
10998 };
10999
11000 /*
11001  * AES test vectors.
11002  */
11003 static const struct cipher_testvec aes_tv_template[] = {
11004         { /* From FIPS-197 */
11005                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11006                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11007                 .klen   = 16,
11008                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11009                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11010                 .ctext  = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
11011                           "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
11012                 .len    = 16,
11013         }, {
11014                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11015                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11016                           "\x10\x11\x12\x13\x14\x15\x16\x17",
11017                 .klen   = 24,
11018                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11019                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11020                 .ctext  = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
11021                           "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
11022                 .len    = 16,
11023         }, {
11024                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11025                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11026                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11027                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11028                 .klen   = 32,
11029                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11030                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11031                 .ctext  = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
11032                           "\xea\xfc\x49\x90\x4b\x49\x60\x89",
11033                 .len    = 16,
11034         }, { /* Generated with Crypto++ */
11035                 .key    = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
11036                           "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
11037                           "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
11038                           "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
11039                 .klen   = 32,
11040                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11041                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11042                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11043                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11044                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11045                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11046                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11047                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11048                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11049                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11050                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11051                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11052                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11053                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11054                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11055                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11056                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11057                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11058                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11059                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11060                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11061                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11062                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11063                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11064                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11065                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11066                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11067                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11068                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11069                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11070                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11071                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11072                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11073                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11074                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11075                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11076                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11077                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11078                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11079                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11080                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11081                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11082                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11083                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11084                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11085                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11086                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11087                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11088                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11089                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11090                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11091                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11092                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11093                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11094                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11095                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11096                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11097                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11098                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11099                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11100                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11101                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11102                 .ctext  = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
11103                           "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
11104                           "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
11105                           "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
11106                           "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
11107                           "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
11108                           "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
11109                           "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
11110                           "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
11111                           "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
11112                           "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
11113                           "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
11114                           "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
11115                           "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
11116                           "\x41\x72\x51\x97\x1D\x07\x49\xA0"
11117                           "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
11118                           "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
11119                           "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
11120                           "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
11121                           "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
11122                           "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
11123                           "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
11124                           "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
11125                           "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
11126                           "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
11127                           "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
11128                           "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
11129                           "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
11130                           "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
11131                           "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
11132                           "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
11133                           "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
11134                           "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
11135                           "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
11136                           "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
11137                           "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
11138                           "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
11139                           "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
11140                           "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
11141                           "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
11142                           "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
11143                           "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
11144                           "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
11145                           "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
11146                           "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
11147                           "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
11148                           "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
11149                           "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
11150                           "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
11151                           "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
11152                           "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
11153                           "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
11154                           "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
11155                           "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
11156                           "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
11157                           "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
11158                           "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
11159                           "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
11160                           "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
11161                           "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
11162                           "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
11163                           "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
11164                 .len    = 496,
11165                 .also_non_np = 1,
11166                 .np     = 3,
11167                 .tap    = { 496 - 20, 4, 16 },
11168         },
11169 };
11170
11171 static const struct cipher_testvec aes_cbc_tv_template[] = {
11172         { /* From RFC 3602 */
11173                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
11174                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
11175                 .klen   = 16,
11176                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11177                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11178                 .ptext  = "Single block msg",
11179                 .ctext  = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
11180                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
11181                 .len    = 16,
11182                 .also_non_np = 1,
11183                 .np     = 8,
11184                 .tap    = { 3, 2, 3, 2, 3, 1, 1, 1 },
11185         }, {
11186                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
11187                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
11188                 .klen   = 16,
11189                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11190                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11191                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11192                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11193                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11194                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11195                 .ctext  = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
11196                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
11197                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
11198                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
11199                 .len    = 32,
11200         }, { /* From NIST SP800-38A */
11201                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11202                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11203                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11204                 .klen   = 24,
11205                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11206                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11207                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11208                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11209                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11210                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11211                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11212                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11213                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11214                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11215                 .ctext  = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
11216                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
11217                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
11218                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
11219                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
11220                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
11221                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
11222                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
11223                 .len    = 64,
11224         }, {
11225                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11226                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11227                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11228                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11229                 .klen   = 32,
11230                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11231                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11232                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11233                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11234                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11235                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11236                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11237                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11238                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11239                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11240                 .ctext  = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
11241                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
11242                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
11243                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
11244                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
11245                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
11246                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
11247                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
11248                 .len    = 64,
11249         }, { /* Generated with Crypto++ */
11250                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
11251                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
11252                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
11253                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
11254                 .klen   = 32,
11255                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
11256                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
11257                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11258                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11259                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11260                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11261                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11262                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11263                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11264                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11265                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11266                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11267                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11268                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11269                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11270                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11271                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11272                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11273                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11274                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11275                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11276                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11277                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11278                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11279                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11280                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11281                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11282                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11283                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11284                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11285                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11286                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11287                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11288                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11289                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11290                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11291                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11292                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11293                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11294                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11295                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11296                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11297                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11298                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11299                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11300                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11301                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11302                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11303                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11304                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11305                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11306                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11307                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11308                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11309                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11310                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11311                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11312                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11313                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11314                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11315                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11316                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11317                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11318                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11319                 .ctext  = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
11320                           "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
11321                           "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
11322                           "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
11323                           "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
11324                           "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
11325                           "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
11326                           "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
11327                           "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
11328                           "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
11329                           "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
11330                           "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
11331                           "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
11332                           "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
11333                           "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
11334                           "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
11335                           "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
11336                           "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
11337                           "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
11338                           "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
11339                           "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
11340                           "\x16\x24\x02\x07\x48\xAE\xF2\x31"
11341                           "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
11342                           "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
11343                           "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
11344                           "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
11345                           "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
11346                           "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
11347                           "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
11348                           "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
11349                           "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
11350                           "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
11351                           "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
11352                           "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
11353                           "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
11354                           "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
11355                           "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
11356                           "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
11357                           "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
11358                           "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
11359                           "\x22\x39\x7B\x16\x03\x01\x69\xAF"
11360                           "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
11361                           "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
11362                           "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
11363                           "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
11364                           "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
11365                           "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
11366                           "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
11367                           "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
11368                           "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
11369                           "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
11370                           "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
11371                           "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
11372                           "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
11373                           "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
11374                           "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
11375                           "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
11376                           "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
11377                           "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
11378                           "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
11379                           "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
11380                           "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
11381                 .len    = 496,
11382                 .also_non_np = 1,
11383                 .np     = 3,
11384                 .tap    = { 496 - 20, 4, 16 },
11385         },
11386 };
11387
11388 static const struct cipher_testvec aes_cfb_tv_template[] = {
11389         { /* From NIST SP800-38A */
11390                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
11391                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
11392                 .klen   = 16,
11393                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11394                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11395                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11396                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11397                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11398                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11399                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11400                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11401                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11402                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11403                 .ctext  = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
11404                           "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
11405                           "\xc8\xa6\x45\x37\xa0\xb3\xa9\x3f"
11406                           "\xcd\xe3\xcd\xad\x9f\x1c\xe5\x8b"
11407                           "\x26\x75\x1f\x67\xa3\xcb\xb1\x40"
11408                           "\xb1\x80\x8c\xf1\x87\xa4\xf4\xdf"
11409                           "\xc0\x4b\x05\x35\x7c\x5d\x1c\x0e"
11410                           "\xea\xc4\xc6\x6f\x9f\xf7\xf2\xe6",
11411                 .len    = 64,
11412         }, {
11413                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11414                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11415                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11416                 .klen   = 24,
11417                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11418                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11419                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11420                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11421                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11422                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11423                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11424                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11425                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11426                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11427                 .ctext  = "\xcd\xc8\x0d\x6f\xdd\xf1\x8c\xab"
11428                           "\x34\xc2\x59\x09\xc9\x9a\x41\x74"
11429                           "\x67\xce\x7f\x7f\x81\x17\x36\x21"
11430                           "\x96\x1a\x2b\x70\x17\x1d\x3d\x7a"
11431                           "\x2e\x1e\x8a\x1d\xd5\x9b\x88\xb1"
11432                           "\xc8\xe6\x0f\xed\x1e\xfa\xc4\xc9"
11433                           "\xc0\x5f\x9f\x9c\xa9\x83\x4f\xa0"
11434                           "\x42\xae\x8f\xba\x58\x4b\x09\xff",
11435                 .len    = 64,
11436         }, {
11437                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11438                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11439                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11440                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11441                 .klen   = 32,
11442                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11443                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11444                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11445                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11446                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11447                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11448                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11449                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11450                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11451                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11452                 .ctext  = "\xdc\x7e\x84\xbf\xda\x79\x16\x4b"
11453                           "\x7e\xcd\x84\x86\x98\x5d\x38\x60"
11454                           "\x39\xff\xed\x14\x3b\x28\xb1\xc8"
11455                           "\x32\x11\x3c\x63\x31\xe5\x40\x7b"
11456                           "\xdf\x10\x13\x24\x15\xe5\x4b\x92"
11457                           "\xa1\x3e\xd0\xa8\x26\x7a\xe2\xf9"
11458                           "\x75\xa3\x85\x74\x1a\xb9\xce\xf8"
11459                           "\x20\x31\x62\x3d\x55\xb1\xe4\x71",
11460                 .len    = 64,
11461                 .also_non_np = 1,
11462                 .np     = 2,
11463                 .tap    = { 31, 33 },
11464         }, { /* > 16 bytes, not a multiple of 16 bytes */
11465                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
11466                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
11467                 .klen   = 16,
11468                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11469                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11470                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11471                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11472                           "\xae",
11473                 .ctext  = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
11474                           "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
11475                           "\xc8",
11476                 .len    = 17,
11477         }, { /* < 16 bytes */
11478                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
11479                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
11480                 .klen   = 16,
11481                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11482                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11483                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f",
11484                 .ctext  = "\x3b\x3f\xd9\x2e\xb7\x2d\xad",
11485                 .len    = 7,
11486         },
11487 };
11488
11489 static const struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
11490         { /* Input data from RFC 2410 Case 1 */
11491 #ifdef __LITTLE_ENDIAN
11492                 .key    = "\x08\x00"            /* rta length */
11493                           "\x01\x00"            /* rta type */
11494 #else
11495                 .key    = "\x00\x08"            /* rta length */
11496                           "\x00\x01"            /* rta type */
11497 #endif
11498                           "\x00\x00\x00\x00"    /* enc key length */
11499                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11500                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11501                 .klen   = 8 + 16 + 0,
11502                 .iv     = "",
11503                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
11504                 .ilen   = 8,
11505                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11506                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
11507                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
11508                 .rlen   = 8 + 16,
11509         }, { /* Input data from RFC 2410 Case 2 */
11510 #ifdef __LITTLE_ENDIAN
11511                 .key    = "\x08\x00"            /* rta length */
11512                           "\x01\x00"            /* rta type */
11513 #else
11514                 .key    = "\x00\x08"            /* rta length */
11515                           "\x00\x01"            /* rta type */
11516 #endif
11517                           "\x00\x00\x00\x00"    /* enc key length */
11518                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11519                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11520                 .klen   = 8 + 16 + 0,
11521                 .iv     = "",
11522                 .input  = "Network Security People Have A Strange Sense Of Humor",
11523                 .ilen   = 53,
11524                 .result = "Network Security People Have A Strange Sense Of Humor"
11525                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
11526                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
11527                 .rlen   = 53 + 16,
11528         },
11529 };
11530
11531 static const struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
11532         {
11533 #ifdef __LITTLE_ENDIAN
11534                 .key    = "\x08\x00"            /* rta length */
11535                           "\x01\x00"            /* rta type */
11536 #else
11537                 .key    = "\x00\x08"            /* rta length */
11538                           "\x00\x01"            /* rta type */
11539 #endif
11540                           "\x00\x00\x00\x00"    /* enc key length */
11541                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11542                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11543                 .klen   = 8 + 16 + 0,
11544                 .iv     = "",
11545                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11546                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
11547                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
11548                 .ilen   = 8 + 16,
11549                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
11550                 .rlen   = 8,
11551         }, {
11552 #ifdef __LITTLE_ENDIAN
11553                 .key    = "\x08\x00"            /* rta length */
11554                           "\x01\x00"            /* rta type */
11555 #else
11556                 .key    = "\x00\x08"            /* rta length */
11557                           "\x00\x01"            /* rta type */
11558 #endif
11559                           "\x00\x00\x00\x00"    /* enc key length */
11560                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11561                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11562                 .klen   = 8 + 16 + 0,
11563                 .iv     = "",
11564                 .input  = "Network Security People Have A Strange Sense Of Humor"
11565                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
11566                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
11567                 .ilen   = 53 + 16,
11568                 .result = "Network Security People Have A Strange Sense Of Humor",
11569                 .rlen   = 53,
11570         },
11571 };
11572
11573 static const struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
11574         { /* RFC 3602 Case 1 */
11575 #ifdef __LITTLE_ENDIAN
11576                 .key    = "\x08\x00"            /* rta length */
11577                           "\x01\x00"            /* rta type */
11578 #else
11579                 .key    = "\x00\x08"            /* rta length */
11580                           "\x00\x01"            /* rta type */
11581 #endif
11582                           "\x00\x00\x00\x10"    /* enc key length */
11583                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11584                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11585                           "\x00\x00\x00\x00"
11586                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
11587                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
11588                 .klen   = 8 + 20 + 16,
11589                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11590                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11591                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11592                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11593                 .alen   = 16,
11594                 .input  = "Single block msg",
11595                 .ilen   = 16,
11596                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
11597                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
11598                           "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
11599                           "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
11600                           "\x03\x71\xa2\x06",
11601                 .rlen   = 16 + 20,
11602         }, { /* RFC 3602 Case 2 */
11603 #ifdef __LITTLE_ENDIAN
11604                 .key    = "\x08\x00"            /* rta length */
11605                           "\x01\x00"            /* rta type */
11606 #else
11607                 .key    = "\x00\x08"            /* rta length */
11608                           "\x00\x01"            /* rta type */
11609 #endif
11610                           "\x00\x00\x00\x10"    /* enc key length */
11611                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11612                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11613                           "\x30\x31\x32\x33"
11614                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
11615                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
11616                 .klen   = 8 + 20 + 16,
11617                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11618                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11619                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11620                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11621                 .alen   = 16,
11622                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11623                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11624                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11625                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11626                 .ilen   = 32,
11627                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
11628                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
11629                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
11630                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
11631                           "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
11632                           "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
11633                           "\x65\x39\xf8\xde",
11634                 .rlen   = 32 + 20,
11635         }, { /* RFC 3602 Case 3 */
11636 #ifdef __LITTLE_ENDIAN
11637                 .key    = "\x08\x00"            /* rta length */
11638                           "\x01\x00"            /* rta type */
11639 #else
11640                 .key    = "\x00\x08"            /* rta length */
11641                           "\x00\x01"            /* rta type */
11642 #endif
11643                           "\x00\x00\x00\x10"    /* enc key length */
11644                           "\x11\x22\x33\x44\x55\x66\x77\x88"
11645                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11646                           "\x22\x33\x44\x55"
11647                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
11648                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
11649                 .klen   = 8 + 20 + 16,
11650                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
11651                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
11652                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
11653                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
11654                 .alen   = 16,
11655                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
11656                 .ilen   = 48,
11657                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
11658                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
11659                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
11660                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
11661                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
11662                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
11663                           "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
11664                           "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
11665                           "\x8d\x62\xf2\x1e",
11666                 .rlen   = 48 + 20,
11667         }, { /* RFC 3602 Case 4 */
11668 #ifdef __LITTLE_ENDIAN
11669                 .key    = "\x08\x00"            /* rta length */
11670                           "\x01\x00"            /* rta type */
11671 #else
11672                 .key    = "\x00\x08"            /* rta length */
11673                           "\x00\x01"            /* rta type */
11674 #endif
11675                           "\x00\x00\x00\x10"    /* enc key length */
11676                           "\x11\x22\x33\x44\x55\x66\x77\x88"
11677                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11678                           "\x22\x33\x44\x55"
11679                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
11680                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
11681                 .klen   = 8 + 20 + 16,
11682                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
11683                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
11684                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
11685                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
11686                 .alen   = 16,
11687                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11688                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11689                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11690                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11691                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11692                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11693                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11694                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
11695                 .ilen   = 64,
11696                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
11697                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
11698                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
11699                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
11700                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
11701                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
11702                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
11703                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
11704                           "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
11705                           "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
11706                           "\x1d\xbe\xc6\xe9",
11707                 .rlen   = 64 + 20,
11708         }, { /* RFC 3602 Case 5 */
11709 #ifdef __LITTLE_ENDIAN
11710                 .key    = "\x08\x00"            /* rta length */
11711                           "\x01\x00"            /* rta type */
11712 #else
11713                 .key    = "\x00\x08"            /* rta length */
11714                           "\x00\x01"            /* rta type */
11715 #endif
11716                           "\x00\x00\x00\x10"    /* enc key length */
11717                           "\x11\x22\x33\x44\x55\x66\x77\x88"
11718                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11719                           "\x22\x33\x44\x55"
11720                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
11721                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
11722                 .klen   = 8 + 20 + 16,
11723                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
11724                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
11725                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
11726                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
11727                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
11728                 .alen   = 24,
11729                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
11730                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
11731                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11732                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11733                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11734                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11735                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11736                           "\x30\x31\x32\x33\x34\x35\x36\x37"
11737                           "\x01\x02\x03\x04\x05\x06\x07\x08"
11738                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
11739                 .ilen   = 80,
11740                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
11741                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
11742                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
11743                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
11744                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
11745                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
11746                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
11747                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
11748                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
11749                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
11750                           "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
11751                           "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
11752                           "\x85\xe1\x59\xf7",
11753                 .rlen   = 80 + 20,
11754        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
11755 #ifdef __LITTLE_ENDIAN
11756                 .key    = "\x08\x00"            /* rta length */
11757                           "\x01\x00"            /* rta type */
11758 #else
11759                 .key    = "\x00\x08"            /* rta length */
11760                           "\x00\x01"            /* rta type */
11761 #endif
11762                           "\x00\x00\x00\x18"    /* enc key length */
11763                           "\x11\x22\x33\x44\x55\x66\x77\x88"
11764                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11765                           "\x22\x33\x44\x55"
11766                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11767                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11768                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11769                 .klen   = 8 + 20 + 24,
11770                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11771                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11772                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11773                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11774                 .alen   = 16,
11775                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11776                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11777                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11778                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11779                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11780                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11781                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11782                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11783                 .ilen   = 64,
11784                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
11785                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
11786                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
11787                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
11788                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
11789                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
11790                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
11791                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
11792                           "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
11793                           "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
11794                           "\x47\x4c\xfc\x36",
11795                 .rlen   = 64 + 20,
11796         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
11797 #ifdef __LITTLE_ENDIAN
11798                 .key    = "\x08\x00"            /* rta length */
11799                           "\x01\x00"            /* rta type */
11800 #else
11801                 .key    = "\x00\x08"            /* rta length */
11802                           "\x00\x01"            /* rta type */
11803 #endif
11804                           "\x00\x00\x00\x20"    /* enc key length */
11805                           "\x11\x22\x33\x44\x55\x66\x77\x88"
11806                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11807                           "\x22\x33\x44\x55"
11808                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11809                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11810                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11811                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11812                 .klen   = 8 + 20 + 32,
11813                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11814                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11815                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11816                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11817                 .alen   = 16,
11818                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11819                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11820                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11821                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11822                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11823                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11824                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11825                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11826                 .ilen   = 64,
11827                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
11828                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
11829                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
11830                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
11831                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
11832                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
11833                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
11834                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
11835                           "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
11836                           "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
11837                           "\x51\xee\xd6\x4e",
11838                 .rlen   = 64 + 20,
11839         },
11840 };
11841
11842 static const struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
11843         { /* Input data from RFC 2410 Case 1 */
11844 #ifdef __LITTLE_ENDIAN
11845                 .key    = "\x08\x00"            /* rta length */
11846                           "\x01\x00"            /* rta type */
11847 #else
11848                 .key    = "\x00\x08"            /* rta length */
11849                           "\x00\x01"            /* rta type */
11850 #endif
11851                           "\x00\x00\x00\x00"    /* enc key length */
11852                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11853                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11854                           "\x00\x00\x00\x00",
11855                 .klen   = 8 + 20 + 0,
11856                 .iv     = "",
11857                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
11858                 .ilen   = 8,
11859                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11860                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
11861                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
11862                           "\x8c\x5e\xe4\x08",
11863                 .rlen   = 8 + 20,
11864         }, { /* Input data from RFC 2410 Case 2 */
11865 #ifdef __LITTLE_ENDIAN
11866                 .key    = "\x08\x00"            /* rta length */
11867                           "\x01\x00"            /* rta type */
11868 #else
11869                 .key    = "\x00\x08"            /* rta length */
11870                           "\x00\x01"            /* rta type */
11871 #endif
11872                           "\x00\x00\x00\x00"    /* enc key length */
11873                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11874                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11875                           "\x00\x00\x00\x00",
11876                 .klen   = 8 + 20 + 0,
11877                 .iv     = "",
11878                 .input  = "Network Security People Have A Strange Sense Of Humor",
11879                 .ilen   = 53,
11880                 .result = "Network Security People Have A Strange Sense Of Humor"
11881                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
11882                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
11883                           "\x91\x56\xe4\xd6",
11884                 .rlen   = 53 + 20,
11885         },
11886 };
11887
11888 static const struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
11889         {
11890 #ifdef __LITTLE_ENDIAN
11891                 .key    = "\x08\x00"            /* rta length */
11892                           "\x01\x00"            /* rta type */
11893 #else
11894                 .key    = "\x00\x08"            /* rta length */
11895                           "\x00\x01"            /* rta type */
11896 #endif
11897                           "\x00\x00\x00\x00"    /* enc key length */
11898                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11899                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11900                           "\x00\x00\x00\x00",
11901                 .klen   = 8 + 20 + 0,
11902                 .iv     = "",
11903                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11904                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
11905                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
11906                           "\x8c\x5e\xe4\x08",
11907                 .ilen   = 8 + 20,
11908                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
11909                 .rlen   = 8,
11910         }, {
11911 #ifdef __LITTLE_ENDIAN
11912                 .key    = "\x08\x00"            /* rta length */
11913                           "\x01\x00"            /* rta type */
11914 #else
11915                 .key    = "\x00\x08"            /* rta length */
11916                           "\x00\x01"            /* rta type */
11917 #endif
11918                           "\x00\x00\x00\x00"    /* enc key length */
11919                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11920                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11921                           "\x00\x00\x00\x00",
11922                 .klen   = 8 + 20 + 0,
11923                 .iv     = "",
11924                 .input  = "Network Security People Have A Strange Sense Of Humor"
11925                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
11926                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
11927                           "\x91\x56\xe4\xd6",
11928                 .ilen   = 53 + 20,
11929                 .result = "Network Security People Have A Strange Sense Of Humor",
11930                 .rlen   = 53,
11931         },
11932 };
11933
11934 static const struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
11935         { /* RFC 3602 Case 1 */
11936 #ifdef __LITTLE_ENDIAN
11937                 .key    = "\x08\x00"            /* rta length */
11938                           "\x01\x00"            /* rta type */
11939 #else
11940                 .key    = "\x00\x08"            /* rta length */
11941                           "\x00\x01"            /* rta type */
11942 #endif
11943                           "\x00\x00\x00\x10"    /* enc key length */
11944                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11945                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11946                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11947                           "\x00\x00\x00\x00\x00\x00\x00\x00"
11948                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
11949                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
11950                 .klen   = 8 + 32 + 16,
11951                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11952                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11953                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11954                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11955                 .alen   = 16,
11956                 .input  = "Single block msg",
11957                 .ilen   = 16,
11958                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
11959                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
11960                           "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
11961                           "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
11962                           "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
11963                           "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
11964                 .rlen   = 16 + 32,
11965         }, { /* RFC 3602 Case 2 */
11966 #ifdef __LITTLE_ENDIAN
11967                 .key    = "\x08\x00"            /* rta length */
11968                           "\x01\x00"            /* rta type */
11969 #else
11970                 .key    = "\x00\x08"            /* rta length */
11971                           "\x00\x01"            /* rta type */
11972 #endif
11973                           "\x00\x00\x00\x10"    /* enc key length */
11974                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11975                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11976                           "\x30\x31\x32\x33\x34\x35\x36\x37"
11977                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11978                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
11979                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
11980                 .klen   = 8 + 32 + 16,
11981                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11982                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11983                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11984                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11985                 .alen   = 16,
11986                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11987                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11988                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11989                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11990                 .ilen   = 32,
11991                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
11992                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
11993                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
11994                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
11995                           "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
11996                           "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
11997                           "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
11998                           "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
11999                 .rlen   = 32 + 32,
12000         }, { /* RFC 3602 Case 3 */
12001 #ifdef __LITTLE_ENDIAN
12002                 .key    = "\x08\x00"            /* rta length */
12003                           "\x01\x00"            /* rta type */
12004 #else
12005                 .key    = "\x00\x08"            /* rta length */
12006                           "\x00\x01"            /* rta type */
12007 #endif
12008                           "\x00\x00\x00\x10"    /* enc key length */
12009                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12010                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12011                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12012                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12013                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12014                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12015                 .klen   = 8 + 32 + 16,
12016                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12017                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12018                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12019                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12020                 .alen   = 16,
12021                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12022                 .ilen   = 48,
12023                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12024                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12025                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12026                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12027                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12028                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12029                           "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
12030                           "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
12031                           "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
12032                           "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
12033                 .rlen   = 48 + 32,
12034         }, { /* RFC 3602 Case 4 */
12035 #ifdef __LITTLE_ENDIAN
12036                 .key    = "\x08\x00"            /* rta length */
12037                           "\x01\x00"            /* rta type */
12038 #else
12039                 .key    = "\x00\x08"            /* rta length */
12040                           "\x00\x01"            /* rta type */
12041 #endif
12042                           "\x00\x00\x00\x10"    /* enc key length */
12043                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12044                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12045                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12046                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12047                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12048                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12049                 .klen   = 8 + 32 + 16,
12050                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12051                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12052                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12053                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12054                 .alen   = 16,
12055                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12056                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12057                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12058                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12059                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12060                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12061                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12062                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12063                 .ilen   = 64,
12064                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12065                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12066                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12067                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12068                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12069                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12070                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12071                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12072                           "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
12073                           "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
12074                           "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
12075                           "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
12076                 .rlen   = 64 + 32,
12077         }, { /* RFC 3602 Case 5 */
12078 #ifdef __LITTLE_ENDIAN
12079                 .key    = "\x08\x00"            /* rta length */
12080                           "\x01\x00"            /* rta type */
12081 #else
12082                 .key    = "\x00\x08"            /* rta length */
12083                           "\x00\x01"            /* rta type */
12084 #endif
12085                           "\x00\x00\x00\x10"    /* enc key length */
12086                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12087                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12088                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12089                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12090                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12091                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12092                 .klen   = 8 + 32 + 16,
12093                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12094                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12095                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12096                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12097                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12098                 .alen   = 24,
12099                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12100                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12101                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12102                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12103                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12104                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12105                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12106                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12107                           "\x01\x02\x03\x04\x05\x06\x07\x08"
12108                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12109                 .ilen   = 80,
12110                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12111                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12112                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12113                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12114                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12115                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12116                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12117                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12118                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12119                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12120                           "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
12121                           "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
12122                           "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
12123                           "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
12124                 .rlen   = 80 + 32,
12125        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12126 #ifdef __LITTLE_ENDIAN
12127                 .key    = "\x08\x00"            /* rta length */
12128                           "\x01\x00"            /* rta type */
12129 #else
12130                 .key    = "\x00\x08"            /* rta length */
12131                           "\x00\x01"            /* rta type */
12132 #endif
12133                           "\x00\x00\x00\x18"    /* enc key length */
12134                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12135                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12136                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12137                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12138                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12139                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12140                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12141                 .klen   = 8 + 32 + 24,
12142                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12143                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12144                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12145                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12146                 .alen   = 16,
12147                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12148                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12149                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12150                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12151                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12152                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12153                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12154                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12155                 .ilen   = 64,
12156                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12157                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12158                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12159                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12160                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12161                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12162                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12163                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12164                           "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
12165                           "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
12166                           "\xca\x71\x85\x93\xf7\x85\x55\x8b"
12167                           "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
12168                 .rlen   = 64 + 32,
12169         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12170 #ifdef __LITTLE_ENDIAN
12171                 .key    = "\x08\x00"            /* rta length */
12172                           "\x01\x00"            /* rta type */
12173 #else
12174                 .key    = "\x00\x08"            /* rta length */
12175                           "\x00\x01"            /* rta type */
12176 #endif
12177                           "\x00\x00\x00\x20"    /* enc key length */
12178                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12179                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12180                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12181                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12182                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12183                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12184                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12185                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12186                 .klen   = 8 + 32 + 32,
12187                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12188                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12189                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12190                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12191                 .alen   = 16,
12192                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12193                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12194                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12195                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12196                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12197                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12198                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12199                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12200                 .ilen   = 64,
12201                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12202                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12203                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12204                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12205                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12206                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12207                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12208                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12209                           "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
12210                           "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
12211                           "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
12212                           "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
12213                 .rlen   = 64 + 32,
12214         },
12215 };
12216
12217 static const struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
12218         { /* RFC 3602 Case 1 */
12219 #ifdef __LITTLE_ENDIAN
12220                 .key    = "\x08\x00"            /* rta length */
12221                           "\x01\x00"            /* rta type */
12222 #else
12223                 .key    = "\x00\x08"            /* rta length */
12224                           "\x00\x01"            /* rta type */
12225 #endif
12226                           "\x00\x00\x00\x10"    /* enc key length */
12227                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12228                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12229                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12230                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12231                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12232                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12233                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12234                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12235                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12236                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12237                 .klen   = 8 + 64 + 16,
12238                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12239                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12240                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12241                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12242                 .alen   = 16,
12243                 .input  = "Single block msg",
12244                 .ilen   = 16,
12245                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12246                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12247                           "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
12248                           "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
12249                           "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
12250                           "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
12251                           "\xec\xbd\x50\x08\x07\x64\x1a\x49"
12252                           "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
12253                           "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
12254                           "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
12255                 .rlen   = 16 + 64,
12256         }, { /* RFC 3602 Case 2 */
12257 #ifdef __LITTLE_ENDIAN
12258                 .key    = "\x08\x00"            /* rta length */
12259                           "\x01\x00"            /* rta type */
12260 #else
12261                 .key    = "\x00\x08"            /* rta length */
12262                           "\x00\x01"            /* rta type */
12263 #endif
12264                           "\x00\x00\x00\x10"    /* enc key length */
12265                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12266                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12267                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12268                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12269                           "\x40\x41\x42\x43\x44\x45\x46\x47"
12270                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12271                           "\x50\x51\x52\x53\x54\x55\x56\x57"
12272                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12273                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12274                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12275                 .klen   = 8 + 64 + 16,
12276                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12277                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12278                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12279                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12280                 .alen   = 16,
12281                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12282                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12283                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12284                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12285                 .ilen   = 32,
12286                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12287                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12288                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12289                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12290                           "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
12291                           "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
12292                           "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
12293                           "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
12294                           "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
12295                           "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
12296                           "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
12297                           "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
12298                 .rlen   = 32 + 64,
12299         }, { /* RFC 3602 Case 3 */
12300 #ifdef __LITTLE_ENDIAN
12301                 .key    = "\x08\x00"            /* rta length */
12302                           "\x01\x00"            /* rta type */
12303 #else
12304                 .key    = "\x00\x08"            /* rta length */
12305                           "\x00\x01"            /* rta type */
12306 #endif
12307                           "\x00\x00\x00\x10"    /* enc key length */
12308                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12309                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12310                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12311                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12312                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12313                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12314                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12315                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12316                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12317                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12318                 .klen   = 8 + 64 + 16,
12319                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12320                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12321                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12322                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12323                 .alen   = 16,
12324                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12325                 .ilen   = 48,
12326                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12327                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12328                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12329                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12330                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12331                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12332                           "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
12333                           "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
12334                           "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
12335                           "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
12336                           "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
12337                           "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
12338                           "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
12339                           "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
12340                 .rlen   = 48 + 64,
12341         }, { /* RFC 3602 Case 4 */
12342 #ifdef __LITTLE_ENDIAN
12343                 .key    = "\x08\x00"            /* rta length */
12344                           "\x01\x00"            /* rta type */
12345 #else
12346                 .key    = "\x00\x08"            /* rta length */
12347                           "\x00\x01"            /* rta type */
12348 #endif
12349                           "\x00\x00\x00\x10"    /* enc key length */
12350                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12351                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12352                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12353                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12354                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12355                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12356                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12357                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12358                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12359                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12360                 .klen   = 8 + 64 + 16,
12361                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12362                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12363                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12364                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12365                 .alen   = 16,
12366                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12367                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12368                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12369                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12370                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12371                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12372                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12373                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12374                 .ilen   = 64,
12375                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12376                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12377                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12378                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12379                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12380                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12381                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12382                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12383                           "\x82\xcd\x42\x28\x21\x20\x15\xcc"
12384                           "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
12385                           "\x61\x32\x82\x85\xcf\x27\xed\xb4"
12386                           "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
12387                           "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
12388                           "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
12389                           "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
12390                           "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
12391                 .rlen   = 64 + 64,
12392         }, { /* RFC 3602 Case 5 */
12393 #ifdef __LITTLE_ENDIAN
12394                 .key    = "\x08\x00"            /* rta length */
12395                           "\x01\x00"            /* rta type */
12396 #else
12397                 .key    = "\x00\x08"            /* rta length */
12398                           "\x00\x01"            /* rta type */
12399 #endif
12400                           "\x00\x00\x00\x10"    /* enc key length */
12401                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12402                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12403                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12404                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12405                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12406                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12407                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12408                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12409                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12410                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12411                 .klen   = 8 + 64 + 16,
12412                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12413                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12414                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12415                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12416                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12417                 .alen   = 24,
12418                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12419                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12420                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12421                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12422                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12423                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12424                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12425                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12426                           "\x01\x02\x03\x04\x05\x06\x07\x08"
12427                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12428                 .ilen   = 80,
12429                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12430                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12431                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12432                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12433                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12434                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12435                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12436                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12437                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12438                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12439                           "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
12440                           "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
12441                           "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
12442                           "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
12443                           "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
12444                           "\x92\x26\xc1\x76\x20\x11\xeb\xba"
12445                           "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
12446                           "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
12447                 .rlen   = 80 + 64,
12448        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12449 #ifdef __LITTLE_ENDIAN
12450                 .key    = "\x08\x00"            /* rta length */
12451                           "\x01\x00"            /* rta type */
12452 #else
12453                 .key    = "\x00\x08"            /* rta length */
12454                           "\x00\x01"            /* rta type */
12455 #endif
12456                           "\x00\x00\x00\x18"    /* enc key length */
12457                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12458                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12459                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12460                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12461                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12462                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12463                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12464                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12465                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12466                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12467                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12468                 .klen   = 8 + 64 + 24,
12469                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12470                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12471                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12472                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12473                 .alen   = 16,
12474                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12475                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12476                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12477                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12478                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12479                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12480                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12481                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12482                 .ilen   = 64,
12483                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12484                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12485                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12486                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12487                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12488                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12489                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12490                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12491                           "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
12492                           "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
12493                           "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
12494                           "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
12495                           "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
12496                           "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
12497                           "\x8d\x43\x98\xa7\x94\x16\x07\x02"
12498                           "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
12499                 .rlen   = 64 + 64,
12500         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12501 #ifdef __LITTLE_ENDIAN
12502                 .key    = "\x08\x00"            /* rta length */
12503                           "\x01\x00"            /* rta type */
12504 #else
12505                 .key    = "\x00\x08"            /* rta length */
12506                           "\x00\x01"            /* rta type */
12507 #endif
12508                           "\x00\x00\x00\x20"    /* enc key length */
12509                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12510                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12511                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12512                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12513                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12514                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12515                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12516                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12517                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12518                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12519                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12520                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12521                 .klen   = 8 + 64 + 32,
12522                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12523                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12524                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12525                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12526                 .alen   = 16,
12527                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12528                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12529                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12530                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12531                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12532                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12533                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12534                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12535                 .ilen   = 64,
12536                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12537                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12538                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12539                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12540                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12541                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12542                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12543                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12544                           "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
12545                           "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
12546                           "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
12547                           "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
12548                           "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
12549                           "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
12550                           "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
12551                           "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
12552                 .rlen   = 64 + 64,
12553         },
12554 };
12555
12556 static const struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
12557         { /*Generated with cryptopp*/
12558 #ifdef __LITTLE_ENDIAN
12559                 .key    = "\x08\x00"            /* rta length */
12560                           "\x01\x00"            /* rta type */
12561 #else
12562         .key    = "\x00\x08"            /* rta length */
12563                           "\x00\x01"            /* rta type */
12564 #endif
12565                           "\x00\x00\x00\x08"    /* enc key length */
12566                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12567                   "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12568                           "\x22\x33\x44\x55"
12569                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12570                 .klen   = 8 + 20 + 8,
12571                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12572                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12573                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12574                 .alen   = 16,
12575                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12576                           "\x53\x20\x63\x65\x65\x72\x73\x74"
12577                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12578                           "\x20\x79\x65\x53\x72\x63\x74\x65"
12579                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12580                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
12581                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12582                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
12583                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12584                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12585                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12586                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12587                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
12588                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12589                           "\x63\x65\x65\x72\x73\x74\x54\x20"
12590                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12591                 .ilen   = 128,
12592                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12593                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12594                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12595                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12596                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12597                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12598                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12599                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12600                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12601                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12602                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12603                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12604                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12605                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12606                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12607                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12608                           "\x95\x16\x20\x09\xf5\x95\x19\xfd"
12609                           "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
12610                           "\x5c\x44\xa9\x37",
12611                           .rlen = 128 + 20,
12612         },
12613 };
12614
12615 static const struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
12616         { /*Generated with cryptopp*/
12617 #ifdef __LITTLE_ENDIAN
12618                 .key    = "\x08\x00"            /* rta length */
12619                           "\x01\x00"            /* rta type */
12620 #else
12621                 .key    = "\x00\x08"            /* rta length */
12622                           "\x00\x01"            /* rta type */
12623 #endif
12624                           "\x00\x00\x00\x08"    /* enc key length */
12625                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12626                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12627                   "\x22\x33\x44\x55\x66\x77\x88\x99"
12628                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12629                 .klen   = 8 + 24 + 8,
12630                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12631                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12632                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12633                 .alen   = 16,
12634                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12635                           "\x53\x20\x63\x65\x65\x72\x73\x74"
12636                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12637                           "\x20\x79\x65\x53\x72\x63\x74\x65"
12638                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12639                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
12640                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12641                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
12642                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12643                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12644                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12645                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12646                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
12647                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12648                           "\x63\x65\x65\x72\x73\x74\x54\x20"
12649                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12650                 .ilen   = 128,
12651                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12652                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12653                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12654                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12655                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12656                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12657                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12658                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12659                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12660                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12661                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12662                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12663                   "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12664                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12665                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12666                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12667                           "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
12668                           "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
12669                           "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
12670                 .rlen   = 128 + 24,
12671         },
12672 };
12673
12674 static const struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
12675         { /*Generated with cryptopp*/
12676 #ifdef __LITTLE_ENDIAN
12677                 .key    = "\x08\x00"            /* rta length */
12678                           "\x01\x00"            /* rta type */
12679 #else
12680                 .key    = "\x00\x08"            /* rta length */
12681                           "\x00\x01"            /* rta type */
12682 #endif
12683                           "\x00\x00\x00\x08"    /* enc key length */
12684                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12685                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12686                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12687                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12688                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12689                 .klen   = 8 + 32 + 8,
12690                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12691                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12692                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12693                 .alen   = 16,
12694                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12695                           "\x53\x20\x63\x65\x65\x72\x73\x74"
12696                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12697                           "\x20\x79\x65\x53\x72\x63\x74\x65"
12698                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12699                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
12700                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12701                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
12702                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12703                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12704                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12705                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12706                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
12707                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12708                           "\x63\x65\x65\x72\x73\x74\x54\x20"
12709                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12710                 .ilen   = 128,
12711                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12712                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12713                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12714                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12715                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12716                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12717                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12718                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12719                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12720                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12721                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12722                   "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12723                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12724                   "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12725                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12726                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12727                           "\xc6\x58\xa1\x60\x70\x91\x39\x36"
12728                           "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
12729                           "\xde\x63\xde\x76\x52\xde\x9f\xba"
12730                           "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
12731                 .rlen   = 128 + 32,
12732         },
12733 };
12734
12735 static const struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
12736         { /*Generated with cryptopp*/
12737 #ifdef __LITTLE_ENDIAN
12738                 .key    = "\x08\x00"            /* rta length */
12739                           "\x01\x00"            /* rta type */
12740 #else
12741                 .key    = "\x00\x08"            /* rta length */
12742                           "\x00\x01"            /* rta type */
12743 #endif
12744                           "\x00\x00\x00\x08"    /* enc key length */
12745                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12746                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12747                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12748                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12749                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12750                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12751                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12752                 .klen   = 8 + 48 + 8,
12753                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12754                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12755                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12756                 .alen   = 16,
12757                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12758                           "\x53\x20\x63\x65\x65\x72\x73\x74"
12759                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12760                           "\x20\x79\x65\x53\x72\x63\x74\x65"
12761                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12762                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
12763                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12764                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
12765                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12766                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12767                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12768                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12769                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
12770                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12771                           "\x63\x65\x65\x72\x73\x74\x54\x20"
12772                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12773                 .ilen   = 128,
12774                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12775                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12776                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12777                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12778                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12779                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12780                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12781                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12782                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12783                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12784                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12785                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12786                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12787                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12788                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12789                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12790                           "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
12791                           "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
12792                           "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
12793                           "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
12794                           "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
12795                           "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
12796                 .rlen   = 128 + 48,
12797         },
12798 };
12799
12800 static const struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
12801         { /*Generated with cryptopp*/
12802 #ifdef __LITTLE_ENDIAN
12803                 .key    = "\x08\x00"            /* rta length */
12804                   "\x01\x00"            /* rta type */
12805 #else
12806                 .key    = "\x00\x08"            /* rta length */
12807                           "\x00\x01"            /* rta type */
12808 #endif
12809                           "\x00\x00\x00\x08"    /* enc key length */
12810                   "\x11\x22\x33\x44\x55\x66\x77\x88"
12811                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12812                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12813                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12814                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12815                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12816                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12817                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12818                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12819                 .klen   = 8 + 64 + 8,
12820                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12821                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12822                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12823                 .alen   = 16,
12824                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12825                           "\x53\x20\x63\x65\x65\x72\x73\x74"
12826                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12827                           "\x20\x79\x65\x53\x72\x63\x74\x65"
12828                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12829                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
12830                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12831                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
12832                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12833                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12834                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12835                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12836                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
12837                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12838                           "\x63\x65\x65\x72\x73\x74\x54\x20"
12839                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12840                 .ilen   = 128,
12841                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12842                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12843                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12844                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12845                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12846                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12847                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12848                   "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12849                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12850                   "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12851                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12852                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12853                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12854                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12855                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12856                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12857                           "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
12858                           "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
12859                           "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
12860                           "\x58\x83\xda\x67\xfb\x21\x24\xa2"
12861                           "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
12862                           "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
12863                           "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
12864                           "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
12865                 .rlen   = 128 + 64,
12866         },
12867 };
12868
12869 static const struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
12870         { /*Generated with cryptopp*/
12871 #ifdef __LITTLE_ENDIAN
12872                 .key    = "\x08\x00"            /* rta length */
12873                           "\x01\x00"            /* rta type */
12874 #else
12875                 .key    = "\x00\x08"            /* rta length */
12876                           "\x00\x01"            /* rta type */
12877 #endif
12878                           "\x00\x00\x00\x18"    /* enc key length */
12879                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12880                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12881                           "\x22\x33\x44\x55"
12882                   "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
12883                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
12884                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
12885                 .klen   = 8 + 20 + 24,
12886                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12887                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12888                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12889                 .alen   = 16,
12890                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12891                           "\x53\x20\x63\x65\x65\x72\x73\x74"
12892                   "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12893                           "\x20\x79\x65\x53\x72\x63\x74\x65"
12894                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12895                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
12896                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12897                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
12898                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12899                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12900                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12901                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12902                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
12903                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12904                           "\x63\x65\x65\x72\x73\x74\x54\x20"
12905                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12906                 .ilen   = 128,
12907                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
12908                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
12909                   "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
12910                   "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
12911                   "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
12912                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
12913                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
12914                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
12915                   "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
12916                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
12917                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
12918                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
12919                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
12920                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
12921                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
12922                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
12923                           "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
12924                           "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
12925                           "\xd1\x60\x91\xb3",
12926                           .rlen = 128 + 20,
12927         },
12928 };
12929
12930 static const struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
12931         { /*Generated with cryptopp*/
12932 #ifdef __LITTLE_ENDIAN
12933                 .key    = "\x08\x00"            /* rta length */
12934                           "\x01\x00"            /* rta type */
12935 #else
12936                 .key    = "\x00\x08"            /* rta length */
12937                           "\x00\x01"            /* rta type */
12938 #endif
12939                           "\x00\x00\x00\x18"    /* enc key length */
12940                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12941                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12942                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12943                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
12944                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
12945                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
12946                 .klen   = 8 + 24 + 24,
12947                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12948                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12949                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12950                 .alen   = 16,
12951                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12952                           "\x53\x20\x63\x65\x65\x72\x73\x74"
12953                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12954                           "\x20\x79\x65\x53\x72\x63\x74\x65"
12955                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12956                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
12957                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12958                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
12959                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12960                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12961                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12962                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12963                   "\x72\x63\x74\x65\x20\x73\x6f\x54"
12964                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12965                           "\x63\x65\x65\x72\x73\x74\x54\x20"
12966                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12967                 .ilen   = 128,
12968                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
12969                   "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
12970                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
12971                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
12972                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
12973                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
12974                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
12975                   "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
12976                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
12977                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
12978                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
12979                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
12980                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
12981                   "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
12982                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
12983                   "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
12984                           "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
12985                           "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
12986                           "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
12987                           .rlen = 128 + 24,
12988         },
12989 };
12990
12991 static const struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
12992         { /*Generated with cryptopp*/
12993 #ifdef __LITTLE_ENDIAN
12994                 .key    = "\x08\x00"            /* rta length */
12995                           "\x01\x00"            /* rta type */
12996 #else
12997                 .key    = "\x00\x08"            /* rta length */
12998                           "\x00\x01"            /* rta type */
12999 #endif
13000                           "\x00\x00\x00\x18"    /* enc key length */
13001                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13002                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13003                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13004                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13005                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13006                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13007                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13008                 .klen   = 8 + 32 + 24,
13009                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13010                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13011                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13012                 .alen   = 16,
13013                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13014                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13015                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13016                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13017                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13018                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13019                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13020                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13021                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13022                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13023                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13024                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13025                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13026                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13027                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13028                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13029                 .ilen   = 128,
13030                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13031                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13032                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13033                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13034                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13035                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13036                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13037                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13038                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13039                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13040                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13041                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13042                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13043                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13044                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13045                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13046                           "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
13047                           "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
13048                           "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
13049                           "\xca\x43\x95\xdf\x80\x61\x81\xa9",
13050                 .rlen   = 128 + 32,
13051         },
13052 };
13053
13054 static const struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
13055         { /*Generated with cryptopp*/
13056 #ifdef __LITTLE_ENDIAN
13057                 .key    = "\x08\x00"            /* rta length */
13058                           "\x01\x00"            /* rta type */
13059 #else
13060                 .key    = "\x00\x08"            /* rta length */
13061                           "\x00\x01"            /* rta type */
13062 #endif
13063                           "\x00\x00\x00\x18"    /* enc key length */
13064                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13065                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13066                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13067                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13068                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13069                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13070                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13071                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13072                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13073                 .klen   = 8 + 48 + 24,
13074                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13075                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13076                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13077                 .alen   = 16,
13078                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13079                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13080                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13081                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13082                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13083                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13084                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13085                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13086                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13087                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13088                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13089                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13090                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13091                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13092                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13093                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13094                 .ilen   = 128,
13095                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13096                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13097                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13098                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13099                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13100                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13101                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13102                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13103                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13104                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13105                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13106                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13107                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13108                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13109                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13110                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13111                           "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
13112                   "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
13113                           "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
13114                           "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
13115                           "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
13116                           "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
13117                 .rlen   = 128 + 48,
13118         },
13119 };
13120
13121 static const struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
13122         { /*Generated with cryptopp*/
13123 #ifdef __LITTLE_ENDIAN
13124                 .key    = "\x08\x00"            /* rta length */
13125                           "\x01\x00"            /* rta type */
13126 #else
13127                 .key    = "\x00\x08"            /* rta length */
13128                           "\x00\x01"            /* rta type */
13129 #endif
13130                           "\x00\x00\x00\x18"    /* enc key length */
13131                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13132                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13133                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13134                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13135                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13136                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13137                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13138                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13139                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13140                   "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13141                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13142                 .klen   = 8 + 64 + 24,
13143                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13144                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13145                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13146                 .alen   = 16,
13147                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13148                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13149                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13150                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13151                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13152                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13153                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13154                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13155                   "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13156                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13157                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13158                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13159                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13160                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13161                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13162                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13163                 .ilen   = 128,
13164                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13165                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13166                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13167                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13168                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13169                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13170                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13171                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13172                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13173                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13174                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13175                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13176                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13177                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13178                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13179                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13180                           "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
13181                           "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
13182                           "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
13183                           "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
13184                           "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
13185                           "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
13186                           "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
13187                           "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
13188                 .rlen   = 128 + 64,
13189         },
13190 };
13191
13192 static const struct cipher_testvec aes_lrw_tv_template[] = {
13193         /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
13194         { /* LRW-32-AES 1 */
13195                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
13196                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
13197                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
13198                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
13199                 .klen   = 32,
13200                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13201                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13202                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13203                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13204                 .ctext  = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
13205                           "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
13206                 .len    = 16,
13207         }, { /* LRW-32-AES 2 */
13208                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
13209                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
13210                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
13211                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
13212                 .klen   = 32,
13213                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13214                           "\x00\x00\x00\x00\x00\x00\x00\x02",
13215                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13216                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13217                 .ctext  = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
13218                           "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
13219                 .len    = 16,
13220         }, { /* LRW-32-AES 3 */
13221                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
13222                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
13223                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
13224                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
13225                 .klen   = 32,
13226                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13227                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13228                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13229                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13230                 .ctext  = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
13231                           "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
13232                 .len    = 16,
13233         }, { /* LRW-32-AES 4 */
13234                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
13235                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
13236                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
13237                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
13238                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
13239                 .klen   = 40,
13240                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13241                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13242                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13243                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13244                 .ctext  = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
13245                           "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
13246                 .len    = 16,
13247         }, { /* LRW-32-AES 5 */
13248                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
13249                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
13250                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
13251                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
13252                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
13253                 .klen   = 40,
13254                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13255                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13256                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13257                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13258                 .ctext  = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
13259                           "\xc8\x60\x48\x02\x87\xe3\x34\x06",
13260                 .len    = 16,
13261         }, { /* LRW-32-AES 6 */
13262                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13263                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13264                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13265                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13266                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13267                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13268                 .klen   = 48,
13269                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13270                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13271                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13272                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13273                 .ctext  = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
13274                           "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
13275                 .len    = 16,
13276         }, { /* LRW-32-AES 7 */
13277                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
13278                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
13279                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
13280                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
13281                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
13282                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
13283                 .klen   = 48,
13284                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13285                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13286                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13287                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13288                 .ctext  = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
13289                           "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
13290                 .len    = 16,
13291         }, {
13292 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
13293                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13294                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13295                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13296                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13297                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13298                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13299                 .klen   = 48,
13300                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13301                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13302                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
13303                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13304                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13305                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13306                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13307                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13308                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13309                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13310                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13311                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13312                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13313                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13314                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13315                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13316                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13317                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13318                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13319                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13320                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13321                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13322                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13323                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13324                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13325                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13326                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13327                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13328                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13329                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13330                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13331                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13332                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13333                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13334                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13335                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13336                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13337                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13338                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13339                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13340                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13341                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13342                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13343                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13344                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13345                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13346                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13347                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13348                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13349                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13350                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13351                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13352                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13353                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13354                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13355                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13356                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13357                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13358                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13359                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13360                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13361                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13362                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13363                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13364                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13365                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13366                 .ctext  = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
13367                           "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
13368                           "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
13369                           "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
13370                           "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
13371                           "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
13372                           "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
13373                           "\xe8\x58\x46\x97\x39\x51\x07\xde"
13374                           "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
13375                           "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
13376                           "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
13377                           "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
13378                           "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
13379                           "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
13380                           "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
13381                           "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
13382                           "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
13383                           "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
13384                           "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
13385                           "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
13386                           "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
13387                           "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
13388                           "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
13389                           "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
13390                           "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
13391                           "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
13392                           "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
13393                           "\x41\x30\x58\xc5\x62\x74\x52\x1d"
13394                           "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
13395                           "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
13396                           "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
13397                           "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
13398                           "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
13399                           "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
13400                           "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
13401                           "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
13402                           "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
13403                           "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
13404                           "\xb8\x79\x78\x97\x94\xff\x72\x13"
13405                           "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
13406                           "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
13407                           "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
13408                           "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
13409                           "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
13410                           "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
13411                           "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
13412                           "\x1e\x86\x53\x11\x53\x94\x00\xee"
13413                           "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
13414                           "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
13415                           "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
13416                           "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
13417                           "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
13418                           "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
13419                           "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
13420                           "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
13421                           "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
13422                           "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
13423                           "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
13424                           "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
13425                           "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
13426                           "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
13427                           "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
13428                           "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
13429                           "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
13430                 .len    = 512,
13431                 .also_non_np = 1,
13432                 .np     = 3,
13433                 .tap    = { 512 - 20, 4, 16 },
13434         }
13435 };
13436
13437 static const struct cipher_testvec aes_xts_tv_template[] = {
13438         /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
13439         { /* XTS-AES 1 */
13440                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
13441                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13442                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13443                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13444                 .klen   = 32,
13445                 .fips_skip = 1,
13446                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13447                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13448                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
13449                           "\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                 .ctext  = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
13453                           "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
13454                           "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
13455                           "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
13456                 .len    = 32,
13457         }, { /* XTS-AES 2 */
13458                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
13459                           "\x11\x11\x11\x11\x11\x11\x11\x11"
13460                           "\x22\x22\x22\x22\x22\x22\x22\x22"
13461                           "\x22\x22\x22\x22\x22\x22\x22\x22",
13462                 .klen   = 32,
13463                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
13464                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13465                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
13466                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13467                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13468                           "\x44\x44\x44\x44\x44\x44\x44\x44",
13469                 .ctext  = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
13470                           "\x39\x33\x40\x38\xac\xef\x83\x8b"
13471                           "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
13472                           "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
13473                 .len    = 32,
13474         }, { /* XTS-AES 3 */
13475                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13476                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13477                           "\x22\x22\x22\x22\x22\x22\x22\x22"
13478                           "\x22\x22\x22\x22\x22\x22\x22\x22",
13479                 .klen   = 32,
13480                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
13481                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13482                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
13483                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13484                           "\x44\x44\x44\x44\x44\x44\x44\x44"
13485                           "\x44\x44\x44\x44\x44\x44\x44\x44",
13486                 .ctext  = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
13487                           "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
13488                           "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
13489                           "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
13490                 .len    = 32,
13491         }, { /* XTS-AES 4 */
13492                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
13493                           "\x23\x53\x60\x28\x74\x71\x35\x26"
13494                           "\x31\x41\x59\x26\x53\x58\x97\x93"
13495                           "\x23\x84\x62\x64\x33\x83\x27\x95",
13496                 .klen   = 32,
13497                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13498                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13499                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13500                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13501                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13502                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13503                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13504                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13505                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13506                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13507                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13508                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13509                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13510                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13511                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13512                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13513                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13514                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13515                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13516                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13517                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13518                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13519                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13520                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13521                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13522                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13523                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13524                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13525                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13526                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13527                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13528                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13529                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13530                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13531                           "\x00\x01\x02\x03\x04\x05\x06\x07"
13532                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13533                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13534                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13535                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13536                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13537                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13538                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13539                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13540                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13541                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13542                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13543                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13544                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13545                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13546                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13547                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13548                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13549                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13550                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13551                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13552                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13553                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13554                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13555                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13556                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13557                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13558                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13559                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13560                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13561                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13562                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13563                 .ctext  = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
13564                           "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
13565                           "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
13566                           "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
13567                           "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
13568                           "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
13569                           "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
13570                           "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
13571                           "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
13572                           "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
13573                           "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
13574                           "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
13575                           "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
13576                           "\x22\x97\x61\x46\xae\x20\xce\x84"
13577                           "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
13578                           "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
13579                           "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
13580                           "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
13581                           "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
13582                           "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
13583                           "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
13584                           "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
13585                           "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
13586                           "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
13587                           "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
13588                           "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
13589                           "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
13590                           "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
13591                           "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
13592                           "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
13593                           "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
13594                           "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
13595                           "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
13596                           "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
13597                           "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
13598                           "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
13599                           "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
13600                           "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
13601                           "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
13602                           "\x55\xef\x52\x97\xca\x67\xe9\xf3"
13603                           "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
13604                           "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
13605                           "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
13606                           "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
13607                           "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
13608                           "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
13609                           "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
13610                           "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
13611                           "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
13612                           "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
13613                           "\x18\x84\x69\x77\xae\x11\x9f\x7a"
13614                           "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
13615                           "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
13616                           "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
13617                           "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
13618                           "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
13619                           "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
13620                           "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
13621                           "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
13622                           "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
13623                           "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
13624                           "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
13625                           "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
13626                           "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
13627                 .len    = 512,
13628         }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
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                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13641                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13642                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13643                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13644                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13645                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13646                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13647                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13648                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13649                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13650                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13651                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13652                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13653                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13654                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13655                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13656                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13657                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13658                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13659                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13660                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13661                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13662                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13663                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13664                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13665                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13666                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13667                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13668                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13669                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13670                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13671                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13672                           "\x00\x01\x02\x03\x04\x05\x06\x07"
13673                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13674                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13675                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13676                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13677                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13678                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13679                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13680                           "\x40\x41\x42\x43\x44\x45\x46\x47"
13681                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13682                           "\x50\x51\x52\x53\x54\x55\x56\x57"
13683                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13684                           "\x60\x61\x62\x63\x64\x65\x66\x67"
13685                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13686                           "\x70\x71\x72\x73\x74\x75\x76\x77"
13687                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13688                           "\x80\x81\x82\x83\x84\x85\x86\x87"
13689                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13690                           "\x90\x91\x92\x93\x94\x95\x96\x97"
13691                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13692                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13693                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13694                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13695                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13696                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13697                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13698                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13699                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13700                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13701                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13702                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13703                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13704                 .ctext  = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
13705                           "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
13706                           "\xea\x00\x80\x3f\x5e\x48\x23\x57"
13707                           "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
13708                           "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
13709                           "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
13710                           "\x68\x0a\x86\xac\x35\xad\xfc\x33"
13711                           "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
13712                           "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
13713                           "\xb1\x08\xfd\x10\x98\xba\xec\x70"
13714                           "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
13715                           "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
13716                           "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
13717                           "\xae\xba\x12\x29\x61\xd0\x3a\x75"
13718                           "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
13719                           "\x00\x02\x08\x87\x89\x14\x29\xca"
13720                           "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
13721                           "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
13722                           "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
13723                           "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
13724                           "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
13725                           "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
13726                           "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
13727                           "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
13728                           "\x93\xec\x05\xc5\x2e\x04\x93\xef"
13729                           "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
13730                           "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
13731                           "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
13732                           "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
13733                           "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
13734                           "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
13735                           "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
13736                           "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
13737                           "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
13738                           "\xbc\x48\x14\x57\x77\x8f\x61\x60"
13739                           "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
13740                           "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
13741                           "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
13742                           "\xf4\xc3\x33\xec\x44\x23\x88\x51"
13743                           "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
13744                           "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
13745                           "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
13746                           "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
13747                           "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
13748                           "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
13749                           "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
13750                           "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
13751                           "\x92\x5f\xed\xc4\xae\x74\xff\xac"
13752                           "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
13753                           "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
13754                           "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
13755                           "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
13756                           "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
13757                           "\x94\x30\x54\xff\x84\x01\x14\x93"
13758                           "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
13759                           "\x53\x76\x44\x1a\x77\xed\x43\x85"
13760                           "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
13761                           "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
13762                           "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
13763                           "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
13764                           "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
13765                           "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
13766                           "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
13767                           "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
13768                 .len    = 512,
13769                 .also_non_np = 1,
13770                 .np     = 3,
13771                 .tap    = { 512 - 20, 4, 16 },
13772         }
13773 };
13774
13775 static const struct cipher_testvec aes_ctr_tv_template[] = {
13776         { /* From NIST Special Publication 800-38A, Appendix F.5 */
13777                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
13778                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
13779                 .klen   = 16,
13780                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13781                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13782                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13783                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13784                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13785                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13786                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13787                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13788                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13789                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13790                 .ctext  = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
13791                           "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
13792                           "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
13793                           "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
13794                           "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
13795                           "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
13796                           "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
13797                           "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
13798                 .len    = 64,
13799         }, {
13800                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13801                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13802                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13803                 .klen   = 24,
13804                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13805                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13806                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13807                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13808                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13809                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13810                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13811                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13812                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13813                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13814                 .ctext  = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
13815                           "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
13816                           "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
13817                           "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
13818                           "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
13819                           "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
13820                           "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
13821                           "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
13822                 .len    = 64,
13823         }, {
13824                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13825                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13826                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13827                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13828                 .klen   = 32,
13829                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13830                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13831                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13832                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13833                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13834                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13835                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13836                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13837                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13838                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13839                 .ctext  = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
13840                           "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
13841                           "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
13842                           "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
13843                           "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
13844                           "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
13845                           "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
13846                           "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
13847                 .len    = 64,
13848         }, { /* Generated with Crypto++ */
13849                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
13850                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
13851                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
13852                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
13853                 .klen   = 32,
13854                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
13855                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
13856                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13857                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13858                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13859                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13860                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13861                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13862                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13863                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13864                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13865                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13866                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13867                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13868                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13869                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13870                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13871                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13872                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13873                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13874                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13875                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13876                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13877                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13878                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13879                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13880                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13881                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13882                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13883                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13884                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13885                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13886                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13887                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13888                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13889                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13890                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13891                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13892                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13893                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13894                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13895                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13896                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13897                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13898                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13899                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13900                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13901                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13902                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13903                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13904                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13905                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13906                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13907                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13908                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13909                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13910                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13911                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13912                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13913                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13914                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13915                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13916                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13917                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
13918                 .ctext  = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
13919                           "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
13920                           "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
13921                           "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
13922                           "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
13923                           "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
13924                           "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
13925                           "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
13926                           "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
13927                           "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
13928                           "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
13929                           "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
13930                           "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
13931                           "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
13932                           "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
13933                           "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
13934                           "\x34\x4B\x31\x69\x84\x66\x96\x44"
13935                           "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
13936                           "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
13937                           "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
13938                           "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
13939                           "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
13940                           "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
13941                           "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
13942                           "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
13943                           "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
13944                           "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
13945                           "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
13946                           "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
13947                           "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
13948                           "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
13949                           "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
13950                           "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
13951                           "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
13952                           "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
13953                           "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
13954                           "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
13955                           "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
13956                           "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
13957                           "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
13958                           "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
13959                           "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
13960                           "\x85\x99\x22\xE8\x91\x38\x70\x83"
13961                           "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
13962                           "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
13963                           "\x2F\x69\xEE\x84\x36\x44\x76\x98"
13964                           "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
13965                           "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
13966                           "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
13967                           "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
13968                           "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
13969                           "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
13970                           "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
13971                           "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
13972                           "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
13973                           "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
13974                           "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
13975                           "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
13976                           "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
13977                           "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
13978                           "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
13979                           "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
13980                 .len    = 496,
13981                 .also_non_np = 1,
13982                 .np     = 3,
13983                 .tap    = { 496 - 20, 4, 16 },
13984         }, { /* Generated with Crypto++ */
13985                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
13986                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
13987                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
13988                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
13989                 .klen   = 32,
13990                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
13991                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
13992                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
13993                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13994                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13995                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13996                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13997                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13998                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13999                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14000                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14001                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14002                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14003                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14004                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14005                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14006                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14007                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14008                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14009                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14010                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14011                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14012                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14013                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14014                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14015                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14016                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14017                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14018                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14019                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14020                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14021                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14022                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14023                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14024                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14025                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14026                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14027                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14028                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14029                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14030                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14031                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14032                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14033                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14034                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14035                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14036                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14037                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14038                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14039                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14040                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14041                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14042                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14043                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14044                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14045                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14046                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14047                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14048                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14049                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14050                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14051                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14052                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14053                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
14054                           "\x7B\xE4\x4D",
14055                 .ctext  = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
14056                           "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
14057                           "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
14058                           "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
14059                           "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
14060                           "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
14061                           "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
14062                           "\x75\xDE\x71\x86\x3C\x98\x23\x44"
14063                           "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
14064                           "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
14065                           "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
14066                           "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
14067                           "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
14068                           "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
14069                           "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
14070                           "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
14071                           "\xA8\x28\x69\x65\x31\xE1\x45\x83"
14072                           "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
14073                           "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
14074                           "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
14075                           "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
14076                           "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
14077                           "\x45\x18\x18\x74\x19\xAD\x71\x01"
14078                           "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
14079                           "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
14080                           "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
14081                           "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
14082                           "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
14083                           "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
14084                           "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
14085                           "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
14086                           "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
14087                           "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
14088                           "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
14089                           "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
14090                           "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
14091                           "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
14092                           "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
14093                           "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
14094                           "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
14095                           "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
14096                           "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
14097                           "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
14098                           "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
14099                           "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
14100                           "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
14101                           "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
14102                           "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
14103                           "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
14104                           "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
14105                           "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
14106                           "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
14107                           "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
14108                           "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
14109                           "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
14110                           "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
14111                           "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
14112                           "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
14113                           "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
14114                           "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
14115                           "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
14116                           "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
14117                           "\xFB\xF2\x3F",
14118                 .len    = 499,
14119                 .also_non_np = 1,
14120                 .np     = 2,
14121                 .tap    = { 499 - 16, 16 },
14122         },
14123 };
14124
14125 static const struct cipher_testvec aes_ctr_rfc3686_tv_template[] = {
14126         { /* From RFC 3686 */
14127                 .key    = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
14128                           "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
14129                           "\x00\x00\x00\x30",
14130                 .klen   = 20,
14131                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
14132                 .ptext  = "Single block msg",
14133                 .ctext  = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
14134                           "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
14135                 .len    = 16,
14136         }, {
14137                 .key    = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
14138                           "\x43\xd6\xce\x1f\x32\x53\x91\x63"
14139                           "\x00\x6c\xb6\xdb",
14140                 .klen   = 20,
14141                 .iv     = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
14142                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14143                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14144                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14145                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14146                 .ctext  = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
14147                           "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
14148                           "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
14149                           "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
14150                 .len    = 32,
14151         }, {
14152                 .key    = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
14153                           "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
14154                           "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
14155                           "\x00\x00\x00\x48",
14156                 .klen   = 28,
14157                 .iv     = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
14158                 .ptext  = "Single block msg",
14159                 .ctext  = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
14160                           "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
14161                 .len    = 16,
14162         }, {
14163                 .key    = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
14164                           "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
14165                           "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
14166                           "\x00\x96\xb0\x3b",
14167                 .klen   = 28,
14168                 .iv     = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
14169                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14170                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14171                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14172                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14173                 .ctext  = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
14174                           "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
14175                           "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
14176                           "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
14177                 .len    = 32,
14178         }, {
14179                 .key    = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
14180                           "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
14181                           "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
14182                           "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
14183                           "\x00\x00\x00\x60",
14184                 .klen   = 36,
14185                 .iv     = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
14186                 .ptext  = "Single block msg",
14187                 .ctext  = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
14188                           "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
14189                 .len    = 16,
14190         }, {
14191                 .key    = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
14192                           "\x07\x96\x36\x58\x79\xef\xf8\x86"
14193                           "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
14194                           "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
14195                           "\x00\xfa\xac\x24",
14196                 .klen   = 36,
14197                 .iv     = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
14198                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14199                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14200                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14201                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14202                 .ctext  = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
14203                           "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
14204                           "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
14205                           "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
14206                 .len    = 32,
14207         }, {
14208         // generated using Crypto++
14209                 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
14210                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14211                         "\x10\x11\x12\x13\x14\x15\x16\x17"
14212                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14213                         "\x00\x00\x00\x00",
14214                 .klen = 32 + 4,
14215                 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
14216                 .ptext =
14217                         "\x00\x01\x02\x03\x04\x05\x06\x07"
14218                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14219                         "\x10\x11\x12\x13\x14\x15\x16\x17"
14220                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14221                         "\x20\x21\x22\x23\x24\x25\x26\x27"
14222                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14223                         "\x30\x31\x32\x33\x34\x35\x36\x37"
14224                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14225                         "\x40\x41\x42\x43\x44\x45\x46\x47"
14226                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14227                         "\x50\x51\x52\x53\x54\x55\x56\x57"
14228                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14229                         "\x60\x61\x62\x63\x64\x65\x66\x67"
14230                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14231                         "\x70\x71\x72\x73\x74\x75\x76\x77"
14232                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14233                         "\x80\x81\x82\x83\x84\x85\x86\x87"
14234                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14235                         "\x90\x91\x92\x93\x94\x95\x96\x97"
14236                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14237                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14238                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14239                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14240                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14241                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14242                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14243                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14244                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14245                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14246                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14247                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14248                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14249                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
14250                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
14251                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
14252                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
14253                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
14254                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
14255                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
14256                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
14257                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
14258                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
14259                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
14260                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
14261                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
14262                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
14263                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
14264                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
14265                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
14266                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
14267                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
14268                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
14269                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
14270                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
14271                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
14272                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
14273                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
14274                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
14275                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
14276                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
14277                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
14278                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
14279                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
14280                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
14281                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
14282                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
14283                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
14284                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
14285                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
14286                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
14287                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
14288                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
14289                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
14290                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
14291                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
14292                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
14293                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
14294                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
14295                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
14296                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
14297                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
14298                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
14299                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
14300                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
14301                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
14302                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
14303                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
14304                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
14305                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
14306                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
14307                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
14308                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
14309                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
14310                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
14311                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
14312                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
14313                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
14314                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
14315                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
14316                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
14317                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
14318                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
14319                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
14320                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
14321                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
14322                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
14323                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
14324                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
14325                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
14326                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
14327                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
14328                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
14329                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
14330                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
14331                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
14332                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
14333                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
14334                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
14335                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
14336                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
14337                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
14338                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
14339                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
14340                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
14341                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
14342                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
14343                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
14344                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
14345                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
14346                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
14347                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
14348                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
14349                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
14350                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
14351                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
14352                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
14353                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
14354                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
14355                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
14356                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
14357                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
14358                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
14359                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
14360                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
14361                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
14362                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
14363                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
14364                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
14365                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
14366                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
14367                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
14368                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
14369                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
14370                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
14371                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
14372                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
14373                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
14374                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
14375                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
14376                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
14377                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
14378                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
14379                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
14380                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
14381                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
14382                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
14383                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
14384                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
14385                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
14386                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
14387                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
14388                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
14389                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
14390                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
14391                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
14392                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
14393                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
14394                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
14395                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
14396                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
14397                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
14398                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
14399                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
14400                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
14401                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
14402                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
14403                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
14404                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
14405                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
14406                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
14407                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
14408                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
14409                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
14410                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
14411                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
14412                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
14413                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
14414                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
14415                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
14416                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
14417                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
14418                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
14419                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
14420                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
14421                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
14422                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
14423                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
14424                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
14425                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
14426                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
14427                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
14428                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
14429                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
14430                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
14431                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
14432                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
14433                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
14434                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
14435                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
14436                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
14437                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
14438                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
14439                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
14440                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
14441                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
14442                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
14443                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
14444                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
14445                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
14446                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
14447                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
14448                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
14449                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
14450                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
14451                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
14452                         "\x28\x37\x46\x55\x64\x73\x82\x91"
14453                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
14454                         "\x18\x27\x36\x45\x54\x63\x72\x81"
14455                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
14456                         "\x08\x17\x26\x35\x44\x53\x62\x71"
14457                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
14458                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
14459                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
14460                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
14461                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
14462                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
14463                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
14464                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
14465                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
14466                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
14467                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
14468                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
14469                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
14470                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
14471                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
14472                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
14473                         "\x00\x11\x22\x33\x44\x55\x66\x77"
14474                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
14475                         "\x10\x21\x32\x43\x54\x65\x76\x87"
14476                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
14477                         "\x20\x31\x42\x53\x64\x75\x86\x97"
14478                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
14479                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
14480                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
14481                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
14482                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
14483                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
14484                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
14485                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
14486                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
14487                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
14488                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
14489                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
14490                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
14491                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
14492                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
14493                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
14494                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
14495                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
14496                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
14497                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
14498                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
14499                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
14500                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
14501                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
14502                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
14503                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
14504                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
14505                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
14506                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
14507                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
14508                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
14509                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
14510                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
14511                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
14512                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
14513                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
14514                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
14515                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
14516                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
14517                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
14518                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
14519                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
14520                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
14521                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
14522                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
14523                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
14524                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
14525                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
14526                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
14527                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
14528                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
14529                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
14530                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
14531                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
14532                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
14533                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
14534                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
14535                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
14536                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
14537                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
14538                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
14539                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
14540                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
14541                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
14542                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
14543                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
14544                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
14545                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
14546                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
14547                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
14548                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
14549                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
14550                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
14551                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
14552                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
14553                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
14554                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
14555                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
14556                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
14557                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
14558                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
14559                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
14560                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
14561                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
14562                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
14563                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
14564                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
14565                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
14566                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
14567                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
14568                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
14569                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
14570                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
14571                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
14572                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
14573                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
14574                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
14575                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
14576                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
14577                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
14578                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
14579                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
14580                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
14581                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
14582                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
14583                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
14584                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
14585                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
14586                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
14587                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
14588                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
14589                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
14590                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
14591                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
14592                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
14593                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
14594                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
14595                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
14596                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
14597                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
14598                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
14599                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
14600                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
14601                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
14602                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
14603                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
14604                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
14605                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
14606                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
14607                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
14608                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
14609                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
14610                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
14611                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
14612                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
14613                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
14614                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
14615                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
14616                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
14617                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
14618                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
14619                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
14620                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
14621                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
14622                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
14623                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
14624                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
14625                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
14626                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
14627                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
14628                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
14629                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
14630                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
14631                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
14632                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
14633                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
14634                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
14635                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
14636                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
14637                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
14638                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
14639                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
14640                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
14641                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
14642                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
14643                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
14644                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
14645                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
14646                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
14647                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
14648                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
14649                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
14650                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
14651                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
14652                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
14653                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
14654                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
14655                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
14656                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
14657                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
14658                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
14659                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
14660                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
14661                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
14662                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
14663                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
14664                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
14665                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
14666                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
14667                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
14668                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
14669                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
14670                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
14671                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
14672                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
14673                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
14674                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
14675                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
14676                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
14677                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
14678                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
14679                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
14680                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
14681                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
14682                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
14683                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
14684                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
14685                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
14686                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
14687                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
14688                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
14689                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
14690                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
14691                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
14692                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
14693                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
14694                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
14695                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
14696                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
14697                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
14698                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
14699                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
14700                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
14701                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
14702                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
14703                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
14704                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
14705                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
14706                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
14707                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
14708                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
14709                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
14710                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
14711                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
14712                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
14713                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
14714                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
14715                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
14716                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
14717                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
14718                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
14719                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
14720                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
14721                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
14722                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
14723                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
14724                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
14725                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
14726                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
14727                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
14728                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
14729                         "\x00\x21\x42\x63",
14730                 .ctext =
14731                         "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
14732                         "\xae\xff\x91\x3a\x44\xcf\x38\x32"
14733                         "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
14734                         "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
14735                         "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
14736                         "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
14737                         "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
14738                         "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
14739                         "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
14740                         "\x18\xff\x75\x6d\x06\x2d\x00\xab"
14741                         "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
14742                         "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
14743                         "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
14744                         "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
14745                         "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
14746                         "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
14747                         "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
14748                         "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
14749                         "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
14750                         "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
14751                         "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
14752                         "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
14753                         "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
14754                         "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
14755                         "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
14756                         "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
14757                         "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
14758                         "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
14759                         "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
14760                         "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
14761                         "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
14762                         "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
14763                         "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
14764                         "\x6a\x25\x15\x33\x4e\x45\x08\xec"
14765                         "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
14766                         "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
14767                         "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
14768                         "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
14769                         "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
14770                         "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
14771                         "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
14772                         "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
14773                         "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
14774                         "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
14775                         "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
14776                         "\x04\x02\xef\xd3\x44\xde\x76\x31"
14777                         "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
14778                         "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
14779                         "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
14780                         "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
14781                         "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
14782                         "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
14783                         "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
14784                         "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
14785                         "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
14786                         "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
14787                         "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
14788                         "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
14789                         "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
14790                         "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
14791                         "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
14792                         "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
14793                         "\x32\x03\xed\xf0\x50\x1c\x56\x39"
14794                         "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
14795                         "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
14796                         "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
14797                         "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
14798                         "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
14799                         "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
14800                         "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
14801                         "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
14802                         "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
14803                         "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
14804                         "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
14805                         "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
14806                         "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
14807                         "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
14808                         "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
14809                         "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
14810                         "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
14811                         "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
14812                         "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
14813                         "\x69\x3a\x29\x23\xac\x86\x32\xa5"
14814                         "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
14815                         "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
14816                         "\x59\x6a\xd3\x50\x59\x43\x59\xde"
14817                         "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
14818                         "\x18\x34\x0d\x1a\x63\x33\xed\x10"
14819                         "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
14820                         "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
14821                         "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
14822                         "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
14823                         "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
14824                         "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
14825                         "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
14826                         "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
14827                         "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
14828                         "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
14829                         "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
14830                         "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
14831                         "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
14832                         "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
14833                         "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
14834                         "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
14835                         "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
14836                         "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
14837                         "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
14838                         "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
14839                         "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
14840                         "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
14841                         "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
14842                         "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
14843                         "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
14844                         "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
14845                         "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
14846                         "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
14847                         "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
14848                         "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
14849                         "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
14850                         "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
14851                         "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
14852                         "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
14853                         "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
14854                         "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
14855                         "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
14856                         "\x26\x39\x83\x94\xef\x27\xd8\x53"
14857                         "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
14858                         "\x43\x7c\x95\x0a\x53\xef\x66\xda"
14859                         "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
14860                         "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
14861                         "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
14862                         "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
14863                         "\x88\xee\x73\xcf\x66\x2f\x52\x56"
14864                         "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
14865                         "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
14866                         "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
14867                         "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
14868                         "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
14869                         "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
14870                         "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
14871                         "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
14872                         "\xba\x61\x34\x38\x7c\xda\x48\x3e"
14873                         "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
14874                         "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
14875                         "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
14876                         "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
14877                         "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
14878                         "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
14879                         "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
14880                         "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
14881                         "\x35\x12\xe3\x36\x28\x27\x36\x58"
14882                         "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
14883                         "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
14884                         "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
14885                         "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
14886                         "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
14887                         "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
14888                         "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
14889                         "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
14890                         "\x89\xf3\x78\x35\x44\x62\x78\x72"
14891                         "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
14892                         "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
14893                         "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
14894                         "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
14895                         "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
14896                         "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
14897                         "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
14898                         "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
14899                         "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
14900                         "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
14901                         "\xd2\x49\x77\x81\x6d\x90\x70\xae"
14902                         "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
14903                         "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
14904                         "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
14905                         "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
14906                         "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
14907                         "\x45\x42\x27\x75\x50\xe5\xee\xb8"
14908                         "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
14909                         "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
14910                         "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
14911                         "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
14912                         "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
14913                         "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
14914                         "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
14915                         "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
14916                         "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
14917                         "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
14918                         "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
14919                         "\xa9\x21\x2b\x92\x94\x87\x62\x57"
14920                         "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
14921                         "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
14922                         "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
14923                         "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
14924                         "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
14925                         "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
14926                         "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
14927                         "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
14928                         "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
14929                         "\x69\x34\x78\x61\x24\x21\x9c\x8a"
14930                         "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
14931                         "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
14932                         "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
14933                         "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
14934                         "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
14935                         "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
14936                         "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
14937                         "\xb1\x95\x28\x86\x20\xe9\x17\x49"
14938                         "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
14939                         "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
14940                         "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
14941                         "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
14942                         "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
14943                         "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
14944                         "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
14945                         "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
14946                         "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
14947                         "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
14948                         "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
14949                         "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
14950                         "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
14951                         "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
14952                         "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
14953                         "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
14954                         "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
14955                         "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
14956                         "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
14957                         "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
14958                         "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
14959                         "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
14960                         "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
14961                         "\x29\x90\x46\x30\x92\x69\x7d\x13"
14962                         "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
14963                         "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
14964                         "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
14965                         "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
14966                         "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
14967                         "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
14968                         "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
14969                         "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
14970                         "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
14971                         "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
14972                         "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
14973                         "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
14974                         "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
14975                         "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
14976                         "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
14977                         "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
14978                         "\x77\x65\x08\x60\x11\x76\x4c\x8d"
14979                         "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
14980                         "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
14981                         "\x03\xd1\x24\x95\xec\x6d\xab\x38"
14982                         "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
14983                         "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
14984                         "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
14985                         "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
14986                         "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
14987                         "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
14988                         "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
14989                         "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
14990                         "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
14991                         "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
14992                         "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
14993                         "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
14994                         "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
14995                         "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
14996                         "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
14997                         "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
14998                         "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
14999                         "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
15000                         "\xe5\x79\x81\x73\xcd\x43\x59\x68"
15001                         "\x73\x02\x3b\x78\x21\x72\x43\x00"
15002                         "\x49\x17\xf7\x00\xaf\x68\x24\x53"
15003                         "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
15004                         "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
15005                         "\x11\x94\x13\x69\x51\x09\x28\xde"
15006                         "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
15007                         "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
15008                         "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
15009                         "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
15010                         "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
15011                         "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
15012                         "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
15013                         "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
15014                         "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
15015                         "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
15016                         "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
15017                         "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
15018                         "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
15019                         "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
15020                         "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
15021                         "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
15022                         "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
15023                         "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
15024                         "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
15025                         "\x69\xdc\xab\x24\x57\x60\x47\xc1"
15026                         "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
15027                         "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
15028                         "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
15029                         "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
15030                         "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
15031                         "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
15032                         "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
15033                         "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
15034                         "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
15035                         "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
15036                         "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
15037                         "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
15038                         "\x85\x62\x82\x70\x18\xe2\x9a\x78"
15039                         "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
15040                         "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
15041                         "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
15042                         "\x35\xf3\x61\x06\x72\x84\xc4\x32"
15043                         "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
15044                         "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
15045                         "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
15046                         "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
15047                         "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
15048                         "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
15049                         "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
15050                         "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
15051                         "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
15052                         "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
15053                         "\x4f\x73\x38\x09\x75\x64\x48\xe0"
15054                         "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
15055                         "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
15056                         "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
15057                         "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
15058                         "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
15059                         "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
15060                         "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
15061                         "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
15062                         "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
15063                         "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
15064                         "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
15065                         "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
15066                         "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
15067                         "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
15068                         "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
15069                         "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
15070                         "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
15071                         "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
15072                         "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
15073                         "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
15074                         "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
15075                         "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
15076                         "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
15077                         "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
15078                         "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
15079                         "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
15080                         "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
15081                         "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
15082                         "\xce\x4d\x5f\x18\x60\xce\x87\x22"
15083                         "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
15084                         "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
15085                         "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
15086                         "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
15087                         "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
15088                         "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
15089                         "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
15090                         "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
15091                         "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
15092                         "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
15093                         "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
15094                         "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
15095                         "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
15096                         "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
15097                         "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
15098                         "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
15099                         "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
15100                         "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
15101                         "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
15102                         "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
15103                         "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
15104                         "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
15105                         "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
15106                         "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
15107                         "\xce\x54\xf9\x18\x58\xb5\xff\x44"
15108                         "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
15109                         "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
15110                         "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
15111                         "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
15112                         "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
15113                         "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
15114                         "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
15115                         "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
15116                         "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
15117                         "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
15118                         "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
15119                         "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
15120                         "\x0c\xd6\x04\x14\xde\x51\x74\x75"
15121                         "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
15122                         "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
15123                         "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
15124                         "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
15125                         "\x75\x46\x65\x4e\x07\x34\x37\xa3"
15126                         "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
15127                         "\x69\x24\x0e\x38\x67\x43\x8c\xde"
15128                         "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
15129                         "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
15130                         "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
15131                         "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
15132                         "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
15133                         "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
15134                         "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
15135                         "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
15136                         "\x91\x7d\x62\x64\x96\x72\xde\xfc"
15137                         "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
15138                         "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
15139                         "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
15140                         "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
15141                         "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
15142                         "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
15143                         "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
15144                         "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
15145                         "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
15146                         "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
15147                         "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
15148                         "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
15149                         "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
15150                         "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
15151                         "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
15152                         "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
15153                         "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
15154                         "\xae\xed\x39\x88\x42\x11\x3c\xed"
15155                         "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
15156                         "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
15157                         "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
15158                         "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
15159                         "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
15160                         "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
15161                         "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
15162                         "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
15163                         "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
15164                         "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
15165                         "\x34\x17\xde\xba\x47\xf1\x06\x18"
15166                         "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
15167                         "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
15168                         "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
15169                         "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
15170                         "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
15171                         "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
15172                         "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
15173                         "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
15174                         "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
15175                         "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
15176                         "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
15177                         "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
15178                         "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
15179                         "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
15180                         "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
15181                         "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
15182                         "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
15183                         "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
15184                         "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
15185                         "\x2c\x56\x39\x79\x0f\x69\x44\x75"
15186                         "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
15187                         "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
15188                         "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
15189                         "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
15190                         "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
15191                         "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
15192                         "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
15193                         "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
15194                         "\x63\x9b\xce\x61\x24\x79\xc0\x70"
15195                         "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
15196                         "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
15197                         "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
15198                         "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
15199                         "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
15200                         "\x74\x56\x58\x40\x02\x37\x52\x2c"
15201                         "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
15202                         "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
15203                         "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
15204                         "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
15205                         "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
15206                         "\xed\x38\x80\x36\x72\x43\x27\x49"
15207                         "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
15208                         "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
15209                         "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
15210                         "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
15211                         "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
15212                         "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
15213                         "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
15214                         "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
15215                         "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
15216                         "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
15217                         "\x12\xee\x30\xfe\xd8\x30\xef\x34"
15218                         "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
15219                         "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
15220                         "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
15221                         "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
15222                         "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
15223                         "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
15224                         "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
15225                         "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
15226                         "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
15227                         "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
15228                         "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
15229                         "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
15230                         "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
15231                         "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
15232                         "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
15233                         "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
15234                         "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
15235                         "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
15236                         "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
15237                         "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
15238                         "\x44\x12\xfb\x73\x77\xd4\x13\x39"
15239                         "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
15240                         "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
15241                         "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
15242                         "\x4b\xef\x31\x18\xea\xac\xb1\x84"
15243                         "\x21\xed\xda\x86",
15244                 .len    = 4100,
15245                 .np     = 2,
15246                 .tap    = { 4064, 36 },
15247         },
15248 };
15249
15250 static const struct cipher_testvec aes_ofb_tv_template[] = {
15251          /* From NIST Special Publication 800-38A, Appendix F.5 */
15252         {
15253                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15254                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15255                 .klen   = 16,
15256                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
15257                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15258                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15259                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15260                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15261                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15262                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15263                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15264                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15265                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15266                 .ctext  = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
15267                           "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
15268                           "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
15269                           "\x3c\x52\xda\xc5\x4e\xd8\x25"
15270                           "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
15271                           "\x44\xf7\xa8\x22\x60\xed\xcc"
15272                           "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
15273                           "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
15274                 .len    = 64,
15275         }
15276 };
15277
15278 static const struct aead_testvec aes_gcm_enc_tv_template[] = {
15279         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
15280                 .key    = zeroed_string,
15281                 .klen   = 16,
15282                 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
15283                           "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
15284                 .rlen   = 16,
15285         }, {
15286                 .key    = zeroed_string,
15287                 .klen   = 16,
15288                 .input  = zeroed_string,
15289                 .ilen   = 16,
15290                 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
15291                           "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
15292                           "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
15293                           "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
15294                 .rlen   = 32,
15295         }, {
15296                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15297                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15298                 .klen   = 16,
15299                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15300                           "\xde\xca\xf8\x88",
15301                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15302                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15303                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15304                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15305                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15306                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15307                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15308                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15309                 .ilen   = 64,
15310                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15311                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15312                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15313                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15314                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15315                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15316                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15317                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
15318                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
15319                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
15320                 .rlen   = 80,
15321         }, {
15322                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15323                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15324                 .klen   = 16,
15325                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15326                           "\xde\xca\xf8\x88",
15327                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15328                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15329                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15330                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15331                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15332                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15333                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15334                           "\xba\x63\x7b\x39",
15335                 .ilen   = 60,
15336                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15337                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15338                           "\xab\xad\xda\xd2",
15339                 .alen   = 20,
15340                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15341                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15342                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15343                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15344                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15345                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15346                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15347                           "\x3d\x58\xe0\x91"
15348                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
15349                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
15350                 .rlen   = 76,
15351         }, {
15352                 .key    = zeroed_string,
15353                 .klen   = 24,
15354                 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
15355                           "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
15356                 .rlen   = 16,
15357         }, {
15358                 .key    = zeroed_string,
15359                 .klen   = 24,
15360                 .input  = zeroed_string,
15361                 .ilen   = 16,
15362                 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
15363                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
15364                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
15365                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
15366                 .rlen   = 32,
15367         }, {
15368                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15369                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15370                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15371                 .klen   = 24,
15372                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15373                           "\xde\xca\xf8\x88",
15374                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15375                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15376                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15377                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15378                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15379                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15380                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15381                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15382                 .ilen   = 64,
15383                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15384                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15385                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15386                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15387                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15388                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15389                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15390                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
15391                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
15392                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
15393                 .rlen   = 80,
15394         }, {
15395                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15396                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15397                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15398                 .klen   = 24,
15399                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15400                           "\xde\xca\xf8\x88",
15401                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15402                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15403                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15404                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15405                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15406                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15407                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15408                           "\xba\x63\x7b\x39",
15409                 .ilen   = 60,
15410                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15411                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15412                           "\xab\xad\xda\xd2",
15413                 .alen   = 20,
15414                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15415                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15416                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15417                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15418                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15419                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15420                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15421                           "\xcc\xda\x27\x10"
15422                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
15423                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
15424                 .rlen   = 76,
15425                 .np     = 2,
15426                 .tap    = { 32, 28 },
15427                 .anp    = 2,
15428                 .atap   = { 8, 12 }
15429         }, {
15430                 .key    = zeroed_string,
15431                 .klen   = 32,
15432                 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
15433                           "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
15434                 .rlen   = 16,
15435         }
15436 };
15437
15438 static const struct aead_testvec aes_gcm_dec_tv_template[] = {
15439         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
15440                 .key    = zeroed_string,
15441                 .klen   = 32,
15442                 .input  = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
15443                           "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
15444                           "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
15445                           "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
15446                 .ilen   = 32,
15447                 .result  = zeroed_string,
15448                 .rlen   = 16,
15449         }, {
15450                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15451                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15452                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15453                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15454                 .klen   = 32,
15455                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15456                           "\xde\xca\xf8\x88",
15457                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
15458                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
15459                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
15460                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
15461                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
15462                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
15463                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
15464                           "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
15465                           "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
15466                           "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
15467                 .ilen   = 80,
15468                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15469                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15470                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15471                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15472                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15473                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15474                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15475                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15476                 .rlen   = 64,
15477         }, {
15478                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15479                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15480                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15481                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15482                 .klen   = 32,
15483                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15484                           "\xde\xca\xf8\x88",
15485                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
15486                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
15487                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
15488                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
15489                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
15490                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
15491                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
15492                           "\xbc\xc9\xf6\x62"
15493                           "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
15494                           "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
15495                 .ilen   = 76,
15496                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15497                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15498                           "\xab\xad\xda\xd2",
15499                 .alen   = 20,
15500                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15501                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15502                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15503                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15504                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15505                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15506                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15507                           "\xba\x63\x7b\x39",
15508                 .rlen   = 60,
15509                 .np     = 2,
15510                 .tap    = { 48, 28 },
15511                 .anp    = 3,
15512                 .atap   = { 8, 8, 4 }
15513         }, {
15514                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15515                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15516                 .klen   = 16,
15517                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15518                           "\xde\xca\xf8\x88",
15519                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15520                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15521                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15522                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15523                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15524                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15525                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15526                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
15527                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
15528                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
15529                 .ilen   = 80,
15530                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15531                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15532                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15533                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15534                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15535                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15536                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15537                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15538                 .rlen   = 64,
15539         }, {
15540                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15541                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15542                 .klen   = 16,
15543                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15544                           "\xde\xca\xf8\x88",
15545                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15546                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15547                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15548                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15549                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15550                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15551                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15552                           "\x3d\x58\xe0\x91"
15553                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
15554                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
15555                 .ilen   = 76,
15556                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15557                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15558                           "\xab\xad\xda\xd2",
15559                 .alen   = 20,
15560                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15561                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15562                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15563                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15564                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15565                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15566                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15567                           "\xba\x63\x7b\x39",
15568                 .rlen   = 60,
15569         }, {
15570                 .key    = zeroed_string,
15571                 .klen   = 24,
15572                 .input  = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
15573                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
15574                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
15575                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
15576                 .ilen   = 32,
15577                 .result  = zeroed_string,
15578                 .rlen   = 16,
15579         }, {
15580                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15581                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15582                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15583                 .klen   = 24,
15584                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15585                           "\xde\xca\xf8\x88",
15586                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15587                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15588                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15589                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15590                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15591                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15592                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15593                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
15594                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
15595                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
15596                 .ilen   = 80,
15597                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15598                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15599                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15600                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15601                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15602                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15603                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15604                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15605                 .rlen   = 64,
15606         }, {
15607                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15608                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15609                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15610                 .klen   = 24,
15611                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15612                           "\xde\xca\xf8\x88",
15613                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15614                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15615                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15616                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15617                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15618                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15619                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15620                           "\xcc\xda\x27\x10"
15621                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
15622                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
15623                 .ilen   = 76,
15624                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15625                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15626                           "\xab\xad\xda\xd2",
15627                 .alen   = 20,
15628                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15629                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15630                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15631                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15632                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15633                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15634                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15635                           "\xba\x63\x7b\x39",
15636                 .rlen   = 60,
15637         }
15638 };
15639
15640 static const struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
15641         { /* Generated using Crypto++ */
15642                 .key    = zeroed_string,
15643                 .klen   = 20,
15644                 .iv     = zeroed_string,
15645                 .input  = zeroed_string,
15646                 .ilen   = 16,
15647                 .assoc  = zeroed_string,
15648                 .alen   = 16,
15649                 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
15650                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
15651                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
15652                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
15653                 .rlen   = 32,
15654         },{
15655                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15656                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15657                           "\x00\x00\x00\x00",
15658                 .klen   = 20,
15659                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
15660                 .input  = zeroed_string,
15661                 .ilen   = 16,
15662                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
15663                           "\x00\x00\x00\x00\x00\x00\x00\x01",
15664                 .alen   = 16,
15665                 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
15666                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
15667                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
15668                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
15669                 .rlen   = 32,
15670
15671         }, {
15672                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15673                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15674                           "\x00\x00\x00\x00",
15675                 .klen   = 20,
15676                 .iv     = zeroed_string,
15677                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
15678                           "\x01\x01\x01\x01\x01\x01\x01\x01",
15679                 .ilen   = 16,
15680                 .assoc  = zeroed_string,
15681                 .alen   = 16,
15682                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
15683                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
15684                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
15685                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
15686                 .rlen   = 32,
15687         }, {
15688                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15689                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15690                           "\x00\x00\x00\x00",
15691                 .klen   = 20,
15692                 .iv     = zeroed_string,
15693                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
15694                           "\x01\x01\x01\x01\x01\x01\x01\x01",
15695                 .ilen   = 16,
15696                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
15697                           "\x00\x00\x00\x00\x00\x00\x00\x00",
15698                 .alen   = 16,
15699                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
15700                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
15701                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
15702                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
15703                 .rlen   = 32,
15704         }, {
15705                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15706                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15707                           "\x00\x00\x00\x00",
15708                 .klen   = 20,
15709                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
15710                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
15711                           "\x01\x01\x01\x01\x01\x01\x01\x01",
15712                 .ilen   = 16,
15713                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
15714                           "\x00\x00\x00\x00\x00\x00\x00\x01",
15715                 .alen   = 16,
15716                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
15717                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
15718                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
15719                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
15720                 .rlen   = 32,
15721         }, {
15722                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15723                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15724                           "\x00\x00\x00\x00",
15725                 .klen   = 20,
15726                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
15727                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
15728                           "\x01\x01\x01\x01\x01\x01\x01\x01"
15729                           "\x01\x01\x01\x01\x01\x01\x01\x01"
15730                           "\x01\x01\x01\x01\x01\x01\x01\x01"
15731                           "\x01\x01\x01\x01\x01\x01\x01\x01"
15732                           "\x01\x01\x01\x01\x01\x01\x01\x01"
15733                           "\x01\x01\x01\x01\x01\x01\x01\x01"
15734                           "\x01\x01\x01\x01\x01\x01\x01\x01",
15735                 .ilen   = 64,
15736                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
15737                           "\x00\x00\x00\x00\x00\x00\x00\x01",
15738                 .alen   = 16,
15739                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
15740                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
15741                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
15742                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
15743                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
15744                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
15745                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
15746                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
15747                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
15748                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
15749                 .rlen   = 80,
15750         }, {
15751                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
15752                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15753                           "\x00\x00\x00\x00",
15754                 .klen   = 20,
15755                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
15756                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
15757                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15758                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15759                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15760                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15761                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15762                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15763                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15764                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15765                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15766                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15767                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15768                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15769                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15770                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15771                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15772                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15773                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15774                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15775                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15776                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15777                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15778                           "\xff\xff\xff\xff\xff\xff\xff\xff"
15779                           "\xff\xff\xff\xff\xff\xff\xff\xff",
15780                 .ilen   = 192,
15781                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
15782                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
15783                           "\x89\xab\xcd\xef",
15784                 .alen   = 20,
15785                 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
15786                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
15787                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
15788                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
15789                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
15790                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
15791                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
15792                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
15793                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
15794                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
15795                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
15796                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
15797                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
15798                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
15799                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
15800                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
15801                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
15802                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
15803                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
15804                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
15805                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
15806                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
15807                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
15808                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
15809                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
15810                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
15811                 .rlen   = 208,
15812         }, { /* From draft-mcgrew-gcm-test-01 */
15813                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
15814                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
15815                           "\x2E\x44\x3B\x68",
15816                 .klen   = 20,
15817                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
15818                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
15819                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
15820                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
15821                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
15822                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
15823                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
15824                           "\x69\x70\x09\x63\x79\x62\x65\x72"
15825                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
15826                           "\x00\x21\x00\x01\x01\x02\x02\x01",
15827                 .ilen   = 72,
15828                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
15829                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
15830                           "\x3B\x24\x4C\xFE",
15831                 .alen   = 20,
15832                 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
15833                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
15834                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
15835                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
15836                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
15837                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
15838                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
15839                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
15840                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
15841                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
15842                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
15843                 .rlen   = 88,
15844         }, {
15845                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
15846                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
15847                           "\xCA\xFE\xBA\xBE",
15848                 .klen   = 20,
15849                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
15850                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
15851                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
15852                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
15853                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
15854                           "\x00\x01\x00\x00\x00\x00\x00\x00"
15855                           "\x03\x73\x69\x70\x09\x63\x79\x62"
15856                           "\x65\x72\x63\x69\x74\x79\x02\x64"
15857                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
15858                 .ilen   = 64,
15859                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
15860                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
15861                 .alen   = 16,
15862                 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
15863                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
15864                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
15865                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
15866                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
15867                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
15868                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
15869                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
15870                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
15871                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
15872                 .rlen   = 80,
15873         }, {
15874                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
15875                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
15876                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
15877                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
15878                           "\x11\x22\x33\x44",
15879                 .klen   = 36,
15880                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
15881                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
15882                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
15883                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
15884                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
15885                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
15886                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
15887                           "\x01\x02\x02\x01",
15888                 .ilen   = 52,
15889                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
15890                           "\x01\x02\x03\x04\x05\x06\x07\x08",
15891                 .alen   = 16,
15892                 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
15893                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
15894                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
15895                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
15896                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
15897                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
15898                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
15899                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
15900                           "\x15\x95\x6C\x96",
15901                 .rlen   = 68,
15902         }, {
15903                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
15904                           "\x00\x00\x00\x00\x00\x00\x00\x00"
15905                           "\x00\x00\x00\x00",
15906                 .klen   = 20,
15907                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
15908                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
15909                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
15910                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
15911                           "\x02\x00\x44\x00\x61\x62\x63\x64"
15912                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
15913                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
15914                           "\x75\x76\x77\x61\x62\x63\x64\x65"
15915                           "\x66\x67\x68\x69\x01\x02\x02\x01",
15916                 .ilen   = 64,
15917                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
15918                           "\x00\x00\x00\x00\x00\x00\x00\x00",
15919                 .alen   = 16,
15920                 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
15921                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
15922                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
15923                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
15924                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
15925                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
15926                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
15927                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
15928                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
15929                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
15930                 .rlen   = 80,
15931         }, {
15932                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
15933                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
15934                           "\x57\x69\x0E\x43",
15935                 .klen   = 20,
15936                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
15937                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
15938                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
15939                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
15940                           "\x02\x00\x43\x00\x61\x62\x63\x64"
15941                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
15942                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
15943                           "\x75\x76\x77\x61\x62\x63\x64\x65"
15944                           "\x66\x67\x68\x69\x01\x02\x02\x01",
15945                 .ilen   = 64,
15946                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
15947                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
15948                           "\xA2\xFC\xA1\xA3",
15949                 .alen   = 20,
15950                 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
15951                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
15952                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
15953                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
15954                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
15955                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
15956                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
15957                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
15958                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
15959                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
15960                 .rlen   = 80,
15961         }, {
15962                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
15963                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
15964                           "\x57\x69\x0E\x43",
15965                 .klen   = 20,
15966                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
15967                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
15968                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
15969                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
15970                           "\x01\x02\x02\x01",
15971                 .ilen   = 28,
15972                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
15973                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
15974                           "\xA2\xFC\xA1\xA3",
15975                 .alen   = 20,
15976                 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
15977                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
15978                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
15979                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
15980                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
15981                           "\xE7\xD0\x5D\x35",
15982                 .rlen   = 44,
15983         }, {
15984                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
15985                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
15986                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
15987                           "\xCA\xFE\xBA\xBE",
15988                 .klen   = 28,
15989                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
15990                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
15991                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
15992                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
15993                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
15994                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
15995                 .ilen   = 40,
15996                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
15997                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
15998                 .alen   = 16,
15999                 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
16000                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
16001                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
16002                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
16003                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
16004                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
16005                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
16006                 .rlen   = 56,
16007         }, {
16008                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16009                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16010                           "\xDE\xCA\xF8\x88",
16011                 .klen   = 20,
16012                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16013                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
16014                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
16015                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16016                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
16017                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
16018                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
16019                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
16020                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
16021                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
16022                           "\x23\x01\x01\x01",
16023                 .ilen   = 76,
16024                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16025                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16026                           "\xCE\xFA\xCE\x74",
16027                 .alen   = 20,
16028                 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
16029                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
16030                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
16031                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
16032                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
16033                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
16034                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
16035                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
16036                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
16037                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
16038                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
16039                           "\x69\x62\x34\x36",
16040                 .rlen   = 92,
16041         }, {
16042                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16043                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16044                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16045                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16046                           "\x73\x61\x6C\x74",
16047                 .klen   = 36,
16048                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16049                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
16050                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
16051                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
16052                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
16053                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
16054                 .ilen   = 40,
16055                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16056                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16057                           "\x69\x76\x65\x63",
16058                 .alen   = 20,
16059                 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
16060                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
16061                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
16062                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
16063                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
16064                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
16065                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
16066                 .rlen   = 56,
16067         }, {
16068                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16069                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16070                           "\x57\x69\x0E\x43",
16071                 .klen   = 20,
16072                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16073                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
16074                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
16075                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16076                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
16077                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
16078                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
16079                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
16080                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
16081                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
16082                           "\x15\x01\x01\x01",
16083                 .ilen   = 76,
16084                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16085                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16086                           "\xA2\xFC\xA1\xA3",
16087                 .alen   = 20,
16088                 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
16089                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
16090                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
16091                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
16092                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
16093                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
16094                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
16095                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
16096                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
16097                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
16098                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
16099                           "\x8C\xAA\x81\xE2",
16100                 .rlen   = 92,
16101         }, {
16102                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16103                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16104                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16105                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16106                           "\x73\x61\x6C\x74",
16107                 .klen   = 36,
16108                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16109                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
16110                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
16111                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
16112                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
16113                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
16114                           "\x67\x69\x65\x73\x01\x74\x68\x61"
16115                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
16116                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
16117                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
16118                 .ilen   = 72,
16119                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16120                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16121                           "\x69\x76\x65\x63",
16122                 .alen   = 20,
16123                 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
16124                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
16125                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
16126                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
16127                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
16128                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
16129                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
16130                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
16131                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
16132                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
16133                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
16134                 .rlen   = 88,
16135         }, {
16136                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
16137                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
16138                           "\xD9\x66\x42\x67",
16139                 .klen   = 20,
16140                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16141                 .input  = "\x01\x02\x02\x01",
16142                 .ilen   = 4,
16143                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
16144                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16145                 .alen   = 16,
16146                 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
16147                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
16148                           "\x04\xBE\xF2\x70",
16149                 .rlen   = 20,
16150         }, {
16151                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16152                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16153                           "\xDE\xCA\xF8\x88",
16154                 .klen   = 20,
16155                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16156                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
16157                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
16158                           "\x62\x65\x00\x01",
16159                 .ilen   = 20,
16160                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16161                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16162                           "\xCE\xFA\xCE\x74",
16163                 .alen   = 20,
16164                 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
16165                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
16166                           "\x43\x33\x21\x64\x41\x25\x03\x52"
16167                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
16168                           "\x43\xAF\x8C\x3E",
16169                 .rlen   = 36,
16170         }, {
16171                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
16172                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
16173                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
16174                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
16175                           "\x74\x75\x72\x6E",
16176                 .klen   = 36,
16177                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
16178                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16179                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16180                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16181                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16182                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16183                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16184                           "\x01\x02\x02\x01",
16185                 .ilen   = 52,
16186                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
16187                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
16188                           "\x67\x65\x74\x6D",
16189                 .alen   = 20,
16190                 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
16191                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
16192                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
16193                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
16194                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
16195                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
16196                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
16197                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
16198                           "\x9F\xB4\xC0\x53",
16199                 .rlen   = 68,
16200         }, {
16201                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16202                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16203                           "\x57\x69\x0E\x43",
16204                 .klen   = 20,
16205                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16206                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16207                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16208                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16209                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16210                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16211                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16212                           "\x01\x02\x02\x01",
16213                 .ilen   = 52,
16214                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
16215                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16216                           "\xA2\xFC\xA1\xA3",
16217                 .alen   = 20,
16218                 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
16219                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
16220                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
16221                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
16222                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16223                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16224                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
16225                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
16226                           "\x40\xD7\xCB\x05",
16227                 .rlen   = 68,
16228         }, {
16229                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16230                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16231                           "\x22\x43\x3C\x64",
16232                 .klen   = 20,
16233                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
16234                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
16235                           "\x61\x62\x63\x64\x65\x66\x67\x68"
16236                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
16237                           "\x71\x72\x73\x74\x01\x02\x02\x01",
16238                 .ilen   = 32,
16239                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16240                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
16241                           "\x3A\x23\x4B\xFD",
16242                 .alen   = 20,
16243                 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
16244                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
16245                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
16246                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
16247                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
16248                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
16249                 .rlen   = 48,
16250         }
16251 };
16252
16253 static const struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
16254         { /* Generated using Crypto++ */
16255                 .key    = zeroed_string,
16256                 .klen   = 20,
16257                 .iv     = zeroed_string,
16258                 .input  = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
16259                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
16260                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
16261                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
16262                 .ilen   = 32,
16263                 .assoc  = zeroed_string,
16264                 .alen   = 16,
16265                 .result = zeroed_string,
16266                 .rlen   = 16,
16267
16268         },{
16269                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16270                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16271                           "\x00\x00\x00\x00",
16272                 .klen   = 20,
16273                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16274                 .input  = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
16275                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
16276                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
16277                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
16278                 .ilen   = 32,
16279                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
16280                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16281                 .alen   = 16,
16282                 .result = zeroed_string,
16283                 .rlen   = 16,
16284         }, {
16285                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16286                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16287                           "\x00\x00\x00\x00",
16288                 .klen   = 20,
16289                 .iv     = zeroed_string,
16290                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16291                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16292                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
16293                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
16294                 .ilen   = 32,
16295                 .assoc  = zeroed_string,
16296                 .alen   = 16,
16297                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16298                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16299                 .rlen   = 16,
16300         }, {
16301                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16302                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16303                           "\x00\x00\x00\x00",
16304                 .klen   = 20,
16305                 .iv     = zeroed_string,
16306                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16307                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16308                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
16309                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
16310                 .ilen   = 32,
16311                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16312                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16313                 .alen   = 16,
16314                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16315                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16316                 .rlen   = 16,
16317
16318         }, {
16319                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16320                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16321                           "\x00\x00\x00\x00",
16322                 .klen   = 20,
16323                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16324                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16325                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16326                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
16327                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
16328                 .ilen   = 32,
16329                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16330                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16331                 .alen   = 16,
16332                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16333                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16334                 .rlen   = 16,
16335         }, {
16336                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16337                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16338                           "\x00\x00\x00\x00",
16339                 .klen   = 20,
16340                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16341                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16342                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16343                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
16344                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
16345                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
16346                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
16347                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
16348                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
16349                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
16350                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
16351                 .ilen   = 80,
16352                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16353                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16354                 .alen   = 16,
16355                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16356                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16357                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16358                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16359                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16360                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16361                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16362                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16363                 .rlen   = 64,
16364         }, {
16365                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
16366                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16367                           "\x00\x00\x00\x00",
16368                 .klen   = 20,
16369                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
16370                 .input  = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
16371                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
16372                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
16373                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
16374                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
16375                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
16376                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
16377                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
16378                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
16379                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
16380                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
16381                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
16382                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
16383                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
16384                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
16385                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
16386                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
16387                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
16388                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
16389                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
16390                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
16391                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
16392                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
16393                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
16394                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
16395                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
16396                 .ilen   = 208,
16397                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
16398                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
16399                           "\x89\xab\xcd\xef",
16400                 .alen   = 20,
16401                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
16402                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16403                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16404                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16405                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16406                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16407                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16408                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16409                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16410                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16411                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16412                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16413                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16414                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16415                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16416                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16417                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16418                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16419                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16420                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16421                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16422                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16423                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16424                           "\xff\xff\xff\xff\xff\xff\xff\xff",
16425                 .rlen   = 192,
16426         }, {
16427                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16428                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16429                           "\x2E\x44\x3B\x68",
16430                 .klen   = 20,
16431                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
16432                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
16433                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
16434                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
16435                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
16436                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
16437                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
16438                           "\x69\x70\x09\x63\x79\x62\x65\x72"
16439                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
16440                           "\x00\x21\x00\x01\x01\x02\x02\x01",
16441                 .rlen   = 72,
16442                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16443                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
16444                           "\x3B\x24\x4C\xFE",
16445                 .alen   = 20,
16446                 .input  = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
16447                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
16448                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
16449                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
16450                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
16451                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
16452                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
16453                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
16454                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
16455                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
16456                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
16457                 .ilen   = 88,
16458         }, {
16459                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16460                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16461                           "\xCA\xFE\xBA\xBE",
16462                 .klen   = 20,
16463                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16464                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
16465                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
16466                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
16467                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
16468                           "\x00\x01\x00\x00\x00\x00\x00\x00"
16469                           "\x03\x73\x69\x70\x09\x63\x79\x62"
16470                           "\x65\x72\x63\x69\x74\x79\x02\x64"
16471                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
16472                 .rlen   = 64,
16473                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16474                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16475                 .alen   = 16,
16476                 .input  = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
16477                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
16478                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
16479                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
16480                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
16481                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
16482                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
16483                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
16484                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
16485                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
16486                 .ilen   = 80,
16487         }, {
16488                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16489                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16490                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16491                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16492                           "\x11\x22\x33\x44",
16493                 .klen   = 36,
16494                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
16495                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
16496                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
16497                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
16498                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
16499                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
16500                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
16501                           "\x01\x02\x02\x01",
16502                 .rlen   = 52,
16503                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
16504                           "\x01\x02\x03\x04\x05\x06\x07\x08",
16505                 .alen   = 16,
16506                 .input  = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
16507                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
16508                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
16509                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
16510                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
16511                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
16512                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
16513                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
16514                           "\x15\x95\x6C\x96",
16515                 .ilen   = 68,
16516         }, {
16517                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
16518                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16519                           "\x00\x00\x00\x00",
16520                 .klen   = 20,
16521                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
16522                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
16523                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
16524                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
16525                           "\x02\x00\x44\x00\x61\x62\x63\x64"
16526                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16527                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16528                           "\x75\x76\x77\x61\x62\x63\x64\x65"
16529                           "\x66\x67\x68\x69\x01\x02\x02\x01",
16530                 .rlen   = 64,
16531                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
16532                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16533                 .alen   = 16,
16534                 .input  = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
16535                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
16536                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
16537                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
16538                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
16539                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
16540                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
16541                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
16542                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
16543                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
16544                 .ilen   = 80,
16545         }, {
16546                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16547                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16548                           "\x57\x69\x0E\x43",
16549                 .klen   = 20,
16550                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16551                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
16552                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
16553                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
16554                           "\x02\x00\x43\x00\x61\x62\x63\x64"
16555                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16556                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16557                           "\x75\x76\x77\x61\x62\x63\x64\x65"
16558                           "\x66\x67\x68\x69\x01\x02\x02\x01",
16559                 .rlen   = 64,
16560                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16561                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16562                           "\xA2\xFC\xA1\xA3",
16563                 .alen   = 20,
16564                 .input  = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
16565                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
16566                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
16567                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
16568                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16569                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16570                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
16571                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
16572                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
16573                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
16574                 .ilen   = 80,
16575         }, {
16576                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16577                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16578                           "\x57\x69\x0E\x43",
16579                 .klen   = 20,
16580                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16581                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
16582                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
16583                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
16584                           "\x01\x02\x02\x01",
16585                 .rlen   = 28,
16586                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16587                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16588                           "\xA2\xFC\xA1\xA3",
16589                 .alen   = 20,
16590                 .input  = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
16591                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
16592                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
16593                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
16594                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
16595                           "\xE7\xD0\x5D\x35",
16596                 .ilen   = 44,
16597         }, {
16598                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16599                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16600                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16601                           "\xCA\xFE\xBA\xBE",
16602                 .klen   = 28,
16603                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16604                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
16605                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
16606                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
16607                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
16608                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
16609                 .rlen   = 40,
16610                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16611                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16612                 .alen   = 16,
16613                 .input  = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
16614                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
16615                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
16616                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
16617                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
16618                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
16619                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
16620                 .ilen   = 56,
16621         }, {
16622                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16623                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16624                           "\xDE\xCA\xF8\x88",
16625                 .klen   = 20,
16626                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16627                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
16628                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
16629                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16630                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
16631                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
16632                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
16633                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
16634                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
16635                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
16636                           "\x23\x01\x01\x01",
16637                 .rlen   = 76,
16638                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16639                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16640                           "\xCE\xFA\xCE\x74",
16641                 .alen   = 20,
16642                 .input  = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
16643                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
16644                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
16645                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
16646                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
16647                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
16648                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
16649                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
16650                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
16651                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
16652                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
16653                           "\x69\x62\x34\x36",
16654                 .ilen   = 92,
16655         }, {
16656                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16657                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16658                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16659                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16660                           "\x73\x61\x6C\x74",
16661                 .klen   = 36,
16662                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16663                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
16664                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
16665                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
16666                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
16667                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
16668                 .rlen   = 40,
16669                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16670                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16671                           "\x69\x76\x65\x63",
16672                 .alen   = 20,
16673                 .input  = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
16674                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
16675                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
16676                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
16677                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
16678                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
16679                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
16680                 .ilen   = 56,
16681         }, {
16682                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16683                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16684                           "\x57\x69\x0E\x43",
16685                 .klen   = 20,
16686                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16687                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
16688                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
16689                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16690                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
16691                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
16692                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
16693                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
16694                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
16695                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
16696                           "\x15\x01\x01\x01",
16697                 .rlen   = 76,
16698                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16699                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16700                           "\xA2\xFC\xA1\xA3",
16701                 .alen   = 20,
16702                 .input  = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
16703                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
16704                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
16705                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
16706                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
16707                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
16708                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
16709                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
16710                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
16711                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
16712                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
16713                           "\x8C\xAA\x81\xE2",
16714                 .ilen   = 92,
16715         }, {
16716                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16717                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16718                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16719                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16720                           "\x73\x61\x6C\x74",
16721                 .klen   = 36,
16722                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16723                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
16724                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
16725                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
16726                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
16727                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
16728                           "\x67\x69\x65\x73\x01\x74\x68\x61"
16729                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
16730                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
16731                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
16732                 .rlen   = 72,
16733                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16734                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16735                           "\x69\x76\x65\x63",
16736                 .alen   = 20,
16737                 .input  = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
16738                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
16739                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
16740                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
16741                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
16742                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
16743                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
16744                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
16745                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
16746                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
16747                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
16748                 .ilen   = 88,
16749         }, {
16750                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
16751                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
16752                           "\xD9\x66\x42\x67",
16753                 .klen   = 20,
16754                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16755                 .result = "\x01\x02\x02\x01",
16756                 .rlen   = 4,
16757                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
16758                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16759                 .alen   = 16,
16760                 .input  = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
16761                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
16762                           "\x04\xBE\xF2\x70",
16763                 .ilen   = 20,
16764         }, {
16765                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16766                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16767                           "\xDE\xCA\xF8\x88",
16768                 .klen   = 20,
16769                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16770                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
16771                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
16772                           "\x62\x65\x00\x01",
16773                 .rlen   = 20,
16774                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16775                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16776                           "\xCE\xFA\xCE\x74",
16777                 .alen   = 20,
16778                 .input  = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
16779                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
16780                           "\x43\x33\x21\x64\x41\x25\x03\x52"
16781                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
16782                           "\x43\xAF\x8C\x3E",
16783                 .ilen   = 36,
16784         }, {
16785                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
16786                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
16787                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
16788                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
16789                           "\x74\x75\x72\x6E",
16790                 .klen   = 36,
16791                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
16792                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16793                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16794                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16795                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16796                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16797                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16798                           "\x01\x02\x02\x01",
16799                 .rlen   = 52,
16800                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
16801                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
16802                           "\x67\x65\x74\x6D",
16803                 .alen   = 20,
16804                 .input  = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
16805                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
16806                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
16807                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
16808                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
16809                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
16810                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
16811                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
16812                           "\x9F\xB4\xC0\x53",
16813                 .ilen   = 68,
16814         }, {
16815                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16816                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16817                           "\x57\x69\x0E\x43",
16818                 .klen   = 20,
16819                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16820                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16821                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16822                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16823                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16824                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16825                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16826                           "\x01\x02\x02\x01",
16827                 .rlen   = 52,
16828                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
16829                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16830                           "\xA2\xFC\xA1\xA3",
16831                 .alen   = 20,
16832                 .input  = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
16833                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
16834                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
16835                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
16836                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16837                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16838                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
16839                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
16840                           "\x40\xD7\xCB\x05",
16841                 .ilen   = 68,
16842         }, {
16843                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16844                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16845                           "\x22\x43\x3C\x64",
16846                 .klen   = 20,
16847                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
16848                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
16849                           "\x61\x62\x63\x64\x65\x66\x67\x68"
16850                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
16851                           "\x71\x72\x73\x74\x01\x02\x02\x01",
16852                 .rlen   = 32,
16853                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16854                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
16855                           "\x3A\x23\x4B\xFD",
16856                 .alen   = 20,
16857                 .input  = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
16858                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
16859                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
16860                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
16861                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
16862                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
16863                 .ilen   = 48,
16864         }
16865 };
16866
16867 static const struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
16868         { /* From draft-mcgrew-gcm-test-01 */
16869                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
16870                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
16871                           "\x22\x43\x3c\x64",
16872                 .klen   = 20,
16873                 .iv     = zeroed_string,
16874                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
16875                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16876                 .alen   = 16,
16877                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
16878                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
16879                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
16880                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16881                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
16882                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
16883                           "\x01\x02\x02\x01",
16884                 .ilen   = 52,
16885                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
16886                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
16887                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
16888                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16889                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
16890                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
16891                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
16892                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
16893                           "\xe4\x09\x9a\xaa",
16894                 .rlen   = 68,
16895         }
16896 };
16897
16898 static const struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
16899         { /* From draft-mcgrew-gcm-test-01 */
16900                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
16901                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
16902                           "\x22\x43\x3c\x64",
16903                 .klen   = 20,
16904                 .iv     = zeroed_string,
16905                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
16906                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16907                 .alen   = 16,
16908                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
16909                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
16910                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
16911                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16912                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
16913                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
16914                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
16915                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
16916                           "\xe4\x09\x9a\xaa",
16917                 .ilen   = 68,
16918                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
16919                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
16920                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
16921                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16922                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
16923                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
16924                           "\x01\x02\x02\x01",
16925                 .rlen   = 52,
16926         }, { /* nearly same as previous, but should fail */
16927                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
16928                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
16929                           "\x22\x43\x3c\x64",
16930                 .klen   = 20,
16931                 .iv     = zeroed_string,
16932                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
16933                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16934                 .alen   = 16,
16935                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
16936                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
16937                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
16938                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16939                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
16940                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
16941                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
16942                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
16943                           "\x00\x00\x00\x00",
16944                 .ilen   = 68,
16945                 .novrfy = 1,
16946                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
16947                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
16948                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
16949                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16950                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
16951                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
16952                           "\x01\x02\x02\x01",
16953                 .rlen   = 52,
16954         },
16955 };
16956
16957 static const struct aead_testvec aes_ccm_enc_tv_template[] = {
16958         { /* From RFC 3610 */
16959                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16960                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
16961                 .klen   = 16,
16962                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
16963                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
16964                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
16965                 .alen   = 8,
16966                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16967                           "\x10\x11\x12\x13\x14\x15\x16\x17"
16968                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
16969                 .ilen   = 23,
16970                 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
16971                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
16972                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
16973                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
16974                 .rlen   = 31,
16975         }, {
16976                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16977                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
16978                 .klen   = 16,
16979                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
16980                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
16981                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
16982                           "\x08\x09\x0a\x0b",
16983                 .alen   = 12,
16984                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
16985                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
16986                           "\x1c\x1d\x1e\x1f",
16987                 .ilen   = 20,
16988                 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
16989                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
16990                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
16991                           "\x7d\x9c\x2d\x93",
16992                 .rlen   = 28,
16993         }, {
16994                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16995                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
16996                 .klen   = 16,
16997                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
16998                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
16999                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17000                 .alen   = 8,
17001                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17002                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17003                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17004                           "\x20",
17005                 .ilen   = 25,
17006                 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17007                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17008                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17009                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17010                           "\x7e\x5f\x4e",
17011                 .rlen   = 35,
17012         }, {
17013                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17014                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17015                 .klen   = 16,
17016                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17017                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17018                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17019                           "\x08\x09\x0a\x0b",
17020                 .alen   = 12,
17021                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17022                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17023                           "\x1c\x1d\x1e",
17024                 .ilen   = 19,
17025                 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
17026                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17027                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17028                           "\x4d\x99\x99\x88\xdd",
17029                 .rlen   = 29,
17030         }, {
17031                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17032                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17033                 .klen   = 16,
17034                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17035                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17036                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17037                 .alen   = 8,
17038                 .input  = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17039                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17040                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17041                 .ilen   = 24,
17042                 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17043                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17044                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17045                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17046                 .rlen   = 32,
17047         }, {
17048                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17049                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17050                 .klen   = 16,
17051                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17052                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17053                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17054                           "\x20\xea\x60\xc0",
17055                 .alen   = 12,
17056                 .input  = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17057                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17058                           "\x3a\x80\x3b\xa8\x7f",
17059                 .ilen   = 21,
17060                 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17061                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17062                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17063                           "\x5a\xe0\x70\x45\x51",
17064                 .rlen   = 29,
17065         }, {
17066                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17067                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17068                 .klen   = 16,
17069                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17070                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17071                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17072                 .alen   = 8,
17073                 .input  = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17074                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17075                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
17076                 .ilen   = 23,
17077                 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17078                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17079                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17080                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17081                           "\xba",
17082                 .rlen   = 33,
17083         }, {
17084                 /* This is taken from FIPS CAVS. */
17085                 .key    = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
17086                           "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
17087                 .klen   = 16,
17088                 .iv     = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
17089                 .alen   = 0,
17090                 .input  = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
17091                           "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
17092                           "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
17093                           "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
17094                 .ilen   = 32,
17095                 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
17096                           "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
17097                           "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
17098                           "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
17099                           "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
17100                           "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
17101                 .rlen   = 48,
17102         }, {
17103                 .key    = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
17104                           "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
17105                 .klen   = 16,
17106                 .iv     = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
17107                           "\x30\x60\x15\x56\x00\x00\x00\x00",
17108                 .assoc  = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
17109                           "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
17110                           "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
17111                           "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
17112                 .alen   = 32,
17113                 .input  = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
17114                           "\xa9\x28\x63\xba\x12\xa3\x14\x85"
17115                           "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
17116                           "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
17117                 .ilen   = 32,
17118                 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
17119                           "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
17120                           "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
17121                           "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
17122                           "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
17123                           "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
17124                 .rlen   = 48,
17125         }, {
17126                 .key    = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
17127                           "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
17128                           "\x53\x14\x73\x66\x8d\x88\xf6\x80",
17129                 .klen   = 24,
17130                 .iv     = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
17131                           "\x50\x20\xda\xe2\x00\x00\x00\x00",
17132                 .assoc  = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
17133                           "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
17134                           "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
17135                           "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
17136                 .alen   = 32,
17137                 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
17138                           "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
17139                 .rlen   = 16,
17140         }, {
17141                 .key    = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
17142                           "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
17143                           "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
17144                 .klen   = 24,
17145                 .iv     = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
17146                           "\xef\x09\x2e\x94\x00\x00\x00\x00",
17147                 .assoc  = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
17148                           "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
17149                           "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
17150                           "\xe3\x00\x73\x69\x84\x69\x87\x79",
17151                 .alen   = 32,
17152                 .input  = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
17153                           "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
17154                           "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
17155                           "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
17156                 .ilen   = 32,
17157                 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
17158                           "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
17159                           "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
17160                           "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
17161                           "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
17162                           "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
17163                 .rlen   = 48,
17164         }, {
17165                 .key    = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
17166                           "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
17167                           "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
17168                           "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
17169                 .klen   = 32,
17170                 .iv     = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
17171                           "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
17172                 .assoc  = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
17173                           "\x78\x2b\x94\x02\x29\x0f\x42\x27"
17174                           "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
17175                           "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
17176                 .alen   = 32,
17177                 .input  = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
17178                           "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
17179                           "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
17180                           "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
17181                 .ilen   = 32,
17182                 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
17183                           "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
17184                           "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
17185                           "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
17186                           "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
17187                 .rlen   = 40,
17188         }, {
17189                 .key    = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
17190                           "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
17191                           "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
17192                           "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
17193                 .klen   = 32,
17194                 .iv     = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
17195                           "\x43\xf6\x1e\x50\0\0\0\0",
17196                 .assoc  = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
17197                           "\x13\x02\x01\x0c\x83\x4c\x96\x35"
17198                           "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
17199                           "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
17200                 .alen   = 32,
17201                 .input  = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
17202                           "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
17203                           "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
17204                           "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
17205                 .ilen   = 32,
17206                 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
17207                           "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
17208                           "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
17209                           "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
17210                           "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
17211                           "\x7b\x72\x8a\xf7",
17212                 .rlen   = 44,
17213         }, {
17214                 .key    = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
17215                           "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
17216                           "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
17217                           "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
17218                 .klen   = 32,
17219                 .iv     = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
17220                           "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
17221                 .assoc  = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
17222                           "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
17223                           "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
17224                           "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
17225                 .alen   = 32,
17226                 .input  = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
17227                           "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
17228                           "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
17229                           "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
17230                 .ilen   = 32,
17231                 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
17232                           "\xef\xbb\x80\x21\x04\x6c\x58\x09"
17233                           "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
17234                           "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
17235                           "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
17236                           "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
17237                 .rlen   = 48,
17238         }
17239 };
17240
17241 static const struct aead_testvec aes_ccm_dec_tv_template[] = {
17242         { /* From RFC 3610 */
17243                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17244                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17245                 .klen   = 16,
17246                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
17247                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17248                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17249                 .alen   = 8,
17250                 .input  = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
17251                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
17252                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
17253                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
17254                 .ilen   = 31,
17255                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17256                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17257                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
17258                 .rlen   = 23,
17259         }, {
17260                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17261                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17262                 .klen   = 16,
17263                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
17264                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17265                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17266                           "\x08\x09\x0a\x0b",
17267                 .alen   = 12,
17268                 .input  = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
17269                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
17270                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
17271                           "\x7d\x9c\x2d\x93",
17272                 .ilen   = 28,
17273                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17274                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17275                           "\x1c\x1d\x1e\x1f",
17276                 .rlen   = 20,
17277         }, {
17278                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17279                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17280                 .klen   = 16,
17281                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
17282                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17283                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17284                 .alen   = 8,
17285                 .input  = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17286                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17287                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17288                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17289                           "\x7e\x5f\x4e",
17290                 .ilen   = 35,
17291                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17292                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17293                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17294                           "\x20",
17295                 .rlen   = 25,
17296         }, {
17297                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17298                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17299                 .klen   = 16,
17300                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17301                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17302                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17303                           "\x08\x09\x0a\x0b",
17304                 .alen   = 12,
17305                 .input  = "\x07\x34\x25\x94\x15\x77\x85\x15"
17306                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17307                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17308                           "\x4d\x99\x99\x88\xdd",
17309                 .ilen   = 29,
17310                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17311                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17312                           "\x1c\x1d\x1e",
17313                 .rlen   = 19,
17314         }, {
17315                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17316                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17317                 .klen   = 16,
17318                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17319                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17320                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17321                 .alen   = 8,
17322                 .input  = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17323                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17324                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17325                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17326                 .ilen   = 32,
17327                 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17328                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17329                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17330                 .rlen   = 24,
17331         }, {
17332                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17333                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17334                 .klen   = 16,
17335                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17336                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17337                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17338                           "\x20\xea\x60\xc0",
17339                 .alen   = 12,
17340                 .input  = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17341                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17342                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17343                           "\x5a\xe0\x70\x45\x51",
17344                 .ilen   = 29,
17345                 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17346                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17347                           "\x3a\x80\x3b\xa8\x7f",
17348                 .rlen   = 21,
17349         }, {
17350                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17351                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17352                 .klen   = 16,
17353                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17354                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17355                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17356                 .alen   = 8,
17357                 .input  = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17358                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17359                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17360                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17361                           "\xba",
17362                 .ilen   = 33,
17363                 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17364                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17365                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
17366                 .rlen   = 23,
17367         }, {
17368                 /* This is taken from FIPS CAVS. */
17369                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
17370                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17371                 .klen   = 16,
17372                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17373                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
17374                 .alen   = 0,
17375                 .input  = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
17376                 .ilen   = 8,
17377                 .result = "\x00",
17378                 .rlen   = 0,
17379                 .novrfy = 1,
17380         }, {
17381                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
17382                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17383                 .klen   = 16,
17384                 .iv     = "\x03\xaf\x94\x87\x78\x35\x82\x81"
17385                           "\x7f\x88\x94\x68\x00\x00\x00\x00",
17386                 .alen   = 0,
17387                 .input  = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
17388                 .ilen   = 8,
17389                 .result = "\x00",
17390                 .rlen   = 0,
17391         }, {
17392                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
17393                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
17394                 .klen   = 16,
17395                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17396                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
17397                 .assoc  = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
17398                           "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
17399                           "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
17400                           "\xd8\x94\x99\x91\x81\x54\x62\x57",
17401                 .alen   = 32,
17402                 .input  = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
17403                           "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
17404                           "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
17405                           "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
17406                           "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
17407                           "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
17408                 .ilen   = 48,
17409                 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
17410                           "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
17411                           "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
17412                           "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
17413                 .rlen   = 32,
17414                 .novrfy = 1,
17415         }, {
17416                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
17417                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
17418                 .klen   = 16,
17419                 .iv     = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
17420                           "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
17421                 .assoc  = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
17422                           "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
17423                           "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
17424                           "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
17425                 .alen   = 32,
17426                 .input  = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
17427                           "\xad\x83\x52\x6d\x71\x03\x25\x1c"
17428                           "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
17429                           "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
17430                           "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
17431                           "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
17432                 .ilen   = 48,
17433                 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
17434                           "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
17435                           "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
17436                           "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
17437                 .rlen   = 32,
17438         }, {
17439                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
17440                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
17441                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
17442                 .klen   = 24,
17443                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17444                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
17445                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
17446                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
17447                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
17448                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
17449                 .alen   = 32,
17450                 .input  = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
17451                 .ilen   = 8,
17452                 .result = "\x00",
17453                 .rlen   = 0,
17454         }, {
17455                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
17456                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
17457                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
17458                 .klen   = 24,
17459                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17460                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
17461                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
17462                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
17463                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
17464                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
17465                 .alen   = 32,
17466                 .input  = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
17467                           "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
17468                           "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
17469                           "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
17470                           "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
17471                 .ilen   = 40,
17472                 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
17473                           "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
17474                           "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
17475                           "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
17476                 .rlen   = 32,
17477         }, {
17478                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
17479                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
17480                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
17481                 .klen   = 24,
17482                 .iv     = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
17483                           "\xad\x71\xaa\x1f\x00\x00\x00\x00",
17484                 .assoc  = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
17485                           "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
17486                           "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
17487                           "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
17488                 .alen   = 32,
17489                 .input  = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
17490                           "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
17491                           "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
17492                           "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
17493                           "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
17494                           "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
17495                 .ilen   = 48,
17496                 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
17497                           "\x99\x2a\xa8\xca\x04\x25\x45\x90"
17498                           "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
17499                           "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
17500                 .rlen   = 32,
17501                 .novrfy = 1,
17502         }, {
17503                 .key    = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
17504                           "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
17505                           "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
17506                           "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
17507                 .klen   = 32,
17508                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17509                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
17510                 .alen   = 0,
17511                 .input  = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
17512                 .ilen   = 8,
17513                 .result = "\x00",
17514                 .rlen   = 0,
17515         }, {
17516                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
17517                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
17518                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
17519                           "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
17520                 .klen   = 32,
17521                 .iv     = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
17522                           "\x36\x58\xe0\x6b\x00\x00\x00\x00",
17523                 .alen   = 0,
17524                 .input  = "\x48\x01\x5e\x02\x24\x04\x66\x47"
17525                           "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
17526                           "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
17527                           "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
17528                           "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
17529                           "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
17530                 .ilen   = 48,
17531                 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
17532                           "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
17533                           "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
17534                           "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
17535                 .rlen   = 32,
17536                 .novrfy = 1,
17537         }, {
17538                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
17539                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
17540                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
17541                           "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
17542                 .klen   = 32,
17543                 .iv     = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
17544                           "\x44\x89\x40\x7b\x00\x00\x00\x00",
17545                 .assoc  = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
17546                           "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
17547                           "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
17548                           "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
17549                 .alen   = 32,
17550                 .input  = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
17551                           "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
17552                           "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
17553                           "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
17554                           "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
17555                           "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
17556                 .ilen   = 48,
17557                 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
17558                           "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
17559                           "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
17560                           "\x04\x49\x3b\x19\x93\x57\x25\x5d",
17561                 .rlen   = 32,
17562         },
17563 };
17564
17565 /*
17566  * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
17567  * use a 13-byte nonce, we only support an 11-byte nonce.  Worse,
17568  * they use AD lengths which are not valid ESP header lengths.
17569  *
17570  * These vectors are copied/generated from the ones for rfc4106 with
17571  * the key truncated by one byte..
17572  */
17573 static const struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
17574         { /* Generated using Crypto++ */
17575                 .key    = zeroed_string,
17576                 .klen   = 19,
17577                 .iv     = zeroed_string,
17578                 .input  = zeroed_string,
17579                 .ilen   = 16,
17580                 .assoc  = zeroed_string,
17581                 .alen   = 16,
17582                 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
17583                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
17584                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
17585                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
17586                 .rlen   = 32,
17587         },{
17588                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17589                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17590                           "\x00\x00\x00",
17591                 .klen   = 19,
17592                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
17593                 .input  = zeroed_string,
17594                 .ilen   = 16,
17595                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
17596                           "\x00\x00\x00\x00\x00\x00\x00\x01",
17597                 .alen   = 16,
17598                 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
17599                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
17600                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
17601                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
17602                 .rlen   = 32,
17603
17604         }, {
17605                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17606                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17607                           "\x00\x00\x00",
17608                 .klen   = 19,
17609                 .iv     = zeroed_string,
17610                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17611                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17612                 .ilen   = 16,
17613                 .assoc  = zeroed_string,
17614                 .alen   = 16,
17615                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
17616                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
17617                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
17618                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
17619                 .rlen   = 32,
17620         }, {
17621                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17622                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17623                           "\x00\x00\x00",
17624                 .klen   = 19,
17625                 .iv     = zeroed_string,
17626                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17627                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17628                 .ilen   = 16,
17629                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17630                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17631                 .alen   = 16,
17632                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
17633                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
17634                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
17635                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
17636                 .rlen   = 32,
17637         }, {
17638                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17639                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17640                           "\x00\x00\x00",
17641                 .klen   = 19,
17642                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
17643                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17644                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17645                 .ilen   = 16,
17646                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17647                           "\x00\x00\x00\x00\x00\x00\x00\x01",
17648                 .alen   = 16,
17649                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
17650                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
17651                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
17652                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
17653                 .rlen   = 32,
17654         }, {
17655                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17656                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17657                           "\x00\x00\x00",
17658                 .klen   = 19,
17659                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
17660                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17661                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17662                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17663                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17664                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17665                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17666                           "\x01\x01\x01\x01\x01\x01\x01\x01"
17667                           "\x01\x01\x01\x01\x01\x01\x01\x01",
17668                 .ilen   = 64,
17669                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
17670                           "\x00\x00\x00\x00\x00\x00\x00\x01",
17671                 .alen   = 16,
17672                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
17673                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
17674                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
17675                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
17676                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
17677                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
17678                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
17679                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
17680                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
17681                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
17682                 .rlen   = 80,
17683         }, {
17684                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
17685                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17686                           "\x00\x00\x00",
17687                 .klen   = 19,
17688                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
17689                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
17690                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17691                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17692                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17693                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17694                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17695                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17696                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17697                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17698                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17699                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17700                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17701                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17702                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17703                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17704                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17705                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17706                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17707                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17708                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17709                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17710                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17711                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17712                           "\xff\xff\xff\xff\xff\xff\xff\xff",
17713                 .ilen   = 192,
17714                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
17715                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
17716                           "\x89\xab\xcd\xef",
17717                 .alen   = 20,
17718                 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
17719                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
17720                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
17721                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
17722                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
17723                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
17724                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
17725                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
17726                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
17727                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
17728                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
17729                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
17730                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
17731                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
17732                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
17733                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
17734                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
17735                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
17736                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
17737                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
17738                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
17739                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
17740                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
17741                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
17742                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
17743                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
17744                 .rlen   = 208,
17745         }, { /* From draft-mcgrew-gcm-test-01 */
17746                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17747                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17748                           "\x2E\x44\x3B",
17749                 .klen   = 19,
17750                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
17751                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
17752                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
17753                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
17754                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
17755                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
17756                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
17757                           "\x69\x70\x09\x63\x79\x62\x65\x72"
17758                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
17759                           "\x00\x21\x00\x01\x01\x02\x02\x01",
17760                 .ilen   = 72,
17761                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
17762                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
17763                           "\x3B\x24\x4C\xFE",
17764                 .alen   = 20,
17765                 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
17766                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
17767                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
17768                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
17769                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
17770                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
17771                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
17772                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
17773                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
17774                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
17775                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
17776                 .rlen   = 88,
17777         }, {
17778                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17779                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17780                           "\xCA\xFE\xBA",
17781                 .klen   = 19,
17782                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17783                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
17784                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
17785                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
17786                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
17787                           "\x00\x01\x00\x00\x00\x00\x00\x00"
17788                           "\x03\x73\x69\x70\x09\x63\x79\x62"
17789                           "\x65\x72\x63\x69\x74\x79\x02\x64"
17790                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
17791                 .ilen   = 64,
17792                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17793                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17794                 .alen   = 16,
17795                 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
17796                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
17797                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
17798                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
17799                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
17800                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
17801                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
17802                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
17803                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
17804                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
17805                 .rlen   = 80,
17806         }, {
17807                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17808                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17809                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17810                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17811                           "\x11\x22\x33",
17812                 .klen   = 35,
17813                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
17814                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
17815                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
17816                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
17817                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
17818                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
17819                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
17820                           "\x01\x02\x02\x01",
17821                 .ilen   = 52,
17822                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
17823                           "\x01\x02\x03\x04\x05\x06\x07\x08",
17824                 .alen   = 16,
17825                 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
17826                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
17827                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
17828                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
17829                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
17830                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
17831                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
17832                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
17833                           "\x5A\x48\x6A\x3E",
17834                 .rlen   = 68,
17835         }, {
17836                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
17837                           "\x00\x00\x00\x00\x00\x00\x00\x00"
17838                           "\x00\x00\x00",
17839                 .klen   = 19,
17840                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
17841                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
17842                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
17843                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
17844                           "\x02\x00\x44\x00\x61\x62\x63\x64"
17845                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17846                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17847                           "\x75\x76\x77\x61\x62\x63\x64\x65"
17848                           "\x66\x67\x68\x69\x01\x02\x02\x01",
17849                 .ilen   = 64,
17850                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
17851                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17852                 .alen   = 16,
17853                 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
17854                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
17855                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
17856                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
17857                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
17858                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
17859                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
17860                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
17861                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
17862                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
17863                 .rlen   = 80,
17864         }, {
17865                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17866                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17867                           "\x57\x69\x0E",
17868                 .klen   = 19,
17869                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17870                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
17871                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
17872                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
17873                           "\x02\x00\x43\x00\x61\x62\x63\x64"
17874                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17875                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17876                           "\x75\x76\x77\x61\x62\x63\x64\x65"
17877                           "\x66\x67\x68\x69\x01\x02\x02\x01",
17878                 .ilen   = 64,
17879                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17880                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17881                           "\xA2\xFC\xA1\xA3",
17882                 .alen   = 20,
17883                 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
17884                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
17885                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
17886                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
17887                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
17888                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
17889                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
17890                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
17891                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
17892                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
17893                 .rlen   = 80,
17894         }, {
17895                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17896                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17897                           "\x57\x69\x0E",
17898                 .klen   = 19,
17899                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17900                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
17901                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
17902                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
17903                           "\x01\x02\x02\x01",
17904                 .ilen   = 28,
17905                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17906                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17907                           "\xA2\xFC\xA1\xA3",
17908                 .alen   = 20,
17909                 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
17910                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
17911                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
17912                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
17913                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
17914                           "\x08\xB4\x22\xE4",
17915                 .rlen   = 44,
17916         }, {
17917                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17918                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17919                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17920                           "\xCA\xFE\xBA",
17921                 .klen   = 27,
17922                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17923                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
17924                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
17925                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
17926                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
17927                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
17928                 .ilen   = 40,
17929                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17930                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17931                 .alen   = 16,
17932                 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
17933                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
17934                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
17935                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
17936                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
17937                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
17938                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
17939                 .rlen   = 56,
17940         }, {
17941                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17942                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17943                           "\xDE\xCA\xF8",
17944                 .klen   = 19,
17945                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
17946                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
17947                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
17948                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17949                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
17950                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
17951                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
17952                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
17953                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
17954                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
17955                           "\x23\x01\x01\x01",
17956                 .ilen   = 76,
17957                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
17958                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17959                           "\xCE\xFA\xCE\x74",
17960                 .alen   = 20,
17961                 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
17962                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
17963                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
17964                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
17965                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
17966                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
17967                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
17968                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
17969                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
17970                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
17971                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
17972                           "\x12\x25\x0B\xF9",
17973                 .rlen   = 92,
17974         }, {
17975                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17976                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17977                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17978                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17979                           "\x73\x61\x6C",
17980                 .klen   = 35,
17981                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
17982                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
17983                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
17984                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
17985                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
17986                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
17987                 .ilen   = 40,
17988                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
17989                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17990                           "\x69\x76\x65\x63",
17991                 .alen   = 20,
17992                 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
17993                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
17994                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
17995                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
17996                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
17997                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
17998                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
17999                 .rlen   = 56,
18000         }, {
18001                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18002                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18003                           "\x57\x69\x0E",
18004                 .klen   = 19,
18005                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18006                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
18007                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
18008                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18009                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
18010                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
18011                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
18012                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
18013                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
18014                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
18015                           "\x15\x01\x01\x01",
18016                 .ilen   = 76,
18017                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18018                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18019                           "\xA2\xFC\xA1\xA3",
18020                 .alen   = 20,
18021                 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
18022                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
18023                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
18024                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
18025                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
18026                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
18027                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
18028                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
18029                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
18030                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
18031                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
18032                           "\xCC\xF7\x46\x6F",
18033                 .rlen   = 92,
18034         }, {
18035                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18036                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18037                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18038                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18039                           "\x73\x61\x6C",
18040                 .klen   = 35,
18041                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18042                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
18043                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
18044                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
18045                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
18046                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
18047                           "\x67\x69\x65\x73\x01\x74\x68\x61"
18048                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
18049                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
18050                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
18051                 .ilen   = 72,
18052                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18053                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18054                           "\x69\x76\x65\x63",
18055                 .alen   = 20,
18056                 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
18057                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
18058                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
18059                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
18060                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
18061                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
18062                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
18063                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
18064                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
18065                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
18066                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
18067                 .rlen   = 88,
18068         }, {
18069                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
18070                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
18071                           "\xD9\x66\x42",
18072                 .klen   = 19,
18073                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18074                 .input  = "\x01\x02\x02\x01",
18075                 .ilen   = 4,
18076                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
18077                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18078                 .alen   = 16,
18079                 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
18080                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
18081                           "\xF7\x61\x24\x62",
18082                 .rlen   = 20,
18083         }, {
18084                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18085                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18086                           "\xDE\xCA\xF8",
18087                 .klen   = 19,
18088                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18089                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
18090                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
18091                           "\x62\x65\x00\x01",
18092                 .ilen   = 20,
18093                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
18094                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18095                           "\xCE\xFA\xCE\x74",
18096                 .alen   = 20,
18097                 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
18098                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
18099                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
18100                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
18101                           "\x17\x17\x65\xAD",
18102                 .rlen   = 36,
18103         }, {
18104                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
18105                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
18106                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
18107                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
18108                           "\x74\x75\x72",
18109                 .klen   = 35,
18110                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
18111                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18112                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18113                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18114                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18115                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18116                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18117                           "\x01\x02\x02\x01",
18118                 .ilen   = 52,
18119                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
18120                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
18121                           "\x67\x65\x74\x6D",
18122                 .alen   = 20,
18123                 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
18124                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
18125                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
18126                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
18127                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
18128                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
18129                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
18130                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
18131                           "\x39\xDB\xC8\xDC",
18132                 .rlen   = 68,
18133         }, {
18134                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18135                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18136                           "\x57\x69\x0E",
18137                 .klen   = 19,
18138                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18139                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18140                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18141                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18142                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18143                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18144                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18145                           "\x01\x02\x02\x01",
18146                 .ilen   = 52,
18147                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
18148                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18149                           "\xA2\xFC\xA1\xA3",
18150                 .alen   = 20,
18151                 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
18152                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
18153                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
18154                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
18155                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18156                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18157                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
18158                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
18159                           "\xF4\x95\x5D\x4F",
18160                 .rlen   = 68,
18161         }, {
18162                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18163                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18164                           "\x22\x43\x3C",
18165                 .klen   = 19,
18166                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
18167                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
18168                           "\x61\x62\x63\x64\x65\x66\x67\x68"
18169                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18170                           "\x71\x72\x73\x74\x01\x02\x02\x01",
18171                 .ilen   = 32,
18172                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18173                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18174                           "\x3A\x23\x4B\xFD",
18175                 .alen   = 20,
18176                 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
18177                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
18178                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
18179                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
18180                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
18181                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
18182                 .rlen   = 48,
18183         }
18184 };
18185
18186 static const struct aead_testvec aes_ccm_rfc4309_dec_tv_template[]      = {
18187         { /* Generated using Crypto++ */
18188                 .key    = zeroed_string,
18189                 .klen   = 19,
18190                 .iv     = zeroed_string,
18191                 .result = zeroed_string,
18192                 .rlen   = 16,
18193                 .assoc  = zeroed_string,
18194                 .alen   = 16,
18195                 .input  = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
18196                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
18197                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
18198                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
18199                 .ilen   = 32,
18200         },{
18201                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18202                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18203                           "\x00\x00\x00",
18204                 .klen   = 19,
18205                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18206                 .result = zeroed_string,
18207                 .rlen   = 16,
18208                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
18209                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18210                 .alen   = 16,
18211                 .input  = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
18212                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
18213                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
18214                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
18215                 .ilen   = 32,
18216
18217         }, {
18218                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18219                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18220                           "\x00\x00\x00",
18221                 .klen   = 19,
18222                 .iv     = zeroed_string,
18223                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18224                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18225                 .rlen   = 16,
18226                 .assoc  = zeroed_string,
18227                 .alen   = 16,
18228                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18229                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18230                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
18231                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
18232                 .ilen   = 32,
18233         }, {
18234                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18235                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18236                           "\x00\x00\x00",
18237                 .klen   = 19,
18238                 .iv     = zeroed_string,
18239                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18240                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18241                 .rlen   = 16,
18242                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18243                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18244                 .alen   = 16,
18245                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18246                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18247                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
18248                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
18249                 .ilen   = 32,
18250         }, {
18251                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18252                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18253                           "\x00\x00\x00",
18254                 .klen   = 19,
18255                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18256                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18257                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18258                 .rlen   = 16,
18259                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18260                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18261                 .alen   = 16,
18262                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18263                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18264                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
18265                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
18266                 .ilen   = 32,
18267         }, {
18268                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18269                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18270                           "\x00\x00\x00",
18271                 .klen   = 19,
18272                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18273                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18274                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18275                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18276                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18277                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18278                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18279                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18280                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18281                 .rlen   = 64,
18282                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18283                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18284                 .alen   = 16,
18285                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18286                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18287                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
18288                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
18289                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
18290                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
18291                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
18292                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
18293                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
18294                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
18295                 .ilen   = 80,
18296         }, {
18297                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
18298                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18299                           "\x00\x00\x00",
18300                 .klen   = 19,
18301                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
18302                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
18303                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18304                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18305                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18306                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18307                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18308                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18309                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18310                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18311                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18312                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18313                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18314                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18315                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18316                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18317                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18318                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18319                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18320                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18321                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18322                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18323                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18324                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18325                           "\xff\xff\xff\xff\xff\xff\xff\xff",
18326                 .rlen   = 192,
18327                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18328                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
18329                           "\x89\xab\xcd\xef",
18330                 .alen   = 20,
18331                 .input  = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
18332                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
18333                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
18334                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
18335                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
18336                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
18337                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
18338                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
18339                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
18340                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
18341                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
18342                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
18343                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
18344                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
18345                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
18346                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
18347                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
18348                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
18349                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
18350                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
18351                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
18352                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
18353                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
18354                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
18355                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
18356                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
18357                 .ilen   = 208,
18358         }, { /* From draft-mcgrew-gcm-test-01 */
18359                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18360                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18361                           "\x2E\x44\x3B",
18362                 .klen   = 19,
18363                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
18364                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
18365                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
18366                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
18367                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
18368                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
18369                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
18370                           "\x69\x70\x09\x63\x79\x62\x65\x72"
18371                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
18372                           "\x00\x21\x00\x01\x01\x02\x02\x01",
18373                 .rlen   = 72,
18374                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18375                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
18376                           "\x3B\x24\x4C\xFE",
18377                 .alen   = 20,
18378                 .input  = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
18379                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
18380                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
18381                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
18382                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
18383                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
18384                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
18385                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
18386                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
18387                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
18388                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
18389                 .ilen   = 88,
18390         }, {
18391                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18392                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18393                           "\xCA\xFE\xBA",
18394                 .klen   = 19,
18395                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18396                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
18397                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
18398                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
18399                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
18400                           "\x00\x01\x00\x00\x00\x00\x00\x00"
18401                           "\x03\x73\x69\x70\x09\x63\x79\x62"
18402                           "\x65\x72\x63\x69\x74\x79\x02\x64"
18403                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
18404                 .rlen   = 64,
18405                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18406                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18407                 .alen   = 16,
18408                 .input  = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
18409                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
18410                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
18411                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
18412                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
18413                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
18414                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
18415                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
18416                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
18417                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
18418                 .ilen   = 80,
18419         }, {
18420                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18421                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18422                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18423                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18424                           "\x11\x22\x33",
18425                 .klen   = 35,
18426                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
18427                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
18428                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
18429                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
18430                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
18431                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
18432                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
18433                           "\x01\x02\x02\x01",
18434                 .rlen   = 52,
18435                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
18436                           "\x01\x02\x03\x04\x05\x06\x07\x08",
18437                 .alen   = 16,
18438                 .input  = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
18439                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
18440                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
18441                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
18442                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
18443                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
18444                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
18445                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
18446                           "\x5A\x48\x6A\x3E",
18447                 .ilen   = 68,
18448         }, {
18449                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
18450                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18451                           "\x00\x00\x00",
18452                 .klen   = 19,
18453                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
18454                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
18455                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
18456                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
18457                           "\x02\x00\x44\x00\x61\x62\x63\x64"
18458                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18459                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18460                           "\x75\x76\x77\x61\x62\x63\x64\x65"
18461                           "\x66\x67\x68\x69\x01\x02\x02\x01",
18462                 .rlen   = 64,
18463                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
18464                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18465                 .alen   = 16,
18466                 .input  = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
18467                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
18468                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
18469                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
18470                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
18471                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
18472                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
18473                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
18474                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
18475                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
18476                 .ilen   = 80,
18477         }, {
18478                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18479                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18480                           "\x57\x69\x0E",
18481                 .klen   = 19,
18482                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18483                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
18484                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
18485                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
18486                           "\x02\x00\x43\x00\x61\x62\x63\x64"
18487                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18488                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18489                           "\x75\x76\x77\x61\x62\x63\x64\x65"
18490                           "\x66\x67\x68\x69\x01\x02\x02\x01",
18491                 .rlen   = 64,
18492                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18493                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18494                           "\xA2\xFC\xA1\xA3",
18495                 .alen   = 20,
18496                 .input  = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
18497                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
18498                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
18499                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
18500                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18501                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18502                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
18503                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
18504                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
18505                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
18506                 .ilen   = 80,
18507         }, {
18508                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18509                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18510                           "\x57\x69\x0E",
18511                 .klen   = 19,
18512                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18513                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
18514                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
18515                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
18516                           "\x01\x02\x02\x01",
18517                 .rlen   = 28,
18518                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18519                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18520                           "\xA2\xFC\xA1\xA3",
18521                 .alen   = 20,
18522                 .input  = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
18523                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
18524                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
18525                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
18526                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
18527                           "\x08\xB4\x22\xE4",
18528                 .ilen   = 44,
18529         }, {
18530                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18531                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18532                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18533                           "\xCA\xFE\xBA",
18534                 .klen   = 27,
18535                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18536                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
18537                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
18538                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
18539                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
18540                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
18541                 .rlen   = 40,
18542                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18543                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18544                 .alen   = 16,
18545                 .input  = "\x05\x22\x15\xD1\x52\x56\x85\x04"
18546                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
18547                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
18548                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
18549                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
18550                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
18551                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
18552                 .ilen   = 56,
18553         }, {
18554                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18555                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18556                           "\xDE\xCA\xF8",
18557                 .klen   = 19,
18558                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18559                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
18560                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
18561                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18562                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
18563                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
18564                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
18565                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
18566                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
18567                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
18568                           "\x23\x01\x01\x01",
18569                 .rlen   = 76,
18570                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
18571                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18572                           "\xCE\xFA\xCE\x74",
18573                 .alen   = 20,
18574                 .input  = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
18575                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
18576                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
18577                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
18578                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
18579                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
18580                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
18581                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
18582                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
18583                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
18584                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
18585                           "\x12\x25\x0B\xF9",
18586                 .ilen   = 92,
18587         }, {
18588                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18589                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18590                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18591                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18592                           "\x73\x61\x6C",
18593                 .klen   = 35,
18594                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18595                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
18596                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
18597                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
18598                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
18599                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
18600                 .rlen   = 40,
18601                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18602                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18603                           "\x69\x76\x65\x63",
18604                 .alen   = 20,
18605                 .input  = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
18606                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
18607                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
18608                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
18609                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
18610                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
18611                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
18612                 .ilen   = 56,
18613         }, {
18614                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18615                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18616                           "\x57\x69\x0E",
18617                 .klen   = 19,
18618                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18619                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
18620                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
18621                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18622                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
18623                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
18624                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
18625                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
18626                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
18627                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
18628                           "\x15\x01\x01\x01",
18629                 .rlen   = 76,
18630                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18631                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18632                           "\xA2\xFC\xA1\xA3",
18633                 .alen   = 20,
18634                 .input  = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
18635                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
18636                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
18637                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
18638                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
18639                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
18640                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
18641                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
18642                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
18643                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
18644                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
18645                           "\xCC\xF7\x46\x6F",
18646                 .ilen   = 92,
18647         }, {
18648                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18649                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18650                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18651                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18652                           "\x73\x61\x6C",
18653                 .klen   = 35,
18654                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18655                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
18656                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
18657                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
18658                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
18659                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
18660                           "\x67\x69\x65\x73\x01\x74\x68\x61"
18661                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
18662                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
18663                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
18664                 .rlen   = 72,
18665                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18666                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18667                           "\x69\x76\x65\x63",
18668                 .alen   = 20,
18669                 .input  = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
18670                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
18671                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
18672                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
18673                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
18674                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
18675                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
18676                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
18677                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
18678                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
18679                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
18680                 .ilen   = 88,
18681         }, {
18682                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
18683                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
18684                           "\xD9\x66\x42",
18685                 .klen   = 19,
18686                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18687                 .result = "\x01\x02\x02\x01",
18688                 .rlen   = 4,
18689                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
18690                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18691                 .alen   = 16,
18692                 .input  = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
18693                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
18694                           "\xF7\x61\x24\x62",
18695                 .ilen   = 20,
18696         }, {
18697                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18698                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18699                           "\xDE\xCA\xF8",
18700                 .klen   = 19,
18701                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18702                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
18703                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
18704                           "\x62\x65\x00\x01",
18705                 .rlen   = 20,
18706                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
18707                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18708                           "\xCE\xFA\xCE\x74",
18709                 .alen   = 20,
18710                 .input  = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
18711                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
18712                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
18713                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
18714                           "\x17\x17\x65\xAD",
18715                 .ilen   = 36,
18716         }, {
18717                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
18718                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
18719                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
18720                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
18721                           "\x74\x75\x72",
18722                 .klen   = 35,
18723                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
18724                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18725                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18726                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18727                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18728                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18729                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18730                           "\x01\x02\x02\x01",
18731                 .rlen   = 52,
18732                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
18733                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
18734                           "\x67\x65\x74\x6D",
18735                 .alen   = 20,
18736                 .input  = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
18737                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
18738                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
18739                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
18740                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
18741                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
18742                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
18743                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
18744                           "\x39\xDB\xC8\xDC",
18745                 .ilen   = 68,
18746         }, {
18747                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18748                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18749                           "\x57\x69\x0E",
18750                 .klen   = 19,
18751                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18752                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18753                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18754                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18755                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18756                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18757                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18758                           "\x01\x02\x02\x01",
18759                 .rlen   = 52,
18760                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
18761                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18762                           "\xA2\xFC\xA1\xA3",
18763                 .alen   = 20,
18764                 .input  = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
18765                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
18766                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
18767                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
18768                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18769                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18770                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
18771                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
18772                           "\xF4\x95\x5D\x4F",
18773                 .ilen   = 68,
18774         }, {
18775                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18776                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18777                           "\x22\x43\x3C",
18778                 .klen   = 19,
18779                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
18780                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
18781                           "\x61\x62\x63\x64\x65\x66\x67\x68"
18782                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18783                           "\x71\x72\x73\x74\x01\x02\x02\x01",
18784                 .rlen   = 32,
18785                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18786                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18787                           "\x3A\x23\x4B\xFD",
18788                 .alen   = 20,
18789                 .input  = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
18790                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
18791                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
18792                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
18793                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
18794                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
18795                 .ilen   = 48,
18796         }
18797 };
18798
18799 /*
18800  * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
18801  */
18802 static const struct aead_testvec rfc7539_enc_tv_template[] = {
18803         {
18804                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
18805                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18806                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18807                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
18808                 .klen   = 32,
18809                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
18810                           "\x44\x45\x46\x47",
18811                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
18812                           "\xc4\xc5\xc6\xc7",
18813                 .alen   = 12,
18814                 .input  = "\x4c\x61\x64\x69\x65\x73\x20\x61"
18815                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
18816                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
18817                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
18818                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
18819                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
18820                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
18821                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
18822                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
18823                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
18824                           "\x74\x68\x65\x20\x66\x75\x74\x75"
18825                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
18826                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
18827                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
18828                           "\x74\x2e",
18829                 .ilen   = 114,
18830                 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
18831                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
18832                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
18833                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
18834                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
18835                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
18836                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
18837                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
18838                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
18839                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
18840                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
18841                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
18842                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
18843                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
18844                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
18845                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
18846                           "\x06\x91",
18847                 .rlen   = 130,
18848         }, {
18849                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
18850                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
18851                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
18852                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
18853                 .klen   = 32,
18854                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
18855                           "\x05\x06\x07\x08",
18856                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
18857                           "\x00\x00\x4e\x91",
18858                 .alen   = 12,
18859                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
18860                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
18861                           "\x61\x72\x65\x20\x64\x72\x61\x66"
18862                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
18863                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
18864                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
18865                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
18866                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
18867                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
18868                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
18869                           "\x20\x75\x70\x64\x61\x74\x65\x64"
18870                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
18871                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
18872                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
18873                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
18874                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
18875                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
18876                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
18877                           "\x20\x49\x74\x20\x69\x73\x20\x69"
18878                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
18879                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
18880                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
18881                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
18882                           "\x66\x74\x73\x20\x61\x73\x20\x72"
18883                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
18884                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
18885                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
18886                           "\x63\x69\x74\x65\x20\x74\x68\x65"
18887                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
18888                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
18889                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
18890                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
18891                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
18892                           "\x9d",
18893                 .ilen   = 265,
18894                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
18895                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
18896                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
18897                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
18898                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
18899                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
18900                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
18901                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
18902                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
18903                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
18904                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
18905                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
18906                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
18907                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
18908                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
18909                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
18910                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
18911                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
18912                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
18913                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
18914                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
18915                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
18916                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
18917                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
18918                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
18919                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
18920                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
18921                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
18922                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
18923                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
18924                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
18925                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
18926                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
18927                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
18928                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
18929                           "\x38",
18930                 .rlen   = 281,
18931         },
18932 };
18933
18934 static const struct aead_testvec rfc7539_dec_tv_template[] = {
18935         {
18936                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
18937                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18938                           "\x90\x91\x92\x93\x94\x95\x96\x97"
18939                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
18940                 .klen   = 32,
18941                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
18942                           "\x44\x45\x46\x47",
18943                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
18944                           "\xc4\xc5\xc6\xc7",
18945                 .alen   = 12,
18946                 .input  = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
18947                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
18948                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
18949                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
18950                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
18951                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
18952                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
18953                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
18954                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
18955                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
18956                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
18957                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
18958                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
18959                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
18960                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
18961                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
18962                           "\x06\x91",
18963                 .ilen   = 130,
18964                 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
18965                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
18966                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
18967                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
18968                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
18969                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
18970                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
18971                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
18972                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
18973                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
18974                           "\x74\x68\x65\x20\x66\x75\x74\x75"
18975                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
18976                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
18977                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
18978                           "\x74\x2e",
18979                 .rlen   = 114,
18980         }, {
18981                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
18982                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
18983                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
18984                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
18985                 .klen   = 32,
18986                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
18987                           "\x05\x06\x07\x08",
18988                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
18989                           "\x00\x00\x4e\x91",
18990                 .alen   = 12,
18991                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
18992                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
18993                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
18994                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
18995                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
18996                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
18997                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
18998                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
18999                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19000                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19001                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19002                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19003                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19004                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19005                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19006                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19007                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19008                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19009                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19010                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19011                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19012                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19013                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19014                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19015                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19016                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19017                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19018                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19019                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19020                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19021                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19022                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19023                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19024                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19025                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19026                           "\x38",
19027                 .ilen   = 281,
19028                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19029                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19030                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19031                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19032                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19033                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19034                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19035                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19036                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19037                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19038                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19039                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19040                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19041                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19042                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19043                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19044                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19045                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19046                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19047                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19048                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19049                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19050                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19051                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19052                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19053                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19054                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19055                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19056                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19057                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19058                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19059                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19060                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19061                           "\x9d",
19062                 .rlen   = 265,
19063         },
19064 };
19065
19066 /*
19067  * draft-irtf-cfrg-chacha20-poly1305
19068  */
19069 static const struct aead_testvec rfc7539esp_enc_tv_template[] = {
19070         {
19071                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19072                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19073                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19074                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19075                           "\x00\x00\x00\x00",
19076                 .klen   = 36,
19077                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
19078                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19079                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
19080                           "\x05\x06\x07\x08",
19081                 .alen   = 20,
19082                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19083                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19084                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19085                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19086                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19087                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19088                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19089                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19090                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19091                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19092                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19093                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19094                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19095                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19096                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19097                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19098                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19099                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19100                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19101                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19102                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19103                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19104                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19105                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19106                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19107                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19108                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19109                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19110                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19111                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19112                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19113                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19114                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19115                           "\x9d",
19116                 .ilen   = 265,
19117                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19118                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19119                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19120                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19121                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19122                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19123                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19124                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19125                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19126                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19127                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19128                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19129                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19130                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19131                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19132                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19133                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19134                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19135                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19136                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19137                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19138                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19139                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19140                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19141                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19142                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19143                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19144                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19145                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19146                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19147                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19148                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19149                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19150                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19151                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19152                           "\x38",
19153                 .rlen   = 281,
19154         },
19155 };
19156
19157 static const struct aead_testvec rfc7539esp_dec_tv_template[] = {
19158         {
19159                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19160                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19161                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19162                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19163                           "\x00\x00\x00\x00",
19164                 .klen   = 36,
19165                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
19166                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19167                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
19168                           "\x05\x06\x07\x08",
19169                 .alen   = 20,
19170                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19171                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19172                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19173                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19174                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19175                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19176                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19177                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19178                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19179                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19180                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19181                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19182                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19183                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19184                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19185                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19186                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19187                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19188                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19189                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19190                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19191                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19192                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19193                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19194                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19195                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19196                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19197                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19198                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19199                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19200                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19201                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19202                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19203                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19204                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19205                           "\x38",
19206                 .ilen   = 281,
19207                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19208                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19209                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19210                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19211                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19212                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19213                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19214                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19215                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19216                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19217                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19218                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19219                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19220                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19221                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19222                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19223                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19224                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19225                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19226                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19227                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19228                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19229                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19230                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19231                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19232                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19233                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19234                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19235                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19236                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19237                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19238                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19239                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19240                           "\x9d",
19241                 .rlen   = 265,
19242         },
19243 };
19244
19245 static const struct aead_testvec aegis128_enc_tv_template[] = {
19246         {
19247                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
19248                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
19249                 .klen   = 16,
19250                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
19251                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
19252                 .assoc  = "",
19253                 .alen   = 0,
19254                 .input  = "",
19255                 .ilen   = 0,
19256                 .result = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
19257                           "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
19258                 .rlen   = 16,
19259         }, {
19260                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
19261                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
19262                 .klen   = 16,
19263                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
19264                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
19265                 .assoc  = "",
19266                 .alen   = 0,
19267                 .input  = "\x79",
19268                 .ilen   = 1,
19269                 .result = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
19270                           "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
19271                           "\xcc",
19272                 .rlen   = 17,
19273         }, {
19274                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
19275                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
19276                 .klen   = 16,
19277                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
19278                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
19279                 .assoc  = "",
19280                 .alen   = 0,
19281                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
19282                           "\x82\x8e\x16\xb4\xed\x6d\x47",
19283                 .ilen   = 15,
19284                 .result = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
19285                           "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
19286                           "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
19287                           "\x7a\x21\x16\xb3\xe6\x67\x66",
19288                 .rlen   = 31,
19289         }, {
19290                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
19291                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
19292                 .klen   = 16,
19293                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
19294                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
19295                 .assoc  = "",
19296                 .alen   = 0,
19297                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
19298                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
19299                 .ilen   = 16,
19300                 .result = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
19301                           "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
19302                           "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
19303                           "\x51\x10\x16\x27\x70\x9b\x64\x29",
19304                 .rlen   = 32,
19305         }, {
19306                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
19307                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
19308                 .klen   = 16,
19309                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
19310                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
19311                 .assoc  = "",
19312                 .alen   = 0,
19313                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
19314                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
19315                           "\xd3",
19316                 .ilen   = 17,
19317                 .result = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
19318                           "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
19319                           "\x46\x80\xb1\x0e\x18\x30\x40\x97"
19320                           "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
19321                           "\x3b",
19322                 .rlen   = 33,
19323         }, {
19324                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
19325                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
19326                 .klen   = 16,
19327                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
19328                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
19329                 .assoc  = "",
19330                 .alen   = 0,
19331                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
19332                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
19333                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
19334                           "\x88\x11\x39\x12\x1c\x3a\xbb",
19335                 .ilen   = 31,
19336                 .result = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
19337                           "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
19338                           "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
19339                           "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
19340                           "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
19341                           "\x75\xc4\x53\x01\x89\x45\x59",
19342                 .rlen   = 47,
19343         }, {
19344                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
19345                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
19346                 .klen   = 16,
19347                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
19348                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
19349                 .assoc  = "",
19350                 .alen   = 0,
19351                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
19352                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
19353                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
19354                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
19355                 .ilen   = 32,
19356                 .result = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
19357                           "\x95\xf4\x58\x38\x14\x83\x27\x01"
19358                           "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
19359                           "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
19360                           "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
19361                           "\x51\x52\x77\xf2\x5e\x85\x80\x41",
19362                 .rlen   = 48,
19363         }, {
19364                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
19365                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
19366                 .klen   = 16,
19367                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
19368                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
19369                 .assoc  = "\xd5",
19370                 .alen   = 1,
19371                 .input  = "",
19372                 .ilen   = 0,
19373                 .result = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
19374                           "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
19375                 .rlen   = 16,
19376         }, {
19377                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
19378                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
19379                 .klen   = 16,
19380                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
19381                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
19382                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
19383                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
19384                 .alen   = 15,
19385                 .input  = "",
19386                 .ilen   = 0,
19387                 .result = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
19388                           "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
19389                 .rlen   = 16,
19390         }, {
19391                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
19392                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
19393                 .klen   = 16,
19394                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
19395                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
19396                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
19397                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
19398                 .alen   = 16,
19399                 .input  = "",
19400                 .ilen   = 0,
19401                 .result = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
19402                           "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
19403                 .rlen   = 16,
19404         }, {
19405                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
19406                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
19407                 .klen   = 16,
19408                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
19409                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
19410                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
19411                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
19412                           "\x07",
19413                 .alen   = 17,
19414                 .input  = "",
19415                 .ilen   = 0,
19416                 .result = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
19417                           "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
19418                 .rlen   = 16,
19419         }, {
19420                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
19421                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
19422                 .klen   = 16,
19423                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
19424                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
19425                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
19426                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
19427                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
19428                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
19429                 .alen   = 31,
19430                 .input  = "",
19431                 .ilen   = 0,
19432                 .result = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
19433                           "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
19434                 .rlen   = 16,
19435         }, {
19436                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
19437                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
19438                 .klen   = 16,
19439                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
19440                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
19441                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
19442                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
19443                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
19444                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
19445                 .alen   = 32,
19446                 .input  = "",
19447                 .ilen   = 0,
19448                 .result = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
19449                           "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
19450                 .rlen   = 16,
19451         }, {
19452                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
19453                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
19454                 .klen   = 16,
19455                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
19456                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
19457                 .assoc  = "\x40",
19458                 .alen   = 1,
19459                 .input  = "\x4f",
19460                 .ilen   = 1,
19461                 .result = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
19462                           "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
19463                           "\x39",
19464                 .rlen   = 17,
19465         }, {
19466                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
19467                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
19468                 .klen   = 16,
19469                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
19470                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
19471                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
19472                           "\x6d\x92\x42\x61\xa7\x58\x37",
19473                 .alen   = 15,
19474                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
19475                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
19476                 .ilen   = 15,
19477                 .result = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
19478                           "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
19479                           "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
19480                           "\x98\xbd\x71\x7a\xef\xa4\xfa",
19481                 .rlen   = 31,
19482         }, {
19483                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
19484                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
19485                 .klen   = 16,
19486                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
19487                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
19488                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
19489                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
19490                 .alen   = 16,
19491                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
19492                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
19493                 .ilen   = 16,
19494                 .result = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
19495                           "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
19496                           "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
19497                           "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
19498                 .rlen   = 32,
19499         }, {
19500                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
19501                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
19502                 .klen   = 16,
19503                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
19504                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
19505                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
19506                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
19507                           "\x05",
19508                 .alen   = 17,
19509                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
19510                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
19511                           "\xd0",
19512                 .ilen   = 17,
19513                 .result = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
19514                           "\x38\x2d\x69\x90\x1c\x71\x38\x98"
19515                           "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
19516                           "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
19517                           "\x93",
19518                 .rlen   = 33,
19519         }, {
19520                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
19521                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
19522                 .klen   = 16,
19523                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
19524                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
19525                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
19526                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
19527                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
19528                           "\x68\x28\x73\x40\x9f\x96\x4a",
19529                 .alen   = 31,
19530                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
19531                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
19532                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
19533                           "\x98\x34\xab\x37\x56\xae\x32",
19534                 .ilen   = 31,
19535                 .result = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
19536                           "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
19537                           "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
19538                           "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
19539                           "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
19540                           "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
19541                 .rlen   = 47,
19542         }, {
19543                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
19544                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
19545                 .klen   = 16,
19546                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
19547                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
19548                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
19549                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
19550                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
19551                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
19552                 .alen   = 32,
19553                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
19554                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
19555                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
19556                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
19557                 .ilen   = 32,
19558                 .result = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
19559                           "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
19560                           "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
19561                           "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
19562                           "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
19563                           "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
19564                 .rlen   = 48,
19565         }, {
19566                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
19567                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
19568                 .klen   = 16,
19569                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
19570                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
19571                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
19572                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
19573                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
19574                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
19575                           "\x9d",
19576                 .alen   = 33,
19577                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
19578                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
19579                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
19580                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
19581                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
19582                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
19583                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
19584                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
19585                           "\xbd",
19586                 .ilen   = 65,
19587                 .result = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
19588                           "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
19589                           "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
19590                           "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
19591                           "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
19592                           "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
19593                           "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
19594                           "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
19595                           "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
19596                           "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
19597                           "\x3f",
19598                 .rlen   = 81,
19599         }, {
19600                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
19601                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
19602                 .klen   = 16,
19603                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
19604                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
19605                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
19606                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
19607                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
19608                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
19609                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
19610                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
19611                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
19612                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
19613                           "\x54",
19614                 .alen   = 65,
19615                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
19616                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
19617                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
19618                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
19619                           "\x2f",
19620                 .ilen   = 33,
19621                 .result = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
19622                           "\x77\x09\xac\x74\xef\xd2\x56\xae"
19623                           "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
19624                           "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
19625                           "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
19626                           "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
19627                           "\x39",
19628                 .rlen   = 49,
19629         }, {
19630                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
19631                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
19632                 .klen   = 16,
19633                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
19634                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
19635                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
19636                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
19637                 .alen   = 16,
19638                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
19639                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
19640                 .ilen   = 16,
19641                 .result = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
19642                           "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
19643                           "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
19644                           "\xde\x20\x59\x77\xc1\x74\x90",
19645                 .rlen   = 31,
19646         }, {
19647                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
19648                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
19649                 .klen   = 16,
19650                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
19651                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
19652                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
19653                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
19654                 .alen   = 16,
19655                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
19656                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
19657                 .ilen   = 16,
19658                 .result = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
19659                           "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
19660                           "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
19661                           "\xe9\xe0\x17\x45\x70\x12",
19662                 .rlen   = 30,
19663         }, {
19664                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
19665                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
19666                 .klen   = 16,
19667                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
19668                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
19669                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
19670                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
19671                 .alen   = 16,
19672                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
19673                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
19674                 .ilen   = 16,
19675                 .result = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
19676                           "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
19677                           "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
19678                 .rlen   = 24,
19679         },
19680 };
19681
19682 /*
19683  * AEGIS-128 test vectors - generated via reference implementation from
19684  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
19685  *
19686  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
19687  *   (see crypto_aead/aegis128/)
19688  */
19689 static const struct aead_testvec aegis128_dec_tv_template[] = {
19690         {
19691                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
19692                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
19693                 .klen   = 16,
19694                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
19695                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
19696                 .assoc  = "",
19697                 .alen   = 0,
19698                 .input  = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
19699                           "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
19700                 .ilen   = 16,
19701                 .result = "",
19702                 .rlen   = 0,
19703         }, {
19704                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
19705                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
19706                 .klen   = 16,
19707                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
19708                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
19709                 .assoc  = "",
19710                 .alen   = 0,
19711                 .input  = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
19712                           "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
19713                           "\xcc",
19714                 .ilen   = 17,
19715                 .result = "\x79",
19716                 .rlen   = 1,
19717         }, {
19718                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
19719                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
19720                 .klen   = 16,
19721                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
19722                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
19723                 .assoc  = "",
19724                 .alen   = 0,
19725                 .input  = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
19726                           "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
19727                           "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
19728                           "\x7a\x21\x16\xb3\xe6\x67\x66",
19729                 .ilen   = 31,
19730                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
19731                           "\x82\x8e\x16\xb4\xed\x6d\x47",
19732                 .rlen   = 15,
19733         }, {
19734                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
19735                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
19736                 .klen   = 16,
19737                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
19738                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
19739                 .assoc  = "",
19740                 .alen   = 0,
19741                 .input  = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
19742                           "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
19743                           "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
19744                           "\x51\x10\x16\x27\x70\x9b\x64\x29",
19745                 .ilen   = 32,
19746                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
19747                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
19748                 .rlen   = 16,
19749         }, {
19750                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
19751                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
19752                 .klen   = 16,
19753                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
19754                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
19755                 .assoc  = "",
19756                 .alen   = 0,
19757                 .input  = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
19758                           "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
19759                           "\x46\x80\xb1\x0e\x18\x30\x40\x97"
19760                           "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
19761                           "\x3b",
19762                 .ilen   = 33,
19763                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
19764                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
19765                           "\xd3",
19766                 .rlen   = 17,
19767         }, {
19768                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
19769                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
19770                 .klen   = 16,
19771                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
19772                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
19773                 .assoc  = "",
19774                 .alen   = 0,
19775                 .input  = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
19776                           "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
19777                           "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
19778                           "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
19779                           "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
19780                           "\x75\xc4\x53\x01\x89\x45\x59",
19781                 .ilen   = 47,
19782                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
19783                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
19784                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
19785                           "\x88\x11\x39\x12\x1c\x3a\xbb",
19786                 .rlen   = 31,
19787         }, {
19788                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
19789                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
19790                 .klen   = 16,
19791                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
19792                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
19793                 .assoc  = "",
19794                 .alen   = 0,
19795                 .input  = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
19796                           "\x95\xf4\x58\x38\x14\x83\x27\x01"
19797                           "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
19798                           "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
19799                           "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
19800                           "\x51\x52\x77\xf2\x5e\x85\x80\x41",
19801                 .ilen   = 48,
19802                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
19803                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
19804                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
19805                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
19806                 .rlen   = 32,
19807         }, {
19808                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
19809                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
19810                 .klen   = 16,
19811                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
19812                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
19813                 .assoc  = "\xd5",
19814                 .alen   = 1,
19815                 .input  = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
19816                           "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
19817                 .ilen   = 16,
19818                 .result = "",
19819                 .rlen   = 0,
19820         }, {
19821                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
19822                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
19823                 .klen   = 16,
19824                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
19825                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
19826                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
19827                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
19828                 .alen   = 15,
19829                 .input  = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
19830                           "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
19831                 .ilen   = 16,
19832                 .result = "",
19833                 .rlen   = 0,
19834         }, {
19835                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
19836                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
19837                 .klen   = 16,
19838                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
19839                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
19840                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
19841                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
19842                 .alen   = 16,
19843                 .input  = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
19844                           "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
19845                 .ilen   = 16,
19846                 .result = "",
19847                 .rlen   = 0,
19848         }, {
19849                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
19850                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
19851                 .klen   = 16,
19852                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
19853                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
19854                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
19855                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
19856                           "\x07",
19857                 .alen   = 17,
19858                 .input  = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
19859                           "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
19860                 .ilen   = 16,
19861                 .result = "",
19862                 .rlen   = 0,
19863         }, {
19864                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
19865                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
19866                 .klen   = 16,
19867                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
19868                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
19869                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
19870                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
19871                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
19872                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
19873                 .alen   = 31,
19874                 .input  = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
19875                           "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
19876                 .ilen   = 16,
19877                 .result = "",
19878                 .rlen   = 0,
19879         }, {
19880                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
19881                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
19882                 .klen   = 16,
19883                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
19884                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
19885                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
19886                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
19887                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
19888                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
19889                 .alen   = 32,
19890                 .input  = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
19891                           "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
19892                 .ilen   = 16,
19893                 .result = "",
19894                 .rlen   = 0,
19895         }, {
19896                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
19897                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
19898                 .klen   = 16,
19899                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
19900                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
19901                 .assoc  = "\x40",
19902                 .alen   = 1,
19903                 .input  = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
19904                           "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
19905                           "\x39",
19906                 .ilen   = 17,
19907                 .result = "\x4f",
19908                 .rlen   = 1,
19909         }, {
19910                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
19911                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
19912                 .klen   = 16,
19913                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
19914                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
19915                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
19916                           "\x6d\x92\x42\x61\xa7\x58\x37",
19917                 .alen   = 15,
19918                 .input  = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
19919                           "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
19920                           "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
19921                           "\x98\xbd\x71\x7a\xef\xa4\xfa",
19922                 .ilen   = 31,
19923                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
19924                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
19925                 .rlen   = 15,
19926         }, {
19927                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
19928                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
19929                 .klen   = 16,
19930                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
19931                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
19932                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
19933                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
19934                 .alen   = 16,
19935                 .input  = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
19936                           "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
19937                           "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
19938                           "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
19939                 .ilen   = 32,
19940                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
19941                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
19942                 .rlen   = 16,
19943         }, {
19944                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
19945                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
19946                 .klen   = 16,
19947                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
19948                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
19949                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
19950                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
19951                           "\x05",
19952                 .alen   = 17,
19953                 .input  = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
19954                           "\x38\x2d\x69\x90\x1c\x71\x38\x98"
19955                           "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
19956                           "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
19957                           "\x93",
19958                 .ilen   = 33,
19959                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
19960                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
19961                           "\xd0",
19962                 .rlen   = 17,
19963         }, {
19964                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
19965                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
19966                 .klen   = 16,
19967                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
19968                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
19969                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
19970                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
19971                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
19972                           "\x68\x28\x73\x40\x9f\x96\x4a",
19973                 .alen   = 31,
19974                 .input  = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
19975                           "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
19976                           "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
19977                           "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
19978                           "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
19979                           "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
19980                 .ilen   = 47,
19981                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
19982                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
19983                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
19984                           "\x98\x34\xab\x37\x56\xae\x32",
19985                 .rlen   = 31,
19986         }, {
19987                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
19988                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
19989                 .klen   = 16,
19990                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
19991                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
19992                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
19993                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
19994                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
19995                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
19996                 .alen   = 32,
19997                 .input  = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
19998                           "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
19999                           "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
20000                           "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
20001                           "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
20002                           "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
20003                 .ilen   = 48,
20004                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20005                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20006                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20007                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20008                 .rlen   = 32,
20009         }, {
20010                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20011                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20012                 .klen   = 16,
20013                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20014                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20015                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20016                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20017                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20018                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20019                           "\x9d",
20020                 .alen   = 33,
20021                 .input  = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
20022                           "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
20023                           "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
20024                           "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
20025                           "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
20026                           "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
20027                           "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
20028                           "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
20029                           "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
20030                           "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
20031                           "\x3f",
20032                 .ilen   = 81,
20033                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20034                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20035                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20036                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20037                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20038                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20039                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20040                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20041                           "\xbd",
20042                 .rlen   = 65,
20043         }, {
20044                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20045                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20046                 .klen   = 16,
20047                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20048                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20049                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20050                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20051                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20052                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20053                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20054                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20055                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20056                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20057                           "\x54",
20058                 .alen   = 65,
20059                 .input  = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
20060                           "\x77\x09\xac\x74\xef\xd2\x56\xae"
20061                           "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
20062                           "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
20063                           "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
20064                           "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
20065                           "\x39",
20066                 .ilen   = 49,
20067                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20068                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20069                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20070                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20071                           "\x2f",
20072                 .rlen   = 33,
20073         }, {
20074                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20075                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20076                 .klen   = 16,
20077                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20078                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20079                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20080                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20081                 .alen   = 16,
20082                 .input  = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
20083                           "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
20084                           "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
20085                           "\xde\x20\x59\x77\xc1\x74\x90",
20086                 .ilen   = 31,
20087                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20088                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20089                 .rlen   = 16,
20090         }, {
20091                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20092                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20093                 .klen   = 16,
20094                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20095                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20096                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20097                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20098                 .alen   = 16,
20099                 .input  = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
20100                           "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
20101                           "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
20102                           "\xe9\xe0\x17\x45\x70\x12",
20103                 .ilen   = 30,
20104                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20105                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20106                 .rlen   = 16,
20107         }, {
20108                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20109                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20110                 .klen   = 16,
20111                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20112                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20113                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20114                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20115                 .alen   = 16,
20116                 .input  = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
20117                           "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
20118                           "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
20119                 .ilen   = 24,
20120                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20121                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20122                 .rlen   = 16,
20123         },
20124 };
20125
20126 /*
20127  * AEGIS-128L test vectors - generated via reference implementation from
20128  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
20129  *
20130  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
20131  *   (see crypto_aead/aegis128l/)
20132  */
20133 static const struct aead_testvec aegis128l_enc_tv_template[] = {
20134         {
20135                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20136                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20137                 .klen   = 16,
20138                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20139                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20140                 .assoc  = "",
20141                 .alen   = 0,
20142                 .input  = "",
20143                 .ilen   = 0,
20144                 .result = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
20145                           "\x20\x72\x78\xdd\x93\xc8\x57\xef",
20146                 .rlen   = 16,
20147         }, {
20148                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20149                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20150                 .klen   = 16,
20151                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20152                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20153                 .assoc  = "",
20154                 .alen   = 0,
20155                 .input  = "\x79",
20156                 .ilen   = 1,
20157                 .result = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
20158                           "\x40\xb3\x71\xc5\x22\x58\x31\x77"
20159                           "\x6d",
20160                 .rlen   = 17,
20161         }, {
20162                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20163                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20164                 .klen   = 16,
20165                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20166                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20167                 .assoc  = "",
20168                 .alen   = 0,
20169                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20170                           "\x82\x8e\x16\xb4\xed\x6d\x47",
20171                 .ilen   = 15,
20172                 .result = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
20173                           "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
20174                           "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
20175                           "\xe1\xa8\x04\x7f\xe1\x71\xbe",
20176                 .rlen   = 31,
20177         }, {
20178                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20179                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20180                 .klen   = 16,
20181                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20182                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20183                 .assoc  = "",
20184                 .alen   = 0,
20185                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20186                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20187                 .ilen   = 16,
20188                 .result = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
20189                           "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
20190                           "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
20191                           "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
20192                 .rlen   = 32,
20193         }, {
20194                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20195                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20196                 .klen   = 16,
20197                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20198                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20199                 .assoc  = "",
20200                 .alen   = 0,
20201                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20202                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20203                           "\xd3",
20204                 .ilen   = 17,
20205                 .result = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
20206                           "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
20207                           "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
20208                           "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
20209                           "\xf8",
20210                 .rlen   = 33,
20211         }, {
20212                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20213                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20214                 .klen   = 16,
20215                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20216                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20217                 .assoc  = "",
20218                 .alen   = 0,
20219                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20220                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20221                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20222                           "\x88\x11\x39\x12\x1c\x3a\xbb",
20223                 .ilen   = 31,
20224                 .result = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
20225                           "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
20226                           "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
20227                           "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
20228                           "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
20229                           "\x59\x28\x88\x3c\x79\x10\x6b",
20230                 .rlen   = 47,
20231         }, {
20232                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20233                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20234                 .klen   = 16,
20235                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20236                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20237                 .assoc  = "",
20238                 .alen   = 0,
20239                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20240                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20241                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20242                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20243                 .ilen   = 32,
20244                 .result = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
20245                           "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
20246                           "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
20247                           "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
20248                           "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
20249                           "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
20250                 .rlen   = 48,
20251         }, {
20252                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20253                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20254                 .klen   = 16,
20255                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20256                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20257                 .assoc  = "\xd5",
20258                 .alen   = 1,
20259                 .input  = "",
20260                 .ilen   = 0,
20261                 .result = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
20262                           "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
20263                 .rlen   = 16,
20264         }, {
20265                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20266                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20267                 .klen   = 16,
20268                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20269                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20270                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20271                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
20272                 .alen   = 15,
20273                 .input  = "",
20274                 .ilen   = 0,
20275                 .result = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
20276                           "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
20277                 .rlen   = 16,
20278         }, {
20279                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20280                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20281                 .klen   = 16,
20282                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20283                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20284                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20285                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20286                 .alen   = 16,
20287                 .input  = "",
20288                 .ilen   = 0,
20289                 .result = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
20290                           "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
20291                 .rlen   = 16,
20292         }, {
20293                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20294                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20295                 .klen   = 16,
20296                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20297                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20298                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20299                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20300                           "\x07",
20301                 .alen   = 17,
20302                 .input  = "",
20303                 .ilen   = 0,
20304                 .result = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
20305                           "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
20306                 .rlen   = 16,
20307         }, {
20308                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20309                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20310                 .klen   = 16,
20311                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20312                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20313                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20314                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20315                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20316                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20317                 .alen   = 31,
20318                 .input  = "",
20319                 .ilen   = 0,
20320                 .result = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
20321                           "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
20322                 .rlen   = 16,
20323         }, {
20324                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20325                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20326                 .klen   = 16,
20327                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20328                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20329                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20330                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20331                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20332                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20333                 .alen   = 32,
20334                 .input  = "",
20335                 .ilen   = 0,
20336                 .result = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
20337                           "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
20338                 .rlen   = 16,
20339         }, {
20340                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20341                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20342                 .klen   = 16,
20343                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20344                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20345                 .assoc  = "\x40",
20346                 .alen   = 1,
20347                 .input  = "\x4f",
20348                 .ilen   = 1,
20349                 .result = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
20350                           "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
20351                           "\xf4",
20352                 .rlen   = 17,
20353         }, {
20354                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20355                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20356                 .klen   = 16,
20357                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20358                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20359                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20360                           "\x6d\x92\x42\x61\xa7\x58\x37",
20361                 .alen   = 15,
20362                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20363                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20364                 .ilen   = 15,
20365                 .result = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
20366                           "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
20367                           "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
20368                           "\x20\x63\x0b\x49\x7e\x97\x08",
20369                 .rlen   = 31,
20370         }, {
20371                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20372                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20373                 .klen   = 16,
20374                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20375                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20376                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20377                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20378                 .alen   = 16,
20379                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20380                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20381                 .ilen   = 16,
20382                 .result = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
20383                           "\x78\x08\x12\xec\x09\xaf\x53\x14"
20384                           "\x90\x3e\x3d\x76\xad\x71\x21\x08"
20385                           "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
20386                 .rlen   = 32,
20387         }, {
20388                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20389                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20390                 .klen   = 16,
20391                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20392                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20393                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20394                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20395                           "\x05",
20396                 .alen   = 17,
20397                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20398                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20399                           "\xd0",
20400                 .ilen   = 17,
20401                 .result = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
20402                           "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
20403                           "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
20404                           "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
20405                           "\x7d",
20406                 .rlen   = 33,
20407         }, {
20408                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20409                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20410                 .klen   = 16,
20411                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20412                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20413                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20414                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20415                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20416                           "\x68\x28\x73\x40\x9f\x96\x4a",
20417                 .alen   = 31,
20418                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20419                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20420                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20421                           "\x98\x34\xab\x37\x56\xae\x32",
20422                 .ilen   = 31,
20423                 .result = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
20424                           "\x0d\x19\x15\x61\x65\x3b\x06\x26"
20425                           "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
20426                           "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
20427                           "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
20428                           "\xed\x90\xce\xb9\xcd\xcc\xa1",
20429                 .rlen   = 47,
20430         }, {
20431                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20432                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20433                 .klen   = 16,
20434                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20435                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
20436                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20437                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20438                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20439                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20440                 .alen   = 32,
20441                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20442                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20443                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20444                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20445                 .ilen   = 32,
20446                 .result = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
20447                           "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
20448                           "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
20449                           "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
20450                           "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
20451                           "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
20452                 .rlen   = 48,
20453         }, {
20454                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20455                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20456                 .klen   = 16,
20457                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20458                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20459                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20460                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20461                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20462                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20463                           "\x9d",
20464                 .alen   = 33,
20465                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20466                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20467                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20468                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20469                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20470                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20471                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20472                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20473                           "\xbd",
20474                 .ilen   = 65,
20475                 .result = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
20476                           "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
20477                           "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
20478                           "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
20479                           "\xbc\x46\x76\x48\x82\xc7\x57\x96"
20480                           "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
20481                           "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
20482                           "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
20483                           "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
20484                           "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
20485                           "\x01",
20486                 .rlen   = 81,
20487         }, {
20488                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20489                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20490                 .klen   = 16,
20491                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20492                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20493                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20494                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20495                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20496                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20497                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20498                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20499                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20500                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20501                           "\x54",
20502                 .alen   = 65,
20503                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20504                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20505                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20506                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20507                           "\x2f",
20508                 .ilen   = 33,
20509                 .result = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
20510                           "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
20511                           "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
20512                           "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
20513                           "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
20514                           "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
20515                           "\x9f",
20516                 .rlen   = 49,
20517         }, {
20518                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20519                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20520                 .klen   = 16,
20521                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20522                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20523                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20524                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20525                 .alen   = 16,
20526                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20527                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20528                 .ilen   = 16,
20529                 .result = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
20530                           "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
20531                           "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
20532                           "\x05\xa8\x31\x50\x11\x19\x44",
20533                 .rlen   = 31,
20534         }, {
20535                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20536                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20537                 .klen   = 16,
20538                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20539                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20540                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20541                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20542                 .alen   = 16,
20543                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20544                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20545                 .ilen   = 16,
20546                 .result = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
20547                           "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
20548                           "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
20549                           "\x21\x93\x2e\x31\x84\x83",
20550                 .rlen   = 30,
20551         }, {
20552                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20553                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20554                 .klen   = 16,
20555                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20556                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20557                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20558                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20559                 .alen   = 16,
20560                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20561                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20562                 .ilen   = 16,
20563                 .result = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
20564                           "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
20565                           "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
20566                 .rlen   = 24,
20567         },
20568 };
20569
20570 static const struct aead_testvec aegis128l_dec_tv_template[] = {
20571         {
20572                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20573                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20574                 .klen   = 16,
20575                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20576                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20577                 .assoc  = "",
20578                 .alen   = 0,
20579                 .input  = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
20580                           "\x20\x72\x78\xdd\x93\xc8\x57\xef",
20581                 .ilen   = 16,
20582                 .result = "",
20583                 .rlen   = 0,
20584         }, {
20585                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20586                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20587                 .klen   = 16,
20588                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20589                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20590                 .assoc  = "",
20591                 .alen   = 0,
20592                 .input  = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
20593                           "\x40\xb3\x71\xc5\x22\x58\x31\x77"
20594                           "\x6d",
20595                 .ilen   = 17,
20596                 .result = "\x79",
20597                 .rlen   = 1,
20598         }, {
20599                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20600                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20601                 .klen   = 16,
20602                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20603                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20604                 .assoc  = "",
20605                 .alen   = 0,
20606                 .input  = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
20607                           "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
20608                           "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
20609                           "\xe1\xa8\x04\x7f\xe1\x71\xbe",
20610                 .ilen   = 31,
20611                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20612                           "\x82\x8e\x16\xb4\xed\x6d\x47",
20613                 .rlen   = 15,
20614         }, {
20615                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20616                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20617                 .klen   = 16,
20618                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20619                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20620                 .assoc  = "",
20621                 .alen   = 0,
20622                 .input  = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
20623                           "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
20624                           "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
20625                           "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
20626                 .ilen   = 32,
20627                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20628                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20629                 .rlen   = 16,
20630         }, {
20631                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20632                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20633                 .klen   = 16,
20634                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20635                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20636                 .assoc  = "",
20637                 .alen   = 0,
20638                 .input  = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
20639                           "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
20640                           "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
20641                           "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
20642                           "\xf8",
20643                 .ilen   = 33,
20644                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20645                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20646                           "\xd3",
20647                 .rlen   = 17,
20648         }, {
20649                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20650                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20651                 .klen   = 16,
20652                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20653                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20654                 .assoc  = "",
20655                 .alen   = 0,
20656                 .input  = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
20657                           "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
20658                           "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
20659                           "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
20660                           "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
20661                           "\x59\x28\x88\x3c\x79\x10\x6b",
20662                 .ilen   = 47,
20663                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20664                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20665                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20666                           "\x88\x11\x39\x12\x1c\x3a\xbb",
20667                 .rlen   = 31,
20668         }, {
20669                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20670                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20671                 .klen   = 16,
20672                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20673                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20674                 .assoc  = "",
20675                 .alen   = 0,
20676                 .input  = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
20677                           "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
20678                           "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
20679                           "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
20680                           "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
20681                           "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
20682                 .ilen   = 48,
20683                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20684                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20685                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20686                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20687                 .rlen   = 32,
20688         }, {
20689                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20690                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20691                 .klen   = 16,
20692                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20693                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20694                 .assoc  = "\xd5",
20695                 .alen   = 1,
20696                 .input  = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
20697                           "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
20698                 .ilen   = 16,
20699                 .result = "",
20700                 .rlen   = 0,
20701         }, {
20702                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20703                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20704                 .klen   = 16,
20705                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20706                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20707                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20708                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
20709                 .alen   = 15,
20710                 .input  = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
20711                           "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
20712                 .ilen   = 16,
20713                 .result = "",
20714                 .rlen   = 0,
20715         }, {
20716                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20717                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20718                 .klen   = 16,
20719                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20720                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20721                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20722                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20723                 .alen   = 16,
20724                 .input  = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
20725                           "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
20726                 .ilen   = 16,
20727                 .result = "",
20728                 .rlen   = 0,
20729         }, {
20730                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20731                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20732                 .klen   = 16,
20733                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20734                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20735                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20736                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20737                           "\x07",
20738                 .alen   = 17,
20739                 .input  = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
20740                           "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
20741                 .ilen   = 16,
20742                 .result = "",
20743                 .rlen   = 0,
20744         }, {
20745                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20746                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20747                 .klen   = 16,
20748                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20749                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20750                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20751                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20752                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20753                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20754                 .alen   = 31,
20755                 .input  = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
20756                           "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
20757                 .ilen   = 16,
20758                 .result = "",
20759                 .rlen   = 0,
20760         }, {
20761                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20762                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20763                 .klen   = 16,
20764                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20765                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20766                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20767                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20768                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20769                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20770                 .alen   = 32,
20771                 .input  = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
20772                           "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
20773                 .ilen   = 16,
20774                 .result = "",
20775                 .rlen   = 0,
20776         }, {
20777                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20778                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20779                 .klen   = 16,
20780                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20781                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20782                 .assoc  = "\x40",
20783                 .alen   = 1,
20784                 .input  = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
20785                           "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
20786                           "\xf4",
20787                 .ilen   = 17,
20788                 .result = "\x4f",
20789                 .rlen   = 1,
20790         }, {
20791                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20792                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20793                 .klen   = 16,
20794                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20795                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20796                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20797                           "\x6d\x92\x42\x61\xa7\x58\x37",
20798                 .alen   = 15,
20799                 .input  = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
20800                           "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
20801                           "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
20802                           "\x20\x63\x0b\x49\x7e\x97\x08",
20803                 .ilen   = 31,
20804                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20805                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20806                 .rlen   = 15,
20807         }, {
20808                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20809                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20810                 .klen   = 16,
20811                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20812                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20813                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20814                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20815                 .alen   = 16,
20816                 .input  = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
20817                           "\x78\x08\x12\xec\x09\xaf\x53\x14"
20818                           "\x90\x3e\x3d\x76\xad\x71\x21\x08"
20819                           "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
20820                 .ilen   = 32,
20821                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20822                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20823                 .rlen   = 16,
20824         }, {
20825                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20826                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20827                 .klen   = 16,
20828                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20829                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20830                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20831                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20832                           "\x05",
20833                 .alen   = 17,
20834                 .input  = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
20835                           "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
20836                           "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
20837                           "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
20838                           "\x7d",
20839                 .ilen   = 33,
20840                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20841                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20842                           "\xd0",
20843                 .rlen   = 17,
20844         }, {
20845                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20846                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20847                 .klen   = 16,
20848                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20849                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20850                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20851                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20852                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20853                           "\x68\x28\x73\x40\x9f\x96\x4a",
20854                 .alen   = 31,
20855                 .input  = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
20856                           "\x0d\x19\x15\x61\x65\x3b\x06\x26"
20857                           "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
20858                           "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
20859                           "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
20860                           "\xed\x90\xce\xb9\xcd\xcc\xa1",
20861                 .ilen   = 47,
20862                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20863                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20864                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20865                           "\x98\x34\xab\x37\x56\xae\x32",
20866                 .rlen   = 31,
20867         }, {
20868                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20869                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20870                 .klen   = 16,
20871                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20872                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
20873                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20874                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20875                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20876                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20877                 .alen   = 32,
20878                 .input  = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
20879                           "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
20880                           "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
20881                           "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
20882                           "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
20883                           "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
20884                 .ilen   = 48,
20885                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20886                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20887                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20888                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20889                 .rlen   = 32,
20890         }, {
20891                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20892                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20893                 .klen   = 16,
20894                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20895                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20896                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20897                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20898                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20899                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20900                           "\x9d",
20901                 .alen   = 33,
20902                 .input  = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
20903                           "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
20904                           "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
20905                           "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
20906                           "\xbc\x46\x76\x48\x82\xc7\x57\x96"
20907                           "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
20908                           "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
20909                           "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
20910                           "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
20911                           "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
20912                           "\x01",
20913                 .ilen   = 81,
20914                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20915                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20916                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20917                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20918                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20919                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20920                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20921                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20922                           "\xbd",
20923                 .rlen   = 65,
20924         }, {
20925                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20926                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20927                 .klen   = 16,
20928                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20929                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20930                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20931                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20932                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20933                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20934                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20935                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20936                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20937                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20938                           "\x54",
20939                 .alen   = 65,
20940                 .input  = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
20941                           "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
20942                           "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
20943                           "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
20944                           "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
20945                           "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
20946                           "\x9f",
20947                 .ilen   = 49,
20948                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20949                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20950                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20951                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20952                           "\x2f",
20953                 .rlen   = 33,
20954         }, {
20955                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20956                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20957                 .klen   = 16,
20958                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20959                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20960                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20961                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20962                 .alen   = 16,
20963                 .input  = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
20964                           "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
20965                           "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
20966                           "\x05\xa8\x31\x50\x11\x19\x44",
20967                 .ilen   = 31,
20968                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20969                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20970                 .rlen   = 16,
20971         }, {
20972                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20973                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20974                 .klen   = 16,
20975                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20976                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20977                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20978                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20979                 .alen   = 16,
20980                 .input  = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
20981                           "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
20982                           "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
20983                           "\x21\x93\x2e\x31\x84\x83",
20984                 .ilen   = 30,
20985                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20986                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20987                 .rlen   = 16,
20988         }, {
20989                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20990                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20991                 .klen   = 16,
20992                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20993                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20994                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20995                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20996                 .alen   = 16,
20997                 .input  = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
20998                           "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
20999                           "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
21000                 .ilen   = 24,
21001                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21002                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21003                 .rlen   = 16,
21004         },
21005 };
21006
21007 /*
21008  * AEGIS-256 test vectors - generated via reference implementation from
21009  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
21010  *
21011  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
21012  *   (see crypto_aead/aegis256/)
21013  */
21014 static const struct aead_testvec aegis256_enc_tv_template[] = {
21015         {
21016                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21017                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
21018                           "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
21019                           "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
21020                 .klen   = 32,
21021                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21022                           "\x40\x6d\x59\x48\xfc\x92\x61\x03"
21023                           "\x95\x61\x05\x42\x82\x50\xc0\x0c"
21024                           "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
21025                 .assoc  = "",
21026                 .alen   = 0,
21027                 .input  = "",
21028                 .ilen   = 0,
21029                 .result = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
21030                           "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
21031                 .rlen   = 16,
21032         }, {
21033                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21034                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
21035                           "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
21036                           "\xf1\x38\x16\xce\x90\x76\x87\x8c",
21037                 .klen   = 32,
21038                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21039                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
21040                           "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
21041                           "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
21042                 .assoc  = "",
21043                 .alen   = 0,
21044                 .input  = "\x79",
21045                 .ilen   = 1,
21046                 .result = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
21047                           "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
21048                           "\x8b",
21049                 .rlen   = 17,
21050         }, {
21051                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21052                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
21053                           "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
21054                           "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
21055                 .klen   = 32,
21056                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21057                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
21058                           "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
21059                           "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
21060                 .assoc  = "",
21061                 .alen   = 0,
21062                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21063                           "\x82\x8e\x16\xb4\xed\x6d\x47",
21064                 .ilen   = 15,
21065                 .result = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
21066                           "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
21067                           "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
21068                           "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
21069                 .rlen   = 31,
21070         }, {
21071                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21072                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
21073                           "\x49\xf7\xa5\xad\x50\x88\x66\x53"
21074                           "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
21075                 .klen   = 32,
21076                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21077                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
21078                           "\x14\xa8\x28\xce\x92\x30\x46\x59"
21079                           "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
21080                 .assoc  = "",
21081                 .alen   = 0,
21082                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21083                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21084                 .ilen   = 16,
21085                 .result = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
21086                           "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
21087                           "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
21088                           "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
21089                 .rlen   = 32,
21090         }, {
21091                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21092                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
21093                           "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
21094                           "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
21095                 .klen   = 32,
21096                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21097                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
21098                           "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
21099                           "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
21100                 .assoc  = "",
21101                 .alen   = 0,
21102                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21103                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21104                           "\xd3",
21105                 .ilen   = 17,
21106                 .result = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
21107                           "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
21108                           "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
21109                           "\xc0\x00\x39\x13\xb5\x51\x68\x44"
21110                           "\xad",
21111                 .rlen   = 33,
21112         }, {
21113                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21114                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
21115                           "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
21116                           "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
21117                 .klen   = 32,
21118                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21119                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
21120                           "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
21121                           "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
21122                 .assoc  = "",
21123                 .alen   = 0,
21124                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21125                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21126                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21127                           "\x88\x11\x39\x12\x1c\x3a\xbb",
21128                 .ilen   = 31,
21129                 .result = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
21130                           "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
21131                           "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
21132                           "\x89\x85\x23\x15\xb8\x79\x07\x4c"
21133                           "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
21134                           "\xc4\x1f\x12\x27\xcf\x77\x90",
21135                 .rlen   = 47,
21136         }, {
21137                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21138                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
21139                           "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
21140                           "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
21141                 .klen   = 32,
21142                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21143                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
21144                           "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
21145                           "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
21146                 .assoc  = "",
21147                 .alen   = 0,
21148                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21149                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21150                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21151                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21152                 .ilen   = 32,
21153                 .result = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
21154                           "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
21155                           "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
21156                           "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
21157                           "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
21158                           "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
21159                 .rlen   = 48,
21160         }, {
21161                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21162                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
21163                           "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
21164                           "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
21165                 .klen   = 32,
21166                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21167                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
21168                           "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
21169                           "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
21170                 .assoc  = "\xd5",
21171                 .alen   = 1,
21172                 .input  = "",
21173                 .ilen   = 0,
21174                 .result = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
21175                           "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
21176                 .rlen   = 16,
21177         }, {
21178                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21179                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
21180                           "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
21181                           "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
21182                 .klen   = 32,
21183                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21184                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
21185                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
21186                           "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
21187                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21188                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
21189                 .alen   = 15,
21190                 .input  = "",
21191                 .ilen   = 0,
21192                 .result = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
21193                           "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
21194                 .rlen   = 16,
21195         }, {
21196                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21197                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
21198                           "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
21199                           "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
21200                 .klen   = 32,
21201                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21202                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
21203                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
21204                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
21205                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21206                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21207                 .alen   = 16,
21208                 .input  = "",
21209                 .ilen   = 0,
21210                 .result = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
21211                           "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
21212                 .rlen   = 16,
21213         }, {
21214                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21215                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
21216                           "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
21217                           "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
21218                 .klen   = 32,
21219                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21220                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
21221                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
21222                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
21223                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21224                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21225                           "\x07",
21226                 .alen   = 17,
21227                 .input  = "",
21228                 .ilen   = 0,
21229                 .result = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
21230                           "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
21231                 .rlen   = 16,
21232         }, {
21233                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21234                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
21235                           "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
21236                           "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
21237                 .klen   = 32,
21238                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21239                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
21240                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
21241                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
21242                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21243                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21244                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21245                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21246                 .alen   = 31,
21247                 .input  = "",
21248                 .ilen   = 0,
21249                 .result = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
21250                           "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
21251                 .rlen   = 16,
21252         }, {
21253                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21254                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
21255                           "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
21256                           "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
21257                 .klen   = 32,
21258                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21259                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
21260                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
21261                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
21262                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21263                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21264                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21265                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21266                 .alen   = 32,
21267                 .input  = "",
21268                 .ilen   = 0,
21269                 .result = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
21270                           "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
21271                 .rlen   = 16,
21272         }, {
21273                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21274                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
21275                           "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
21276                           "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
21277                 .klen   = 32,
21278                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21279                           "\xcc\x81\x63\xab\xae\x6b\x43\x54"
21280                           "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
21281                           "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
21282                 .assoc  = "\x40",
21283                 .alen   = 1,
21284                 .input  = "\x4f",
21285                 .ilen   = 1,
21286                 .result = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
21287                           "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
21288                           "\xc7",
21289                 .rlen   = 17,
21290         }, {
21291                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21292                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
21293                           "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
21294                           "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
21295                 .klen   = 32,
21296                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21297                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
21298                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
21299                           "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
21300                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21301                           "\x6d\x92\x42\x61\xa7\x58\x37",
21302                 .alen   = 15,
21303                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21304                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
21305                 .ilen   = 15,
21306                 .result = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
21307                           "\x7e\x98\x83\x02\x34\x23\xf7\x94"
21308                           "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
21309                           "\x14\x80\x6a\xa7\x1b\xae\x1d",
21310                 .rlen   = 31,
21311         }, {
21312                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21313                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
21314                           "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
21315                           "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
21316                 .klen   = 32,
21317                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21318                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
21319                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
21320                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
21321                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21322                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21323                 .alen   = 16,
21324                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21325                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21326                 .ilen   = 16,
21327                 .result = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
21328                           "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
21329                           "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
21330                           "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
21331                 .rlen   = 32,
21332         }, {
21333                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21334                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
21335                           "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
21336                           "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
21337                 .klen   = 32,
21338                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21339                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
21340                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
21341                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
21342                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21343                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21344                           "\x05",
21345                 .alen   = 17,
21346                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21347                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21348                           "\xd0",
21349                 .ilen   = 17,
21350                 .result = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
21351                           "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
21352                           "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
21353                           "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
21354                           "\x55",
21355                 .rlen   = 33,
21356         }, {
21357                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21358                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
21359                           "\x9a\x97\x48\xe9\x98\x48\x82\xba"
21360                           "\x07\x11\x04\x54\x32\x67\x7b\xf5",
21361                 .klen   = 32,
21362                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21363                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
21364                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
21365                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
21366                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21367                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21368                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21369                           "\x68\x28\x73\x40\x9f\x96\x4a",
21370                 .alen   = 31,
21371                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21372                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21373                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21374                           "\x98\x34\xab\x37\x56\xae\x32",
21375                 .ilen   = 31,
21376                 .result = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
21377                           "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
21378                           "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
21379                           "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
21380                           "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
21381                           "\xdf\xb8\xea\xd8\xa9\x38\xed",
21382                 .rlen   = 47,
21383         }, {
21384                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21385                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
21386                           "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
21387                           "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
21388                 .klen   = 32,
21389                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21390                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
21391                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
21392                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
21393                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21394                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21395                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21396                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21397                 .alen   = 32,
21398                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21399                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21400                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21401                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21402                 .ilen   = 32,
21403                 .result = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
21404                           "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
21405                           "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
21406                           "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
21407                           "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
21408                           "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
21409                 .rlen   = 48,
21410         }, {
21411                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21412                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
21413                           "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
21414                           "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
21415                 .klen   = 32,
21416                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21417                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
21418                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
21419                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
21420                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21421                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21422                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21423                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21424                           "\x9d",
21425                 .alen   = 33,
21426                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21427                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21428                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21429                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21430                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21431                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21432                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21433                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21434                           "\xbd",
21435                 .ilen   = 65,
21436                 .result = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
21437                           "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
21438                           "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
21439                           "\x1a\x93\x33\x79\x97\x82\x81\xc0"
21440                           "\x96\xc2\x00\xab\x39\xae\xa1\x62"
21441                           "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
21442                           "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
21443                           "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
21444                           "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
21445                           "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
21446                           "\x65",
21447                 .rlen   = 81,
21448         }, {
21449                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21450                           "\x32\x42\x15\x80\x85\xa1\x65\xfe"
21451                           "\x19\xde\x6b\x76\xa8\x28\x08\x07"
21452                           "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
21453                 .klen   = 32,
21454                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21455                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
21456                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
21457                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
21458                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21459                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21460                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21461                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21462                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21463                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21464                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21465                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21466                           "\x54",
21467                 .alen   = 65,
21468                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21469                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21470                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21471                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21472                           "\x2f",
21473                 .ilen   = 33,
21474                 .result = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
21475                           "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
21476                           "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
21477                           "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
21478                           "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
21479                           "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
21480                           "\xda",
21481                 .rlen   = 49,
21482         }, {
21483                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21484                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
21485                           "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
21486                           "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
21487                 .klen   = 32,
21488                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21489                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
21490                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
21491                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
21492                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21493                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21494                 .alen   = 16,
21495                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21496                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21497                 .ilen   = 16,
21498                 .result = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
21499                           "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
21500                           "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
21501                           "\xc7\xff\xbd\xbc\x85\x09\x0b",
21502                 .rlen   = 31,
21503         }, {
21504                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21505                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
21506                           "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
21507                           "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
21508                 .klen   = 32,
21509                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21510                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
21511                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
21512                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
21513                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21514                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21515                 .alen   = 16,
21516                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21517                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21518                 .ilen   = 16,
21519                 .result = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
21520                           "\x6c\xd9\x84\x63\x70\x97\x61\x37"
21521                           "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
21522                           "\x62\xd5\xc8\xf0\x46\x1a",
21523                 .rlen   = 30,
21524         }, {
21525                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21526                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
21527                           "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
21528                           "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
21529                 .klen   = 32,
21530                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21531                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
21532                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
21533                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
21534                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21535                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21536                 .alen   = 16,
21537                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21538                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21539                 .ilen   = 16,
21540                 .result = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
21541                           "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
21542                           "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
21543                 .rlen   = 24,
21544         },
21545 };
21546
21547 static const struct aead_testvec aegis256_dec_tv_template[] = {
21548         {
21549                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21550                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
21551                           "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
21552                           "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
21553                 .klen   = 32,
21554                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21555                           "\x40\x6d\x59\x48\xfc\x92\x61\x03"
21556                           "\x95\x61\x05\x42\x82\x50\xc0\x0c"
21557                           "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
21558                 .assoc  = "",
21559                 .alen   = 0,
21560                 .input  = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
21561                           "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
21562                 .ilen   = 16,
21563                 .result = "",
21564                 .rlen   = 0,
21565         }, {
21566                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21567                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
21568                           "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
21569                           "\xf1\x38\x16\xce\x90\x76\x87\x8c",
21570                 .klen   = 32,
21571                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21572                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
21573                           "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
21574                           "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
21575                 .assoc  = "",
21576                 .alen   = 0,
21577                 .input  = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
21578                           "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
21579                           "\x8b",
21580                 .ilen   = 17,
21581                 .result = "\x79",
21582                 .rlen   = 1,
21583         }, {
21584                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21585                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
21586                           "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
21587                           "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
21588                 .klen   = 32,
21589                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21590                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
21591                           "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
21592                           "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
21593                 .assoc  = "",
21594                 .alen   = 0,
21595                 .input  = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
21596                           "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
21597                           "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
21598                           "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
21599                 .ilen   = 31,
21600                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21601                           "\x82\x8e\x16\xb4\xed\x6d\x47",
21602                 .rlen   = 15,
21603         }, {
21604                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21605                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
21606                           "\x49\xf7\xa5\xad\x50\x88\x66\x53"
21607                           "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
21608                 .klen   = 32,
21609                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21610                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
21611                           "\x14\xa8\x28\xce\x92\x30\x46\x59"
21612                           "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
21613                 .assoc  = "",
21614                 .alen   = 0,
21615                 .input  = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
21616                           "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
21617                           "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
21618                           "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
21619                 .ilen   = 32,
21620                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21621                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21622                 .rlen   = 16,
21623         }, {
21624                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21625                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
21626                           "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
21627                           "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
21628                 .klen   = 32,
21629                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21630                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
21631                           "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
21632                           "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
21633                 .assoc  = "",
21634                 .alen   = 0,
21635                 .input  = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
21636                           "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
21637                           "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
21638                           "\xc0\x00\x39\x13\xb5\x51\x68\x44"
21639                           "\xad",
21640                 .ilen   = 33,
21641                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21642                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21643                           "\xd3",
21644                 .rlen   = 17,
21645         }, {
21646                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21647                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
21648                           "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
21649                           "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
21650                 .klen   = 32,
21651                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21652                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
21653                           "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
21654                           "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
21655                 .assoc  = "",
21656                 .alen   = 0,
21657                 .input  = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
21658                           "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
21659                           "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
21660                           "\x89\x85\x23\x15\xb8\x79\x07\x4c"
21661                           "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
21662                           "\xc4\x1f\x12\x27\xcf\x77\x90",
21663                 .ilen   = 47,
21664                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21665                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21666                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21667                           "\x88\x11\x39\x12\x1c\x3a\xbb",
21668                 .rlen   = 31,
21669         }, {
21670                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21671                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
21672                           "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
21673                           "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
21674                 .klen   = 32,
21675                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21676                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
21677                           "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
21678                           "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
21679                 .assoc  = "",
21680                 .alen   = 0,
21681                 .input  = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
21682                           "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
21683                           "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
21684                           "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
21685                           "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
21686                           "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
21687                 .ilen   = 48,
21688                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21689                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21690                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21691                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21692                 .rlen   = 32,
21693         }, {
21694                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21695                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
21696                           "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
21697                           "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
21698                 .klen   = 32,
21699                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21700                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
21701                           "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
21702                           "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
21703                 .assoc  = "\xd5",
21704                 .alen   = 1,
21705                 .input  = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
21706                           "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
21707                 .ilen   = 16,
21708                 .result = "",
21709                 .rlen   = 0,
21710         }, {
21711                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21712                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
21713                           "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
21714                           "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
21715                 .klen   = 32,
21716                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21717                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
21718                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
21719                           "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
21720                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21721                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
21722                 .alen   = 15,
21723                 .input  = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
21724                           "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
21725                 .ilen   = 16,
21726                 .result = "",
21727                 .rlen   = 0,
21728         }, {
21729                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21730                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
21731                           "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
21732                           "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
21733                 .klen   = 32,
21734                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21735                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
21736                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
21737                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
21738                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21739                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21740                 .alen   = 16,
21741                 .input  = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
21742                           "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
21743                 .ilen   = 16,
21744                 .result = "",
21745                 .rlen   = 0,
21746         }, {
21747                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21748                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
21749                           "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
21750                           "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
21751                 .klen   = 32,
21752                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21753                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
21754                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
21755                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
21756                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21757                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21758                           "\x07",
21759                 .alen   = 17,
21760                 .input  = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
21761                           "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
21762                 .ilen   = 16,
21763                 .result = "",
21764                 .rlen   = 0,
21765         }, {
21766                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21767                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
21768                           "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
21769                           "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
21770                 .klen   = 32,
21771                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21772                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
21773                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
21774                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
21775                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21776                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21777                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21778                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21779                 .alen   = 31,
21780                 .input  = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
21781                           "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
21782                 .ilen   = 16,
21783                 .result = "",
21784                 .rlen   = 0,
21785         }, {
21786                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21787                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
21788                           "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
21789                           "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
21790                 .klen   = 32,
21791                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21792                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
21793                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
21794                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
21795                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21796                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21797                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21798                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21799                 .alen   = 32,
21800                 .input  = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
21801                           "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
21802                 .ilen   = 16,
21803                 .result = "",
21804                 .rlen   = 0,
21805         }, {
21806                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21807                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
21808                           "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
21809                           "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
21810                 .klen   = 32,
21811                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21812                           "\xcc\x81\x63\xab\xae\x6b\x43\x54"
21813                           "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
21814                           "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
21815                 .assoc  = "\x40",
21816                 .alen   = 1,
21817                 .input  = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
21818                           "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
21819                           "\xc7",
21820                 .ilen   = 17,
21821                 .result = "\x4f",
21822                 .rlen   = 1,
21823         }, {
21824                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21825                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
21826                           "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
21827                           "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
21828                 .klen   = 32,
21829                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21830                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
21831                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
21832                           "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
21833                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21834                           "\x6d\x92\x42\x61\xa7\x58\x37",
21835                 .alen   = 15,
21836                 .input  = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
21837                           "\x7e\x98\x83\x02\x34\x23\xf7\x94"
21838                           "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
21839                           "\x14\x80\x6a\xa7\x1b\xae\x1d",
21840                 .ilen   = 31,
21841                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21842                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
21843                 .rlen   = 15,
21844         }, {
21845                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21846                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
21847                           "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
21848                           "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
21849                 .klen   = 32,
21850                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21851                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
21852                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
21853                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
21854                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21855                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21856                 .alen   = 16,
21857                 .input  = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
21858                           "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
21859                           "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
21860                           "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
21861                 .ilen   = 32,
21862                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21863                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21864                 .rlen   = 16,
21865         }, {
21866                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21867                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
21868                           "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
21869                           "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
21870                 .klen   = 32,
21871                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21872                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
21873                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
21874                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
21875                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21876                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21877                           "\x05",
21878                 .alen   = 17,
21879                 .input  = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
21880                           "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
21881                           "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
21882                           "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
21883                           "\x55",
21884                 .ilen   = 33,
21885                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21886                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21887                           "\xd0",
21888                 .rlen   = 17,
21889         }, {
21890                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21891                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
21892                           "\x9a\x97\x48\xe9\x98\x48\x82\xba"
21893                           "\x07\x11\x04\x54\x32\x67\x7b\xf5",
21894                 .klen   = 32,
21895                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21896                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
21897                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
21898                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
21899                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21900                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21901                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21902                           "\x68\x28\x73\x40\x9f\x96\x4a",
21903                 .alen   = 31,
21904                 .input  = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
21905                           "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
21906                           "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
21907                           "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
21908                           "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
21909                           "\xdf\xb8\xea\xd8\xa9\x38\xed",
21910                 .ilen   = 47,
21911                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21912                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21913                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21914                           "\x98\x34\xab\x37\x56\xae\x32",
21915                 .rlen   = 31,
21916         }, {
21917                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21918                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
21919                           "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
21920                           "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
21921                 .klen   = 32,
21922                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21923                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
21924                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
21925                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
21926                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21927                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21928                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21929                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21930                 .alen   = 32,
21931                 .input  = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
21932                           "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
21933                           "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
21934                           "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
21935                           "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
21936                           "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
21937                 .ilen   = 48,
21938                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21939                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21940                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21941                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21942                 .rlen   = 32,
21943         }, {
21944                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21945                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
21946                           "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
21947                           "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
21948                 .klen   = 32,
21949                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21950                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
21951                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
21952                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
21953                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21954                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21955                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21956                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21957                           "\x9d",
21958                 .alen   = 33,
21959                 .input  = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
21960                           "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
21961                           "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
21962                           "\x1a\x93\x33\x79\x97\x82\x81\xc0"
21963                           "\x96\xc2\x00\xab\x39\xae\xa1\x62"
21964                           "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
21965                           "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
21966                           "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
21967                           "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
21968                           "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
21969                           "\x65",
21970                 .ilen   = 81,
21971                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21972                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21973                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21974                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21975                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21976                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21977                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21978                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21979                           "\xbd",
21980                 .rlen   = 65,
21981         }, {
21982                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21983                           "\x32\x42\x15\x80\x85\xa1\x65\xfe"
21984                           "\x19\xde\x6b\x76\xa8\x28\x08\x07"
21985                           "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
21986                 .klen   = 32,
21987                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21988                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
21989                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
21990                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
21991                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21992                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21993                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21994                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21995                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21996                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21997                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21998                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21999                           "\x54",
22000                 .alen   = 65,
22001                 .input  = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
22002                           "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
22003                           "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
22004                           "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
22005                           "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
22006                           "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
22007                           "\xda",
22008                 .ilen   = 49,
22009                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22010                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22011                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22012                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22013                           "\x2f",
22014                 .rlen   = 33,
22015         }, {
22016                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22017                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
22018                           "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
22019                           "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
22020                 .klen   = 32,
22021                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22022                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
22023                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
22024                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
22025                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22026                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22027                 .alen   = 16,
22028                 .input  = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
22029                           "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
22030                           "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
22031                           "\xc7\xff\xbd\xbc\x85\x09\x0b",
22032                 .ilen   = 31,
22033                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22034                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22035                 .rlen   = 16,
22036         }, {
22037                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22038                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
22039                           "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
22040                           "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
22041                 .klen   = 32,
22042                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22043                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
22044                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
22045                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
22046                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22047                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22048                 .alen   = 16,
22049                 .input  = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
22050                           "\x6c\xd9\x84\x63\x70\x97\x61\x37"
22051                           "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
22052                           "\x62\xd5\xc8\xf0\x46\x1a",
22053                 .ilen   = 30,
22054                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22055                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22056                 .rlen   = 16,
22057         }, {
22058                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22059                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
22060                           "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
22061                           "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
22062                 .klen   = 32,
22063                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22064                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
22065                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
22066                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
22067                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22068                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22069                 .alen   = 16,
22070                 .input  = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
22071                           "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
22072                           "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
22073                 .ilen   = 24,
22074                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22075                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22076                 .rlen   = 16,
22077         },
22078 };
22079
22080 /*
22081  * MORUS-640 test vectors - generated via reference implementation from
22082  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
22083  *
22084  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
22085  *   (see crypto_aead/morus640128v2/)
22086  */
22087 static const struct aead_testvec morus640_enc_tv_template[] = {
22088         {
22089                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
22090                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22091                 .klen   = 16,
22092                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22093                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
22094                 .assoc  = "",
22095                 .alen   = 0,
22096                 .input  = "",
22097                 .ilen   = 0,
22098                 .result = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
22099                           "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
22100                 .rlen   = 16,
22101         }, {
22102                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
22103                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
22104                 .klen   = 16,
22105                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22106                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
22107                 .assoc  = "",
22108                 .alen   = 0,
22109                 .input  = "\x69",
22110                 .ilen   = 1,
22111                 .result = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
22112                           "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
22113                           "\x09",
22114                 .rlen   = 17,
22115         }, {
22116                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
22117                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
22118                 .klen   = 16,
22119                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22120                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
22121                 .assoc  = "",
22122                 .alen   = 0,
22123                 .input  = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
22124                           "\x62\x58\xe9\x8f\xef\xa4\x17",
22125                 .ilen   = 15,
22126                 .result = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
22127                           "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
22128                           "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
22129                           "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
22130                 .rlen   = 31,
22131         }, {
22132                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22133                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
22134                 .klen   = 16,
22135                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22136                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
22137                 .assoc  = "",
22138                 .alen   = 0,
22139                 .input  = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
22140                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
22141                 .ilen   = 16,
22142                 .result = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
22143                           "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
22144                           "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
22145                           "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
22146                 .rlen   = 32,
22147         }, {
22148                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22149                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22150                 .klen   = 16,
22151                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22152                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
22153                 .assoc  = "",
22154                 .alen   = 0,
22155                 .input  = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
22156                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
22157                           "\x09",
22158                 .ilen   = 17,
22159                 .result = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
22160                           "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
22161                           "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
22162                           "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
22163                           "\x0d",
22164                 .rlen   = 33,
22165         }, {
22166                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22167                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
22168                 .klen   = 16,
22169                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22170                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
22171                 .assoc  = "",
22172                 .alen   = 0,
22173                 .input  = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
22174                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
22175                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
22176                           "\x57\x05\x01\x1c\x66\x22\xd3",
22177                 .ilen   = 31,
22178                 .result = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
22179                           "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
22180                           "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
22181                           "\x36\x12\x12\xed\xa3\x31\xc5\x30"
22182                           "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
22183                           "\x75\xfa\x6c\x17\xc6\x73\xca",
22184                 .rlen   = 47,
22185         }, {
22186                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22187                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
22188                 .klen   = 16,
22189                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22190                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
22191                 .assoc  = "",
22192                 .alen   = 0,
22193                 .input  = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
22194                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
22195                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
22196                           "\x19\x33\xe0\xf4\x40\x81\x72\x28",
22197                 .ilen   = 32,
22198                 .result = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
22199                           "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
22200                           "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
22201                           "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
22202                           "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
22203                           "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
22204                 .rlen   = 48,
22205         }, {
22206                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22207                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
22208                 .klen   = 16,
22209                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22210                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
22211                 .assoc  = "\xc5",
22212                 .alen   = 1,
22213                 .input  = "",
22214                 .ilen   = 0,
22215                 .result = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
22216                           "\x09\x48\x39\x69\x9c\xb3\x62\x46",
22217                 .rlen   = 16,
22218         }, {
22219                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
22220                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
22221                 .klen   = 16,
22222                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22223                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
22224                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22225                           "\x47\x3e\xe9\xd4\xcc\xb5\x76",
22226                 .alen   = 15,
22227                 .input  = "",
22228                 .ilen   = 0,
22229                 .result = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
22230                           "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
22231                 .rlen   = 16,
22232         }, {
22233                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
22234                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
22235                 .klen   = 16,
22236                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22237                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
22238                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22239                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
22240                 .alen   = 16,
22241                 .input  = "",
22242                 .ilen   = 0,
22243                 .result = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
22244                           "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
22245                 .rlen   = 16,
22246         }, {
22247                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
22248                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
22249                 .klen   = 16,
22250                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22251                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
22252                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22253                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22254                           "\x3c",
22255                 .alen   = 17,
22256                 .input  = "",
22257                 .ilen   = 0,
22258                 .result = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
22259                           "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
22260                 .rlen   = 16,
22261         }, {
22262                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
22263                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
22264                 .klen   = 16,
22265                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22266                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
22267                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22268                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22269                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22270                           "\xaf\x0b\x02\x38\xcc\x44\xa7",
22271                 .alen   = 31,
22272                 .input  = "",
22273                 .ilen   = 0,
22274                 .result = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
22275                           "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
22276                 .rlen   = 16,
22277         }, {
22278                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
22279                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
22280                 .klen   = 16,
22281                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22282                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
22283                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22284                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22285                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22286                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22287                 .alen   = 32,
22288                 .input  = "",
22289                 .ilen   = 0,
22290                 .result = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
22291                           "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
22292                 .rlen   = 16,
22293         }, {
22294                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
22295                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
22296                 .klen   = 16,
22297                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22298                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
22299                 .assoc  = "\x31",
22300                 .alen   = 1,
22301                 .input  = "\x40",
22302                 .ilen   = 1,
22303                 .result = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
22304                           "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
22305                           "\x22",
22306                 .rlen   = 17,
22307         }, {
22308                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
22309                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
22310                 .klen   = 16,
22311                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22312                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22313                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22314                           "\x4d\x5b\x15\x3c\xa8\x8f\x06",
22315                 .alen   = 15,
22316                 .input  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22317                           "\x6d\x92\x42\x61\xa7\x58\x37",
22318                 .ilen   = 15,
22319                 .result = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
22320                           "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
22321                           "\x07\x95\xa7\x44\x74\xf7\x22\xff"
22322                           "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
22323                 .rlen   = 31,
22324         }, {
22325                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22326                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
22327                 .klen   = 16,
22328                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22329                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22330                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22331                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22332                 .alen   = 16,
22333                 .input  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22334                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22335                 .ilen   = 16,
22336                 .result = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
22337                           "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
22338                           "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
22339                           "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
22340                 .rlen   = 32,
22341         }, {
22342                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22343                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22344                 .klen   = 16,
22345                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22346                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22347                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22348                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22349                           "\x3b",
22350                 .alen   = 17,
22351                 .input  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22352                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22353                           "\x05",
22354                 .ilen   = 17,
22355                 .result = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
22356                           "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
22357                           "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
22358                           "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
22359                           "\x83",
22360                 .rlen   = 33,
22361         }, {
22362                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22363                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
22364                 .klen   = 16,
22365                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22366                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22367                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22368                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22369                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22370                           "\x38\x1d\x3b\x4a\xe9\x7e\x62",
22371                 .alen   = 31,
22372                 .input  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22373                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22374                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22375                           "\x68\x28\x73\x40\x9f\x96\x4a",
22376                 .ilen   = 31,
22377                 .result = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
22378                           "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
22379                           "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
22380                           "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
22381                           "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
22382                           "\xf1\x5a\x66\x69\xe0\xca\x83",
22383                 .rlen   = 47,
22384         }, {
22385                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22386                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
22387                 .klen   = 16,
22388                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22389                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
22390                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22391                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
22392                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22393                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22394                 .alen   = 32,
22395                 .input  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22396                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22397                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22398                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22399                 .ilen   = 32,
22400                 .result = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
22401                           "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
22402                           "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
22403                           "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
22404                           "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
22405                           "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
22406                 .rlen   = 48,
22407         }, {
22408                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22409                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
22410                 .klen   = 16,
22411                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22412                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
22413                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22414                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22415                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22416                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
22417                           "\x1a",
22418                 .alen   = 33,
22419                 .input  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22420                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22421                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22422                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22423                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
22424                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
22425                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
22426                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
22427                           "\x8a",
22428                 .ilen   = 65,
22429                 .result = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
22430                           "\xb1\x37\xde\x95\x06\x90\x11\x08"
22431                           "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
22432                           "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
22433                           "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
22434                           "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
22435                           "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
22436                           "\xef\x35\x25\x48\xed\xcf\x29\xa8"
22437                           "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
22438                           "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
22439                           "\xc4",
22440                 .rlen   = 81,
22441         }, {
22442                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22443                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
22444                 .klen   = 16,
22445                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22446                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
22447                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22448                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22449                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22450                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
22451                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
22452                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
22453                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
22454                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
22455                           "\x21",
22456                 .alen   = 65,
22457                 .input  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22458                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22459                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22460                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22461                           "\xac",
22462                 .ilen   = 33,
22463                 .result = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
22464                           "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
22465                           "\xf3\x78\x63\x34\x89\x79\x39\x6b"
22466                           "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
22467                           "\x54\x0b\xea\x05\xa6\x95\x64\xed"
22468                           "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
22469                           "\x66",
22470                 .rlen   = 49,
22471         }, {
22472                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22473                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
22474                 .klen   = 16,
22475                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22476                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
22477                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22478                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
22479                 .alen   = 16,
22480                 .input  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22481                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22482                 .ilen   = 16,
22483                 .result = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
22484                           "\x33\x98\x87\xde\x08\xb6\xb6\xae"
22485                           "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
22486                           "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
22487                 .rlen   = 31,
22488         }, {
22489                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22490                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22491                 .klen   = 16,
22492                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22493                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
22494                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22495                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
22496                 .alen   = 16,
22497                 .input  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22498                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22499                 .ilen   = 16,
22500                 .result = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
22501                           "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
22502                           "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
22503                           "\x03\xde\x85\x71\x5d\x34",
22504                 .rlen   = 30,
22505         }, {
22506                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22507                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22508                 .klen   = 16,
22509                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22510                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
22511                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22512                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
22513                 .alen   = 16,
22514                 .input  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22515                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22516                 .ilen   = 16,
22517                 .result = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
22518                           "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
22519                           "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
22520                 .rlen   = 24,
22521         }, {
22522                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22523                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22524                 .klen   = 16,
22525                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
22526                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
22527                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
22528                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
22529                 .alen   = 16,
22530                 .input  = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
22531                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
22532                 .ilen   = 16,
22533                 .result = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
22534                           "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
22535                           "\x6e",
22536                 .rlen   = 17,
22537         },
22538 };
22539
22540 static const struct aead_testvec morus640_dec_tv_template[] = {
22541         {
22542                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
22543                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22544                 .klen   = 16,
22545                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22546                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
22547                 .assoc  = "",
22548                 .alen   = 0,
22549                 .input  = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
22550                           "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
22551                 .ilen   = 16,
22552                 .result = "",
22553                 .rlen   = 0,
22554         }, {
22555                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
22556                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
22557                 .klen   = 16,
22558                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22559                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
22560                 .assoc  = "",
22561                 .alen   = 0,
22562                 .input  = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
22563                           "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
22564                           "\x09",
22565                 .ilen   = 17,
22566                 .result = "\x69",
22567                 .rlen   = 1,
22568         }, {
22569                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
22570                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
22571                 .klen   = 16,
22572                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22573                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
22574                 .assoc  = "",
22575                 .alen   = 0,
22576                 .input  = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
22577                           "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
22578                           "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
22579                           "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
22580                 .ilen   = 31,
22581                 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
22582                           "\x62\x58\xe9\x8f\xef\xa4\x17",
22583                 .rlen   = 15,
22584         }, {
22585                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22586                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
22587                 .klen   = 16,
22588                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22589                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
22590                 .assoc  = "",
22591                 .alen   = 0,
22592                 .input  = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
22593                           "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
22594                           "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
22595                           "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
22596                 .ilen   = 32,
22597                 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
22598                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
22599                 .rlen   = 16,
22600         }, {
22601                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22602                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22603                 .klen   = 16,
22604                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22605                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
22606                 .assoc  = "",
22607                 .alen   = 0,
22608                 .input  = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
22609                           "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
22610                           "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
22611                           "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
22612                           "\x0d",
22613                 .ilen   = 33,
22614                 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
22615                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
22616                           "\x09",
22617                 .rlen   = 17,
22618         }, {
22619                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22620                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
22621                 .klen   = 16,
22622                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22623                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
22624                 .assoc  = "",
22625                 .alen   = 0,
22626                 .input  = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
22627                           "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
22628                           "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
22629                           "\x36\x12\x12\xed\xa3\x31\xc5\x30"
22630                           "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
22631                           "\x75\xfa\x6c\x17\xc6\x73\xca",
22632                 .ilen   = 47,
22633                 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
22634                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
22635                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
22636                           "\x57\x05\x01\x1c\x66\x22\xd3",
22637                 .rlen   = 31,
22638         }, {
22639                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22640                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
22641                 .klen   = 16,
22642                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22643                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
22644                 .assoc  = "",
22645                 .alen   = 0,
22646                 .input  = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
22647                           "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
22648                           "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
22649                           "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
22650                           "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
22651                           "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
22652                 .ilen   = 48,
22653                 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
22654                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
22655                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
22656                           "\x19\x33\xe0\xf4\x40\x81\x72\x28",
22657                 .rlen   = 32,
22658         }, {
22659                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22660                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
22661                 .klen   = 16,
22662                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22663                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
22664                 .assoc  = "\xc5",
22665                 .alen   = 1,
22666                 .input  = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
22667                           "\x09\x48\x39\x69\x9c\xb3\x62\x46",
22668                 .ilen   = 16,
22669                 .result = "",
22670                 .rlen   = 0,
22671         }, {
22672                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
22673                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
22674                 .klen   = 16,
22675                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22676                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
22677                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22678                           "\x47\x3e\xe9\xd4\xcc\xb5\x76",
22679                 .alen   = 15,
22680                 .input  = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
22681                           "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
22682                 .ilen   = 16,
22683                 .result = "",
22684                 .rlen   = 0,
22685         }, {
22686                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
22687                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
22688                 .klen   = 16,
22689                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22690                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
22691                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22692                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
22693                 .alen   = 16,
22694                 .input  = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
22695                           "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
22696                 .ilen   = 16,
22697                 .result = "",
22698                 .rlen   = 0,
22699         }, {
22700                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
22701                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
22702                 .klen   = 16,
22703                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22704                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
22705                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22706                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22707                           "\x3c",
22708                 .alen   = 17,
22709                 .input  = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
22710                           "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
22711                 .ilen   = 16,
22712                 .result = "",
22713                 .rlen   = 0,
22714         }, {
22715                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
22716                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
22717                 .klen   = 16,
22718                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22719                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
22720                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22721                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22722                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22723                           "\xaf\x0b\x02\x38\xcc\x44\xa7",
22724                 .alen   = 31,
22725                 .input  = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
22726                           "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
22727                 .ilen   = 16,
22728                 .result = "",
22729                 .rlen   = 0,
22730         }, {
22731                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
22732                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
22733                 .klen   = 16,
22734                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22735                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
22736                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22737                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22738                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22739                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22740                 .alen   = 32,
22741                 .input  = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
22742                           "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
22743                 .ilen   = 16,
22744                 .result = "",
22745                 .rlen   = 0,
22746         }, {
22747                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
22748                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
22749                 .klen   = 16,
22750                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22751                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
22752                 .assoc  = "\x31",
22753                 .alen   = 1,
22754                 .input  = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
22755                           "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
22756                           "\x22",
22757                 .ilen   = 17,
22758                 .result = "\x40",
22759                 .rlen   = 1,
22760         }, {
22761                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
22762                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
22763                 .klen   = 16,
22764                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22765                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22766                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22767                           "\x4d\x5b\x15\x3c\xa8\x8f\x06",
22768                 .alen   = 15,
22769                 .input  = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
22770                           "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
22771                           "\x07\x95\xa7\x44\x74\xf7\x22\xff"
22772                           "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
22773                 .ilen   = 31,
22774                 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22775                           "\x6d\x92\x42\x61\xa7\x58\x37",
22776                 .rlen   = 15,
22777         }, {
22778                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22779                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
22780                 .klen   = 16,
22781                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22782                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22783                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22784                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22785                 .alen   = 16,
22786                 .input  = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
22787                           "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
22788                           "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
22789                           "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
22790                 .ilen   = 32,
22791                 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22792                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22793                 .rlen   = 16,
22794         }, {
22795                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22796                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22797                 .klen   = 16,
22798                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22799                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22800                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22801                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22802                           "\x3b",
22803                 .alen   = 17,
22804                 .input  = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
22805                           "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
22806                           "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
22807                           "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
22808                           "\x83",
22809                 .ilen   = 33,
22810                 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22811                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22812                           "\x05",
22813                 .rlen   = 17,
22814         }, {
22815                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22816                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
22817                 .klen   = 16,
22818                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22819                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22820                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22821                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22822                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22823                           "\x38\x1d\x3b\x4a\xe9\x7e\x62",
22824                 .alen   = 31,
22825                 .input  = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
22826                           "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
22827                           "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
22828                           "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
22829                           "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
22830                           "\xf1\x5a\x66\x69\xe0\xca\x83",
22831                 .ilen   = 47,
22832                 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22833                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22834                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22835                           "\x68\x28\x73\x40\x9f\x96\x4a",
22836                 .rlen   = 31,
22837         }, {
22838                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22839                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
22840                 .klen   = 16,
22841                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22842                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
22843                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22844                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
22845                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22846                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22847                 .alen   = 32,
22848                 .input  = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
22849                           "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
22850                           "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
22851                           "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
22852                           "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
22853                           "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
22854                 .ilen   = 48,
22855                 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22856                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22857                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22858                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22859                 .rlen   = 32,
22860         }, {
22861                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22862                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
22863                 .klen   = 16,
22864                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22865                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
22866                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22867                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22868                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22869                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
22870                           "\x1a",
22871                 .alen   = 33,
22872                 .input  = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
22873                           "\xb1\x37\xde\x95\x06\x90\x11\x08"
22874                           "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
22875                           "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
22876                           "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
22877                           "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
22878                           "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
22879                           "\xef\x35\x25\x48\xed\xcf\x29\xa8"
22880                           "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
22881                           "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
22882                           "\xc4",
22883                 .ilen   = 81,
22884                 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22885                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22886                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22887                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22888                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
22889                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
22890                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
22891                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
22892                           "\x8a",
22893                 .rlen   = 65,
22894         }, {
22895                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22896                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
22897                 .klen   = 16,
22898                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22899                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
22900                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22901                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22902                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22903                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
22904                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
22905                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
22906                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
22907                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
22908                           "\x21",
22909                 .alen   = 65,
22910                 .input  = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
22911                           "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
22912                           "\xf3\x78\x63\x34\x89\x79\x39\x6b"
22913                           "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
22914                           "\x54\x0b\xea\x05\xa6\x95\x64\xed"
22915                           "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
22916                           "\x66",
22917                 .ilen   = 49,
22918                 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22919                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22920                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22921                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22922                           "\xac",
22923                 .rlen   = 33,
22924         }, {
22925                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22926                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
22927                 .klen   = 16,
22928                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22929                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
22930                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22931                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
22932                 .alen   = 16,
22933                 .input  = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
22934                           "\x33\x98\x87\xde\x08\xb6\xb6\xae"
22935                           "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
22936                           "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
22937                 .ilen   = 31,
22938                 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22939                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22940                 .rlen   = 16,
22941         }, {
22942                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22943                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22944                 .klen   = 16,
22945                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22946                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
22947                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22948                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
22949                 .alen   = 16,
22950                 .input  = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
22951                           "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
22952                           "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
22953                           "\x03\xde\x85\x71\x5d\x34",
22954                 .ilen   = 30,
22955                 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22956                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22957                 .rlen   = 16,
22958         }, {
22959                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22960                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22961                 .klen   = 16,
22962                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22963                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
22964                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22965                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
22966                 .alen   = 16,
22967                 .input  = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
22968                           "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
22969                           "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
22970                 .ilen   = 24,
22971                 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22972                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22973                 .rlen   = 16,
22974         }, {
22975                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22976                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22977                 .klen   = 16,
22978                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
22979                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
22980                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
22981                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
22982                 .alen   = 16,
22983                 .input  = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
22984                           "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
22985                           "\x6e",
22986                 .ilen   = 17,
22987                 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
22988                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
22989                 .rlen   = 16,
22990         },
22991 };
22992
22993 /*
22994  * MORUS-1280 test vectors - generated via reference implementation from
22995  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
22996  *
22997  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
22998  *   (see crypto_aead/morus1280128v2/ and crypto_aead/morus1280256v2/ )
22999  */
23000 static const struct aead_testvec morus1280_enc_tv_template[] = {
23001         {
23002                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
23003                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23004                 .klen   = 16,
23005                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23006                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
23007                 .assoc  = "",
23008                 .alen   = 0,
23009                 .input  = "",
23010                 .ilen   = 0,
23011                 .result = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
23012                           "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
23013                 .rlen   = 16,
23014         }, {
23015                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
23016                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
23017                 .klen   = 16,
23018                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23019                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
23020                 .assoc  = "",
23021                 .alen   = 0,
23022                 .input  = "\x69",
23023                 .ilen   = 1,
23024                 .result = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
23025                           "\x96\xda\x76\x34\x33\x4e\xd5\x39"
23026                           "\x73",
23027                 .rlen   = 17,
23028         }, {
23029                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
23030                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
23031                 .klen   = 16,
23032                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23033                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
23034                 .assoc  = "",
23035                 .alen   = 0,
23036                 .input  = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
23037                           "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
23038                           "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
23039                           "\x13\x7d\x64\x93\xd7\x05\xf5",
23040                 .ilen   = 31,
23041                 .result = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
23042                           "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
23043                           "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
23044                           "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
23045                           "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
23046                           "\xa4\x21\x74\xcf\x19\x16\x59",
23047                 .rlen   = 47,
23048         }, {
23049                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23050                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
23051                 .klen   = 16,
23052                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23053                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
23054                 .assoc  = "",
23055                 .alen   = 0,
23056                 .input  = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
23057                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
23058                           "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
23059                           "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
23060                 .ilen   = 32,
23061                 .result = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
23062                           "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
23063                           "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
23064                           "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
23065                           "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
23066                           "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
23067                 .rlen   = 48,
23068         }, {
23069                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23070                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23071                 .klen   = 16,
23072                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23073                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
23074                 .assoc  = "",
23075                 .alen   = 0,
23076                 .input  = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
23077                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
23078                           "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
23079                           "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
23080                           "\xc4",
23081                 .ilen   = 33,
23082                 .result = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
23083                           "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
23084                           "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
23085                           "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
23086                           "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
23087                           "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
23088                           "\xd0",
23089                 .rlen   = 49,
23090         }, {
23091                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23092                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
23093                 .klen   = 16,
23094                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23095                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
23096                 .assoc  = "",
23097                 .alen   = 0,
23098                 .input  = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
23099                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
23100                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
23101                           "\x57\x05\x01\x1c\x66\x22\xd3\x51"
23102                           "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
23103                           "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
23104                           "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
23105                           "\xe6\x16\xa2\xac\xde\x47\x40",
23106                 .ilen   = 63,
23107                 .result = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
23108                           "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
23109                           "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
23110                           "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
23111                           "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
23112                           "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
23113                           "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
23114                           "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
23115                           "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
23116                           "\x99\x7a\x72\x9c\x54\x31\xa1",
23117                 .rlen   = 79,
23118         }, {
23119                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23120                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
23121                 .klen   = 16,
23122                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23123                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
23124                 .assoc  = "",
23125                 .alen   = 0,
23126                 .input  = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
23127                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
23128                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
23129                           "\x19\x33\xe0\xf4\x40\x81\x72\x28"
23130                           "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
23131                           "\xb0\x68\x69\xf2\x27\x35\x91\x84"
23132                           "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
23133                           "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
23134                 .ilen   = 64,
23135                 .result = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
23136                           "\xa5\x07\x12\xa7\x12\x39\x60\x66"
23137                           "\x30\x81\x4a\x03\x78\x28\x45\x52"
23138                           "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
23139                           "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
23140                           "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
23141                           "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
23142                           "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
23143                           "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
23144                           "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
23145                 .rlen   = 80,
23146         }, {
23147                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23148                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
23149                 .klen   = 16,
23150                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23151                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
23152                 .assoc  = "\xc5",
23153                 .alen   = 1,
23154                 .input  = "",
23155                 .ilen   = 0,
23156                 .result = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
23157                           "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
23158                 .rlen   = 16,
23159         }, {
23160                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
23161                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
23162                 .klen   = 16,
23163                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23164                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
23165                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23166                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
23167                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
23168                           "\x6b\x83\x66\xaf\x3e\x27\xc9",
23169                 .alen   = 31,
23170                 .input  = "",
23171                 .ilen   = 0,
23172                 .result = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
23173                           "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
23174                 .rlen   = 16,
23175         }, {
23176                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
23177                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
23178                 .klen   = 16,
23179                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23180                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
23181                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23182                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
23183                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
23184                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
23185                 .alen   = 32,
23186                 .input  = "",
23187                 .ilen   = 0,
23188                 .result = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
23189                           "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
23190                 .rlen   = 16,
23191         }, {
23192                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
23193                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
23194                 .klen   = 16,
23195                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23196                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
23197                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23198                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23199                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
23200                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
23201                           "\x97",
23202                 .alen   = 33,
23203                 .input  = "",
23204                 .ilen   = 0,
23205                 .result = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
23206                           "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
23207                 .rlen   = 16,
23208         }, {
23209                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
23210                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
23211                 .klen   = 16,
23212                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23213                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
23214                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23215                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23216                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23217                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
23218                           "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
23219                           "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
23220                           "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
23221                           "\xcd\x2c\x45\x58\xbd\x8e\x80",
23222                 .alen   = 63,
23223                 .input  = "",
23224                 .ilen   = 0,
23225                 .result = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
23226                           "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
23227                 .rlen   = 16,
23228         }, {
23229                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
23230                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
23231                 .klen   = 16,
23232                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23233                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
23234                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23235                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23236                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23237                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
23238                           "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
23239                           "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
23240                           "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
23241                           "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
23242                 .alen   = 64,
23243                 .input  = "",
23244                 .ilen   = 0,
23245                 .result = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
23246                           "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
23247                 .rlen   = 16,
23248         }, {
23249                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
23250                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
23251                 .klen   = 16,
23252                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23253                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
23254                 .assoc  = "\x31",
23255                 .alen   = 1,
23256                 .input  = "\x40",
23257                 .ilen   = 1,
23258                 .result = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
23259                           "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
23260                           "\xbf",
23261                 .rlen   = 17,
23262         }, {
23263                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
23264                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
23265                 .klen   = 16,
23266                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23267                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
23268                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23269                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
23270                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
23271                           "\xf4\x94\x9f\xc1\x5a\x61\x85",
23272                 .alen   = 31,
23273                 .input  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23274                           "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
23275                           "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
23276                           "\x24\xa0\xd6\xb7\x11\x79\x6c",
23277                 .ilen   = 31,
23278                 .result = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
23279                           "\x63\x09\x08\x58\xb5\x56\xbd\x72"
23280                           "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
23281                           "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
23282                           "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
23283                           "\x85\x87\x17\x09\x42\xed\x4e",
23284                 .rlen   = 47,
23285         }, {
23286                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23287                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
23288                 .klen   = 16,
23289                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23290                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
23291                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23292                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
23293                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
23294                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
23295                 .alen   = 32,
23296                 .input  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23297                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
23298                           "\xdb\x74\x36\x23\x11\x58\x3f\x93"
23299                           "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
23300                 .ilen   = 32,
23301                 .result = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
23302                           "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
23303                           "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
23304                           "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
23305                           "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
23306                           "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
23307                 .rlen   = 48,
23308         }, {
23309                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23310                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23311                 .klen   = 16,
23312                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23313                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
23314                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
23315                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
23316                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
23317                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
23318                           "\xee",
23319                 .alen   = 33,
23320                 .input  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
23321                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
23322                           "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
23323                           "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
23324                           "\x72",
23325                 .ilen   = 33,
23326                 .result = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
23327                           "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
23328                           "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
23329                           "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
23330                           "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
23331                           "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
23332                           "\x5e",
23333                 .rlen   = 49,
23334         }, {
23335                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
23336                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
23337                 .klen   = 16,
23338                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23339                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
23340                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23341                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23342                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23343                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
23344                           "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
23345                           "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
23346                           "\x10\x0b\x56\x85\xad\x54\xaa\x66"
23347                           "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
23348                 .alen   = 63,
23349                 .input  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23350                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23351                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23352                           "\x68\x28\x73\x40\x9f\x96\x4a\x60"
23353                           "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
23354                           "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
23355                           "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
23356                           "\x9c\x44\xb2\xa4\x99\x98\x34",
23357                 .ilen   = 63,
23358                 .result = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
23359                           "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
23360                           "\xef\x36\x19\xae\x91\xfa\xd6\x63"
23361                           "\x46\xea\x8a\x39\x14\x21\xa6\x37"
23362                           "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
23363                           "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
23364                           "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
23365                           "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
23366                           "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
23367                           "\x4f\x20\x37\xdb\x7b\x22\xa3",
23368                 .rlen   = 79,
23369         }, {
23370                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23371                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
23372                 .klen   = 16,
23373                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23374                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
23375                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23376                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
23377                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23378                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
23379                           "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
23380                           "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
23381                           "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
23382                           "\x77\x47\x63\x14\x95\x3d\xe4\x34",
23383                 .alen   = 64,
23384                 .input  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23385                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23386                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23387                           "\x29\x56\x52\x19\x79\xf5\xe9\x37"
23388                           "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
23389                           "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
23390                           "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
23391                           "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
23392                 .ilen   = 64,
23393                 .result = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
23394                           "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
23395                           "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
23396                           "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
23397                           "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
23398                           "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
23399                           "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
23400                           "\xec\x99\x7d\x61\xb3\x15\x93\xed"
23401                           "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
23402                           "\x95\x74\x44\xd5\x54\xa6\x27\x06",
23403                 .rlen   = 80,
23404         }, {
23405                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23406                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
23407                 .klen   = 16,
23408                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23409                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
23410                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23411                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23412                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23413                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
23414                           "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
23415                           "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
23416                           "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
23417                           "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
23418                           "\x58",
23419                 .alen   = 65,
23420                 .input  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23421                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23422                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23423                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23424                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
23425                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
23426                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
23427                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
23428                           "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
23429                           "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
23430                           "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
23431                           "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
23432                           "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
23433                           "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
23434                           "\x33\x16\x59\x6c\x3b\xef\x88\xad"
23435                           "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
23436                           "\x36",
23437                 .ilen   = 129,
23438                 .result = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
23439                           "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
23440                           "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
23441                           "\x38\xa4\x74\xa5\x04\x15\x63\x05"
23442                           "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
23443                           "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
23444                           "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
23445                           "\x42\x01\xe6\xbc\x75\x15\x87\xee"
23446                           "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
23447                           "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
23448                           "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
23449                           "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
23450                           "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
23451                           "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
23452                           "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
23453                           "\x4f\x61\x64\x37\x22\x36\x6d\x78"
23454                           "\xed\xed\x35\xe8\x83\xa5\xec\x25"
23455                           "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
23456                           "\x20",
23457                 .rlen   = 145,
23458         }, {
23459                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23460                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
23461                 .klen   = 16,
23462                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23463                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
23464                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23465                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23466                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23467                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
23468                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
23469                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
23470                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
23471                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
23472                           "\x21\xf7\x42\x89\xac\x12\x2a\x54"
23473                           "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
23474                           "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
23475                           "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
23476                           "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
23477                           "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
23478                           "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
23479                           "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
23480                           "\x51",
23481                 .alen   = 129,
23482                 .input  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23483                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23484                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23485                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23486                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
23487                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
23488                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
23489                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
23490                           "\x54",
23491                 .ilen   = 65,
23492                 .result = "\x36\x78\xb9\x22\xde\x62\x35\x55"
23493                           "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
23494                           "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
23495                           "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
23496                           "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
23497                           "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
23498                           "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
23499                           "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
23500                           "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
23501                           "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
23502                           "\xa2",
23503                 .rlen   = 81,
23504         }, {
23505                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23506                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
23507                 .klen   = 16,
23508                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23509                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
23510                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23511                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
23512                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
23513                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
23514                 .alen   = 32,
23515                 .input  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23516                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
23517                           "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
23518                           "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
23519                 .ilen   = 32,
23520                 .result = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
23521                           "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
23522                           "\x89\x14\x33\x70\x0a\xbc\xea\x39"
23523                           "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
23524                           "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
23525                           "\x2f\x03\x30\x05\x47\xaf\x34",
23526                 .rlen   = 47,
23527         }, {
23528                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23529                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23530                 .klen   = 16,
23531                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23532                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
23533                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23534                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
23535                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
23536                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
23537                 .alen   = 32,
23538                 .input  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23539                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
23540                           "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
23541                           "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
23542                 .ilen   = 32,
23543                 .result = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
23544                           "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
23545                           "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
23546                           "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
23547                           "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
23548                           "\xb9\x9c\xe5\xef\xf2\x05",
23549                 .rlen   = 46,
23550         }, {
23551                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23552                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23553                 .klen   = 16,
23554                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23555                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
23556                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23557                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
23558                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
23559                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
23560                 .alen   = 32,
23561                 .input  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23562                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
23563                           "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
23564                           "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
23565                 .ilen   = 32,
23566                 .result = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
23567                           "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
23568                           "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
23569                           "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
23570                           "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
23571                 .rlen   = 40,
23572         }, {
23573                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23574                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23575                 .klen   = 16,
23576                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
23577                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
23578                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
23579                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
23580                           "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
23581                           "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
23582                 .alen   = 32,
23583                 .input  = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
23584                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
23585                           "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
23586                           "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
23587                 .ilen   = 32,
23588                 .result = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
23589                           "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
23590                           "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
23591                           "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
23592                           "\x1a",
23593                 .rlen   = 33,
23594         }, {
23595                 .key    = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
23596                           "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
23597                           "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
23598                           "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
23599                 .klen   = 32,
23600                 .iv     = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
23601                           "\xb7\x85\x90\x58\x67\x57\x33\x1d",
23602                 .assoc  = "",
23603                 .alen   = 0,
23604                 .input  = "",
23605                 .ilen   = 0,
23606                 .result = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
23607                           "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
23608                 .rlen   = 16,
23609         }, {
23610                 .key    = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
23611                           "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
23612                           "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
23613                           "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
23614                 .klen   = 32,
23615                 .iv     = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
23616                           "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
23617                 .assoc  = "",
23618                 .alen   = 0,
23619                 .input  = "\x53",
23620                 .ilen   = 1,
23621                 .result = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
23622                           "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
23623                           "\x53",
23624                 .rlen   = 17,
23625         }, {
23626                 .key    = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
23627                           "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
23628                           "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
23629                           "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
23630                 .klen   = 32,
23631                 .iv     = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
23632                           "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
23633                 .assoc  = "",
23634                 .alen   = 0,
23635                 .input  = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
23636                           "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
23637                           "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
23638                           "\xf6\xf0\x27\xb4\x25\x4c\x83",
23639                 .ilen   = 31,
23640                 .result = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
23641                           "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
23642                           "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
23643                           "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
23644                           "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
23645                           "\xb8\x4d\x11\x42\xd1\xf8\xf1",
23646                 .rlen   = 47,
23647         }, {
23648                 .key    = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
23649                           "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
23650                           "\xa2\x40\x45\x77\x90\x80\x37\xce"
23651                           "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
23652                 .klen   = 32,
23653                 .iv     = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
23654                           "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
23655                 .assoc  = "",
23656                 .alen   = 0,
23657                 .input  = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
23658                           "\x7a\x81\xff\x55\x52\x56\xdc\x33"
23659                           "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
23660                           "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
23661                 .ilen   = 32,
23662                 .result = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
23663                           "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
23664                           "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
23665                           "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
23666                           "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
23667                           "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
23668                 .rlen   = 48,
23669         }, {
23670                 .key    = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
23671                           "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
23672                           "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
23673                           "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
23674                 .klen   = 32,
23675                 .iv     = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
23676                           "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
23677                 .assoc  = "",
23678                 .alen   = 0,
23679                 .input  = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
23680                           "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
23681                           "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
23682                           "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
23683                           "\x2e",
23684                 .ilen   = 33,
23685                 .result = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
23686                           "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
23687                           "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
23688                           "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
23689                           "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
23690                           "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
23691                           "\x32",
23692                 .rlen   = 49,
23693         }, {
23694                 .key    = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
23695                           "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
23696                           "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
23697                           "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
23698                 .klen   = 32,
23699                 .iv     = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
23700                           "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
23701                 .assoc  = "",
23702                 .alen   = 0,
23703                 .input  = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
23704                           "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
23705                           "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
23706                           "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
23707                           "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
23708                           "\x22\xda\x52\x8b\x7d\x11\x98\xea"
23709                           "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
23710                           "\x20\x76\x5a\xdc\x4e\x71\x13",
23711                 .ilen   = 63,
23712                 .result = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
23713                           "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
23714                           "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
23715                           "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
23716                           "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
23717                           "\x01\xb7\x39\xa6\x51\x15\xca\xff"
23718                           "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
23719                           "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
23720                           "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
23721                           "\xaa\x2d\xfc\x4e\x35\x05\x59",
23722                 .rlen   = 79,
23723         }, {
23724                 .key    = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
23725                           "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
23726                           "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
23727                           "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
23728                 .klen   = 32,
23729                 .iv     = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
23730                           "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
23731                 .assoc  = "",
23732                 .alen   = 0,
23733                 .input  = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
23734                           "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
23735                           "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
23736                           "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
23737                           "\x4b\x62\x87\x7c\x15\x38\xda\x70"
23738                           "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
23739                           "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
23740                           "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
23741                 .ilen   = 64,
23742                 .result = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
23743                           "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
23744                           "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
23745                           "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
23746                           "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
23747                           "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
23748                           "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
23749                           "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
23750                           "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
23751                           "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
23752                 .rlen   = 80,
23753         }, {
23754                 .key    = "\x90\x96\x36\xea\x03\x74\x18\x7a"
23755                           "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
23756                           "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
23757                           "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
23758                 .klen   = 32,
23759                 .iv     = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
23760                           "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
23761                 .assoc  = "\xaf",
23762                 .alen   = 1,
23763                 .input  = "",
23764                 .ilen   = 0,
23765                 .result = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
23766                           "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
23767                 .rlen   = 16,
23768         }, {
23769                 .key    = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
23770                           "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
23771                           "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
23772                           "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
23773                 .klen   = 32,
23774                 .iv     = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
23775                           "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
23776                 .assoc  = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
23777                           "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
23778                           "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
23779                           "\x4e\xf6\x29\xd1\x8b\x6f\x56",
23780                 .alen   = 31,
23781                 .input  = "",
23782                 .ilen   = 0,
23783                 .result = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
23784                           "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
23785                 .rlen   = 16,
23786         }, {
23787                 .key    = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
23788                           "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
23789                           "\xa0\xce\x8a\x91\xae\x40\x43\x68"
23790                           "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
23791                 .klen   = 32,
23792                 .iv     = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
23793                           "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
23794                 .assoc  = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
23795                           "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
23796                           "\x35\x2f\x90\xd3\x31\x90\x04\x74"
23797                           "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
23798                 .alen   = 32,
23799                 .input  = "",
23800                 .ilen   = 0,
23801                 .result = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
23802                           "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
23803                 .rlen   = 16,
23804         }, {
23805                 .key    = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
23806                           "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
23807                           "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
23808                           "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
23809                 .klen   = 32,
23810                 .iv     = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
23811                           "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
23812                 .assoc  = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
23813                           "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
23814                           "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
23815                           "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
23816                           "\x01",
23817                 .alen   = 33,
23818                 .input  = "",
23819                 .ilen   = 0,
23820                 .result = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
23821                           "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
23822                 .rlen   = 16,
23823         }, {
23824                 .key    = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
23825                           "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
23826                           "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
23827                           "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
23828                 .klen   = 32,
23829                 .iv     = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
23830                           "\x41\xe5\x36\x97\x25\xe7\x90\x61",
23831                 .assoc  = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
23832                           "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
23833                           "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
23834                           "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
23835                           "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
23836                           "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
23837                           "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
23838                           "\x07\x8c\xfc\x88\x2d\xb8\x53",
23839                 .alen   = 63,
23840                 .input  = "",
23841                 .ilen   = 0,
23842                 .result = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
23843                           "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
23844                 .rlen   = 16,
23845         }, {
23846                 .key    = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
23847                           "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
23848                           "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
23849                           "\xf3\x95\x35\x46\x86\xbb\x04\x03",
23850                 .klen   = 32,
23851                 .iv     = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
23852                           "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
23853                 .assoc  = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
23854                           "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
23855                           "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
23856                           "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
23857                           "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
23858                           "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
23859                           "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
23860                           "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
23861                 .alen   = 64,
23862                 .input  = "",
23863                 .ilen   = 0,
23864                 .result = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
23865                           "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
23866                 .rlen   = 16,
23867         }, {
23868                 .key    = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
23869                           "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
23870                           "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
23871                           "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
23872                 .klen   = 32,
23873                 .iv     = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
23874                           "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
23875                 .assoc  = "\x1a",
23876                 .alen   = 1,
23877                 .input  = "\x29",
23878                 .ilen   = 1,
23879                 .result = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
23880                           "\x17\x75\x81\x16\xdf\x26\xff\x67"
23881                           "\x92",
23882                 .rlen   = 17,
23883         }, {
23884                 .key    = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
23885                           "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
23886                           "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
23887                           "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
23888                 .klen   = 32,
23889                 .iv     = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
23890                           "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
23891                 .assoc  = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
23892                           "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
23893                           "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
23894                           "\xd6\x07\x62\xe3\xa8\xa9\x12",
23895                 .alen   = 31,
23896                 .input  = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
23897                           "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
23898                           "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
23899                           "\x06\x13\x9a\xd9\x5e\xc0\xfa",
23900                 .ilen   = 31,
23901                 .result = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
23902                           "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
23903                           "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
23904                           "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
23905                           "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
23906                           "\x76\xc3\xf5\x3a\x76\xfd\x4a",
23907                 .rlen   = 47,
23908         }, {
23909                 .key    = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
23910                           "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
23911                           "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
23912                           "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
23913                 .klen   = 32,
23914                 .iv     = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
23915                           "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
23916                 .assoc  = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
23917                           "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
23918                           "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
23919                           "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
23920                 .alen   = 32,
23921                 .input  = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
23922                           "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
23923                           "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
23924                           "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
23925                 .ilen   = 32,
23926                 .result = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
23927                           "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
23928                           "\x62\x48\x08\x64\x86\x6a\xdf\xec"
23929                           "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
23930                           "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
23931                           "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
23932                 .rlen   = 48,
23933         }, {
23934                 .key    = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
23935                           "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
23936                           "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
23937                           "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
23938                 .klen   = 32,
23939                 .iv     = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
23940                           "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
23941                 .assoc  = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
23942                           "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
23943                           "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
23944                           "\x59\x62\x20\x94\x5c\x67\x50\xc8"
23945                           "\x58",
23946                 .alen   = 33,
23947                 .input  = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
23948                           "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
23949                           "\x28\x30\x64\x92\x96\x98\x72\x2e"
23950                           "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
23951                           "\xdb",
23952                 .ilen   = 33,
23953                 .result = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
23954                           "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
23955                           "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
23956                           "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
23957                           "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
23958                           "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
23959                           "\xc3",
23960                 .rlen   = 49,
23961         }, {
23962                 .key    = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
23963                           "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
23964                           "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
23965                           "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
23966                 .klen   = 32,
23967                 .iv     = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
23968                           "\x46\x02\x63\x00\x01\xc1\x20\x87",
23969                 .assoc  = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
23970                           "\x66\x39\x8f\x24\xff\x8a\x50\x08"
23971                           "\x88\x42\xed\xf6\x5a\x90\x14\x42"
23972                           "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
23973                           "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
23974                           "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
23975                           "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
23976                           "\xe2\xa3\x84\x04\x0b\xe1\xce",
23977                 .alen   = 63,
23978                 .input  = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
23979                           "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
23980                           "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
23981                           "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
23982                           "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
23983                           "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
23984                           "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
23985                           "\xd5\xa4\x6a\xd4\x09\xc2\x08",
23986                 .ilen   = 63,
23987                 .result = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
23988                           "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
23989                           "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
23990                           "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
23991                           "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
23992                           "\x1b\x49\x21\x34\x23\x63\x55\x5e"
23993                           "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
23994                           "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
23995                           "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
23996                           "\x7f\xfa\xf0\xbf\xc4\x98\x78",
23997                 .rlen   = 79,
23998         }, {
23999                 .key    = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
24000                           "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
24001                           "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
24002                           "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
24003                 .klen   = 32,
24004                 .iv     = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
24005                           "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
24006                 .assoc  = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
24007                           "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
24008                           "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
24009                           "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
24010                           "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
24011                           "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
24012                           "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
24013                           "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
24014                 .alen   = 64,
24015                 .input  = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
24016                           "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
24017                           "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
24018                           "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
24019                           "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
24020                           "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
24021                           "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
24022                           "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
24023                 .ilen   = 64,
24024                 .result = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
24025                           "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
24026                           "\x35\x35\x60\x9d\x06\x40\x65\xc1"
24027                           "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
24028                           "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
24029                           "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
24030                           "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
24031                           "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
24032                           "\xce\x9e\x34\x81\xf0\x89\x11\x13"
24033                           "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
24034                 .rlen   = 80,
24035         }, {
24036                 .key    = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
24037                           "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
24038                           "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
24039                           "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
24040                 .klen   = 32,
24041                 .iv     = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
24042                           "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
24043                 .assoc  = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
24044                           "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
24045                           "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
24046                           "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
24047                           "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
24048                           "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
24049                           "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
24050                           "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
24051                           "\x04",
24052                 .alen   = 65,
24053                 .input  = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
24054                           "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
24055                           "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
24056                           "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
24057                           "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
24058                           "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
24059                           "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
24060                           "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
24061                           "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
24062                           "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
24063                           "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
24064                           "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
24065                           "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
24066                           "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
24067                           "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
24068                           "\x07\x68\x22\x2a\x88\x25\x53\xb2"
24069                           "\x2f",
24070                 .ilen   = 129,
24071                 .result = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
24072                           "\x85\x43\x88\xd0\xd7\x78\x60\x19"
24073                           "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
24074                           "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
24075                           "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
24076                           "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
24077                           "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
24078                           "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
24079                           "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
24080                           "\x20\xf8\x12\x54\x50\xb3\x11\xda"
24081                           "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
24082                           "\x38\x67\x56\x65\x59\xda\xe6\x97"
24083                           "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
24084                           "\x91\x59\x38\x18\x00\xe8\xba\x92"
24085                           "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
24086                           "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
24087                           "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
24088                           "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
24089                           "\xa5",
24090                 .rlen   = 145,
24091         }, {
24092                 .key    = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
24093                           "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
24094                           "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
24095                           "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
24096                 .klen   = 32,
24097                 .iv     = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
24098                           "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
24099                 .assoc  = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
24100                           "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
24101                           "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
24102                           "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
24103                           "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
24104                           "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
24105                           "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
24106                           "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
24107                           "\xce\x83\x2a\x88\x07\x55\xbb\x89"
24108                           "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
24109                           "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
24110                           "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
24111                           "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
24112                           "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
24113                           "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
24114                           "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
24115                           "\x4b",
24116                 .alen   = 129,
24117                 .input  = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
24118                           "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
24119                           "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
24120                           "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
24121                           "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
24122                           "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
24123                           "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
24124                           "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
24125                           "\x00",
24126                 .ilen   = 65,
24127                 .result = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
24128                           "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
24129                           "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
24130                           "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
24131                           "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
24132                           "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
24133                           "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
24134                           "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
24135                           "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
24136                           "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
24137                           "\x72",
24138                 .rlen   = 81,
24139         }, {
24140                 .key    = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
24141                           "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
24142                           "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
24143                           "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
24144                 .klen   = 32,
24145                 .iv     = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
24146                           "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
24147                 .assoc  = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
24148                           "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
24149                           "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
24150                           "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
24151                 .alen   = 32,
24152                 .input  = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
24153                           "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
24154                           "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
24155                           "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
24156                 .ilen   = 32,
24157                 .result = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
24158                           "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
24159                           "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
24160                           "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
24161                           "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
24162                           "\x69\x0e\x36\x5f\x2f\x22\x8c",
24163                 .rlen   = 47,
24164         }, {
24165                 .key    = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
24166                           "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
24167                           "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
24168                           "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
24169                 .klen   = 32,
24170                 .iv     = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
24171                           "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
24172                 .assoc  = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
24173                           "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
24174                           "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
24175                           "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
24176                 .alen   = 32,
24177                 .input  = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
24178                           "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
24179                           "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
24180                           "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
24181                 .ilen   = 32,
24182                 .result = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
24183                           "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
24184                           "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
24185                           "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
24186                           "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
24187                           "\x5b\x6f\x7b\xe2\x8c\xe8",
24188                 .rlen   = 46,
24189         }, {
24190                 .key    = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
24191                           "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
24192                           "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
24193                           "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
24194                 .klen   = 32,
24195                 .iv     = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
24196                           "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
24197                 .assoc  = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
24198                           "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
24199                           "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
24200                           "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
24201                 .alen   = 32,
24202                 .input  = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
24203                           "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
24204                           "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
24205                           "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
24206                 .ilen   = 32,
24207                 .result = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
24208                           "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
24209                           "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
24210                           "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
24211                           "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
24212                 .rlen   = 40,
24213         }, {
24214                 .key    = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
24215                           "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
24216                           "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
24217                           "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
24218                 .klen   = 32,
24219                 .iv     = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
24220                           "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
24221                 .assoc  = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
24222                           "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
24223                           "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
24224                           "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
24225                 .alen   = 32,
24226                 .input  = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
24227                           "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
24228                           "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
24229                           "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
24230                 .ilen   = 32,
24231                 .result = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
24232                           "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
24233                           "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
24234                           "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
24235                           "\x56",
24236                 .rlen   = 33,
24237         },
24238 };
24239
24240 static const struct aead_testvec morus1280_dec_tv_template[] = {
24241         {
24242                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
24243                           "\x00\x00\x00\x00\x00\x00\x00\x00",
24244                 .klen   = 16,
24245                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
24246                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
24247                 .assoc  = "",
24248                 .alen   = 0,
24249                 .input  = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
24250                           "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
24251                 .ilen   = 16,
24252                 .result = "",
24253                 .rlen   = 0,
24254         }, {
24255                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
24256                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
24257                 .klen   = 16,
24258                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
24259                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
24260                 .assoc  = "",
24261                 .alen   = 0,
24262                 .input  = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
24263                           "\x96\xda\x76\x34\x33\x4e\xd5\x39"
24264                           "\x73",
24265                 .ilen   = 17,
24266                 .result = "\x69",
24267                 .rlen   = 1,
24268         }, {
24269                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
24270                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
24271                 .klen   = 16,
24272                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
24273                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
24274                 .assoc  = "",
24275                 .alen   = 0,
24276                 .input  = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
24277                           "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
24278                           "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
24279                           "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
24280                           "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
24281                           "\xa4\x21\x74\xcf\x19\x16\x59",
24282                 .ilen   = 47,
24283                 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
24284                           "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
24285                           "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
24286                           "\x13\x7d\x64\x93\xd7\x05\xf5",
24287                 .rlen   = 31,
24288         }, {
24289                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
24290                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
24291                 .klen   = 16,
24292                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
24293                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
24294                 .assoc  = "",
24295                 .alen   = 0,
24296                 .input  = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
24297                           "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
24298                           "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
24299                           "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
24300                           "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
24301                           "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
24302                 .ilen   = 48,
24303                 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
24304                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
24305                           "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
24306                           "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
24307                 .rlen   = 32,
24308         }, {
24309                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
24310                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
24311                 .klen   = 16,
24312                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
24313                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
24314                 .assoc  = "",
24315                 .alen   = 0,
24316                 .input  = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
24317                           "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
24318                           "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
24319                           "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
24320                           "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
24321                           "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
24322                           "\xd0",
24323                 .ilen   = 49,
24324                 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
24325                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
24326                           "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
24327                           "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
24328                           "\xc4",
24329                 .rlen   = 33,
24330         }, {
24331                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
24332                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
24333                 .klen   = 16,
24334                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
24335                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
24336                 .assoc  = "",
24337                 .alen   = 0,
24338                 .input  = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
24339                           "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
24340                           "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
24341                           "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
24342                           "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
24343                           "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
24344                           "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
24345                           "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
24346                           "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
24347                           "\x99\x7a\x72\x9c\x54\x31\xa1",
24348                 .ilen   = 79,
24349                 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
24350                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
24351                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
24352                           "\x57\x05\x01\x1c\x66\x22\xd3\x51"
24353                           "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
24354                           "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
24355                           "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
24356                           "\xe6\x16\xa2\xac\xde\x47\x40",
24357                 .rlen   = 63,
24358         }, {
24359                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
24360                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
24361                 .klen   = 16,
24362                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
24363                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
24364                 .assoc  = "",
24365                 .alen   = 0,
24366                 .input  = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
24367                           "\xa5\x07\x12\xa7\x12\x39\x60\x66"
24368                           "\x30\x81\x4a\x03\x78\x28\x45\x52"
24369                           "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
24370                           "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
24371                           "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
24372                           "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
24373                           "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
24374                           "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
24375                           "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
24376                 .ilen   = 80,
24377                 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
24378                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
24379                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
24380                           "\x19\x33\xe0\xf4\x40\x81\x72\x28"
24381                           "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
24382                           "\xb0\x68\x69\xf2\x27\x35\x91\x84"
24383                           "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
24384                           "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
24385                 .rlen   = 64,
24386         }, {
24387                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
24388                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
24389                 .klen   = 16,
24390                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
24391                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
24392                 .assoc  = "\xc5",
24393                 .alen   = 1,
24394                 .input  = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
24395                           "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
24396                 .ilen   = 16,
24397                 .result = "",
24398                 .rlen   = 0,
24399         }, {
24400                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
24401                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
24402                 .klen   = 16,
24403                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
24404                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
24405                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
24406                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
24407                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
24408                           "\x6b\x83\x66\xaf\x3e\x27\xc9",
24409                 .alen   = 31,
24410                 .input  = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
24411                           "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
24412                 .ilen   = 16,
24413                 .result = "",
24414                 .rlen   = 0,
24415         }, {
24416                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
24417                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
24418                 .klen   = 16,
24419                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
24420                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
24421                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
24422                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
24423                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
24424                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
24425                 .alen   = 32,
24426                 .input  = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
24427                           "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
24428                 .ilen   = 16,
24429                 .result = "",
24430                 .rlen   = 0,
24431         }, {
24432                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
24433                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
24434                 .klen   = 16,
24435                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
24436                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
24437                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
24438                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
24439                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
24440                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
24441                           "\x97",
24442                 .alen   = 33,
24443                 .input  = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
24444                           "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
24445                 .ilen   = 16,
24446                 .result = "",
24447                 .rlen   = 0,
24448         }, {
24449                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
24450                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
24451                 .klen   = 16,
24452                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
24453                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
24454                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
24455                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
24456                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
24457                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
24458                           "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
24459                           "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
24460                           "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
24461                           "\xcd\x2c\x45\x58\xbd\x8e\x80",
24462                 .alen   = 63,
24463                 .input  = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
24464                           "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
24465                 .ilen   = 16,
24466                 .result = "",
24467                 .rlen   = 0,
24468         }, {
24469                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
24470                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
24471                 .klen   = 16,
24472                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
24473                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
24474                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
24475                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
24476                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
24477                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
24478                           "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
24479                           "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
24480                           "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
24481                           "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
24482                 .alen   = 64,
24483                 .input  = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
24484                           "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
24485                 .ilen   = 16,
24486                 .result = "",
24487                 .rlen   = 0,
24488         }, {
24489                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
24490                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
24491                 .klen   = 16,
24492                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
24493                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
24494                 .assoc  = "\x31",
24495                 .alen   = 1,
24496                 .input  = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
24497                           "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
24498                           "\xbf",
24499                 .ilen   = 17,
24500                 .result = "\x40",
24501                 .rlen   = 1,
24502         }, {
24503                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
24504                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
24505                 .klen   = 16,
24506                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
24507                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
24508                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
24509                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
24510                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
24511                           "\xf4\x94\x9f\xc1\x5a\x61\x85",
24512                 .alen   = 31,
24513                 .input  = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
24514                           "\x63\x09\x08\x58\xb5\x56\xbd\x72"
24515                           "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
24516                           "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
24517                           "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
24518                           "\x85\x87\x17\x09\x42\xed\x4e",
24519                 .ilen   = 47,
24520                 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
24521                           "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
24522                           "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
24523                           "\x24\xa0\xd6\xb7\x11\x79\x6c",
24524                 .rlen   = 31,
24525         }, {
24526                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
24527                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
24528                 .klen   = 16,
24529                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
24530                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
24531                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
24532                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
24533                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
24534                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
24535                 .alen   = 32,
24536                 .input  = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
24537                           "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
24538                           "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
24539                           "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
24540                           "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
24541                           "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
24542                 .ilen   = 48,
24543                 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
24544                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
24545                           "\xdb\x74\x36\x23\x11\x58\x3f\x93"
24546                           "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
24547                 .rlen   = 32,
24548         }, {
24549                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
24550                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
24551                 .klen   = 16,
24552                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
24553                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
24554                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
24555                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
24556                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
24557                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
24558                           "\xee",
24559                 .alen   = 33,
24560                 .input  = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
24561                           "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
24562                           "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
24563                           "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
24564                           "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
24565                           "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
24566                           "\x5e",
24567                 .ilen   = 49,
24568                 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
24569                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
24570                           "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
24571                           "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
24572                           "\x72",
24573                 .rlen   = 33,
24574         }, {
24575                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
24576                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
24577                 .klen   = 16,
24578                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
24579                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
24580                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
24581                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
24582                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
24583                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
24584                           "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
24585                           "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
24586                           "\x10\x0b\x56\x85\xad\x54\xaa\x66"
24587                           "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
24588                 .alen   = 63,
24589                 .input  = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
24590                           "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
24591                           "\xef\x36\x19\xae\x91\xfa\xd6\x63"
24592                           "\x46\xea\x8a\x39\x14\x21\xa6\x37"
24593                           "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
24594                           "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
24595                           "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
24596                           "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
24597                           "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
24598                           "\x4f\x20\x37\xdb\x7b\x22\xa3",
24599                 .ilen   = 79,
24600                 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
24601                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
24602                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
24603                           "\x68\x28\x73\x40\x9f\x96\x4a\x60"
24604                           "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
24605                           "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
24606                           "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
24607                           "\x9c\x44\xb2\xa4\x99\x98\x34",
24608                 .rlen   = 63,
24609         }, {
24610                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
24611                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
24612                 .klen   = 16,
24613                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
24614                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
24615                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
24616                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
24617                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
24618                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
24619                           "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
24620                           "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
24621                           "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
24622                           "\x77\x47\x63\x14\x95\x3d\xe4\x34",
24623                 .alen   = 64,
24624                 .input  = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
24625                           "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
24626                           "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
24627                           "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
24628                           "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
24629                           "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
24630                           "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
24631                           "\xec\x99\x7d\x61\xb3\x15\x93\xed"
24632                           "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
24633                           "\x95\x74\x44\xd5\x54\xa6\x27\x06",
24634                 .ilen   = 80,
24635                 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
24636                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
24637                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
24638                           "\x29\x56\x52\x19\x79\xf5\xe9\x37"
24639                           "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
24640                           "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
24641                           "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
24642                           "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
24643                 .rlen   = 64,
24644         }, {
24645                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
24646                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
24647                 .klen   = 16,
24648                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
24649                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
24650                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
24651                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
24652                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
24653                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
24654                           "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
24655                           "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
24656                           "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
24657                           "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
24658                           "\x58",
24659                 .alen   = 65,
24660                 .input  = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
24661                           "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
24662                           "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
24663                           "\x38\xa4\x74\xa5\x04\x15\x63\x05"
24664                           "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
24665                           "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
24666                           "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
24667                           "\x42\x01\xe6\xbc\x75\x15\x87\xee"
24668                           "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
24669                           "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
24670                           "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
24671                           "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
24672                           "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
24673                           "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
24674                           "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
24675                           "\x4f\x61\x64\x37\x22\x36\x6d\x78"
24676                           "\xed\xed\x35\xe8\x83\xa5\xec\x25"
24677                           "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
24678                           "\x20",
24679                 .ilen   = 145,
24680                 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
24681                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
24682                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
24683                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
24684                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
24685                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
24686                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
24687                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
24688                           "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
24689                           "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
24690                           "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
24691                           "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
24692                           "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
24693                           "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
24694                           "\x33\x16\x59\x6c\x3b\xef\x88\xad"
24695                           "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
24696                           "\x36",
24697                 .rlen   = 129,
24698         }, {
24699                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
24700                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
24701                 .klen   = 16,
24702                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
24703                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
24704                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
24705                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
24706                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
24707                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
24708                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
24709                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
24710                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
24711                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
24712                           "\x21\xf7\x42\x89\xac\x12\x2a\x54"
24713                           "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
24714                           "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
24715                           "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
24716                           "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
24717                           "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
24718                           "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
24719                           "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
24720                           "\x51",
24721                 .alen   = 129,
24722                 .input  = "\x36\x78\xb9\x22\xde\x62\x35\x55"
24723                           "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
24724                           "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
24725                           "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
24726                           "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
24727                           "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
24728                           "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
24729                           "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
24730                           "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
24731                           "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
24732                           "\xa2",
24733                 .ilen   = 81,
24734                 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
24735                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
24736                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
24737                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
24738                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
24739                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
24740                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
24741                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
24742                           "\x54",
24743                 .rlen   = 65,
24744         }, {
24745                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
24746                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
24747                 .klen   = 16,
24748                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
24749                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
24750                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
24751                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
24752                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
24753                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
24754                 .alen   = 32,
24755                 .input  = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
24756                           "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
24757                           "\x89\x14\x33\x70\x0a\xbc\xea\x39"
24758                           "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
24759                           "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
24760                           "\x2f\x03\x30\x05\x47\xaf\x34",
24761                 .ilen   = 47,
24762                 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
24763                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
24764                           "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
24765                           "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
24766                 .rlen   = 32,
24767         }, {
24768                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
24769                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
24770                 .klen   = 16,
24771                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
24772                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
24773                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
24774                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
24775                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
24776                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
24777                 .alen   = 32,
24778                 .input  = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
24779                           "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
24780                           "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
24781                           "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
24782                           "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
24783                           "\xb9\x9c\xe5\xef\xf2\x05",
24784                 .ilen   = 46,
24785                 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
24786                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
24787                           "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
24788                           "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
24789                 .rlen   = 32,
24790         }, {
24791                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
24792                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
24793                 .klen   = 16,
24794                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
24795                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
24796                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
24797                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
24798                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
24799                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
24800                 .alen   = 32,
24801                 .input  = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
24802                           "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
24803                           "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
24804                           "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
24805                           "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
24806                 .ilen   = 40,
24807                 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
24808                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
24809                           "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
24810                           "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
24811                 .rlen   = 32,
24812         }, {
24813                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
24814                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
24815                 .klen   = 16,
24816                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
24817                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
24818                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
24819                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
24820                           "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
24821                           "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
24822                 .alen   = 32,
24823                 .input  = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
24824                           "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
24825                           "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
24826                           "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
24827                           "\x1a",
24828                 .ilen   = 33,
24829                 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
24830                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
24831                           "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
24832                           "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
24833                 .rlen   = 32,
24834         }, {
24835                 .key    = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
24836                           "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
24837                           "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
24838                           "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
24839                 .klen   = 32,
24840                 .iv     = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
24841                           "\xb7\x85\x90\x58\x67\x57\x33\x1d",
24842                 .assoc  = "",
24843                 .alen   = 0,
24844                 .input  = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
24845                           "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
24846                 .ilen   = 16,
24847                 .result = "",
24848                 .rlen   = 0,
24849         }, {
24850                 .key    = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
24851                           "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
24852                           "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
24853                           "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
24854                 .klen   = 32,
24855                 .iv     = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
24856                           "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
24857                 .assoc  = "",
24858                 .alen   = 0,
24859                 .input  = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
24860                           "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
24861                           "\x53",
24862                 .ilen   = 17,
24863                 .result = "\x53",
24864                 .rlen   = 1,
24865         }, {
24866                 .key    = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
24867                           "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
24868                           "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
24869                           "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
24870                 .klen   = 32,
24871                 .iv     = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
24872                           "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
24873                 .assoc  = "",
24874                 .alen   = 0,
24875                 .input  = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
24876                           "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
24877                           "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
24878                           "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
24879                           "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
24880                           "\xb8\x4d\x11\x42\xd1\xf8\xf1",
24881                 .ilen   = 47,
24882                 .result = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
24883                           "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
24884                           "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
24885                           "\xf6\xf0\x27\xb4\x25\x4c\x83",
24886                 .rlen   = 31,
24887         }, {
24888                 .key    = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
24889                           "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
24890                           "\xa2\x40\x45\x77\x90\x80\x37\xce"
24891                           "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
24892                 .klen   = 32,
24893                 .iv     = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
24894                           "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
24895                 .assoc  = "",
24896                 .alen   = 0,
24897                 .input  = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
24898                           "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
24899                           "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
24900                           "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
24901                           "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
24902                           "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
24903                 .ilen   = 48,
24904                 .result = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
24905                           "\x7a\x81\xff\x55\x52\x56\xdc\x33"
24906                           "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
24907                           "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
24908                 .rlen   = 32,
24909         }, {
24910                 .key    = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
24911                           "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
24912                           "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
24913                           "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
24914                 .klen   = 32,
24915                 .iv     = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
24916                           "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
24917                 .assoc  = "",
24918                 .alen   = 0,
24919                 .input  = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
24920                           "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
24921                           "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
24922                           "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
24923                           "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
24924                           "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
24925                           "\x32",
24926                 .ilen   = 49,
24927                 .result = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
24928                           "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
24929                           "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
24930                           "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
24931                           "\x2e",
24932                 .rlen   = 33,
24933         }, {
24934                 .key    = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
24935                           "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
24936                           "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
24937                           "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
24938                 .klen   = 32,
24939                 .iv     = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
24940                           "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
24941                 .assoc  = "",
24942                 .alen   = 0,
24943                 .input  = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
24944                           "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
24945                           "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
24946                           "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
24947                           "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
24948                           "\x01\xb7\x39\xa6\x51\x15\xca\xff"
24949                           "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
24950                           "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
24951                           "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
24952                           "\xaa\x2d\xfc\x4e\x35\x05\x59",
24953                 .ilen   = 79,
24954                 .result = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
24955                           "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
24956                           "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
24957                           "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
24958                           "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
24959                           "\x22\xda\x52\x8b\x7d\x11\x98\xea"
24960                           "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
24961                           "\x20\x76\x5a\xdc\x4e\x71\x13",
24962                 .rlen   = 63,
24963         }, {
24964                 .key    = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
24965                           "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
24966                           "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
24967                           "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
24968                 .klen   = 32,
24969                 .iv     = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
24970                           "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
24971                 .assoc  = "",
24972                 .alen   = 0,
24973                 .input  = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
24974                           "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
24975                           "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
24976                           "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
24977                           "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
24978                           "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
24979                           "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
24980                           "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
24981                           "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
24982                           "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
24983                 .ilen   = 80,
24984                 .result = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
24985                           "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
24986                           "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
24987                           "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
24988                           "\x4b\x62\x87\x7c\x15\x38\xda\x70"
24989                           "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
24990                           "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
24991                           "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
24992                 .rlen   = 64,
24993         }, {
24994                 .key    = "\x90\x96\x36\xea\x03\x74\x18\x7a"
24995                           "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
24996                           "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
24997                           "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
24998                 .klen   = 32,
24999                 .iv     = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
25000                           "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
25001                 .assoc  = "\xaf",
25002                 .alen   = 1,
25003                 .input  = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
25004                           "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
25005                 .ilen   = 16,
25006                 .result = "",
25007                 .rlen   = 0,
25008         }, {
25009                 .key    = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
25010                           "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
25011                           "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
25012                           "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
25013                 .klen   = 32,
25014                 .iv     = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
25015                           "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
25016                 .assoc  = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
25017                           "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
25018                           "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
25019                           "\x4e\xf6\x29\xd1\x8b\x6f\x56",
25020                 .alen   = 31,
25021                 .input  = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
25022                           "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
25023                 .ilen   = 16,
25024                 .result = "",
25025                 .rlen   = 0,
25026         }, {
25027                 .key    = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
25028                           "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
25029                           "\xa0\xce\x8a\x91\xae\x40\x43\x68"
25030                           "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
25031                 .klen   = 32,
25032                 .iv     = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
25033                           "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
25034                 .assoc  = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
25035                           "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
25036                           "\x35\x2f\x90\xd3\x31\x90\x04\x74"
25037                           "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
25038                 .alen   = 32,
25039                 .input  = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
25040                           "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
25041                 .ilen   = 16,
25042                 .result = "",
25043                 .rlen   = 0,
25044         }, {
25045                 .key    = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
25046                           "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
25047                           "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
25048                           "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
25049                 .klen   = 32,
25050                 .iv     = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
25051                           "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
25052                 .assoc  = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
25053                           "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
25054                           "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
25055                           "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
25056                           "\x01",
25057                 .alen   = 33,
25058                 .input  = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
25059                           "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
25060                 .ilen   = 16,
25061                 .result = "",
25062                 .rlen   = 0,
25063         }, {
25064                 .key    = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
25065                           "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
25066                           "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
25067                           "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
25068                 .klen   = 32,
25069                 .iv     = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
25070                           "\x41\xe5\x36\x97\x25\xe7\x90\x61",
25071                 .assoc  = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
25072                           "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
25073                           "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
25074                           "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
25075                           "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
25076                           "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
25077                           "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
25078                           "\x07\x8c\xfc\x88\x2d\xb8\x53",
25079                 .alen   = 63,
25080                 .input  = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
25081                           "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
25082                 .ilen   = 16,
25083                 .result = "",
25084                 .rlen   = 0,
25085         }, {
25086                 .key    = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
25087                           "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
25088                           "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
25089                           "\xf3\x95\x35\x46\x86\xbb\x04\x03",
25090                 .klen   = 32,
25091                 .iv     = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
25092                           "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
25093                 .assoc  = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
25094                           "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
25095                           "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
25096                           "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
25097                           "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
25098                           "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
25099                           "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
25100                           "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
25101                 .alen   = 64,
25102                 .input  = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
25103                           "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
25104                 .ilen   = 16,
25105                 .result = "",
25106                 .rlen   = 0,
25107         }, {
25108                 .key    = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
25109                           "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
25110                           "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
25111                           "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
25112                 .klen   = 32,
25113                 .iv     = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
25114                           "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
25115                 .assoc  = "\x1a",
25116                 .alen   = 1,
25117                 .input  = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
25118                           "\x17\x75\x81\x16\xdf\x26\xff\x67"
25119                           "\x92",
25120                 .ilen   = 17,
25121                 .result = "\x29",
25122                 .rlen   = 1,
25123         }, {
25124                 .key    = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
25125                           "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
25126                           "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
25127                           "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
25128                 .klen   = 32,
25129                 .iv     = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
25130                           "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
25131                 .assoc  = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
25132                           "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
25133                           "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
25134                           "\xd6\x07\x62\xe3\xa8\xa9\x12",
25135                 .alen   = 31,
25136                 .input  = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
25137                           "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
25138                           "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
25139                           "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
25140                           "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
25141                           "\x76\xc3\xf5\x3a\x76\xfd\x4a",
25142                 .ilen   = 47,
25143                 .result = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
25144                           "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
25145                           "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
25146                           "\x06\x13\x9a\xd9\x5e\xc0\xfa",
25147                 .rlen   = 31,
25148         }, {
25149                 .key    = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
25150                           "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
25151                           "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
25152                           "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
25153                 .klen   = 32,
25154                 .iv     = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
25155                           "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
25156                 .assoc  = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
25157                           "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
25158                           "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
25159                           "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
25160                 .alen   = 32,
25161                 .input  = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
25162                           "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
25163                           "\x62\x48\x08\x64\x86\x6a\xdf\xec"
25164                           "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
25165                           "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
25166                           "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
25167                 .ilen   = 48,
25168                 .result = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
25169                           "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
25170                           "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
25171                           "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
25172                 .rlen   = 32,
25173         }, {
25174                 .key    = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
25175                           "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
25176                           "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
25177                           "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
25178                 .klen   = 32,
25179                 .iv     = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
25180                           "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
25181                 .assoc  = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
25182                           "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
25183                           "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
25184                           "\x59\x62\x20\x94\x5c\x67\x50\xc8"
25185                           "\x58",
25186                 .alen   = 33,
25187                 .input  = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
25188                           "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
25189                           "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
25190                           "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
25191                           "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
25192                           "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
25193                           "\xc3",
25194                 .ilen   = 49,
25195                 .result = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
25196                           "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
25197                           "\x28\x30\x64\x92\x96\x98\x72\x2e"
25198                           "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
25199                           "\xdb",
25200                 .rlen   = 33,
25201         }, {
25202                 .key    = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
25203                           "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
25204                           "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
25205                           "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
25206                 .klen   = 32,
25207                 .iv     = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
25208                           "\x46\x02\x63\x00\x01\xc1\x20\x87",
25209                 .assoc  = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
25210                           "\x66\x39\x8f\x24\xff\x8a\x50\x08"
25211                           "\x88\x42\xed\xf6\x5a\x90\x14\x42"
25212                           "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
25213                           "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
25214                           "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
25215                           "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
25216                           "\xe2\xa3\x84\x04\x0b\xe1\xce",
25217                 .alen   = 63,
25218                 .input  = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
25219                           "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
25220                           "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
25221                           "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
25222                           "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
25223                           "\x1b\x49\x21\x34\x23\x63\x55\x5e"
25224                           "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
25225                           "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
25226                           "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
25227                           "\x7f\xfa\xf0\xbf\xc4\x98\x78",
25228                 .ilen   = 79,
25229                 .result = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
25230                           "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
25231                           "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
25232                           "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
25233                           "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
25234                           "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
25235                           "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
25236                           "\xd5\xa4\x6a\xd4\x09\xc2\x08",
25237                 .rlen   = 63,
25238         }, {
25239                 .key    = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
25240                           "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
25241                           "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
25242                           "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
25243                 .klen   = 32,
25244                 .iv     = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
25245                           "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
25246                 .assoc  = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
25247                           "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
25248                           "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
25249                           "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
25250                           "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
25251                           "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
25252                           "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
25253                           "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
25254                 .alen   = 64,
25255                 .input  = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
25256                           "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
25257                           "\x35\x35\x60\x9d\x06\x40\x65\xc1"
25258                           "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
25259                           "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
25260                           "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
25261                           "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
25262                           "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
25263                           "\xce\x9e\x34\x81\xf0\x89\x11\x13"
25264                           "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
25265                 .ilen   = 80,
25266                 .result = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
25267                           "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
25268                           "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
25269                           "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
25270                           "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
25271                           "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
25272                           "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
25273                           "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
25274                 .rlen   = 64,
25275         }, {
25276                 .key    = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
25277                           "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
25278                           "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
25279                           "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
25280                 .klen   = 32,
25281                 .iv     = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
25282                           "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
25283                 .assoc  = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
25284                           "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
25285                           "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
25286                           "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
25287                           "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
25288                           "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
25289                           "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
25290                           "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
25291                           "\x04",
25292                 .alen   = 65,
25293                 .input  = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
25294                           "\x85\x43\x88\xd0\xd7\x78\x60\x19"
25295                           "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
25296                           "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
25297                           "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
25298                           "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
25299                           "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
25300                           "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
25301                           "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
25302                           "\x20\xf8\x12\x54\x50\xb3\x11\xda"
25303                           "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
25304                           "\x38\x67\x56\x65\x59\xda\xe6\x97"
25305                           "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
25306                           "\x91\x59\x38\x18\x00\xe8\xba\x92"
25307                           "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
25308                           "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
25309                           "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
25310                           "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
25311                           "\xa5",
25312                 .ilen   = 145,
25313                 .result = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
25314                           "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
25315                           "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
25316                           "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
25317                           "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
25318                           "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
25319                           "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
25320                           "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
25321                           "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
25322                           "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
25323                           "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
25324                           "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
25325                           "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
25326                           "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
25327                           "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
25328                           "\x07\x68\x22\x2a\x88\x25\x53\xb2"
25329                           "\x2f",
25330                 .rlen   = 129,
25331         }, {
25332                 .key    = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
25333                           "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
25334                           "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
25335                           "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
25336                 .klen   = 32,
25337                 .iv     = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
25338                           "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
25339                 .assoc  = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
25340                           "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
25341                           "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
25342                           "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
25343                           "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
25344                           "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
25345                           "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
25346                           "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
25347                           "\xce\x83\x2a\x88\x07\x55\xbb\x89"
25348                           "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
25349                           "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
25350                           "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
25351                           "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
25352                           "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
25353                           "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
25354                           "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
25355                           "\x4b",
25356                 .alen   = 129,
25357                 .input  = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
25358                           "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
25359                           "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
25360                           "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
25361                           "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
25362                           "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
25363                           "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
25364                           "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
25365                           "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
25366                           "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
25367                           "\x72",
25368                 .ilen   = 81,
25369                 .result = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
25370                           "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
25371                           "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
25372                           "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
25373                           "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
25374                           "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
25375                           "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
25376                           "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
25377                           "\x00",
25378                 .rlen   = 65,
25379         }, {
25380                 .key    = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
25381                           "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
25382                           "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
25383                           "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
25384                 .klen   = 32,
25385                 .iv     = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
25386                           "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
25387                 .assoc  = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
25388                           "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
25389                           "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
25390                           "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
25391                 .alen   = 32,
25392                 .input  = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
25393                           "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
25394                           "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
25395                           "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
25396                           "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
25397                           "\x69\x0e\x36\x5f\x2f\x22\x8c",
25398                 .ilen   = 47,
25399                 .result = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
25400                           "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
25401                           "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
25402                           "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
25403                 .rlen   = 32,
25404         }, {
25405                 .key    = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
25406                           "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
25407                           "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
25408                           "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
25409                 .klen   = 32,
25410                 .iv     = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
25411                           "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
25412                 .assoc  = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
25413                           "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
25414                           "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
25415                           "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
25416                 .alen   = 32,
25417                 .input  = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
25418                           "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
25419                           "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
25420                           "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
25421                           "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
25422                           "\x5b\x6f\x7b\xe2\x8c\xe8",
25423                 .ilen   = 46,
25424                 .result = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
25425                           "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
25426                           "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
25427                           "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
25428                 .rlen   = 32,
25429         }, {
25430                 .key    = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
25431                           "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
25432                           "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
25433                           "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
25434                 .klen   = 32,
25435                 .iv     = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
25436                           "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
25437                 .assoc  = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
25438                           "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
25439                           "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
25440                           "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
25441                 .alen   = 32,
25442                 .input  = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
25443                           "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
25444                           "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
25445                           "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
25446                           "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
25447                 .ilen   = 40,
25448                 .result = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
25449                           "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
25450                           "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
25451                           "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
25452                 .rlen   = 32,
25453         }, {
25454                 .key    = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
25455                           "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
25456                           "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
25457                           "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
25458                 .klen   = 32,
25459                 .iv     = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
25460                           "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
25461                 .assoc  = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
25462                           "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
25463                           "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
25464                           "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
25465                 .alen   = 32,
25466                 .input  = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
25467                           "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
25468                           "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
25469                           "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
25470                           "\x56",
25471                 .ilen   = 33,
25472                 .result = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
25473                           "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
25474                           "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
25475                           "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
25476                 .rlen   = 32,
25477         },
25478 };
25479
25480 /*
25481  * All key wrapping test vectors taken from
25482  * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
25483  *
25484  * Note: as documented in keywrap.c, the ivout for encryption is the first
25485  * semiblock of the ciphertext from the test vector. For decryption, iv is
25486  * the first semiblock of the ciphertext.
25487  */
25488 static const struct cipher_testvec aes_kw_tv_template[] = {
25489         {
25490                 .key    = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
25491                           "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
25492                 .klen   = 16,
25493                 .ptext  = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
25494                           "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
25495                 .ctext  = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
25496                           "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
25497                 .len    = 16,
25498                 .iv     = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
25499                 .generates_iv = true,
25500         }, {
25501                 .key    = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
25502                           "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
25503                           "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
25504                           "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
25505                 .klen   = 32,
25506                 .ptext  = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
25507                           "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
25508                 .ctext  = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
25509                           "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
25510                 .len    = 16,
25511                 .iv     = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
25512                 .generates_iv = true,
25513         },
25514 };
25515
25516 /*
25517  * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
25518  * test vectors, taken from Appendix B.2.9 and B.2.10:
25519  *     http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
25520  * Only AES-128 is supported at this time.
25521  */
25522 static const struct cprng_testvec ansi_cprng_aes_tv_template[] = {
25523         {
25524                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25525                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25526                 .klen   = 16,
25527                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25528                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
25529                 .dtlen  = 16,
25530                 .v      = "\x80\x00\x00\x00\x00\x00\x00\x00"
25531                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25532                 .vlen   = 16,
25533                 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
25534                           "\x84\x79\x66\x85\xc1\x2f\x76\x41",
25535                 .rlen   = 16,
25536                 .loops  = 1,
25537         }, {
25538                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25539                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25540                 .klen   = 16,
25541                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25542                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
25543                 .dtlen  = 16,
25544                 .v      = "\xc0\x00\x00\x00\x00\x00\x00\x00"
25545                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25546                 .vlen   = 16,
25547                 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
25548                           "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
25549                 .rlen   = 16,
25550                 .loops  = 1,
25551         }, {
25552                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25553                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25554                 .klen   = 16,
25555                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25556                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
25557                 .dtlen  = 16,
25558                 .v      = "\xe0\x00\x00\x00\x00\x00\x00\x00"
25559                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25560                 .vlen   = 16,
25561                 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
25562                           "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
25563                 .rlen   = 16,
25564                 .loops  = 1,
25565         }, {
25566                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25567                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25568                 .klen   = 16,
25569                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25570                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
25571                 .dtlen  = 16,
25572                 .v      = "\xf0\x00\x00\x00\x00\x00\x00\x00"
25573                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25574                 .vlen   = 16,
25575                 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
25576                           "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
25577                 .rlen   = 16,
25578                 .loops  = 1,
25579         }, {
25580                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25581                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25582                 .klen   = 16,
25583                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25584                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
25585                 .dtlen  = 16,
25586                 .v      = "\xf8\x00\x00\x00\x00\x00\x00\x00"
25587                           "\x00\x00\x00\x00\x00\x00\x00\x00",
25588                 .vlen   = 16,
25589                 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
25590                           "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
25591                 .rlen   = 16,
25592                 .loops  = 1,
25593         }, {    /* Monte Carlo Test */
25594                 .key    = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
25595                           "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
25596                 .klen   = 16,
25597                 .dt     = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
25598                           "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
25599                 .dtlen  = 16,
25600                 .v      = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
25601                           "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
25602                 .vlen   = 16,
25603                 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
25604                           "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
25605                 .rlen   = 16,
25606                 .loops  = 10000,
25607         },
25608 };
25609
25610 /*
25611  * SP800-90A DRBG Test vectors from
25612  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25613  *
25614  * Test vectors for DRBG with prediction resistance. All types of DRBGs
25615  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25616  * w/o personalization string, w/ and w/o additional input string).
25617  */
25618 static const struct drbg_testvec drbg_pr_sha256_tv_template[] = {
25619         {
25620                 .entropy = (unsigned char *)
25621                         "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
25622                         "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
25623                         "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
25624                         "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
25625                 .entropylen = 48,
25626                 .entpra = (unsigned char *)
25627                         "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
25628                         "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
25629                         "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
25630                 .entprb = (unsigned char *)
25631                         "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
25632                         "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
25633                         "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
25634                 .entprlen = 32,
25635                 .expected = (unsigned char *)
25636                         "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
25637                         "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
25638                         "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
25639                         "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
25640                         "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
25641                         "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
25642                         "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
25643                         "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
25644                         "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
25645                         "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
25646                         "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
25647                 .expectedlen = 128,
25648                 .addtla = NULL,
25649                 .addtlb = NULL,
25650                 .addtllen = 0,
25651                 .pers = NULL,
25652                 .perslen = 0,
25653         }, {
25654                 .entropy = (unsigned char *)
25655                         "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
25656                         "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
25657                         "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
25658                         "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
25659                 .entropylen = 48,
25660                 .entpra = (unsigned char *)
25661                         "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
25662                         "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
25663                         "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
25664                 .entprb = (unsigned char *)
25665                         "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
25666                         "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
25667                         "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
25668                 .entprlen = 32,
25669                 .expected = (unsigned char *)
25670                         "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
25671                         "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
25672                         "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
25673                         "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
25674                         "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
25675                         "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
25676                         "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
25677                         "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
25678                         "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
25679                         "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
25680                         "\x50\x47\xa3\x63\x81\x16\xaf\x19",
25681                 .expectedlen = 128,
25682                 .addtla = (unsigned char *)
25683                         "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
25684                         "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
25685                         "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
25686                 .addtlb = (unsigned char *)
25687                         "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
25688                         "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
25689                         "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
25690                 .addtllen = 32,
25691                 .pers = NULL,
25692                 .perslen = 0,
25693         }, {
25694                 .entropy = (unsigned char *)
25695                         "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
25696                         "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
25697                         "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
25698                         "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
25699                 .entropylen = 48,
25700                 .entpra = (unsigned char *)
25701                         "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
25702                         "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
25703                         "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
25704                 .entprb = (unsigned char *)
25705                         "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
25706                         "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
25707                         "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
25708                 .entprlen = 32,
25709                 .expected = (unsigned char *)
25710                         "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
25711                         "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
25712                         "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
25713                         "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
25714                         "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
25715                         "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
25716                         "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
25717                         "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
25718                         "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
25719                         "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
25720                         "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
25721                 .expectedlen = 128,
25722                 .addtla = NULL,
25723                 .addtlb = NULL,
25724                 .addtllen = 0,
25725                 .pers = (unsigned char *)
25726                         "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
25727                         "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
25728                         "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
25729                 .perslen = 32,
25730         }, {
25731                 .entropy = (unsigned char *)
25732                         "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
25733                         "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
25734                         "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
25735                         "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
25736                 .entropylen = 48,
25737                 .entpra = (unsigned char *)
25738                         "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
25739                         "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
25740                         "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
25741                 .entprb = (unsigned char *)
25742                         "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
25743                         "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
25744                         "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
25745                 .entprlen = 32,
25746                 .expected = (unsigned char *)
25747                         "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
25748                         "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
25749                         "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
25750                         "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
25751                         "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
25752                         "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
25753                         "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
25754                         "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
25755                         "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
25756                         "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
25757                         "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
25758                 .expectedlen = 128,
25759                 .addtla = (unsigned char *)
25760                         "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
25761                         "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
25762                         "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
25763                 .addtlb = (unsigned char *)
25764                         "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
25765                         "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
25766                         "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
25767                 .addtllen = 32,
25768                 .pers = (unsigned char *)
25769                         "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
25770                         "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
25771                         "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
25772                 .perslen = 32,
25773         },
25774 };
25775
25776 static const struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
25777         {
25778                 .entropy = (unsigned char *)
25779                         "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
25780                         "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
25781                         "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
25782                         "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
25783                 .entropylen = 48,
25784                 .entpra = (unsigned char *)
25785                         "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
25786                         "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
25787                         "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
25788                 .entprb = (unsigned char *)
25789                         "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
25790                         "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
25791                         "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
25792                 .entprlen = 32,
25793                 .expected = (unsigned char *)
25794                         "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
25795                         "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
25796                         "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
25797                         "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
25798                         "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
25799                         "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
25800                         "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
25801                         "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
25802                         "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
25803                         "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
25804                         "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
25805                 .expectedlen = 128,
25806                 .addtla = NULL,
25807                 .addtlb = NULL,
25808                 .addtllen = 0,
25809                 .pers = NULL,
25810                 .perslen = 0,
25811         }, {
25812                 .entropy = (unsigned char *)
25813                         "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
25814                         "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
25815                         "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
25816                         "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
25817                 .entropylen = 48,
25818                 .entpra = (unsigned char *)
25819                         "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
25820                         "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
25821                         "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
25822                 .entprb = (unsigned char *)
25823                         "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
25824                         "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
25825                         "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
25826                 .entprlen = 32,
25827                 .expected = (unsigned char *)
25828                         "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
25829                         "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
25830                         "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
25831                         "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
25832                         "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
25833                         "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
25834                         "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
25835                         "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
25836                         "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
25837                         "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
25838                         "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
25839                 .expectedlen = 128,
25840                 .addtla = (unsigned char *)
25841                         "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
25842                         "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
25843                         "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
25844                 .addtlb = (unsigned char *)
25845                         "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
25846                         "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
25847                         "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
25848                 .addtllen = 32,
25849                 .pers = NULL,
25850                 .perslen = 0,
25851         }, {
25852                 .entropy = (unsigned char *)
25853                         "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
25854                         "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
25855                         "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
25856                         "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
25857                 .entropylen = 48,
25858                 .entpra = (unsigned char *)
25859                         "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
25860                         "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
25861                         "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
25862                 .entprb = (unsigned char *)
25863                         "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
25864                         "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
25865                         "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
25866                 .entprlen = 32,
25867                 .expected = (unsigned char *)
25868                         "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
25869                         "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
25870                         "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
25871                         "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
25872                         "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
25873                         "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
25874                         "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
25875                         "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
25876                         "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
25877                         "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
25878                         "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
25879                 .expectedlen = 128,
25880                 .addtla = NULL,
25881                 .addtlb = NULL,
25882                 .addtllen = 0,
25883                 .pers = (unsigned char *)
25884                         "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
25885                         "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
25886                         "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
25887                 .perslen = 32,
25888         }, {
25889                 .entropy = (unsigned char *)
25890                         "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
25891                         "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
25892                         "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
25893                         "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
25894                 .entropylen = 48,
25895                 .entpra = (unsigned char *)
25896                         "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
25897                         "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
25898                         "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
25899                 .entprb = (unsigned char *)
25900                         "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
25901                         "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
25902                         "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
25903                 .entprlen = 32,
25904                 .expected = (unsigned char *)
25905                         "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
25906                         "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
25907                         "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
25908                         "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
25909                         "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
25910                         "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
25911                         "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
25912                         "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
25913                         "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
25914                         "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
25915                         "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
25916                 .expectedlen = 128,
25917                 .addtla = (unsigned char *)
25918                         "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
25919                         "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
25920                         "\x86\x88\x55\x28\xc1\x69\xdd\x76",
25921                 .addtlb = (unsigned char *)
25922                         "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
25923                         "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
25924                         "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
25925                 .addtllen = 32,
25926                 .pers = (unsigned char *)
25927                         "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
25928                         "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
25929                         "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
25930                 .perslen = 32,
25931         },
25932 };
25933
25934 static const struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
25935         {
25936                 .entropy = (unsigned char *)
25937                         "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
25938                         "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
25939                 .entropylen = 24,
25940                 .entpra = (unsigned char *)
25941                         "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
25942                         "\xb4\xec\x80\xb1",
25943                 .entprb = (unsigned char *)
25944                         "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
25945                         "\x28\x07\xeb\xc2",
25946                 .entprlen = 16,
25947                 .expected = (unsigned char *)
25948                         "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
25949                         "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
25950                         "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
25951                         "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
25952                         "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
25953                         "\x8a\xf1\x23\xa8",
25954                 .expectedlen = 64,
25955                 .addtla = NULL,
25956                 .addtlb = NULL,
25957                 .addtllen = 0,
25958                 .pers = NULL,
25959                 .perslen = 0,
25960         }, {
25961                 .entropy = (unsigned char *)
25962                         "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
25963                         "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
25964                 .entropylen = 24,
25965                 .entpra = (unsigned char *)
25966                         "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
25967                         "\x67\xd1\x08\xf8",
25968                 .entprb = (unsigned char *)
25969                         "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
25970                         "\xd4\xba\x04\x58",
25971                 .entprlen = 16,
25972                 .expected = (unsigned char *)
25973                         "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
25974                         "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
25975                         "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
25976                         "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
25977                         "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
25978                         "\xc1\x02\x41\x82",
25979                 .expectedlen = 64,
25980                 .addtla = (unsigned char *)
25981                         "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
25982                         "\xeb\xb3\x01\x76",
25983                 .addtlb = (unsigned char *)
25984                         "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
25985                         "\xd0\x7f\xcc\x43",
25986                 .addtllen = 16,
25987                 .pers = NULL,
25988                 .perslen = 0,
25989         }, {
25990                 .entropy = (unsigned char *)
25991                         "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
25992                         "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
25993                 .entropylen = 24,
25994                 .entpra = (unsigned char *)
25995                         "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
25996                         "\xc3\x0f\xe3\xb0",
25997                 .entprb = (unsigned char *)
25998                         "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
25999                         "\xd6\x9c\x9d\xe8",
26000                 .entprlen = 16,
26001                 .expected = (unsigned char *)
26002                         "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
26003                         "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
26004                         "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
26005                         "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
26006                         "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
26007                         "\x72\x82\x0c\xcf",
26008                 .expectedlen = 64,
26009                 .addtla = NULL,
26010                 .addtlb = NULL,
26011                 .addtllen = 0,
26012                 .pers = (unsigned char *)
26013                         "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
26014                         "\x21\x52\xb3\xad",
26015                 .perslen = 16,
26016         }, {
26017                 .entropy = (unsigned char *)
26018                         "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
26019                         "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
26020                 .entropylen = 24,
26021                 .entpra = (unsigned char *)
26022                         "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
26023                         "\xc4\x2c\xe8\x10",
26024                 .entprb = (unsigned char *)
26025                         "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
26026                         "\x08\xf7\xa5\x01",
26027                 .entprlen = 16,
26028                 .expected = (unsigned char *)
26029                         "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
26030                         "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
26031                         "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
26032                         "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
26033                         "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
26034                         "\x23\xc5\x1f\x68",
26035                 .expectedlen = 64,
26036                 .addtla = (unsigned char *)
26037                         "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
26038                         "\x23\x6d\xad\x1d",
26039                 .addtlb = (unsigned char *)
26040                         "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
26041                         "\xbc\x59\x31\x8c",
26042                 .addtllen = 16,
26043                 .pers = (unsigned char *)
26044                         "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
26045                         "\x37\x3c\x5c\x0b",
26046                 .perslen = 16,
26047         },
26048 };
26049
26050 /*
26051  * SP800-90A DRBG Test vectors from
26052  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
26053  *
26054  * Test vectors for DRBG without prediction resistance. All types of DRBGs
26055  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
26056  * w/o personalization string, w/ and w/o additional input string).
26057  */
26058 static const struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
26059         {
26060                 .entropy = (unsigned char *)
26061                         "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
26062                         "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
26063                         "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
26064                         "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
26065                 .entropylen = 48,
26066                 .expected = (unsigned char *)
26067                         "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
26068                         "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
26069                         "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
26070                         "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
26071                         "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
26072                         "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
26073                         "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
26074                         "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
26075                         "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
26076                         "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
26077                         "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
26078                 .expectedlen = 128,
26079                 .addtla = NULL,
26080                 .addtlb = NULL,
26081                 .addtllen = 0,
26082                 .pers = NULL,
26083                 .perslen = 0,
26084         }, {
26085                 .entropy = (unsigned char *)
26086                         "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
26087                         "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
26088                         "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
26089                         "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
26090                 .entropylen = 48,
26091                 .expected = (unsigned char *)
26092                         "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
26093                         "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
26094                         "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
26095                         "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
26096                         "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
26097                         "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
26098                         "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
26099                         "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
26100                         "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
26101                         "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
26102                         "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
26103                 .expectedlen = 128,
26104                 .addtla = (unsigned char *)
26105                         "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
26106                         "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
26107                         "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
26108                 .addtlb = (unsigned char *)
26109                         "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
26110                         "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
26111                         "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
26112                 .addtllen = 32,
26113                 .pers = NULL,
26114                 .perslen = 0,
26115         }, {
26116                 .entropy = (unsigned char *)
26117                         "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
26118                         "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
26119                         "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
26120                         "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
26121                 .entropylen = 48,
26122                 .expected = (unsigned char *)
26123                         "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
26124                         "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
26125                         "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
26126                         "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
26127                         "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
26128                         "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
26129                         "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
26130                         "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
26131                         "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
26132                         "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
26133                         "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
26134                 .expectedlen = 128,
26135                 .addtla = NULL,
26136                 .addtlb = NULL,
26137                 .addtllen = 0,
26138                 .pers = (unsigned char *)
26139                         "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
26140                         "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
26141                         "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
26142                 .perslen = 32,
26143         }, {
26144                 .entropy = (unsigned char *)
26145                         "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
26146                         "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
26147                         "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
26148                         "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
26149                 .entropylen = 48,
26150                 .expected = (unsigned char *)
26151                         "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
26152                         "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
26153                         "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
26154                         "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
26155                         "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
26156                         "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
26157                         "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
26158                         "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
26159                         "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
26160                         "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
26161                         "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
26162                 .expectedlen = 128,
26163                 .addtla = (unsigned char *)
26164                         "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
26165                         "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
26166                         "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
26167                 .addtlb = (unsigned char *)
26168                         "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
26169                         "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
26170                         "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
26171                 .addtllen = 32,
26172                 .pers = (unsigned char *)
26173                         "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
26174                         "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
26175                         "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
26176                 .perslen = 32,
26177         },
26178 };
26179
26180 static const struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
26181         {
26182                 .entropy = (unsigned char *)
26183                         "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
26184                         "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
26185                         "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
26186                         "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
26187                 .entropylen = 48,
26188                 .expected = (unsigned char *)
26189                         "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
26190                         "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
26191                         "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
26192                         "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
26193                         "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
26194                         "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
26195                         "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
26196                         "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
26197                         "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
26198                         "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
26199                         "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
26200                 .expectedlen = 128,
26201                 .addtla = NULL,
26202                 .addtlb = NULL,
26203                 .addtllen = 0,
26204                 .pers = NULL,
26205                 .perslen = 0,
26206         }, {
26207                 .entropy = (unsigned char *)
26208                         "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
26209                         "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
26210                         "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
26211                         "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
26212                 .entropylen = 48,
26213                 .expected = (unsigned char *)
26214                         "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
26215                         "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
26216                         "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
26217                         "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
26218                         "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
26219                         "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
26220                         "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
26221                         "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
26222                         "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
26223                         "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
26224                         "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
26225                 .expectedlen = 128,
26226                 .addtla = (unsigned char *)
26227                         "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
26228                         "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
26229                         "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
26230                 .addtlb = (unsigned char *)
26231                         "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
26232                         "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
26233                         "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
26234                 .addtllen = 32,
26235                 .pers = NULL,
26236                 .perslen = 0,
26237         }, {
26238                 .entropy = (unsigned char *)
26239                         "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
26240                         "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
26241                         "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
26242                         "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
26243                 .entropylen = 48,
26244                 .expected = (unsigned char *)
26245                         "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
26246                         "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
26247                         "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
26248                         "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
26249                         "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
26250                         "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
26251                         "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
26252                         "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
26253                         "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
26254                         "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
26255                         "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
26256                 .expectedlen = 128,
26257                 .addtla = NULL,
26258                 .addtlb = NULL,
26259                 .addtllen = 0,
26260                 .pers = (unsigned char *)
26261                         "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
26262                         "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
26263                         "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
26264                 .perslen = 32,
26265         }, {
26266                 .entropy = (unsigned char *)
26267                         "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
26268                         "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
26269                         "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
26270                         "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
26271                 .entropylen = 48,
26272                 .expected = (unsigned char *)
26273                         "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
26274                         "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
26275                         "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
26276                         "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
26277                         "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
26278                         "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
26279                         "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
26280                         "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
26281                         "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
26282                         "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
26283                         "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
26284                 .expectedlen = 128,
26285                 .addtla = (unsigned char *)
26286                         "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
26287                         "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
26288                         "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
26289                 .addtlb = (unsigned char *)
26290                         "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
26291                         "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
26292                         "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
26293                 .addtllen = 32,
26294                 .pers = (unsigned char *)
26295                         "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
26296                         "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
26297                         "\x36\x60\x3b\xca\x37\xc9\xee\x29",
26298                 .perslen = 32,
26299         },
26300 };
26301
26302 static const struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
26303         {
26304                 .entropy = (unsigned char *)
26305                         "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
26306                         "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
26307                         "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
26308                         "\xac\x9b\xbb\x00",
26309                 .entropylen = 40,
26310                 .expected = (unsigned char *)
26311                         "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
26312                         "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
26313                         "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
26314                         "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
26315                         "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
26316                         "\x9a\x9d\xf1\x0d",
26317                 .expectedlen = 64,
26318                 .addtla = NULL,
26319                 .addtlb = NULL,
26320                 .addtllen = 0,
26321                 .pers = NULL,
26322                 .perslen = 0,
26323         },
26324 };
26325
26326 static const struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
26327         {
26328                 .entropy = (unsigned char *)
26329                         "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
26330                         "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
26331                         "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
26332                         "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
26333                 .entropylen = 48,
26334                 .expected = (unsigned char *)
26335                         "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
26336                         "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
26337                         "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
26338                         "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
26339                         "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
26340                         "\xb4\xf0\x7e\x1d",
26341                 .expectedlen = 64,
26342                 .addtla = NULL,
26343                 .addtlb = NULL,
26344                 .addtllen = 0,
26345                 .pers = NULL,
26346                 .perslen = 0,
26347         },
26348 };
26349
26350 static const struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
26351         {
26352                 .entropy = (unsigned char *)
26353                         "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
26354                         "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
26355                 .entropylen = 24,
26356                 .expected = (unsigned char *)
26357                         "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
26358                         "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
26359                         "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
26360                         "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
26361                         "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
26362                         "\xcb\x2d\xd6\xb0",
26363                 .expectedlen = 64,
26364                 .addtla = NULL,
26365                 .addtlb = NULL,
26366                 .addtllen = 0,
26367                 .pers = NULL,
26368                 .perslen = 0,
26369         }, {
26370                 .entropy = (unsigned char *)
26371                         "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
26372                         "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
26373                 .entropylen = 24,
26374                 .expected = (unsigned char *)
26375                         "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
26376                         "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
26377                         "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
26378                         "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
26379                         "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
26380                         "\xc3\xdf\xb3\x81",
26381                 .expectedlen = 64,
26382                 .addtla = (unsigned char *)
26383                         "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
26384                         "\x91\x4d\x81\x56",
26385                 .addtlb = (unsigned char *)
26386                         "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
26387                         "\x4a\x55\xd1\xc6",
26388                 .addtllen = 16,
26389                 .pers = NULL,
26390                 .perslen = 0,
26391         }, {
26392                 .entropy = (unsigned char *)
26393                         "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
26394                         "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
26395                 .entropylen = 24,
26396                 .expected = (unsigned char *)
26397                         "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
26398                         "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
26399                         "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
26400                         "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
26401                         "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
26402                         "\x34\x30\x0c\x3d",
26403                 .expectedlen = 64,
26404                 .addtla = NULL,
26405                 .addtlb = NULL,
26406                 .addtllen = 0,
26407                 .pers = (unsigned char *)
26408                         "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
26409                         "\x0b\xc6\x97\x54",
26410                 .perslen = 16,
26411         }, {
26412                 .entropy = (unsigned char *)
26413                         "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
26414                         "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
26415                 .entropylen = 24,
26416                 .expected = (unsigned char *)
26417                         "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
26418                         "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
26419                         "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
26420                         "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
26421                         "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
26422                         "\x2b\x49\x1e\x5c",
26423                 .expectedlen = 64,
26424                 .addtla = (unsigned char *)
26425                         "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
26426                         "\x44\x85\xe7\xfe",
26427                 .addtlb = (unsigned char *)
26428                         "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
26429                         "\x82\x16\x62\x7f",
26430                 .addtllen = 16,
26431                 .pers = (unsigned char *)
26432                         "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
26433                         "\x8e\xcf\xe0\x02",
26434                 .perslen = 16,
26435         },
26436 };
26437
26438 /* Cast5 test vectors from RFC 2144 */
26439 static const struct cipher_testvec cast5_tv_template[] = {
26440         {
26441                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
26442                           "\x23\x45\x67\x89\x34\x56\x78\x9a",
26443                 .klen   = 16,
26444                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26445                 .ctext  = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
26446                 .len    = 8,
26447         }, {
26448                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
26449                           "\x23\x45",
26450                 .klen   = 10,
26451                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26452                 .ctext  = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
26453                 .len    = 8,
26454         }, {
26455                 .key    = "\x01\x23\x45\x67\x12",
26456                 .klen   = 5,
26457                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26458                 .ctext  = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
26459                 .len    = 8,
26460         }, { /* Generated from TF test vectors */
26461                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26462                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26463                 .klen   = 16,
26464                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26465                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26466                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26467                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26468                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26469                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26470                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26471                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26472                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26473                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26474                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26475                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26476                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26477                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26478                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26479                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26480                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26481                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26482                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26483                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26484                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26485                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26486                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26487                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26488                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26489                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26490                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26491                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26492                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26493                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26494                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26495                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26496                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26497                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26498                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26499                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26500                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26501                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26502                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26503                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26504                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26505                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26506                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26507                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26508                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26509                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26510                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26511                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26512                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26513                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26514                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26515                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26516                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26517                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26518                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26519                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26520                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26521                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26522                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26523                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26524                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26525                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26526                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26527                 .ctext  = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
26528                           "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
26529                           "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
26530                           "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
26531                           "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
26532                           "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
26533                           "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
26534                           "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
26535                           "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
26536                           "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
26537                           "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
26538                           "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
26539                           "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
26540                           "\xED\x34\x35\x78\x6B\x91\xC9\x32"
26541                           "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
26542                           "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
26543                           "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
26544                           "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
26545                           "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
26546                           "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
26547                           "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
26548                           "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
26549                           "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
26550                           "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26551                           "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26552                           "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26553                           "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26554                           "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26555                           "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26556                           "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26557                           "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26558                           "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26559                           "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26560                           "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26561                           "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26562                           "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26563                           "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26564                           "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26565                           "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26566                           "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26567                           "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26568                           "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26569                           "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26570                           "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26571                           "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26572                           "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26573                           "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26574                           "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26575                           "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26576                           "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26577                           "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26578                           "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26579                           "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26580                           "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26581                           "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26582                           "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26583                           "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26584                           "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26585                           "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26586                           "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26587                           "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26588                           "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26589                 .len    = 496,
26590                 .also_non_np = 1,
26591                 .np     = 3,
26592                 .tap    = { 496 - 20, 4, 16 },
26593         },
26594 };
26595
26596 static const struct cipher_testvec cast5_cbc_tv_template[] = {
26597         { /* Generated from TF test vectors */
26598                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26599                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26600                 .klen   = 16,
26601                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26602                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26603                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26604                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26605                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26606                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26607                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26608                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26609                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26610                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26611                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26612                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26613                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26614                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26615                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26616                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26617                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26618                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26619                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26620                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26621                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26622                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26623                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26624                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26625                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26626                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26627                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26628                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26629                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26630                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26631                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26632                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26633                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26634                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26635                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26636                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26637                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26638                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26639                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26640                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26641                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26642                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26643                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26644                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26645                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26646                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26647                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26648                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26649                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26650                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26651                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26652                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26653                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26654                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26655                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26656                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26657                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26658                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26659                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26660                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26661                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26662                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26663                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26664                 .ctext  = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26665                           "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26666                           "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26667                           "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26668                           "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26669                           "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26670                           "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26671                           "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26672                           "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26673                           "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26674                           "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26675                           "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26676                           "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26677                           "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26678                           "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26679                           "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26680                           "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26681                           "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26682                           "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26683                           "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26684                           "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26685                           "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26686                           "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26687                           "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26688                           "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26689                           "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26690                           "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26691                           "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26692                           "\x90\x12\x37\x49\x27\x98\x69\x18"
26693                           "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26694                           "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26695                           "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26696                           "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26697                           "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26698                           "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26699                           "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26700                           "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26701                           "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26702                           "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26703                           "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26704                           "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26705                           "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26706                           "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26707                           "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26708                           "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26709                           "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26710                           "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26711                           "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26712                           "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26713                           "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26714                           "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26715                           "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26716                           "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26717                           "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26718                           "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26719                           "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26720                           "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26721                           "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26722                           "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26723                           "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26724                           "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26725                           "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26726                 .len    = 496,
26727                 .also_non_np = 1,
26728                 .np     = 3,
26729                 .tap    = { 496 - 20, 4, 16 },
26730         },
26731 };
26732
26733 static const struct cipher_testvec cast5_ctr_tv_template[] = {
26734         { /* Generated from TF test vectors */
26735                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26736                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26737                 .klen   = 16,
26738                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26739                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26740                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26741                           "\x3A",
26742                 .ctext  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26743                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26744                           "\x0C",
26745                 .len    = 17,
26746         }, { /* Generated from TF test vectors */
26747                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26748                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26749                 .klen   = 16,
26750                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26751                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26752                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26753                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26754                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26755                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26756                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26757                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26758                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26759                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26760                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26761                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26762                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26763                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26764                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26765                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26766                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26767                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26768                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26769                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26770                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26771                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26772                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26773                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26774                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26775                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26776                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26777                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26778                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26779                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26780                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26781                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26782                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26783                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26784                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26785                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26786                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26787                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26788                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26789                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26790                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26791                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26792                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26793                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26794                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26795                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26796                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26797                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26798                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26799                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26800                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26801                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26802                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26803                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26804                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26805                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26806                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26807                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26808                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26809                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26810                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26811                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26812                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26813                 .ctext  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26814                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26815                           "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26816                           "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26817                           "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26818                           "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26819                           "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26820                           "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26821                           "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26822                           "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26823                           "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26824                           "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26825                           "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26826                           "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26827                           "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26828                           "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26829                           "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26830                           "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26831                           "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26832                           "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26833                           "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26834                           "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26835                           "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26836                           "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26837                           "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26838                           "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26839                           "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26840                           "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26841                           "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26842                           "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26843                           "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26844                           "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26845                           "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26846                           "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26847                           "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26848                           "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26849                           "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26850                           "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26851                           "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26852                           "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26853                           "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26854                           "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26855                           "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26856                           "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26857                           "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26858                           "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26859                           "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26860                           "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26861                           "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26862                           "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26863                           "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26864                           "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26865                           "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26866                           "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26867                           "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26868                           "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26869                           "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26870                           "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26871                           "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26872                           "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26873                           "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26874                           "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26875                 .len    = 496,
26876                 .also_non_np = 1,
26877                 .np     = 3,
26878                 .tap    = { 496 - 20, 4, 16 },
26879         },
26880 };
26881
26882 /*
26883  * ARC4 test vectors from OpenSSL
26884  */
26885 static const struct cipher_testvec arc4_tv_template[] = {
26886         {
26887                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26888                 .klen   = 8,
26889                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26890                 .ctext  = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26891                 .len    = 8,
26892         }, {
26893                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26894                 .klen   = 8,
26895                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
26896                 .ctext  = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26897                 .len    = 8,
26898         }, {
26899                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
26900                 .klen   = 8,
26901                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
26902                 .ctext  = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26903                 .len    = 8,
26904         }, {
26905                 .key    = "\xef\x01\x23\x45",
26906                 .klen   = 4,
26907                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
26908                           "\x00\x00\x00\x00\x00\x00\x00\x00"
26909                           "\x00\x00\x00\x00",
26910                 .ctext  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26911                           "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26912                           "\x36\xb6\x78\x58",
26913                 .len    = 20,
26914         }, {
26915                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26916                 .klen   = 8,
26917                 .ptext  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26918                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26919                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26920                           "\x12\x34\x56\x78",
26921                 .ctext  = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26922                           "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26923                           "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26924                           "\x40\x01\x1e\xcf",
26925                 .len    = 28,
26926         }, {
26927                 .key    = "\xef\x01\x23\x45",
26928                 .klen   = 4,
26929                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
26930                           "\x00\x00",
26931                 .ctext  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26932                           "\xbd\x61",
26933                 .len    = 10,
26934         }, {
26935                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26936                         "\x00\x00\x00\x00\x00\x00\x00\x00",
26937                 .klen   = 16,
26938                 .ptext  = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26939                 .ctext  = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26940                 .len    = 8,
26941         },
26942 };
26943
26944 /*
26945  * TEA test vectors
26946  */
26947 static const struct cipher_testvec tea_tv_template[] = {
26948         {
26949                 .key    = zeroed_string,
26950                 .klen   = 16,
26951                 .ptext  = zeroed_string,
26952                 .ctext  = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26953                 .len    = 8,
26954         }, {
26955                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26956                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26957                 .klen   = 16,
26958                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26959                 .ctext  = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26960                 .len    = 8,
26961         }, {
26962                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
26963                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26964                 .klen   = 16,
26965                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26966                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
26967                 .ctext  = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26968                           "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26969                 .len    = 16,
26970         }, {
26971                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26972                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
26973                 .klen   = 16,
26974                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
26975                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
26976                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
26977                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
26978                 .ctext  = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
26979                           "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
26980                           "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
26981                           "\x07\x89\x73\xc2\x45\x92\xc6\x90",
26982                 .len    = 32,
26983         }
26984 };
26985
26986 /*
26987  * XTEA test vectors
26988  */
26989 static const struct cipher_testvec xtea_tv_template[] = {
26990         {
26991                 .key    = zeroed_string,
26992                 .klen   = 16,
26993                 .ptext  = zeroed_string,
26994                 .ctext  = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
26995                 .len    = 8,
26996         }, {
26997                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26998                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26999                 .klen   = 16,
27000                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27001                 .ctext  = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27002                 .len    = 8,
27003         }, {
27004                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27005                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27006                 .klen   = 16,
27007                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27008                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27009                 .ctext  = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27010                           "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27011                 .len    = 16,
27012         }, {
27013                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27014                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27015                 .klen   = 16,
27016                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27017                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27018                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27019                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27020                 .ctext  = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27021                           "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27022                           "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27023                           "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27024                 .len    = 32,
27025         }
27026 };
27027
27028 /*
27029  * KHAZAD test vectors.
27030  */
27031 static const struct cipher_testvec khazad_tv_template[] = {
27032         {
27033                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
27034                           "\x00\x00\x00\x00\x00\x00\x00\x00",
27035                 .klen   = 16,
27036                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27037                 .ctext  = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27038                 .len    = 8,
27039         }, {
27040                 .key    = "\x38\x38\x38\x38\x38\x38\x38\x38"
27041                           "\x38\x38\x38\x38\x38\x38\x38\x38",
27042                 .klen   = 16,
27043                 .ptext  = "\x38\x38\x38\x38\x38\x38\x38\x38",
27044                 .ctext  = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27045                 .len    = 8,
27046         }, {
27047                 .key    = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27048                         "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27049                 .klen   = 16,
27050                 .ptext  = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27051                 .ctext  = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27052                 .len    = 8,
27053         }, {
27054                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27055                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27056                 .klen   = 16,
27057                 .ptext  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27058                 .ctext  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27059                 .len    = 8,
27060         }, {
27061                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27062                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27063                 .klen   = 16,
27064                 .ptext  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27065                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27066                 .ctext  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27067                         "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27068                 .len    = 16,
27069         },
27070 };
27071
27072 /*
27073  * Anubis test vectors.
27074  */
27075
27076 static const struct cipher_testvec anubis_tv_template[] = {
27077         {
27078                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27079                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27080                 .klen   = 16,
27081                 .ptext  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27082                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27083                 .ctext  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27084                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27085                 .len    = 16,
27086         }, {
27087
27088                 .key    = "\x03\x03\x03\x03\x03\x03\x03\x03"
27089                           "\x03\x03\x03\x03\x03\x03\x03\x03"
27090                           "\x03\x03\x03\x03",
27091                 .klen   = 20,
27092                 .ptext  = "\x03\x03\x03\x03\x03\x03\x03\x03"
27093                           "\x03\x03\x03\x03\x03\x03\x03\x03",
27094                 .ctext  = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27095                           "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27096                 .len    = 16,
27097         }, {
27098                 .key    = "\x24\x24\x24\x24\x24\x24\x24\x24"
27099                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27100                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27101                           "\x24\x24\x24\x24",
27102                 .klen   = 28,
27103                 .ptext  = "\x24\x24\x24\x24\x24\x24\x24\x24"
27104                           "\x24\x24\x24\x24\x24\x24\x24\x24",
27105                 .ctext  = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27106                           "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27107                 .len    = 16,
27108         }, {
27109                 .key    = "\x25\x25\x25\x25\x25\x25\x25\x25"
27110                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27111                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27112                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27113                 .klen   = 32,
27114                 .ptext  = "\x25\x25\x25\x25\x25\x25\x25\x25"
27115                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27116                 .ctext  = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27117                         "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27118                 .len    = 16,
27119         }, {
27120                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27121                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27122                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27123                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27124                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27125                 .klen   = 40,
27126                 .ptext  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27127                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27128                 .ctext  = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27129                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27130                 .len    = 16,
27131         },
27132 };
27133
27134 static const struct cipher_testvec anubis_cbc_tv_template[] = {
27135         {
27136                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27137                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27138                 .klen   = 16,
27139                 .ptext  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27140                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27141                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27142                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27143                 .ctext  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27144                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27145                           "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27146                           "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27147                 .len    = 32,
27148         }, {
27149                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27150                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27151                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27152                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27153                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27154                 .klen   = 40,
27155                 .ptext  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27156                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27157                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27158                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27159                 .ctext  = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27160                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27161                           "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27162                           "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27163                 .len    = 32,
27164         },
27165 };
27166
27167 /*
27168  * XETA test vectors
27169  */
27170 static const struct cipher_testvec xeta_tv_template[] = {
27171         {
27172                 .key    = zeroed_string,
27173                 .klen   = 16,
27174                 .ptext  = zeroed_string,
27175                 .ctext  = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27176                 .len    = 8,
27177         }, {
27178                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27179                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27180                 .klen   = 16,
27181                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27182                 .ctext  = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27183                 .len    = 8,
27184         }, {
27185                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27186                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27187                 .klen   = 16,
27188                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27189                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27190                 .ctext  = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27191                           "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27192                 .len    = 16,
27193         }, {
27194                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27195                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27196                 .klen   = 16,
27197                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27198                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27199                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27200                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27201                 .ctext  = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27202                           "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27203                           "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27204                           "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27205                 .len    = 32,
27206         }
27207 };
27208
27209 /*
27210  * FCrypt test vectors
27211  */
27212 static const struct cipher_testvec fcrypt_pcbc_tv_template[] = {
27213         { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27214                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
27215                 .klen   = 8,
27216                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27217                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27218                 .ctext  = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27219                 .len    = 8,
27220         }, {
27221                 .key    = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27222                 .klen   = 8,
27223                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27224                 .ptext  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27225                 .ctext  = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27226                 .len    = 8,
27227         }, { /* From Arla */
27228                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27229                 .klen   = 8,
27230                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27231                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27232                 .ctext  = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27233                           "\xee\xac\x98\x62\x44\x51\xe4\x84"
27234                           "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27235                           "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27236                           "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27237                           "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27238                 .len    = 48,
27239         }, {
27240                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27241                 .klen   = 8,
27242                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27243                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27244                 .ctext  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27245                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27246                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27247                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27248                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27249                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27250                 .len    = 48,
27251         }, { /* split-page version */
27252                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27253                 .klen   = 8,
27254                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27255                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27256                 .ctext  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27257                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27258                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27259                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27260                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27261                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27262                 .len    = 48,
27263                 .np     = 2,
27264                 .tap    = { 20, 28 },
27265         }
27266 };
27267
27268 /*
27269  * CAMELLIA test vectors.
27270  */
27271 static const struct cipher_testvec camellia_tv_template[] = {
27272         {
27273                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27274                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27275                 .klen   = 16,
27276                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27277                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27278                 .ctext  = "\x67\x67\x31\x38\x54\x96\x69\x73"
27279                           "\x08\x57\x06\x56\x48\xea\xbe\x43",
27280                 .len    = 16,
27281         }, {
27282                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27283                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27284                           "\x00\x11\x22\x33\x44\x55\x66\x77",
27285                 .klen   = 24,
27286                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27287                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27288                 .ctext  = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27289                           "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27290                 .len    = 16,
27291         }, {
27292                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27293                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27294                           "\x00\x11\x22\x33\x44\x55\x66\x77"
27295                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27296                 .klen   = 32,
27297                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27298                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27299                 .ctext  = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27300                           "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27301                 .len    = 16,
27302         }, { /* Generated with Crypto++ */
27303                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27304                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27305                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27306                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27307                 .klen   = 32,
27308                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27309                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27310                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27311                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27312                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27313                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27314                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27315                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27316                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27317                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27318                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27319                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27320                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27321                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27322                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27323                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27324                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27325                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27326                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27327                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27328                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27329                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27330                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27331                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27332                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27333                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27334                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27335                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27336                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27337                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27338                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27339                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27340                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27341                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27342                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27343                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27344                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27345                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27346                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27347                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27348                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27349                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27350                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27351                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27352                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27353                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27354                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27355                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27356                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27357                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27358                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27359                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27360                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27361                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27362                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27363                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27364                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27365                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27366                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27367                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27368                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27369                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27370                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27371                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27372                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27373                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27374                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27375                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27376                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27377                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27378                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27379                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27380                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27381                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27382                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27383                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27384                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27385                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27386                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27387                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27388                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27389                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27390                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27391                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27392                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27393                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27394                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27395                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27396                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27397                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27398                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27399                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27400                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27401                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27402                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27403                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27404                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27405                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27406                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27407                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27408                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27409                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27410                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27411                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27412                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27413                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27414                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27415                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27416                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27417                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27418                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27419                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27420                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27421                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27422                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27423                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27424                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27425                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27426                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27427                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27428                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27429                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27430                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27431                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27432                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27433                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
27434                 .ctext  = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27435                           "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27436                           "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27437                           "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27438                           "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27439                           "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27440                           "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27441                           "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27442                           "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27443                           "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27444                           "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27445                           "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27446                           "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27447                           "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27448                           "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27449                           "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27450                           "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27451                           "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27452                           "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27453                           "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27454                           "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27455                           "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27456                           "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27457                           "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27458                           "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27459                           "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27460                           "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27461                           "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27462                           "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27463                           "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27464                           "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27465                           "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27466                           "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27467                           "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27468                           "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27469                           "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27470                           "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27471                           "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27472                           "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27473                           "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27474                           "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27475                           "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27476                           "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27477                           "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27478                           "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
27479                           "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
27480                           "\x83\x06\xAB\x82\x99\x01\x16\x1A"
27481                           "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
27482                           "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
27483                           "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
27484                           "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
27485                           "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
27486                           "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
27487                           "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
27488                           "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
27489                           "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
27490                           "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
27491                           "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
27492                           "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
27493                           "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
27494                           "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
27495                           "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
27496                           "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
27497                           "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
27498                           "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
27499                           "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
27500                           "\xED\x28\x39\xE9\x63\xED\x41\x70"
27501                           "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
27502                           "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
27503                           "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
27504                           "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
27505                           "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
27506                           "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
27507                           "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
27508                           "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
27509                           "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
27510                           "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
27511                           "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
27512                           "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
27513                           "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
27514                           "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
27515                           "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
27516                           "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
27517                           "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
27518                           "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
27519                           "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
27520                           "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
27521                           "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
27522                           "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
27523                           "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
27524                           "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
27525                           "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
27526                           "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
27527                           "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
27528                           "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
27529                           "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
27530                           "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
27531                           "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
27532                           "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
27533                           "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
27534                           "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
27535                           "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
27536                           "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
27537                           "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
27538                           "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
27539                           "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
27540                           "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
27541                           "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
27542                           "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
27543                           "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
27544                           "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
27545                           "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
27546                           "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
27547                           "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
27548                           "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
27549                           "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
27550                           "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
27551                           "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
27552                           "\x31\x93\x51\x1C\x63\x97\x70\xB0"
27553                           "\x99\x78\x83\x13\xFD\xCF\x53\x81"
27554                           "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
27555                           "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
27556                           "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
27557                           "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
27558                           "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
27559                           "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
27560                 .len    = 1008,
27561                 .also_non_np = 1,
27562                 .np     = 3,
27563                 .tap    = { 1008 - 20, 4, 16 },
27564         },
27565 };
27566
27567 static const struct cipher_testvec camellia_cbc_tv_template[] = {
27568         {
27569                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
27570                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
27571                 .klen   = 16,
27572                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
27573                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
27574                 .ptext  = "Single block msg",
27575                 .ctext  = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
27576                           "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
27577                 .len    = 16,
27578         }, {
27579                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
27580                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
27581                 .klen   = 16,
27582                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
27583                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
27584                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
27585                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
27586                           "\x10\x11\x12\x13\x14\x15\x16\x17"
27587                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
27588                 .ctext  = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
27589                           "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
27590                           "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
27591                           "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
27592                 .len    = 32,
27593         }, { /* Generated with Crypto++ */
27594                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27595                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
27596                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
27597                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
27598                 .klen   = 32,
27599                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
27600                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
27601                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27602                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27603                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27604                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27605                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27606                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27607                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27608                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27609                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27610                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27611                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27612                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27613                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27614                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27615                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27616                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27617                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27618                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27619                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27620                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27621                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27622                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27623                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27624                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27625                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27626                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27627                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27628                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27629                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27630                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27631                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27632                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27633                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27634                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27635                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27636                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27637                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27638                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27639                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27640                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27641                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27642                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27643                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27644                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27645                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27646                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27647                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27648                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27649                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27650                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27651                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27652                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27653                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27654                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27655                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27656                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27657                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27658                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27659                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27660                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27661                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27662                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27663                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27664                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27665                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27666                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27667                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27668                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27669                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27670                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27671                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27672                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27673                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27674                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27675                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27676                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27677                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27678                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27679                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27680                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27681                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27682                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27683                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27684                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27685                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27686                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27687                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27688                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27689                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27690                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27691                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27692                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27693                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27694                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27695                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27696                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27697                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27698                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27699                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27700                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27701                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27702                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27703                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27704                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27705                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27706                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27707                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27708                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27709                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27710                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27711                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27712                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27713                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27714                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27715                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27716                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27717                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27718                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27719                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27720                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27721                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27722                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27723                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27724                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27725                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27726                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
27727                 .ctext  = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
27728                           "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
27729                           "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
27730                           "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
27731                           "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
27732                           "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
27733                           "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
27734                           "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
27735                           "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
27736                           "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
27737                           "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
27738                           "\x37\x49\x88\xA4\xEF\x91\x21\x47"
27739                           "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
27740                           "\x28\x90\x77\x46\xD8\xD2\x35\x16"
27741                           "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
27742                           "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
27743                           "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
27744                           "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
27745                           "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
27746                           "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
27747                           "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
27748                           "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
27749                           "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
27750                           "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
27751                           "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
27752                           "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
27753                           "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
27754                           "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
27755                           "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
27756                           "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
27757                           "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
27758                           "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
27759                           "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
27760                           "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
27761                           "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
27762                           "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
27763                           "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
27764                           "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
27765                           "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
27766                           "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
27767                           "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
27768                           "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
27769                           "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
27770                           "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
27771                           "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
27772                           "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
27773                           "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
27774                           "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
27775                           "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
27776                           "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
27777                           "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
27778                           "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
27779                           "\x38\xB8\x48\x36\x66\x4E\x20\x43"
27780                           "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
27781                           "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
27782                           "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
27783                           "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
27784                           "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
27785                           "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
27786                           "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
27787                           "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
27788                           "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
27789                           "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
27790                           "\x21\x41\x56\x72\x13\xE1\x86\x07"
27791                           "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
27792                           "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
27793                           "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
27794                           "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
27795                           "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
27796                           "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
27797                           "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
27798                           "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
27799                           "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
27800                           "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
27801                           "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
27802                           "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
27803                           "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
27804                           "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
27805                           "\xBE\x31\x31\x96\x8B\x40\x18\x75"
27806                           "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
27807                           "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
27808                           "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
27809                           "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
27810                           "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
27811                           "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
27812                           "\x09\xB0\x43\x96\x4A\x64\x80\x40"
27813                           "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
27814                           "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
27815                           "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
27816                           "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
27817                           "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
27818                           "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
27819                           "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
27820                           "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
27821                           "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
27822                           "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
27823                           "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
27824                           "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
27825                           "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
27826                           "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
27827                           "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
27828                           "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
27829                           "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
27830                           "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
27831                           "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
27832                           "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
27833                           "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
27834                           "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
27835                           "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
27836                           "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
27837                           "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
27838                           "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
27839                           "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
27840                           "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
27841                           "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
27842                           "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
27843                           "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
27844                           "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
27845                           "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
27846                           "\x80\xE7\x29\xDC\x23\x55\x98\x54"
27847                           "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
27848                           "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
27849                           "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
27850                           "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
27851                           "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
27852                           "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
27853                 .len    = 1008,
27854                 .also_non_np = 1,
27855                 .np     = 3,
27856                 .tap    = { 1008 - 20, 4, 16 },
27857         },
27858 };
27859
27860 static const struct cipher_testvec camellia_ctr_tv_template[] = {
27861         { /* Generated with Crypto++ */
27862                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27863                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
27864                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
27865                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
27866                 .klen   = 32,
27867                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
27868                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
27869                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27870                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27871                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27872                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27873                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27874                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27875                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27876                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27877                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27878                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27879                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27880                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27881                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27882                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27883                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27884                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27885                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27886                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27887                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27888                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27889                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27890                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27891                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27892                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27893                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27894                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27895                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27896                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27897                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27898                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27899                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27900                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27901                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27902                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27903                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27904                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27905                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27906                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27907                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27908                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27909                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27910                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27911                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27912                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27913                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27914                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27915                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27916                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27917                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27918                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27919                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27920                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27921                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27922                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27923                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27924                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27925                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27926                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27927                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27928                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27929                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27930                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
27931                 .ctext  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
27932                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
27933                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
27934                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
27935                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
27936                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
27937                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
27938                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
27939                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
27940                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
27941                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
27942                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
27943                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
27944                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
27945                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
27946                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
27947                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
27948                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
27949                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
27950                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
27951                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
27952                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
27953                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
27954                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
27955                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
27956                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
27957                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
27958                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
27959                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
27960                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
27961                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
27962                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
27963                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
27964                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
27965                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
27966                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
27967                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
27968                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
27969                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
27970                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
27971                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
27972                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
27973                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
27974                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
27975                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
27976                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
27977                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
27978                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
27979                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
27980                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
27981                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
27982                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
27983                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
27984                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
27985                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
27986                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
27987                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
27988                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
27989                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
27990                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
27991                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
27992                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
27993                 .len    = 496,
27994         }, { /* Generated with Crypto++ */
27995                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27996                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
27997                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
27998                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
27999                 .klen   = 32,
28000                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28001                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28002                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28003                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28004                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28005                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28006                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28007                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28008                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28009                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28010                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28011                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28012                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28013                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28014                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28015                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28016                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28017                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28018                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28019                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28020                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28021                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28022                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28023                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28024                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28025                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28026                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28027                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28028                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28029                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28030                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28031                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28032                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28033                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28034                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28035                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28036                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28037                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28038                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28039                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28040                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28041                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28042                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28043                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28044                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28045                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28046                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28047                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28048                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28049                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28050                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28051                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28052                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28053                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28054                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28055                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28056                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28057                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28058                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28059                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28060                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28061                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28062                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28063                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28064                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28065                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28066                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28067                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28068                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28069                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28070                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28071                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28072                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28073                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28074                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28075                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28076                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28077                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28078                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28079                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28080                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28081                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28082                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28083                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28084                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28085                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28086                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28087                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28088                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28089                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28090                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28091                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28092                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28093                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28094                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28095                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28096                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28097                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28098                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28099                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28100                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28101                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28102                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28103                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28104                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28105                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28106                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28107                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28108                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28109                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28110                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28111                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28112                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28113                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28114                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28115                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28116                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28117                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28118                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28119                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28120                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28121                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28122                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28123                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28124                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28125                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28126                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28127                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
28128                           "\xE4\x7B\x12",
28129                 .ctext  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28130                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28131                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28132                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28133                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28134                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28135                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28136                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28137                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28138                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28139                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28140                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28141                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28142                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28143                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28144                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28145                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28146                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28147                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28148                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28149                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28150                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28151                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28152                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28153                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28154                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28155                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28156                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28157                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28158                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28159                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28160                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28161                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28162                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28163                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28164                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28165                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28166                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28167                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28168                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28169                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28170                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28171                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28172                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28173                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28174                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28175                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28176                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28177                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28178                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28179                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
28180                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28181                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28182                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28183                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28184                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28185                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28186                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28187                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28188                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28189                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28190                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
28191                           "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
28192                           "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
28193                           "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
28194                           "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
28195                           "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
28196                           "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
28197                           "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
28198                           "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
28199                           "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
28200                           "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
28201                           "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
28202                           "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
28203                           "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
28204                           "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
28205                           "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
28206                           "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
28207                           "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
28208                           "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
28209                           "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
28210                           "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
28211                           "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
28212                           "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
28213                           "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
28214                           "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
28215                           "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
28216                           "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
28217                           "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
28218                           "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
28219                           "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
28220                           "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
28221                           "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
28222                           "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
28223                           "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
28224                           "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
28225                           "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
28226                           "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
28227                           "\x00\x70\x12\x56\x56\x50\xAD\x14"
28228                           "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
28229                           "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
28230                           "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
28231                           "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
28232                           "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
28233                           "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
28234                           "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
28235                           "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
28236                           "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
28237                           "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
28238                           "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
28239                           "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
28240                           "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
28241                           "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
28242                           "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
28243                           "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
28244                           "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
28245                           "\x40\x48\x19\x73\x7C\x78\x64\x0B"
28246                           "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
28247                           "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
28248                           "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
28249                           "\x74\x28\x9D\x05\x30\x20\x62\x41"
28250                           "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
28251                           "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
28252                           "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
28253                           "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
28254                           "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
28255                           "\xF1\x6B\xD9",
28256                 .len    = 1011,
28257                 .also_non_np = 1,
28258                 .np     = 2,
28259                 .tap    = { 1011 - 16, 16 },
28260         }, { /* Generated with Crypto++ */
28261                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28262                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28263                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28264                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28265                 .klen   = 32,
28266                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
28267                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
28268                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28269                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28270                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28271                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28272                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28273                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28274                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28275                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28276                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28277                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28278                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28279                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28280                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28281                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28282                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28283                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28284                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28285                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28286                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28287                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28288                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28289                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28290                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28291                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28292                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28293                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28294                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28295                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28296                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28297                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28298                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28299                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28300                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28301                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28302                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28303                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28304                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28305                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28306                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28307                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28308                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28309                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28310                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28311                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28312                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28313                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28314                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28315                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28316                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28317                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28318                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28319                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28320                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28321                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28322                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28323                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28324                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28325                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28326                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28327                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28328                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28329                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28330                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28331                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28332                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28333                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28334                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28335                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28336                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28337                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28338                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28339                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28340                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28341                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28342                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28343                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28344                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28345                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28346                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28347                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28348                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28349                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28350                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28351                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28352                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28353                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28354                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28355                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28356                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28357                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28358                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28359                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28360                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28361                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28362                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28363                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28364                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28365                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28366                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28367                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28368                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28369                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28370                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28371                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28372                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28373                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28374                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28375                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28376                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28377                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28378                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28379                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28380                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28381                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28382                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28383                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28384                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28385                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28386                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28387                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28388                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28389                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28390                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28391                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28392                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28393                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28394                 .ctext  = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
28395                           "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
28396                           "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
28397                           "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
28398                           "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
28399                           "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
28400                           "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
28401                           "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
28402                           "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
28403                           "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
28404                           "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
28405                           "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
28406                           "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
28407                           "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
28408                           "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
28409                           "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
28410                           "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
28411                           "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
28412                           "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
28413                           "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
28414                           "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
28415                           "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
28416                           "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
28417                           "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
28418                           "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
28419                           "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
28420                           "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
28421                           "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
28422                           "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
28423                           "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
28424                           "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
28425                           "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
28426                           "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
28427                           "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
28428                           "\x93\x78\x86\x05\x69\x46\xD0\xC5"
28429                           "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
28430                           "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
28431                           "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
28432                           "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
28433                           "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
28434                           "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
28435                           "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
28436                           "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
28437                           "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
28438                           "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
28439                           "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
28440                           "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
28441                           "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
28442                           "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
28443                           "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
28444                           "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
28445                           "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
28446                           "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
28447                           "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
28448                           "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
28449                           "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
28450                           "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
28451                           "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
28452                           "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
28453                           "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
28454                           "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
28455                           "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
28456                           "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
28457                           "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
28458                           "\x3F\x23\x69\x63\x56\x96\x45\xD6"
28459                           "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
28460                           "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
28461                           "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
28462                           "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
28463                           "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
28464                           "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
28465                           "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
28466                           "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
28467                           "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
28468                           "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
28469                           "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
28470                           "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
28471                           "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
28472                           "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
28473                           "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
28474                           "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
28475                           "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
28476                           "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
28477                           "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
28478                           "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
28479                           "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
28480                           "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
28481                           "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
28482                           "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
28483                           "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
28484                           "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
28485                           "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
28486                           "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
28487                           "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
28488                           "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
28489                           "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
28490                           "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
28491                           "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
28492                           "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
28493                           "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
28494                           "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
28495                           "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
28496                           "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
28497                           "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
28498                           "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
28499                           "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
28500                           "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
28501                           "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
28502                           "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
28503                           "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
28504                           "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
28505                           "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
28506                           "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
28507                           "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
28508                           "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
28509                           "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
28510                           "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
28511                           "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
28512                           "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
28513                           "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
28514                           "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
28515                           "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
28516                           "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
28517                           "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
28518                           "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
28519                           "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
28520                 .len    = 1008,
28521         },
28522 };
28523
28524 static const struct cipher_testvec camellia_lrw_tv_template[] = {
28525         /* Generated from AES-LRW test vectors */
28526         {
28527                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
28528                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
28529                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
28530                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
28531                 .klen   = 32,
28532                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28533                           "\x00\x00\x00\x00\x00\x00\x00\x01",
28534                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
28535                           "\x38\x39\x41\x42\x43\x44\x45\x46",
28536                 .ctext  = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
28537                           "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
28538                 .len    = 16,
28539         }, {
28540                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
28541                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
28542                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
28543                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
28544                 .klen   = 32,
28545                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28546                           "\x00\x00\x00\x00\x00\x00\x00\x02",
28547                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
28548                           "\x38\x39\x41\x42\x43\x44\x45\x46",
28549                 .ctext  = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
28550                           "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
28551                 .len    = 16,
28552         }, {
28553                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
28554                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
28555                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
28556                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
28557                 .klen   = 32,
28558                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28559                           "\x00\x00\x00\x02\x00\x00\x00\x00",
28560                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
28561                           "\x38\x39\x41\x42\x43\x44\x45\x46",
28562                 .ctext  = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
28563                           "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
28564                 .len    = 16,
28565         }, {
28566                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
28567                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
28568                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
28569                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
28570                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
28571                 .klen   = 40,
28572                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28573                           "\x00\x00\x00\x00\x00\x00\x00\x01",
28574                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
28575                           "\x38\x39\x41\x42\x43\x44\x45\x46",
28576                 .ctext  = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
28577                           "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
28578                 .len    = 16,
28579         }, {
28580                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
28581                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
28582                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
28583                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
28584                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
28585                 .klen   = 40,
28586                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28587                           "\x00\x00\x00\x02\x00\x00\x00\x00",
28588                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
28589                           "\x38\x39\x41\x42\x43\x44\x45\x46",
28590                 .ctext  = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
28591                           "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
28592                 .len    = 16,
28593         }, {
28594                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
28595                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
28596                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
28597                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
28598                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
28599                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
28600                 .klen   = 48,
28601                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28602                           "\x00\x00\x00\x00\x00\x00\x00\x01",
28603                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
28604                           "\x38\x39\x41\x42\x43\x44\x45\x46",
28605                 .ctext  = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
28606                           "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
28607                 .len    = 16,
28608         }, {
28609                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
28610                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
28611                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
28612                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
28613                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
28614                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
28615                 .klen   = 48,
28616                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28617                           "\x00\x00\x00\x02\x00\x00\x00\x00",
28618                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
28619                           "\x38\x39\x41\x42\x43\x44\x45\x46",
28620                 .ctext  = "\x04\xab\x28\x37\x31\x7a\x26\xab"
28621                           "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
28622                 .len    = 16,
28623         }, {
28624                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
28625                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
28626                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
28627                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
28628                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
28629                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
28630                 .klen   = 48,
28631                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28632                           "\x00\x00\x00\x00\x00\x00\x00\x01",
28633                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
28634                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
28635                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
28636                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
28637                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
28638                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
28639                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
28640                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
28641                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
28642                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
28643                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
28644                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
28645                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
28646                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
28647                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
28648                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
28649                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
28650                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
28651                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
28652                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
28653                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
28654                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
28655                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
28656                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
28657                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
28658                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
28659                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
28660                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
28661                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
28662                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
28663                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
28664                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
28665                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
28666                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
28667                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
28668                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
28669                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
28670                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
28671                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
28672                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
28673                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
28674                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
28675                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
28676                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
28677                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
28678                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
28679                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
28680                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
28681                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
28682                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
28683                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
28684                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
28685                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
28686                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
28687                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
28688                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
28689                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
28690                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
28691                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
28692                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
28693                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
28694                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
28695                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
28696                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
28697                 .ctext  = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
28698                           "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
28699                           "\x67\x76\xac\x2c\xd2\x63\x18\x93"
28700                           "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
28701                           "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
28702                           "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
28703                           "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
28704                           "\x62\xdd\x78\x81\xea\x1d\xef\x04"
28705                           "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
28706                           "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
28707                           "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
28708                           "\x40\x41\x69\xaa\x71\xc0\x37\xec"
28709                           "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
28710                           "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
28711                           "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
28712                           "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
28713                           "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
28714                           "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
28715                           "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
28716                           "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
28717                           "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
28718                           "\x42\x08\x40\x82\x06\x1c\x2d\x55"
28719                           "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
28720                           "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
28721                           "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
28722                           "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
28723                           "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
28724                           "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
28725                           "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
28726                           "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
28727                           "\xed\x14\xa9\x57\x19\x63\x40\x04"
28728                           "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
28729                           "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
28730                           "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
28731                           "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
28732                           "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
28733                           "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
28734                           "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
28735                           "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
28736                           "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
28737                           "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
28738                           "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
28739                           "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
28740                           "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
28741                           "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
28742                           "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
28743                           "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
28744                           "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
28745                           "\x35\xa5\x83\x04\x84\x01\x99\x56"
28746                           "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
28747                           "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
28748                           "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
28749                           "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
28750                           "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
28751                           "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
28752                           "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
28753                           "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
28754                           "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
28755                           "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
28756                           "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
28757                           "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
28758                           "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
28759                           "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
28760                           "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
28761                 .len    = 512,
28762                 .also_non_np = 1,
28763                 .np     = 3,
28764                 .tap    = { 512 - 20, 4, 16 },
28765         },
28766 };
28767
28768 static const struct cipher_testvec camellia_xts_tv_template[] = {
28769         /* Generated from AES-XTS test vectors */
28770         {
28771                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
28772                           "\x00\x00\x00\x00\x00\x00\x00\x00"
28773                           "\x00\x00\x00\x00\x00\x00\x00\x00"
28774                           "\x00\x00\x00\x00\x00\x00\x00\x00",
28775                 .klen   = 32,
28776                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28777                           "\x00\x00\x00\x00\x00\x00\x00\x00",
28778                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
28779                           "\x00\x00\x00\x00\x00\x00\x00\x00"
28780                           "\x00\x00\x00\x00\x00\x00\x00\x00"
28781                           "\x00\x00\x00\x00\x00\x00\x00\x00",
28782                 .ctext  = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
28783                           "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
28784                           "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
28785                           "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
28786                 .len    = 32,
28787         }, {
28788                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
28789                           "\x11\x11\x11\x11\x11\x11\x11\x11"
28790                           "\x22\x22\x22\x22\x22\x22\x22\x22"
28791                           "\x22\x22\x22\x22\x22\x22\x22\x22",
28792                 .klen   = 32,
28793                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
28794                           "\x00\x00\x00\x00\x00\x00\x00\x00",
28795                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
28796                           "\x44\x44\x44\x44\x44\x44\x44\x44"
28797                           "\x44\x44\x44\x44\x44\x44\x44\x44"
28798                           "\x44\x44\x44\x44\x44\x44\x44\x44",
28799                 .ctext  = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
28800                           "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
28801                           "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
28802                           "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
28803                 .len    = 32,
28804         }, {
28805                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
28806                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
28807                           "\x22\x22\x22\x22\x22\x22\x22\x22"
28808                           "\x22\x22\x22\x22\x22\x22\x22\x22",
28809                 .klen   = 32,
28810                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
28811                           "\x00\x00\x00\x00\x00\x00\x00\x00",
28812                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
28813                           "\x44\x44\x44\x44\x44\x44\x44\x44"
28814                           "\x44\x44\x44\x44\x44\x44\x44\x44"
28815                           "\x44\x44\x44\x44\x44\x44\x44\x44",
28816                 .ctext  = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
28817                           "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
28818                           "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
28819                           "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
28820                 .len    = 32,
28821         }, {
28822                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
28823                           "\x23\x53\x60\x28\x74\x71\x35\x26"
28824                           "\x31\x41\x59\x26\x53\x58\x97\x93"
28825                           "\x23\x84\x62\x64\x33\x83\x27\x95",
28826                 .klen   = 32,
28827                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
28828                           "\x00\x00\x00\x00\x00\x00\x00\x00",
28829                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
28830                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28831                           "\x10\x11\x12\x13\x14\x15\x16\x17"
28832                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
28833                           "\x20\x21\x22\x23\x24\x25\x26\x27"
28834                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
28835                           "\x30\x31\x32\x33\x34\x35\x36\x37"
28836                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
28837                           "\x40\x41\x42\x43\x44\x45\x46\x47"
28838                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
28839                           "\x50\x51\x52\x53\x54\x55\x56\x57"
28840                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
28841                           "\x60\x61\x62\x63\x64\x65\x66\x67"
28842                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
28843                           "\x70\x71\x72\x73\x74\x75\x76\x77"
28844                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
28845                           "\x80\x81\x82\x83\x84\x85\x86\x87"
28846                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
28847                           "\x90\x91\x92\x93\x94\x95\x96\x97"
28848                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
28849                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
28850                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
28851                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
28852                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
28853                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
28854                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
28855                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
28856                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
28857                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
28858                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
28859                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
28860                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
28861                           "\x00\x01\x02\x03\x04\x05\x06\x07"
28862                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28863                           "\x10\x11\x12\x13\x14\x15\x16\x17"
28864                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
28865                           "\x20\x21\x22\x23\x24\x25\x26\x27"
28866                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
28867                           "\x30\x31\x32\x33\x34\x35\x36\x37"
28868                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
28869                           "\x40\x41\x42\x43\x44\x45\x46\x47"
28870                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
28871                           "\x50\x51\x52\x53\x54\x55\x56\x57"
28872                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
28873                           "\x60\x61\x62\x63\x64\x65\x66\x67"
28874                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
28875                           "\x70\x71\x72\x73\x74\x75\x76\x77"
28876                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
28877                           "\x80\x81\x82\x83\x84\x85\x86\x87"
28878                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
28879                           "\x90\x91\x92\x93\x94\x95\x96\x97"
28880                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
28881                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
28882                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
28883                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
28884                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
28885                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
28886                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
28887                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
28888                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
28889                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
28890                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
28891                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
28892                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
28893                 .ctext  = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
28894                           "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
28895                           "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
28896                           "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
28897                           "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
28898                           "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
28899                           "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
28900                           "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
28901                           "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
28902                           "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
28903                           "\x08\xda\x76\x00\x65\xcf\x7b\x31"
28904                           "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
28905                           "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
28906                           "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
28907                           "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
28908                           "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
28909                           "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
28910                           "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
28911                           "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
28912                           "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
28913                           "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
28914                           "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
28915                           "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
28916                           "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
28917                           "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
28918                           "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
28919                           "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
28920                           "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
28921                           "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
28922                           "\x16\x31\xb2\x47\x91\x67\xaa\x28"
28923                           "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
28924                           "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
28925                           "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
28926                           "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
28927                           "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
28928                           "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
28929                           "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
28930                           "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
28931                           "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
28932                           "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
28933                           "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
28934                           "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
28935                           "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
28936                           "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
28937                           "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
28938                           "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
28939                           "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
28940                           "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
28941                           "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
28942                           "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
28943                           "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
28944                           "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
28945                           "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
28946                           "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
28947                           "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
28948                           "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
28949                           "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
28950                           "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
28951                           "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
28952                           "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
28953                           "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
28954                           "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
28955                           "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
28956                           "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
28957                 .len    = 512,
28958         }, {
28959                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
28960                           "\x23\x53\x60\x28\x74\x71\x35\x26"
28961                           "\x62\x49\x77\x57\x24\x70\x93\x69"
28962                           "\x99\x59\x57\x49\x66\x96\x76\x27"
28963                           "\x31\x41\x59\x26\x53\x58\x97\x93"
28964                           "\x23\x84\x62\x64\x33\x83\x27\x95"
28965                           "\x02\x88\x41\x97\x16\x93\x99\x37"
28966                           "\x51\x05\x82\x09\x74\x94\x45\x92",
28967                 .klen   = 64,
28968                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
28969                           "\x00\x00\x00\x00\x00\x00\x00\x00",
28970                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
28971                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28972                           "\x10\x11\x12\x13\x14\x15\x16\x17"
28973                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
28974                           "\x20\x21\x22\x23\x24\x25\x26\x27"
28975                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
28976                           "\x30\x31\x32\x33\x34\x35\x36\x37"
28977                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
28978                           "\x40\x41\x42\x43\x44\x45\x46\x47"
28979                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
28980                           "\x50\x51\x52\x53\x54\x55\x56\x57"
28981                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
28982                           "\x60\x61\x62\x63\x64\x65\x66\x67"
28983                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
28984                           "\x70\x71\x72\x73\x74\x75\x76\x77"
28985                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
28986                           "\x80\x81\x82\x83\x84\x85\x86\x87"
28987                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
28988                           "\x90\x91\x92\x93\x94\x95\x96\x97"
28989                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
28990                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
28991                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
28992                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
28993                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
28994                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
28995                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
28996                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
28997                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
28998                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
28999                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29000                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29001                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29002                           "\x00\x01\x02\x03\x04\x05\x06\x07"
29003                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29004                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29005                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29006                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29007                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29008                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29009                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29010                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29011                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29012                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29013                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29014                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29015                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29016                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29017                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29018                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29019                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29020                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29021                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29022                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29023                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29024                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29025                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29026                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29027                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29028                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29029                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29030                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29031                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29032                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29033                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
29034                 .ctext  = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
29035                           "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
29036                           "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
29037                           "\xf1\x74\xac\x96\x05\x7b\x32\xca"
29038                           "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
29039                           "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
29040                           "\x97\x07\x82\xf0\x07\x12\x38\x0a"
29041                           "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
29042                           "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
29043                           "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
29044                           "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
29045                           "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
29046                           "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
29047                           "\x41\x82\x0c\x45\x39\x35\xa8\x75"
29048                           "\x03\x29\x01\x84\x8c\xab\x48\xbe"
29049                           "\x11\x56\x22\x67\xb7\x67\x1a\x09"
29050                           "\xa1\x72\x25\x41\x3c\x39\x65\x80"
29051                           "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
29052                           "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
29053                           "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
29054                           "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
29055                           "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
29056                           "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
29057                           "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
29058                           "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
29059                           "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
29060                           "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
29061                           "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
29062                           "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
29063                           "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
29064                           "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
29065                           "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
29066                           "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
29067                           "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
29068                           "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
29069                           "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
29070                           "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
29071                           "\xef\x38\x52\x18\x0e\x29\x7e\xef"
29072                           "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
29073                           "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
29074                           "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
29075                           "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
29076                           "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
29077                           "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
29078                           "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
29079                           "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
29080                           "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
29081                           "\x21\x17\xf8\x59\x15\x24\x64\x22"
29082                           "\x57\x48\x80\xd5\x3d\x92\x30\x07"
29083                           "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
29084                           "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
29085                           "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
29086                           "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
29087                           "\x6b\x84\xf3\x00\xba\x52\x05\x02"
29088                           "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
29089                           "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
29090                           "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
29091                           "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
29092                           "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
29093                           "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
29094                           "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
29095                           "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
29096                           "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
29097                           "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
29098                 .len    = 512,
29099                 .also_non_np = 1,
29100                 .np     = 3,
29101                 .tap    = { 512 - 20, 4, 16 },
29102         },
29103 };
29104
29105 /*
29106  * SEED test vectors
29107  */
29108 static const struct cipher_testvec seed_tv_template[] = {
29109         {
29110                 .key    = zeroed_string,
29111                 .klen   = 16,
29112                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
29113                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
29114                 .ctext  = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
29115                           "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
29116                 .len    = 16,
29117         }, {
29118                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
29119                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
29120                 .klen   = 16,
29121                 .ptext  = zeroed_string,
29122                 .ctext  = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
29123                           "\x84\x48\x35\x97\xe4\x37\x0f\x43",
29124                 .len    = 16,
29125         }, {
29126                 .key    = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
29127                           "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
29128                 .klen   = 16,
29129                 .ptext  = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
29130                           "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
29131                 .ctext  = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
29132                           "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
29133                 .len    = 16,
29134         }, {
29135                 .key    = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
29136                           "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
29137                 .klen   = 16,
29138                 .ptext  = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
29139                           "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
29140                 .ctext  = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
29141                           "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
29142                 .len    = 16,
29143         }
29144 };
29145
29146 static const struct cipher_testvec salsa20_stream_tv_template[] = {
29147         /*
29148         * Testvectors from verified.test-vectors submitted to ECRYPT.
29149         * They are truncated to size 39, 64, 111, 129 to test a variety
29150         * of input length.
29151         */
29152         { /* Set 3, vector 0 */
29153                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
29154                         "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
29155                 .klen   = 16,
29156                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
29157                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29158                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29159                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29160                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29161                         "\x00\x00\x00\x00\x00\x00\x00",
29162                 .ctext  = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
29163                          "\x68\x02\x41\x0C\x68\x86\x88\x89"
29164                          "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
29165                          "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
29166                          "\x58\x3F\x52\x79\x70\xEB\xC1",
29167                 .len    = 39,
29168         }, { /* Set 5, vector 0 */
29169                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29170                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29171                 .klen   = 16,
29172                 .iv     = "\x80\x00\x00\x00\x00\x00\x00\x00",
29173                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29174                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29175                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29176                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29177                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29178                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29179                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29180                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29181                 .ctext  = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
29182                          "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
29183                          "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
29184                          "\x46\x26\xBF\x44\x3F\x21\x97\x76"
29185                          "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
29186                          "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
29187                          "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
29188                          "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
29189                 .len    = 64,
29190         }, { /* Set 3, vector 27 */
29191                 .key    = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
29192                         "\x23\x24\x25\x26\x27\x28\x29\x2A"
29193                         "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
29194                         "\x33\x34\x35\x36\x37\x38\x39\x3A",
29195                 .klen   = 32,
29196                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
29197                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29198                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29199                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29200                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29201                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29202                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29203                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29204                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29205                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29206                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29207                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29208                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29209                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29210                         "\x00\x00\x00\x00\x00\x00\x00",
29211                 .ctext  = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
29212                          "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
29213                          "\x87\xD9\x47\xF8\x28\x91\x35\x98"
29214                          "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
29215                          "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
29216                          "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
29217                          "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
29218                          "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
29219                          "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
29220                          "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
29221                          "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
29222                          "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
29223                          "\x95\x46\x45\x54\xE9\x75\x03\x08"
29224                          "\x44\xAF\xE5\x8A\x81\x12\x09",
29225                 .len    = 111,
29226         }, { /* Set 5, vector 27 */
29227                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29228                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29229                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29230                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29231                 .klen   = 32,
29232                 .iv     = "\x00\x00\x00\x10\x00\x00\x00\x00",
29233                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29234                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29235                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29236                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29237                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29238                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29239                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29240                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29241                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29242                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29243                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29244                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29245                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29246                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29247                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29248                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29249                         "\x00",
29250                 .ctext  = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
29251                          "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
29252                          "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
29253                          "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
29254                          "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
29255                          "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
29256                          "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
29257                          "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
29258                          "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
29259                          "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
29260                          "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
29261                          "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
29262                          "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
29263                          "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
29264                          "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
29265                          "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
29266                          "\x5A",
29267                 .len    = 129,
29268         }, { /* large test vector generated using Crypto++ */
29269                 .key =  "\x00\x01\x02\x03\x04\x05\x06\x07"
29270                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29271                         "\x10\x11\x12\x13\x14\x15\x16\x17"
29272                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
29273                 .klen = 32,
29274                 .iv =   "\x00\x00\x00\x00\x00\x00\x00\x00"
29275                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29276                 .ptext =
29277                         "\x00\x01\x02\x03\x04\x05\x06\x07"
29278                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29279                         "\x10\x11\x12\x13\x14\x15\x16\x17"
29280                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29281                         "\x20\x21\x22\x23\x24\x25\x26\x27"
29282                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29283                         "\x30\x31\x32\x33\x34\x35\x36\x37"
29284                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29285                         "\x40\x41\x42\x43\x44\x45\x46\x47"
29286                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29287                         "\x50\x51\x52\x53\x54\x55\x56\x57"
29288                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29289                         "\x60\x61\x62\x63\x64\x65\x66\x67"
29290                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29291                         "\x70\x71\x72\x73\x74\x75\x76\x77"
29292                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29293                         "\x80\x81\x82\x83\x84\x85\x86\x87"
29294                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29295                         "\x90\x91\x92\x93\x94\x95\x96\x97"
29296                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29297                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29298                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29299                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29300                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29301                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29302                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29303                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29304                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29305                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29306                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29307                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29308                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29309                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
29310                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
29311                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
29312                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
29313                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
29314                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
29315                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
29316                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
29317                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
29318                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
29319                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
29320                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
29321                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
29322                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
29323                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
29324                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
29325                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
29326                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
29327                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
29328                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
29329                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
29330                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
29331                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
29332                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
29333                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
29334                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
29335                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
29336                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
29337                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
29338                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
29339                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
29340                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
29341                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
29342                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
29343                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
29344                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
29345                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
29346                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
29347                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
29348                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
29349                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
29350                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
29351                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
29352                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
29353                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
29354                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
29355                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
29356                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
29357                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
29358                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
29359                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
29360                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
29361                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
29362                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
29363                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
29364                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
29365                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
29366                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
29367                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
29368                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
29369                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
29370                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
29371                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
29372                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
29373                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
29374                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
29375                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
29376                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
29377                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
29378                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
29379                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
29380                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
29381                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
29382                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
29383                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
29384                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
29385                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
29386                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
29387                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
29388                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
29389                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
29390                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
29391                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
29392                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
29393                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
29394                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
29395                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
29396                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
29397                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
29398                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
29399                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
29400                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
29401                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
29402                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
29403                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
29404                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
29405                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
29406                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
29407                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
29408                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
29409                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
29410                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
29411                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
29412                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
29413                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
29414                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
29415                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
29416                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
29417                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
29418                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
29419                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
29420                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
29421                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
29422                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
29423                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
29424                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
29425                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
29426                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
29427                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
29428                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
29429                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
29430                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
29431                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
29432                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
29433                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
29434                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
29435                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
29436                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
29437                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
29438                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
29439                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
29440                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
29441                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
29442                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
29443                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
29444                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
29445                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
29446                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
29447                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
29448                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
29449                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
29450                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
29451                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
29452                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
29453                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
29454                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
29455                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
29456                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
29457                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
29458                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
29459                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
29460                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
29461                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
29462                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
29463                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
29464                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
29465                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
29466                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
29467                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
29468                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
29469                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
29470                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
29471                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
29472                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
29473                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
29474                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
29475                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
29476                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
29477                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
29478                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
29479                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
29480                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
29481                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
29482                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
29483                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
29484                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
29485                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
29486                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
29487                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
29488                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
29489                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
29490                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
29491                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
29492                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
29493                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
29494                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
29495                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
29496                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
29497                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
29498                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
29499                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
29500                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
29501                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
29502                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
29503                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
29504                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
29505                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
29506                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
29507                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
29508                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
29509                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
29510                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
29511                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
29512                         "\x28\x37\x46\x55\x64\x73\x82\x91"
29513                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
29514                         "\x18\x27\x36\x45\x54\x63\x72\x81"
29515                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
29516                         "\x08\x17\x26\x35\x44\x53\x62\x71"
29517                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
29518                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
29519                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
29520                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
29521                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
29522                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
29523                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
29524                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
29525                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
29526                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
29527                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
29528                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
29529                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
29530                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
29531                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
29532                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
29533                         "\x00\x11\x22\x33\x44\x55\x66\x77"
29534                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
29535                         "\x10\x21\x32\x43\x54\x65\x76\x87"
29536                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
29537                         "\x20\x31\x42\x53\x64\x75\x86\x97"
29538                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
29539                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
29540                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
29541                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
29542                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
29543                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
29544                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
29545                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
29546                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
29547                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
29548                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
29549                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
29550                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
29551                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
29552                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
29553                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
29554                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
29555                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
29556                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
29557                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
29558                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
29559                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
29560                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
29561                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
29562                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
29563                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
29564                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
29565                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
29566                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
29567                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
29568                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
29569                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
29570                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
29571                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
29572                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
29573                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
29574                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
29575                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
29576                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
29577                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
29578                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
29579                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
29580                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
29581                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
29582                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
29583                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
29584                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
29585                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
29586                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
29587                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
29588                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
29589                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
29590                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
29591                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
29592                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
29593                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
29594                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
29595                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
29596                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
29597                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
29598                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
29599                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
29600                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
29601                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
29602                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
29603                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
29604                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
29605                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
29606                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
29607                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
29608                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
29609                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
29610                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
29611                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
29612                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
29613                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
29614                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
29615                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
29616                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
29617                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
29618                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
29619                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
29620                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
29621                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
29622                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
29623                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
29624                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
29625                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
29626                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
29627                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
29628                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
29629                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
29630                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
29631                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
29632                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
29633                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
29634                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
29635                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
29636                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
29637                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
29638                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
29639                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
29640                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
29641                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
29642                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
29643                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
29644                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
29645                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
29646                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
29647                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
29648                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
29649                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
29650                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
29651                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
29652                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
29653                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
29654                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
29655                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
29656                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
29657                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
29658                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
29659                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
29660                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
29661                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
29662                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
29663                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
29664                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
29665                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
29666                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
29667                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
29668                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
29669                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
29670                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
29671                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
29672                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
29673                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
29674                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
29675                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
29676                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
29677                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
29678                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
29679                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
29680                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
29681                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
29682                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
29683                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
29684                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
29685                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
29686                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
29687                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
29688                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
29689                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
29690                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
29691                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
29692                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
29693                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
29694                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
29695                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
29696                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
29697                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
29698                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
29699                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
29700                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
29701                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
29702                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
29703                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
29704                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
29705                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
29706                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
29707                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
29708                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
29709                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
29710                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
29711                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
29712                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
29713                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
29714                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
29715                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
29716                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
29717                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
29718                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
29719                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
29720                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
29721                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
29722                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
29723                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
29724                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
29725                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
29726                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
29727                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
29728                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
29729                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
29730                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
29731                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
29732                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
29733                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
29734                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
29735                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
29736                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
29737                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
29738                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
29739                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
29740                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
29741                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
29742                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
29743                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
29744                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
29745                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
29746                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
29747                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
29748                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
29749                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
29750                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
29751                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
29752                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
29753                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
29754                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
29755                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
29756                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
29757                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
29758                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
29759                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
29760                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
29761                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
29762                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
29763                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
29764                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
29765                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
29766                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
29767                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
29768                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
29769                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
29770                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
29771                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
29772                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
29773                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
29774                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
29775                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
29776                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
29777                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
29778                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
29779                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
29780                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
29781                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
29782                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
29783                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
29784                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
29785                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
29786                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
29787                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
29788                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
29789                         "\x00\x21\x42\x63",
29790                 .ctext =
29791                         "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
29792                         "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
29793                         "\x29\x01\xce\x98\x55\x53\xf9\x0c"
29794                         "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
29795                         "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
29796                         "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
29797                         "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
29798                         "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
29799                         "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
29800                         "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
29801                         "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
29802                         "\xbb\xde\x56\x86\xab\x65\x21\x30"
29803                         "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
29804                         "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
29805                         "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
29806                         "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
29807                         "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
29808                         "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
29809                         "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
29810                         "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
29811                         "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
29812                         "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
29813                         "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
29814                         "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
29815                         "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
29816                         "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
29817                         "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
29818                         "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
29819                         "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
29820                         "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
29821                         "\x45\xff\x3f\xce\x55\xf6\x95\x10"
29822                         "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
29823                         "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
29824                         "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
29825                         "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
29826                         "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
29827                         "\x62\x08\x18\x7a\x25\x49\x28\xac"
29828                         "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
29829                         "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
29830                         "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
29831                         "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
29832                         "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
29833                         "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
29834                         "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
29835                         "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
29836                         "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
29837                         "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
29838                         "\x33\xee\x14\x19\x22\x52\x89\xa7"
29839                         "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
29840                         "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
29841                         "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
29842                         "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
29843                         "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
29844                         "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
29845                         "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
29846                         "\x04\x07\x08\x52\xe6\xc0\xda\x93"
29847                         "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
29848                         "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
29849                         "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
29850                         "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
29851                         "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
29852                         "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
29853                         "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
29854                         "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
29855                         "\x5a\x90\xae\x75\x0a\x74\x18\x89"
29856                         "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
29857                         "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
29858                         "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
29859                         "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
29860                         "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
29861                         "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
29862                         "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
29863                         "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
29864                         "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
29865                         "\x49\x97\x33\xab\x36\x14\x0a\x70"
29866                         "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
29867                         "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
29868                         "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
29869                         "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
29870                         "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
29871                         "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
29872                         "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
29873                         "\x47\x13\x28\x73\x3c\xbb\x00\x90"
29874                         "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
29875                         "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
29876                         "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
29877                         "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
29878                         "\xad\x04\x07\xae\x22\x90\x4a\x93"
29879                         "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
29880                         "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
29881                         "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
29882                         "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
29883                         "\x53\xf9\x80\x10\xde\x80\xa2\x41"
29884                         "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
29885                         "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
29886                         "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
29887                         "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
29888                         "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
29889                         "\xde\xff\x07\x44\xdd\x56\x1b\xad"
29890                         "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
29891                         "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
29892                         "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
29893                         "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
29894                         "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
29895                         "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
29896                         "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
29897                         "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
29898                         "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
29899                         "\x23\xf8\x66\x18\x14\x28\x34\x0f"
29900                         "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
29901                         "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
29902                         "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
29903                         "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
29904                         "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
29905                         "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
29906                         "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
29907                         "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
29908                         "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
29909                         "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
29910                         "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
29911                         "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
29912                         "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
29913                         "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
29914                         "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
29915                         "\xca\x8e\x61\x87\xde\xad\x80\xd2"
29916                         "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
29917                         "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
29918                         "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
29919                         "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
29920                         "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
29921                         "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
29922                         "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
29923                         "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
29924                         "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
29925                         "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
29926                         "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
29927                         "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
29928                         "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
29929                         "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
29930                         "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
29931                         "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
29932                         "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
29933                         "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
29934                         "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
29935                         "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
29936                         "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
29937                         "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
29938                         "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
29939                         "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
29940                         "\x54\xda\x24\x6a\xc4\x41\x65\x46"
29941                         "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
29942                         "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
29943                         "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
29944                         "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
29945                         "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
29946                         "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
29947                         "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
29948                         "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
29949                         "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
29950                         "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
29951                         "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
29952                         "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
29953                         "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
29954                         "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
29955                         "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
29956                         "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
29957                         "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
29958                         "\xef\xcc\xa7\xec\xab\x43\x09\x18"
29959                         "\xd3\xab\x68\xd1\x07\x99\x44\x47"
29960                         "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
29961                         "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
29962                         "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
29963                         "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
29964                         "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
29965                         "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
29966                         "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
29967                         "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
29968                         "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
29969                         "\x71\x6e\x9f\x58\x15\x67\x72\x87"
29970                         "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
29971                         "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
29972                         "\xba\x41\x54\xac\xf0\xfc\x59\x12"
29973                         "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
29974                         "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
29975                         "\x2e\x53\x49\x97\x94\x33\xae\x40"
29976                         "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
29977                         "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
29978                         "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
29979                         "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
29980                         "\xce\x87\xad\xcc\x72\x05\x00\x29"
29981                         "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
29982                         "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
29983                         "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
29984                         "\xac\xc0\x79\x50\x69\xca\x59\x32"
29985                         "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
29986                         "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
29987                         "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
29988                         "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
29989                         "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
29990                         "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
29991                         "\x05\x68\x6b\xab\xe3\x41\x49\xed"
29992                         "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
29993                         "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
29994                         "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
29995                         "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
29996                         "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
29997                         "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
29998                         "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
29999                         "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
30000                         "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
30001                         "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
30002                         "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
30003                         "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
30004                         "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
30005                         "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
30006                         "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
30007                         "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
30008                         "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
30009                         "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
30010                         "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
30011                         "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
30012                         "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
30013                         "\x85\x75\xe6\x43\xf6\x87\x08\x68"
30014                         "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
30015                         "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
30016                         "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
30017                         "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
30018                         "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
30019                         "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
30020                         "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
30021                         "\xaf\x55\xeb\x22\xac\x93\x68\x32"
30022                         "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
30023                         "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
30024                         "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
30025                         "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
30026                         "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
30027                         "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
30028                         "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
30029                         "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
30030                         "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
30031                         "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
30032                         "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
30033                         "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
30034                         "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
30035                         "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
30036                         "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
30037                         "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
30038                         "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
30039                         "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
30040                         "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
30041                         "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
30042                         "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
30043                         "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
30044                         "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
30045                         "\x38\x55\xab\x33\x26\xef\x9f\x43"
30046                         "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
30047                         "\x58\x09\x09\x1b\xc3\x65\x46\x46"
30048                         "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
30049                         "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
30050                         "\x63\x86\xf2\x03\x67\x45\xd2\x72"
30051                         "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
30052                         "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
30053                         "\x2b\x82\x39\xbd\x69\x54\xed\x62"
30054                         "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
30055                         "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
30056                         "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
30057                         "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
30058                         "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
30059                         "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
30060                         "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
30061                         "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
30062                         "\x55\xad\xa4\xd1\x22\x54\x70\x94"
30063                         "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
30064                         "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
30065                         "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
30066                         "\x62\x36\x43\xb2\x82\x15\x75\x50"
30067                         "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
30068                         "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
30069                         "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
30070                         "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
30071                         "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
30072                         "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
30073                         "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
30074                         "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
30075                         "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
30076                         "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
30077                         "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
30078                         "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
30079                         "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
30080                         "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
30081                         "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
30082                         "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
30083                         "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
30084                         "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
30085                         "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
30086                         "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
30087                         "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
30088                         "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
30089                         "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
30090                         "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
30091                         "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
30092                         "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
30093                         "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
30094                         "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
30095                         "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
30096                         "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
30097                         "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
30098                         "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
30099                         "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
30100                         "\x42\x19\x23\x7d\xc8\x73\xee\x25"
30101                         "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
30102                         "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
30103                         "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
30104                         "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
30105                         "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
30106                         "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
30107                         "\xdb\x87\xee\xef\x55\x89\x2a\x59"
30108                         "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
30109                         "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
30110                         "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
30111                         "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
30112                         "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
30113                         "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
30114                         "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
30115                         "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
30116                         "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
30117                         "\xae\xab\x86\x09\x89\xc9\xc2\x40"
30118                         "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
30119                         "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
30120                         "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
30121                         "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
30122                         "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
30123                         "\x95\xd9\x34\x34\x86\xc6\x41\x94"
30124                         "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
30125                         "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
30126                         "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
30127                         "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
30128                         "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
30129                         "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
30130                         "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
30131                         "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
30132                         "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
30133                         "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
30134                         "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
30135                         "\xa7\x33\x34\x86\xca\xe4\x96\x23"
30136                         "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
30137                         "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
30138                         "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
30139                         "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
30140                         "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
30141                         "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
30142                         "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
30143                         "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
30144                         "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
30145                         "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
30146                         "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
30147                         "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
30148                         "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
30149                         "\x68\xc8\x7f\x51\x22\x42\xef\x49"
30150                         "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
30151                         "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
30152                         "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
30153                         "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
30154                         "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
30155                         "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
30156                         "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
30157                         "\x73\x2e\x71\x79\x16\x06\x63\x28"
30158                         "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
30159                         "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
30160                         "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
30161                         "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
30162                         "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
30163                         "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
30164                         "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
30165                         "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
30166                         "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
30167                         "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
30168                         "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
30169                         "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
30170                         "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
30171                         "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
30172                         "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
30173                         "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
30174                         "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
30175                         "\x19\x07\xaf\x90\x62\x5c\x68\x98"
30176                         "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
30177                         "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
30178                         "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
30179                         "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
30180                         "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
30181                         "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
30182                         "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
30183                         "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
30184                         "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
30185                         "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
30186                         "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
30187                         "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
30188                         "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
30189                         "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
30190                         "\x21\x33\x44\xfe\x7f\x35\x32\x93"
30191                         "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
30192                         "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
30193                         "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
30194                         "\x64\xf0\x48\xe5\x57\x99\xee\x75"
30195                         "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
30196                         "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
30197                         "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
30198                         "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
30199                         "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
30200                         "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
30201                         "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
30202                         "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
30203                         "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
30204                         "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
30205                         "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
30206                         "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
30207                         "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
30208                         "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
30209                         "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
30210                         "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
30211                         "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
30212                         "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
30213                         "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
30214                         "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
30215                         "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
30216                         "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
30217                         "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
30218                         "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
30219                         "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
30220                         "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
30221                         "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
30222                         "\x56\xf5\x4e\x01\x35\x27\x45\x77"
30223                         "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
30224                         "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
30225                         "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
30226                         "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
30227                         "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
30228                         "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
30229                         "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
30230                         "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
30231                         "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
30232                         "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
30233                         "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
30234                         "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
30235                         "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
30236                         "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
30237                         "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
30238                         "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
30239                         "\x87\x8f\x03\x21\x28\x95\x0c\x89"
30240                         "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
30241                         "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
30242                         "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
30243                         "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
30244                         "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
30245                         "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
30246                         "\x85\x73\x78\x45\x20\x7f\xae\x13"
30247                         "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
30248                         "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
30249                         "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
30250                         "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
30251                         "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
30252                         "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
30253                         "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
30254                         "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
30255                         "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
30256                         "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
30257                         "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
30258                         "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
30259                         "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
30260                         "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
30261                         "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
30262                         "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
30263                         "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
30264                         "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
30265                         "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
30266                         "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
30267                         "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
30268                         "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
30269                         "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
30270                         "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
30271                         "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
30272                         "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
30273                         "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
30274                         "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
30275                         "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
30276                         "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
30277                         "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
30278                         "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
30279                         "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
30280                         "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
30281                         "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
30282                         "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
30283                         "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
30284                         "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
30285                         "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
30286                         "\x6e\x12\x17\x72\x63\x57\xc7\xba"
30287                         "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
30288                         "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
30289                         "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
30290                         "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
30291                         "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
30292                         "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
30293                         "\x0c\x24\x43\x31\x40\x57\xf1\x72"
30294                         "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
30295                         "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
30296                         "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
30297                         "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
30298                         "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
30299                         "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
30300                         "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
30301                         "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
30302                         "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
30303                         "\xaf\xdf\x11\x95",
30304                 .len    = 4100,
30305                 .np     = 2,
30306                 .tap    = { 4064, 36 },
30307         },
30308 };
30309
30310 static const struct cipher_testvec chacha20_tv_template[] = {
30311         { /* RFC7539 A.2. Test Vector #1 */
30312                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
30313                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30314                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30315                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30316                 .klen   = 32,
30317                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30318                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30319                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
30320                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30321                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30322                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30323                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30324                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30325                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30326                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30327                 .ctext  = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
30328                           "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
30329                           "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
30330                           "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
30331                           "\xda\x41\x59\x7c\x51\x57\x48\x8d"
30332                           "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
30333                           "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
30334                           "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
30335                 .len    = 64,
30336         }, { /* RFC7539 A.2. Test Vector #2 */
30337                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
30338                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30339                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30340                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30341                 .klen   = 32,
30342                 .iv     = "\x01\x00\x00\x00\x00\x00\x00\x00"
30343                           "\x00\x00\x00\x00\x00\x00\x00\x02",
30344                 .ptext  = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
30345                           "\x69\x73\x73\x69\x6f\x6e\x20\x74"
30346                           "\x6f\x20\x74\x68\x65\x20\x49\x45"
30347                           "\x54\x46\x20\x69\x6e\x74\x65\x6e"
30348                           "\x64\x65\x64\x20\x62\x79\x20\x74"
30349                           "\x68\x65\x20\x43\x6f\x6e\x74\x72"
30350                           "\x69\x62\x75\x74\x6f\x72\x20\x66"
30351                           "\x6f\x72\x20\x70\x75\x62\x6c\x69"
30352                           "\x63\x61\x74\x69\x6f\x6e\x20\x61"
30353                           "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
30354                           "\x20\x70\x61\x72\x74\x20\x6f\x66"
30355                           "\x20\x61\x6e\x20\x49\x45\x54\x46"
30356                           "\x20\x49\x6e\x74\x65\x72\x6e\x65"
30357                           "\x74\x2d\x44\x72\x61\x66\x74\x20"
30358                           "\x6f\x72\x20\x52\x46\x43\x20\x61"
30359                           "\x6e\x64\x20\x61\x6e\x79\x20\x73"
30360                           "\x74\x61\x74\x65\x6d\x65\x6e\x74"
30361                           "\x20\x6d\x61\x64\x65\x20\x77\x69"
30362                           "\x74\x68\x69\x6e\x20\x74\x68\x65"
30363                           "\x20\x63\x6f\x6e\x74\x65\x78\x74"
30364                           "\x20\x6f\x66\x20\x61\x6e\x20\x49"
30365                           "\x45\x54\x46\x20\x61\x63\x74\x69"
30366                           "\x76\x69\x74\x79\x20\x69\x73\x20"
30367                           "\x63\x6f\x6e\x73\x69\x64\x65\x72"
30368                           "\x65\x64\x20\x61\x6e\x20\x22\x49"
30369                           "\x45\x54\x46\x20\x43\x6f\x6e\x74"
30370                           "\x72\x69\x62\x75\x74\x69\x6f\x6e"
30371                           "\x22\x2e\x20\x53\x75\x63\x68\x20"
30372                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30373                           "\x74\x73\x20\x69\x6e\x63\x6c\x75"
30374                           "\x64\x65\x20\x6f\x72\x61\x6c\x20"
30375                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30376                           "\x74\x73\x20\x69\x6e\x20\x49\x45"
30377                           "\x54\x46\x20\x73\x65\x73\x73\x69"
30378                           "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
30379                           "\x77\x65\x6c\x6c\x20\x61\x73\x20"
30380                           "\x77\x72\x69\x74\x74\x65\x6e\x20"
30381                           "\x61\x6e\x64\x20\x65\x6c\x65\x63"
30382                           "\x74\x72\x6f\x6e\x69\x63\x20\x63"
30383                           "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
30384                           "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
30385                           "\x64\x65\x20\x61\x74\x20\x61\x6e"
30386                           "\x79\x20\x74\x69\x6d\x65\x20\x6f"
30387                           "\x72\x20\x70\x6c\x61\x63\x65\x2c"
30388                           "\x20\x77\x68\x69\x63\x68\x20\x61"
30389                           "\x72\x65\x20\x61\x64\x64\x72\x65"
30390                           "\x73\x73\x65\x64\x20\x74\x6f",
30391                 .ctext  = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
30392                           "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
30393                           "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
30394                           "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
30395                           "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
30396                           "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
30397                           "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
30398                           "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
30399                           "\x40\x42\xe0\x27\x85\xec\xec\xfa"
30400                           "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
30401                           "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
30402                           "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
30403                           "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
30404                           "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
30405                           "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
30406                           "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
30407                           "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
30408                           "\xd6\x62\xab\x05\x26\x91\xca\x66"
30409                           "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
30410                           "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
30411                           "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
30412                           "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
30413                           "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
30414                           "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
30415                           "\x08\x71\xcd\xac\x63\x89\x39\xe2"
30416                           "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
30417                           "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
30418                           "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
30419                           "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
30420                           "\x37\x20\xfc\x88\xdc\x95\xed\x84"
30421                           "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
30422                           "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
30423                           "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
30424                           "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
30425                           "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
30426                           "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
30427                           "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
30428                           "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
30429                           "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
30430                           "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
30431                           "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
30432                           "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
30433                           "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
30434                           "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
30435                           "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
30436                           "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
30437                           "\xc4\xfd\x80\x6c\x22\xf2\x21",
30438                 .len    = 375,
30439                 .also_non_np = 1,
30440                 .np     = 3,
30441                 .tap    = { 375 - 20, 4, 16 },
30442
30443         }, { /* RFC7539 A.2. Test Vector #3 */
30444                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
30445                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
30446                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
30447                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
30448                 .klen   = 32,
30449                 .iv     = "\x2a\x00\x00\x00\x00\x00\x00\x00"
30450                           "\x00\x00\x00\x00\x00\x00\x00\x02",
30451                 .ptext  = "\x27\x54\x77\x61\x73\x20\x62\x72"
30452                           "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
30453                           "\x6e\x64\x20\x74\x68\x65\x20\x73"
30454                           "\x6c\x69\x74\x68\x79\x20\x74\x6f"
30455                           "\x76\x65\x73\x0a\x44\x69\x64\x20"
30456                           "\x67\x79\x72\x65\x20\x61\x6e\x64"
30457                           "\x20\x67\x69\x6d\x62\x6c\x65\x20"
30458                           "\x69\x6e\x20\x74\x68\x65\x20\x77"
30459                           "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
30460                           "\x20\x6d\x69\x6d\x73\x79\x20\x77"
30461                           "\x65\x72\x65\x20\x74\x68\x65\x20"
30462                           "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
30463                           "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
30464                           "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
30465                           "\x72\x61\x74\x68\x73\x20\x6f\x75"
30466                           "\x74\x67\x72\x61\x62\x65\x2e",
30467                 .ctext  = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
30468                           "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
30469                           "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
30470                           "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
30471                           "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
30472                           "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
30473                           "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
30474                           "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
30475                           "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
30476                           "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
30477                           "\x1a\x55\x32\x05\x57\x16\xea\xd6"
30478                           "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
30479                           "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
30480                           "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
30481                           "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
30482                           "\x75\x7a\x79\x7a\xc1\x88\xd1",
30483                 .len    = 127,
30484         }, { /* Self-made test vector for long data */
30485                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
30486                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
30487                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
30488                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
30489                 .klen   = 32,
30490                 .iv     = "\x1c\x00\x00\x00\x00\x00\x00\x00"
30491                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30492                 .ptext  = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
30493                           "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
30494                           "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
30495                           "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
30496                           "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
30497                           "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
30498                           "\x01\xc6\x67\xda\x03\x91\x18\x90"
30499                           "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
30500                           "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
30501                           "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
30502                           "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
30503                           "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
30504                           "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
30505                           "\x33\x97\xc3\x77\xba\xc5\x70\xde"
30506                           "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
30507                           "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
30508                           "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
30509                           "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
30510                           "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
30511                           "\x79\x49\x41\xf4\x58\x18\xcb\x86"
30512                           "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
30513                           "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
30514                           "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
30515                           "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
30516                           "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
30517                           "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
30518                           "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
30519                           "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
30520                           "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
30521                           "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
30522                           "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
30523                           "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
30524                           "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
30525                           "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
30526                           "\x24\x74\x75\x7f\x95\x81\xb7\x30"
30527                           "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
30528                           "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
30529                           "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
30530                           "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
30531                           "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
30532                           "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
30533                           "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
30534                           "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
30535                           "\x49\x46\x00\x88\x22\x8d\xce\xea"
30536                           "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
30537                           "\x72\x11\xf5\x50\x73\x04\x40\x47"
30538                           "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
30539                           "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
30540                           "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
30541                           "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
30542                           "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
30543                           "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
30544                           "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
30545                           "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
30546                           "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
30547                           "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
30548                           "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
30549                           "\x8b\x10\x67\xa3\x01\x57\x94\x25"
30550                           "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
30551                           "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
30552                           "\x58\xb1\x47\x90\xfe\x42\x21\x72"
30553                           "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
30554                           "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
30555                           "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
30556                           "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
30557                           "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
30558                           "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
30559                           "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
30560                           "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
30561                           "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
30562                           "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
30563                           "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
30564                           "\x65\x69\x8a\x45\x29\xef\x74\x85"
30565                           "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
30566                           "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
30567                           "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
30568                           "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
30569                           "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
30570                           "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
30571                           "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
30572                           "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
30573                           "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
30574                           "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
30575                           "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
30576                           "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
30577                           "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
30578                           "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
30579                           "\x10\x26\x38\x07\xe5\xc7\x36\x80"
30580                           "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
30581                           "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
30582                           "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
30583                           "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
30584                           "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
30585                           "\x83\x66\x80\x47\x80\xe8\xfd\x35"
30586                           "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
30587                           "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
30588                           "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
30589                           "\x25\x94\x10\x5f\x40\x00\x64\x99"
30590                           "\xdc\xae\xd7\x21\x09\x78\x50\x15"
30591                           "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
30592                           "\x87\x6e\x6d\xab\xde\x08\x51\x16"
30593                           "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
30594                           "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
30595                           "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
30596                           "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
30597                           "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
30598                           "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
30599                           "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
30600                           "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
30601                           "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
30602                           "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
30603                           "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
30604                           "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
30605                           "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
30606                           "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
30607                           "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
30608                           "\xb9\x83\x90\xef\x20\x59\x46\xff"
30609                           "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
30610                           "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
30611                           "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
30612                           "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
30613                           "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
30614                           "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
30615                           "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
30616                           "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
30617                           "\x94\x97\xea\xdd\x58\x9e\xae\x76"
30618                           "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
30619                           "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
30620                           "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
30621                           "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
30622                           "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
30623                           "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
30624                           "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
30625                           "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
30626                           "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
30627                           "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
30628                           "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
30629                           "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
30630                           "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
30631                           "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
30632                           "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
30633                           "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
30634                           "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
30635                           "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
30636                           "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
30637                           "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
30638                           "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
30639                           "\xac\xf3\x13\x53\x27\x45\xaf\x64"
30640                           "\x46\xdc\xea\x23\xda\x97\xd1\xab"
30641                           "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
30642                           "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
30643                           "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
30644                           "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
30645                           "\xca\x34\x83\x27\x10\x5b\x68\x45"
30646                           "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
30647                           "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
30648                           "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
30649                           "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
30650                           "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
30651                           "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
30652                           "\x72",
30653                 .ctext  = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
30654                           "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
30655                           "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
30656                           "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
30657                           "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
30658                           "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
30659                           "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
30660                           "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
30661                           "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
30662                           "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
30663                           "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
30664                           "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
30665                           "\x33\x4a\x71\x15\xfe\xee\x12\x54"
30666                           "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
30667                           "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
30668                           "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
30669                           "\x57\x0e\x94\x17\x26\x39\xbb\x54"
30670                           "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
30671                           "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
30672                           "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
30673                           "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
30674                           "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
30675                           "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
30676                           "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
30677                           "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
30678                           "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
30679                           "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
30680                           "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
30681                           "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
30682                           "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
30683                           "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
30684                           "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
30685                           "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
30686                           "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
30687                           "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
30688                           "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
30689                           "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
30690                           "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
30691                           "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
30692                           "\xae\xe7\x61\x32\xef\x41\x6c\x75"
30693                           "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
30694                           "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
30695                           "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
30696                           "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
30697                           "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
30698                           "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
30699                           "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
30700                           "\xc1\x22\xf3\x79\xae\x95\x78\x66"
30701                           "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
30702                           "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
30703                           "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
30704                           "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
30705                           "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
30706                           "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
30707                           "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
30708                           "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
30709                           "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
30710                           "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
30711                           "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
30712                           "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
30713                           "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
30714                           "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
30715                           "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
30716                           "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
30717                           "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
30718                           "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
30719                           "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
30720                           "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
30721                           "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
30722                           "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
30723                           "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
30724                           "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
30725                           "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
30726                           "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
30727                           "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
30728                           "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
30729                           "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
30730                           "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
30731                           "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
30732                           "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
30733                           "\x54\x1c\x34\x72\xde\x0c\x68\x39"
30734                           "\x9d\x32\xa5\x75\x92\x13\x32\xea"
30735                           "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
30736                           "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
30737                           "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
30738                           "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
30739                           "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
30740                           "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
30741                           "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
30742                           "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
30743                           "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
30744                           "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
30745                           "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
30746                           "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
30747                           "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
30748                           "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
30749                           "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
30750                           "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
30751                           "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
30752                           "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
30753                           "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
30754                           "\x79\x61\x23\xe0\xa2\x99\x73\x55"
30755                           "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
30756                           "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
30757                           "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
30758                           "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
30759                           "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
30760                           "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
30761                           "\x48\x56\xaa\x85\x22\xd8\x36\xed"
30762                           "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
30763                           "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
30764                           "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
30765                           "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
30766                           "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
30767                           "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
30768                           "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
30769                           "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
30770                           "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
30771                           "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
30772                           "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
30773                           "\xec\x83\x92\x99\x87\x47\xe0\x7c"
30774                           "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
30775                           "\x98\xb0\x87\xb6\x86\x13\x64\x33"
30776                           "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
30777                           "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
30778                           "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
30779                           "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
30780                           "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
30781                           "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
30782                           "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
30783                           "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
30784                           "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
30785                           "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
30786                           "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
30787                           "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
30788                           "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
30789                           "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
30790                           "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
30791                           "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
30792                           "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
30793                           "\x5f\xae\x25\x84\x22\x90\x5f\x26"
30794                           "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
30795                           "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
30796                           "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
30797                           "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
30798                           "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
30799                           "\x74\x06\x89\x0e\x90\xeb\x85\xff"
30800                           "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
30801                           "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
30802                           "\x02\x85\x68\xd0\x03\x12\xde\x92"
30803                           "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
30804                           "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
30805                           "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
30806                           "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
30807                           "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
30808                           "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
30809                           "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
30810                           "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
30811                           "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
30812                           "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
30813                           "\x98",
30814                 .len    = 1281,
30815                 .also_non_np = 1,
30816                 .np     = 3,
30817                 .tap    = { 1200, 1, 80 },
30818         },
30819 };
30820
30821 /*
30822  * CTS (Cipher Text Stealing) mode tests
30823  */
30824 static const struct cipher_testvec cts_mode_tv_template[] = {
30825         { /* from rfc3962 */
30826                 .klen   = 16,
30827                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
30828                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
30829                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
30830                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
30831                           "\x20",
30832                 .len    = 17,
30833                 .ctext  = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
30834                           "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
30835                           "\x97",
30836         }, {
30837                 .klen   = 16,
30838                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
30839                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
30840                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
30841                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
30842                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
30843                           "\x20\x47\x61\x75\x27\x73\x20",
30844                 .len    = 31,
30845                 .ctext  = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
30846                           "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
30847                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
30848                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
30849         }, {
30850                 .klen   = 16,
30851                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
30852                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
30853                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
30854                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
30855                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
30856                           "\x20\x47\x61\x75\x27\x73\x20\x43",
30857                 .len    = 32,
30858                 .ctext  = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
30859                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
30860                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
30861                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
30862         }, {
30863                 .klen   = 16,
30864                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
30865                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
30866                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
30867                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
30868                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
30869                           "\x20\x47\x61\x75\x27\x73\x20\x43"
30870                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
30871                           "\x70\x6c\x65\x61\x73\x65\x2c",
30872                 .len    = 47,
30873                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
30874                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
30875                           "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
30876                           "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
30877                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
30878                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
30879         }, {
30880                 .klen   = 16,
30881                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
30882                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
30883                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
30884                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
30885                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
30886                           "\x20\x47\x61\x75\x27\x73\x20\x43"
30887                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
30888                           "\x70\x6c\x65\x61\x73\x65\x2c\x20",
30889                 .len    = 48,
30890                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
30891                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
30892                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
30893                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
30894                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
30895                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
30896         }, {
30897                 .klen   = 16,
30898                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
30899                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
30900                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
30901                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
30902                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
30903                           "\x20\x47\x61\x75\x27\x73\x20\x43"
30904                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
30905                           "\x70\x6c\x65\x61\x73\x65\x2c\x20"
30906                           "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
30907                           "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
30908                 .len    = 64,
30909                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
30910                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
30911                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
30912                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
30913                           "\x48\x07\xef\xe8\x36\xee\x89\xa5"
30914                           "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
30915                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
30916                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
30917         }
30918 };
30919
30920 /*
30921  * Compression stuff.
30922  */
30923 #define COMP_BUF_SIZE           512
30924
30925 struct comp_testvec {
30926         int inlen, outlen;
30927         char input[COMP_BUF_SIZE];
30928         char output[COMP_BUF_SIZE];
30929 };
30930
30931 /*
30932  * Deflate test vectors (null-terminated strings).
30933  * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
30934  */
30935
30936 static const struct comp_testvec deflate_comp_tv_template[] = {
30937         {
30938                 .inlen  = 70,
30939                 .outlen = 38,
30940                 .input  = "Join us now and share the software "
30941                         "Join us now and share the software ",
30942                 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
30943                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
30944                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
30945                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
30946                           "\x71\xbc\x08\x2b\x01\x00",
30947         }, {
30948                 .inlen  = 191,
30949                 .outlen = 122,
30950                 .input  = "This document describes a compression method based on the DEFLATE"
30951                         "compression algorithm.  This document defines the application of "
30952                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
30953                 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
30954                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
30955                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
30956                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
30957                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
30958                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
30959                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
30960                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
30961                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
30962                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
30963                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
30964                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
30965                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
30966                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
30967                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
30968                           "\xfa\x02",
30969         },
30970 };
30971
30972 static const struct comp_testvec deflate_decomp_tv_template[] = {
30973         {
30974                 .inlen  = 122,
30975                 .outlen = 191,
30976                 .input  = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
30977                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
30978                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
30979                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
30980                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
30981                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
30982                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
30983                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
30984                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
30985                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
30986                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
30987                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
30988                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
30989                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
30990                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
30991                           "\xfa\x02",
30992                 .output = "This document describes a compression method based on the DEFLATE"
30993                         "compression algorithm.  This document defines the application of "
30994                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
30995         }, {
30996                 .inlen  = 38,
30997                 .outlen = 70,
30998                 .input  = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
30999                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
31000                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
31001                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
31002                           "\x71\xbc\x08\x2b\x01\x00",
31003                 .output = "Join us now and share the software "
31004                         "Join us now and share the software ",
31005         },
31006 };
31007
31008 static const struct comp_testvec zlib_deflate_comp_tv_template[] = {
31009         {
31010                 .inlen  = 70,
31011                 .outlen = 44,
31012                 .input  = "Join us now and share the software "
31013                         "Join us now and share the software ",
31014                 .output = "\x78\x5e\xf3\xca\xcf\xcc\x53\x28"
31015                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31016                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31017                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31018                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31019                           "\x7c\x65\x19\x3d",
31020         }, {
31021                 .inlen  = 191,
31022                 .outlen = 129,
31023                 .input  = "This document describes a compression method based on the DEFLATE"
31024                         "compression algorithm.  This document defines the application of "
31025                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31026                 .output = "\x78\x5e\x5d\xce\x41\x0a\xc3\x30"
31027                           "\x0c\x04\xc0\xaf\xec\x0b\xf2\x87"
31028                           "\xd2\xa6\x50\xe8\xc1\x07\x7f\x40"
31029                           "\xb1\x95\x5a\x60\x5b\xc6\x56\x0f"
31030                           "\xfd\x7d\x93\x1e\x42\xe8\x51\xec"
31031                           "\xee\x20\x9f\x64\x20\x6a\x78\x17"
31032                           "\xae\x86\xc8\x23\x74\x59\x78\x80"
31033                           "\x10\xb4\xb4\xce\x63\x88\x56\x14"
31034                           "\xb6\xa4\x11\x0b\x0d\x8e\xd8\x6e"
31035                           "\x4b\x8c\xdb\x7c\x7f\x5e\xfc\x7c"
31036                           "\xae\x51\x7e\x69\x17\x4b\x65\x02"
31037                           "\xfc\x1f\xbc\x4a\xdd\xd8\x7d\x48"
31038                           "\xad\x65\x09\x64\x3b\xac\xeb\xd9"
31039                           "\xc2\x01\xc0\xf4\x17\x3c\x1c\x1c"
31040                           "\x7d\xb2\x52\xc4\xf5\xf4\x8f\xeb"
31041                           "\x6a\x1a\x34\x4f\x5f\x2e\x32\x45"
31042                           "\x4e",
31043         },
31044 };
31045
31046 static const struct comp_testvec zlib_deflate_decomp_tv_template[] = {
31047         {
31048                 .inlen  = 128,
31049                 .outlen = 191,
31050                 .input  = "\x78\x9c\x5d\x8d\x31\x0e\xc2\x30"
31051                           "\x10\x04\xbf\xb2\x2f\xc8\x1f\x10"
31052                           "\x04\x09\x89\xc2\x85\x3f\x70\xb1"
31053                           "\x2f\xf8\x24\xdb\x67\xd9\x47\xc1"
31054                           "\xef\x49\x68\x12\x51\xae\x76\x67"
31055                           "\xd6\x27\x19\x88\x1a\xde\x85\xab"
31056                           "\x21\xf2\x08\x5d\x16\x1e\x20\x04"
31057                           "\x2d\xad\xf3\x18\xa2\x15\x85\x2d"
31058                           "\x69\xc4\x42\x83\x23\xb6\x6c\x89"
31059                           "\x71\x9b\xef\xcf\x8b\x9f\xcf\x33"
31060                           "\xca\x2f\xed\x62\xa9\x4c\x80\xff"
31061                           "\x13\xaf\x52\x37\xed\x0e\x52\x6b"
31062                           "\x59\x02\xd9\x4e\xe8\x7a\x76\x1d"
31063                           "\x02\x98\xfe\x8a\x87\x83\xa3\x4f"
31064                           "\x56\x8a\xb8\x9e\x8e\x5c\x57\xd3"
31065                           "\xa0\x79\xfa\x02\x2e\x32\x45\x4e",
31066                 .output = "This document describes a compression method based on the DEFLATE"
31067                         "compression algorithm.  This document defines the application of "
31068                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31069         }, {
31070                 .inlen  = 44,
31071                 .outlen = 70,
31072                 .input  = "\x78\x9c\xf3\xca\xcf\xcc\x53\x28"
31073                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31074                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31075                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31076                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31077                           "\x7c\x65\x19\x3d",
31078                 .output = "Join us now and share the software "
31079                         "Join us now and share the software ",
31080         },
31081 };
31082
31083 /*
31084  * LZO test vectors (null-terminated strings).
31085  */
31086 static const struct comp_testvec lzo_comp_tv_template[] = {
31087         {
31088                 .inlen  = 70,
31089                 .outlen = 57,
31090                 .input  = "Join us now and share the software "
31091                         "Join us now and share the software ",
31092                 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
31093                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31094                           "\x64\x20\x73\x68\x61\x72\x65\x20"
31095                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
31096                           "\x77\x70\x01\x32\x88\x00\x0c\x65"
31097                           "\x20\x74\x68\x65\x20\x73\x6f\x66"
31098                           "\x74\x77\x61\x72\x65\x20\x11\x00"
31099                           "\x00",
31100         }, {
31101                 .inlen  = 159,
31102                 .outlen = 131,
31103                 .input  = "This document describes a compression method based on the LZO "
31104                         "compression algorithm.  This document defines the application of "
31105                         "the LZO algorithm used in UBIFS.",
31106                 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
31107                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31108                           "\x64\x65\x73\x63\x72\x69\x62\x65"
31109                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31110                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31111                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31112                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
31113                           "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
31114                           "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
31115                           "\x72\x69\x74\x68\x6d\x2e\x20\x20"
31116                           "\x2e\x54\x01\x03\x66\x69\x6e\x65"
31117                           "\x73\x20\x74\x06\x05\x61\x70\x70"
31118                           "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
31119                           "\x66\x88\x02\x60\x09\x27\xf0\x00"
31120                           "\x0c\x20\x75\x73\x65\x64\x20\x69"
31121                           "\x6e\x20\x55\x42\x49\x46\x53\x2e"
31122                           "\x11\x00\x00",
31123         },
31124 };
31125
31126 static const struct comp_testvec lzo_decomp_tv_template[] = {
31127         {
31128                 .inlen  = 133,
31129                 .outlen = 159,
31130                 .input  = "\x00\x2b\x54\x68\x69\x73\x20\x64"
31131                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31132                           "\x64\x65\x73\x63\x72\x69\x62\x65"
31133                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31134                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31135                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31136                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
31137                           "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
31138                           "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
31139                           "\x69\x74\x68\x6d\x2e\x20\x20\x54"
31140                           "\x68\x69\x73\x2a\x54\x01\x02\x66"
31141                           "\x69\x6e\x65\x73\x94\x06\x05\x61"
31142                           "\x70\x70\x6c\x69\x63\x61\x74\x76"
31143                           "\x0a\x6f\x66\x88\x02\x60\x09\x27"
31144                           "\xf0\x00\x0c\x20\x75\x73\x65\x64"
31145                           "\x20\x69\x6e\x20\x55\x42\x49\x46"
31146                           "\x53\x2e\x11\x00\x00",
31147                 .output = "This document describes a compression method based on the LZO "
31148                         "compression algorithm.  This document defines the application of "
31149                         "the LZO algorithm used in UBIFS.",
31150         }, {
31151                 .inlen  = 46,
31152                 .outlen = 70,
31153                 .input  = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
31154                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31155                           "\x64\x20\x73\x68\x61\x72\x65\x20"
31156                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
31157                           "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
31158                           "\x3d\x88\x00\x11\x00\x00",
31159                 .output = "Join us now and share the software "
31160                         "Join us now and share the software ",
31161         },
31162 };
31163
31164 /*
31165  * Michael MIC test vectors from IEEE 802.11i
31166  */
31167 #define MICHAEL_MIC_TEST_VECTORS 6
31168
31169 static const struct hash_testvec michael_mic_tv_template[] = {
31170         {
31171                 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
31172                 .ksize = 8,
31173                 .plaintext = zeroed_string,
31174                 .psize = 0,
31175                 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31176         },
31177         {
31178                 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31179                 .ksize = 8,
31180                 .plaintext = "M",
31181                 .psize = 1,
31182                 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31183         },
31184         {
31185                 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31186                 .ksize = 8,
31187                 .plaintext = "Mi",
31188                 .psize = 2,
31189                 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31190         },
31191         {
31192                 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31193                 .ksize = 8,
31194                 .plaintext = "Mic",
31195                 .psize = 3,
31196                 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31197         },
31198         {
31199                 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31200                 .ksize = 8,
31201                 .plaintext = "Mich",
31202                 .psize = 4,
31203                 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31204         },
31205         {
31206                 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31207                 .ksize = 8,
31208                 .plaintext = "Michael",
31209                 .psize = 7,
31210                 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
31211         }
31212 };
31213
31214 /*
31215  * CRC32 test vectors
31216  */
31217 static const struct hash_testvec crc32_tv_template[] = {
31218         {
31219                 .psize = 0,
31220                 .digest = "\x00\x00\x00\x00",
31221         },
31222         {
31223                 .plaintext = "abcdefg",
31224                 .psize = 7,
31225                 .digest = "\xd8\xb5\x46\xac",
31226         },
31227         {
31228                 .key = "\x87\xa9\xcb\xed",
31229                 .ksize = 4,
31230                 .psize = 0,
31231                 .digest = "\x87\xa9\xcb\xed",
31232         },
31233         {
31234                 .key = "\xff\xff\xff\xff",
31235                 .ksize = 4,
31236                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31237                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31238                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31239                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31240                              "\x21\x22\x23\x24\x25\x26\x27\x28",
31241                 .psize = 40,
31242                 .digest = "\x3a\xdf\x4b\xb0",
31243         },
31244         {
31245                 .key = "\xff\xff\xff\xff",
31246                 .ksize = 4,
31247                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31248                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31249                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31250                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31251                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31252                 .psize = 40,
31253                 .digest = "\xa9\x7a\x7f\x7b",
31254         },
31255         {
31256                 .key = "\xff\xff\xff\xff",
31257                 .ksize = 4,
31258                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31259                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31260                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31261                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31262                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31263                 .psize = 40,
31264                 .digest = "\xba\xd3\xf8\x1c",
31265         },
31266         {
31267                 .key = "\xff\xff\xff\xff",
31268                 .ksize = 4,
31269                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31270                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31271                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31272                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31273                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31274                 .psize = 40,
31275                 .digest = "\xa8\xa9\xc2\x02",
31276         },
31277         {
31278                 .key = "\xff\xff\xff\xff",
31279                 .ksize = 4,
31280                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31281                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31282                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31283                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31284                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31285                 .psize = 40,
31286                 .digest = "\x27\xf0\x57\xe2",
31287         },
31288         {
31289                 .key = "\xff\xff\xff\xff",
31290                 .ksize = 4,
31291                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31292                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31293                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31294                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31295                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31296                 .psize = 40,
31297                 .digest = "\x49\x78\x10\x08",
31298         },
31299         {
31300                 .key = "\x80\xea\xd3\xf1",
31301                 .ksize = 4,
31302                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31303                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31304                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31305                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31306                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31307                 .psize = 40,
31308                 .digest = "\x9a\xb1\xdc\xf0",
31309         },
31310         {
31311                 .key = "\xf3\x4a\x1d\x5d",
31312                 .ksize = 4,
31313                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31314                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31315                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31316                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31317                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31318                 .psize = 40,
31319                 .digest = "\xb4\x97\xcc\xd4",
31320         },
31321         {
31322                 .key = "\x2e\x80\x04\x59",
31323                 .ksize = 4,
31324                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31325                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31326                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31327                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31328                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31329                 .psize = 40,
31330                 .digest = "\x67\x9b\xfa\x79",
31331         },
31332         {
31333                 .key = "\xa6\xcc\x19\x85",
31334                 .ksize = 4,
31335                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31336                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31337                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31338                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31339                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31340                 .psize = 40,
31341                 .digest = "\x24\xb5\x16\xef",
31342         },
31343         {
31344                 .key = "\x41\xfc\xfe\x2d",
31345                 .ksize = 4,
31346                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31347                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31348                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31349                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31350                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31351                 .psize = 40,
31352                 .digest = "\x15\x94\x80\x39",
31353         },
31354         {
31355                 .key = "\xff\xff\xff\xff",
31356                 .ksize = 4,
31357                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31358                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31359                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31360                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31361                              "\x21\x22\x23\x24\x25\x26\x27\x28"
31362                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31363                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31364                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31365                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31366                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
31367                              "\x51\x52\x53\x54\x55\x56\x57\x58"
31368                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31369                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31370                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31371                              "\x71\x72\x73\x74\x75\x76\x77\x78"
31372                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31373                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31374                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31375                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31376                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
31377                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31378                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31379                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31380                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31381                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
31382                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31383                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31384                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31385                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31386                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31387                 .psize = 240,
31388                 .digest = "\x6c\xc6\x56\xde",
31389                 .np = 2,
31390                 .tap = { 31, 209 }
31391         }, {
31392                 .key = "\xff\xff\xff\xff",
31393                 .ksize = 4,
31394                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
31395                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
31396                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
31397                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
31398                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
31399                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
31400                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
31401                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
31402                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
31403                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
31404                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
31405                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
31406                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
31407                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
31408                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
31409                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
31410                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
31411                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
31412                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
31413                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
31414                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
31415                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
31416                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
31417                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
31418                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
31419                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
31420                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
31421                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
31422                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
31423                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
31424                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
31425                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
31426                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
31427                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
31428                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
31429                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
31430                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
31431                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
31432                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
31433                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
31434                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
31435                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
31436                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
31437                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
31438                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
31439                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
31440                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
31441                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
31442                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
31443                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
31444                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
31445                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
31446                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
31447                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
31448                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
31449                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
31450                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
31451                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
31452                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
31453                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
31454                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
31455                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
31456                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
31457                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
31458                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
31459                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
31460                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
31461                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
31462                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
31463                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
31464                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
31465                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
31466                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
31467                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
31468                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
31469                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
31470                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
31471                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
31472                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
31473                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
31474                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
31475                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
31476                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
31477                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
31478                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
31479                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
31480                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
31481                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
31482                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
31483                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
31484                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
31485                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
31486                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
31487                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
31488                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
31489                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
31490                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
31491                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
31492                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
31493                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
31494                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
31495                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
31496                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
31497                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
31498                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
31499                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
31500                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
31501                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
31502                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
31503                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
31504                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
31505                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
31506                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
31507                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
31508                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
31509                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
31510                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
31511                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
31512                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
31513                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
31514                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
31515                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
31516                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
31517                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
31518                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
31519                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
31520                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
31521                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
31522                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
31523                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
31524                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
31525                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
31526                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
31527                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
31528                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
31529                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
31530                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
31531                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
31532                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
31533                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
31534                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
31535                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
31536                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
31537                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
31538                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
31539                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
31540                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
31541                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
31542                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
31543                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
31544                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
31545                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
31546                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
31547                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
31548                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
31549                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
31550                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
31551                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
31552                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
31553                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
31554                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
31555                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
31556                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
31557                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
31558                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
31559                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
31560                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
31561                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
31562                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
31563                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
31564                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
31565                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
31566                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
31567                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
31568                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
31569                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
31570                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
31571                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
31572                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
31573                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
31574                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
31575                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
31576                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
31577                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
31578                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
31579                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
31580                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
31581                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
31582                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
31583                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
31584                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
31585                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
31586                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
31587                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
31588                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
31589                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
31590                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
31591                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
31592                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
31593                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
31594                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
31595                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
31596                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
31597                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
31598                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
31599                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
31600                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
31601                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
31602                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
31603                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
31604                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
31605                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
31606                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
31607                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
31608                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
31609                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
31610                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
31611                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
31612                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
31613                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
31614                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
31615                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
31616                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
31617                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
31618                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
31619                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
31620                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
31621                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
31622                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
31623                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
31624                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
31625                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
31626                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
31627                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
31628                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
31629                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
31630                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
31631                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
31632                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
31633                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
31634                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
31635                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
31636                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
31637                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
31638                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
31639                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
31640                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
31641                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
31642                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
31643                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
31644                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
31645                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
31646                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
31647                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
31648                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
31649                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
31650                 .psize = 2048,
31651                 .digest = "\xfb\x3a\x7a\xda",
31652         }
31653 };
31654
31655 /*
31656  * CRC32C test vectors
31657  */
31658 static const struct hash_testvec crc32c_tv_template[] = {
31659         {
31660                 .psize = 0,
31661                 .digest = "\x00\x00\x00\x00",
31662         },
31663         {
31664                 .plaintext = "abcdefg",
31665                 .psize = 7,
31666                 .digest = "\x41\xf4\x27\xe6",
31667         },
31668         {
31669                 .key = "\x87\xa9\xcb\xed",
31670                 .ksize = 4,
31671                 .psize = 0,
31672                 .digest = "\x78\x56\x34\x12",
31673         },
31674         {
31675                 .key = "\xff\xff\xff\xff",
31676                 .ksize = 4,
31677                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31678                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31679                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31680                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31681                              "\x21\x22\x23\x24\x25\x26\x27\x28",
31682                 .psize = 40,
31683                 .digest = "\x7f\x15\x2c\x0e",
31684         },
31685         {
31686                 .key = "\xff\xff\xff\xff",
31687                 .ksize = 4,
31688                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31689                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31690                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31691                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31692                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31693                 .psize = 40,
31694                 .digest = "\xf6\xeb\x80\xe9",
31695         },
31696         {
31697                 .key = "\xff\xff\xff\xff",
31698                 .ksize = 4,
31699                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31700                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31701                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31702                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31703                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31704                 .psize = 40,
31705                 .digest = "\xed\xbd\x74\xde",
31706         },
31707         {
31708                 .key = "\xff\xff\xff\xff",
31709                 .ksize = 4,
31710                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31711                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31712                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31713                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31714                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31715                 .psize = 40,
31716                 .digest = "\x62\xc8\x79\xd5",
31717         },
31718         {
31719                 .key = "\xff\xff\xff\xff",
31720                 .ksize = 4,
31721                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31722                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31723                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31724                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31725                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31726                 .psize = 40,
31727                 .digest = "\xd0\x9a\x97\xba",
31728         },
31729         {
31730                 .key = "\xff\xff\xff\xff",
31731                 .ksize = 4,
31732                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31733                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31734                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31735                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31736                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31737                 .psize = 40,
31738                 .digest = "\x13\xd9\x29\x2b",
31739         },
31740         {
31741                 .key = "\x80\xea\xd3\xf1",
31742                 .ksize = 4,
31743                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31744                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31745                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31746                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31747                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31748                 .psize = 40,
31749                 .digest = "\x0c\xb5\xe2\xa2",
31750         },
31751         {
31752                 .key = "\xf3\x4a\x1d\x5d",
31753                 .ksize = 4,
31754                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31755                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31756                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31757                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31758                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31759                 .psize = 40,
31760                 .digest = "\xd1\x7f\xfb\xa6",
31761         },
31762         {
31763                 .key = "\x2e\x80\x04\x59",
31764                 .ksize = 4,
31765                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31766                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31767                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31768                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31769                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31770                 .psize = 40,
31771                 .digest = "\x59\x33\xe6\x7a",
31772         },
31773         {
31774                 .key = "\xa6\xcc\x19\x85",
31775                 .ksize = 4,
31776                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31777                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31778                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31779                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31780                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31781                 .psize = 40,
31782                 .digest = "\xbe\x03\x01\xd2",
31783         },
31784         {
31785                 .key = "\x41\xfc\xfe\x2d",
31786                 .ksize = 4,
31787                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31788                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31789                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31790                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31791                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31792                 .psize = 40,
31793                 .digest = "\x75\xd3\xc5\x24",
31794         },
31795         {
31796                 .key = "\xff\xff\xff\xff",
31797                 .ksize = 4,
31798                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31799                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31800                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31801                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31802                              "\x21\x22\x23\x24\x25\x26\x27\x28"
31803                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31804                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31805                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31806                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31807                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
31808                              "\x51\x52\x53\x54\x55\x56\x57\x58"
31809                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31810                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31811                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31812                              "\x71\x72\x73\x74\x75\x76\x77\x78"
31813                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31814                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31815                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31816                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31817                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
31818                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31819                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31820                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31821                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31822                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
31823                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31824                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31825                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31826                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31827                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31828                 .psize = 240,
31829                 .digest = "\x75\xd3\xc5\x24",
31830                 .np = 2,
31831                 .tap = { 31, 209 }
31832         }, {
31833                 .key = "\xff\xff\xff\xff",
31834                 .ksize = 4,
31835                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
31836                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
31837                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
31838                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
31839                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
31840                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
31841                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
31842                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
31843                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
31844                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
31845                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
31846                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
31847                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
31848                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
31849                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
31850                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
31851                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
31852                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
31853                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
31854                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
31855                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
31856                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
31857                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
31858                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
31859                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
31860                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
31861                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
31862                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
31863                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
31864                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
31865                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
31866                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
31867                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
31868                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
31869                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
31870                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
31871                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
31872                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
31873                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
31874                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
31875                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
31876                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
31877                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
31878                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
31879                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
31880                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
31881                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
31882                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
31883                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
31884                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
31885                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
31886                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
31887                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
31888                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
31889                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
31890                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
31891                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
31892                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
31893                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
31894                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
31895                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
31896                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
31897                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
31898                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
31899                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
31900                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
31901                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
31902                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
31903                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
31904                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
31905                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
31906                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
31907                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
31908                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
31909                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
31910                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
31911                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
31912                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
31913                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
31914                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
31915                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
31916                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
31917                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
31918                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
31919                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
31920                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
31921                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
31922                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
31923                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
31924                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
31925                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
31926                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
31927                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
31928                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
31929                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
31930                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
31931                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
31932                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
31933                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
31934                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
31935                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
31936                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
31937                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
31938                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
31939                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
31940                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
31941                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
31942                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
31943                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
31944                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
31945                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
31946                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
31947                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
31948                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
31949                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
31950                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
31951                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
31952                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
31953                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
31954                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
31955                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
31956                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
31957                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
31958                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
31959                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
31960                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
31961                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
31962                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
31963                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
31964                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
31965                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
31966                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
31967                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
31968                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
31969                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
31970                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
31971                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
31972                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
31973                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
31974                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
31975                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
31976                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
31977                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
31978                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
31979                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
31980                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
31981                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
31982                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
31983                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
31984                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
31985                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
31986                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
31987                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
31988                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
31989                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
31990                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
31991                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
31992                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
31993                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
31994                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
31995                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
31996                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
31997                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
31998                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
31999                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
32000                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
32001                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
32002                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
32003                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
32004                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
32005                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
32006                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
32007                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
32008                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
32009                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
32010                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
32011                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
32012                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
32013                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
32014                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
32015                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
32016                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
32017                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
32018                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
32019                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
32020                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
32021                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
32022                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
32023                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
32024                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
32025                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
32026                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
32027                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
32028                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
32029                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
32030                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
32031                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
32032                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
32033                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
32034                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
32035                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
32036                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
32037                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
32038                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
32039                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
32040                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
32041                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
32042                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
32043                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
32044                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
32045                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
32046                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
32047                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
32048                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
32049                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
32050                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
32051                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
32052                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
32053                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
32054                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
32055                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
32056                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
32057                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
32058                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
32059                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
32060                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
32061                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
32062                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
32063                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
32064                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
32065                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
32066                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
32067                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
32068                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
32069                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
32070                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
32071                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
32072                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
32073                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
32074                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
32075                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
32076                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
32077                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
32078                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
32079                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
32080                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
32081                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
32082                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
32083                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
32084                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
32085                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
32086                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
32087                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
32088                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
32089                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
32090                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
32091                 .psize = 2048,
32092                 .digest = "\xec\x26\x4d\x95",
32093         }
32094 };
32095
32096 static const struct comp_testvec lz4_comp_tv_template[] = {
32097         {
32098                 .inlen  = 255,
32099                 .outlen = 218,
32100                 .input  = "LZ4 is lossless compression algorithm, providing"
32101                          " compression speed at 400 MB/s per core, scalable "
32102                          "with multi-cores CPU. It features an extremely fast "
32103                          "decoder, with speed in multiple GB/s per core, "
32104                          "typically reaching RAM speed limits on multi-core "
32105                          "systems.",
32106                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32107                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32108                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32109                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32110                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32111                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32112                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32113                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32114                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32115                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32116                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32117                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32118                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32119                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32120                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32121                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32122                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32123
32124         },
32125 };
32126
32127 static const struct comp_testvec lz4_decomp_tv_template[] = {
32128         {
32129                 .inlen  = 218,
32130                 .outlen = 255,
32131                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32132                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32133                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32134                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32135                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32136                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32137                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32138                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32139                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32140                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32141                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32142                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32143                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32144                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32145                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32146                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32147                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32148                 .output = "LZ4 is lossless compression algorithm, providing"
32149                          " compression speed at 400 MB/s per core, scalable "
32150                          "with multi-cores CPU. It features an extremely fast "
32151                          "decoder, with speed in multiple GB/s per core, "
32152                          "typically reaching RAM speed limits on multi-core "
32153                          "systems.",
32154         },
32155 };
32156
32157 static const struct comp_testvec lz4hc_comp_tv_template[] = {
32158         {
32159                 .inlen  = 255,
32160                 .outlen = 216,
32161                 .input  = "LZ4 is lossless compression algorithm, providing"
32162                          " compression speed at 400 MB/s per core, scalable "
32163                          "with multi-cores CPU. It features an extremely fast "
32164                          "decoder, with speed in multiple GB/s per core, "
32165                          "typically reaching RAM speed limits on multi-core "
32166                          "systems.",
32167                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32168                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32169                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32170                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32171                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32172                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32173                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32174                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32175                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32176                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32177                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32178                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32179                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32180                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32181                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32182                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32183                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32184
32185         },
32186 };
32187
32188 static const struct comp_testvec lz4hc_decomp_tv_template[] = {
32189         {
32190                 .inlen  = 216,
32191                 .outlen = 255,
32192                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32193                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32194                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32195                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32196                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32197                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32198                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32199                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32200                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32201                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32202                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32203                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32204                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32205                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32206                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32207                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32208                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32209                 .output = "LZ4 is lossless compression algorithm, providing"
32210                          " compression speed at 400 MB/s per core, scalable "
32211                          "with multi-cores CPU. It features an extremely fast "
32212                          "decoder, with speed in multiple GB/s per core, "
32213                          "typically reaching RAM speed limits on multi-core "
32214                          "systems.",
32215         },
32216 };
32217
32218 static const struct comp_testvec zstd_comp_tv_template[] = {
32219         {
32220                 .inlen  = 68,
32221                 .outlen = 39,
32222                 .input  = "The algorithm is zstd. "
32223                           "The algorithm is zstd. "
32224                           "The algorithm is zstd.",
32225                 .output = "\x28\xb5\x2f\xfd\x00\x50\xf5\x00\x00\xb8\x54\x68\x65"
32226                           "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
32227                           "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
32228                           ,
32229         },
32230         {
32231                 .inlen  = 244,
32232                 .outlen = 151,
32233                 .input  = "zstd, short for Zstandard, is a fast lossless "
32234                           "compression algorithm, targeting real-time "
32235                           "compression scenarios at zlib-level and better "
32236                           "compression ratios. The zstd compression library "
32237                           "provides in-memory compression and decompression "
32238                           "functions.",
32239                 .output = "\x28\xb5\x2f\xfd\x00\x50\x75\x04\x00\x42\x4b\x1e\x17"
32240                           "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
32241                           "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
32242                           "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
32243                           "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
32244                           "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
32245                           "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
32246                           "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
32247                           "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
32248                           "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
32249                           "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
32250                           "\x20\xa9\x0e\x82\xb9\x43\x45\x01",
32251         },
32252 };
32253
32254 static const struct comp_testvec zstd_decomp_tv_template[] = {
32255         {
32256                 .inlen  = 43,
32257                 .outlen = 68,
32258                 .input  = "\x28\xb5\x2f\xfd\x04\x50\xf5\x00\x00\xb8\x54\x68\x65"
32259                           "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
32260                           "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
32261                           "\x6b\xf4\x13\x35",
32262                 .output = "The algorithm is zstd. "
32263                           "The algorithm is zstd. "
32264                           "The algorithm is zstd.",
32265         },
32266         {
32267                 .inlen  = 155,
32268                 .outlen = 244,
32269                 .input  = "\x28\xb5\x2f\xfd\x04\x50\x75\x04\x00\x42\x4b\x1e\x17"
32270                           "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
32271                           "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
32272                           "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
32273                           "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
32274                           "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
32275                           "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
32276                           "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
32277                           "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
32278                           "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
32279                           "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
32280                           "\x20\xa9\x0e\x82\xb9\x43\x45\x01\xaa\x6d\xda\x0d",
32281                 .output = "zstd, short for Zstandard, is a fast lossless "
32282                           "compression algorithm, targeting real-time "
32283                           "compression scenarios at zlib-level and better "
32284                           "compression ratios. The zstd compression library "
32285                           "provides in-memory compression and decompression "
32286                           "functions.",
32287         },
32288 };
32289 #endif  /* _CRYPTO_TESTMGR_H */