Merge tag 'v4.19-rc5' of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds...
[platform/kernel/linux-starfive.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         },
5596 };
5597
5598 /*
5599  * DES test vectors.
5600  */
5601 static const struct cipher_testvec des_tv_template[] = {
5602         { /* From Applied Cryptography */
5603                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5604                 .klen   = 8,
5605                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5606                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5607                 .len    = 8,
5608         }, { /* Same key, different plaintext block */
5609                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5610                 .klen   = 8,
5611                 .ptext  = "\x22\x33\x44\x55\x66\x77\x88\x99",
5612                 .ctext  = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5613                 .len    = 8,
5614         }, { /* Sbox test from NBS */
5615                 .key    = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
5616                 .klen   = 8,
5617                 .ptext  = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
5618                 .ctext  = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5619                 .len    = 8,
5620         }, { /* Three blocks */
5621                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5622                 .klen   = 8,
5623                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5624                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5625                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
5626                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5627                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5628                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
5629                 .len    = 24,
5630         }, { /* Weak key */
5631                 .fail   = true,
5632                 .wk     = 1,
5633                 .key    = "\x01\x01\x01\x01\x01\x01\x01\x01",
5634                 .klen   = 8,
5635                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5636                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5637                 .len    = 8,
5638         }, { /* Two blocks -- for testing encryption across pages */
5639                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5640                 .klen   = 8,
5641                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5642                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5643                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5644                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5645                 .len    = 16,
5646                 .np     = 2,
5647                 .tap    = { 8, 8 }
5648         }, {
5649                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5650                 .klen   = 8,
5651                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5652                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
5653                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5654                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5655                 .len    = 16,
5656                 .np     = 2,
5657                 .tap    = { 8, 8 }
5658         }, {
5659                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5660                 .klen   = 8,
5661                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5662                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
5663                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5664                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5665                 .len    = 16,
5666                 .np     = 3,
5667                 .tap    = { 3, 12, 1 }
5668         }, { /* Four blocks -- for testing encryption with chunking */
5669                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5670                 .klen   = 8,
5671                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5672                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5673                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
5674                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5675                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5676                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5677                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
5678                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5679                 .len    = 32,
5680                 .np     = 3,
5681                 .tap    = { 14, 10, 8 }
5682         }, {
5683                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5684                 .klen   = 8,
5685                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5686                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5687                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
5688                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5689                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5690                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
5691                 .len    = 24,
5692                 .np     = 4,
5693                 .tap    = { 2, 1, 3, 18 }
5694         }, {
5695                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5696                 .klen   = 8,
5697                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5698                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5699                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5700                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5701                 .len    = 16,
5702                 .np     = 5,
5703                 .tap    = { 2, 2, 2, 2, 8 }
5704         }, {
5705                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5706                 .klen   = 8,
5707                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5708                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5709                 .len    = 8,
5710                 .np     = 8,
5711                 .tap    = { 1, 1, 1, 1, 1, 1, 1, 1 }
5712         }, { /* Generated with Crypto++ */
5713                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5714                 .klen   = 8,
5715                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5716                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5717                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5718                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5719                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5720                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5721                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5722                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5723                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5724                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5725                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5726                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5727                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5728                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5729                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5730                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5731                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5732                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5733                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5734                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5735                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5736                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5737                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5738                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5739                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5740                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5741                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5742                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5743                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5744                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5745                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5746                 .ctext  = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
5747                           "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
5748                           "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
5749                           "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
5750                           "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
5751                           "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
5752                           "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
5753                           "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
5754                           "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
5755                           "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
5756                           "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
5757                           "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
5758                           "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
5759                           "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
5760                           "\x2E\x51\x16\xCA\x09\x89\x54\x62"
5761                           "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
5762                           "\x62\xF0\x02\x58\x83\xAF\x30\x87"
5763                           "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
5764                           "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
5765                           "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
5766                           "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
5767                           "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
5768                           "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
5769                           "\xE9\x95\x61\x74\x12\xED\x07\xD7"
5770                           "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
5771                           "\x51\x96\x16\xF7\x94\x61\xB8\x87"
5772                           "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
5773                           "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
5774                           "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
5775                           "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
5776                           "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
5777                 .len    = 248,
5778                 .also_non_np = 1,
5779                 .np     = 3,
5780                 .tap    = { 248 - 10, 2, 8 },
5781         },
5782 };
5783
5784 static const struct cipher_testvec des_cbc_tv_template[] = {
5785         { /* From OpenSSL */
5786                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5787                 .klen   = 8,
5788                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5789                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5790                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5791                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5792                 .ctext  = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5793                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5794                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5795                 .len    = 24,
5796         }, { /* FIPS Pub 81 */
5797                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5798                 .klen   = 8,
5799                 .iv     = "\x12\x34\x56\x78\x90\xab\xcd\xef",
5800                 .ptext  = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
5801                 .ctext  = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5802                 .len    = 8,
5803         }, {
5804                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5805                 .klen   = 8,
5806                 .iv     = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5807                 .ptext  = "\x68\x65\x20\x74\x69\x6d\x65\x20",
5808                 .ctext  = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5809                 .len    = 8,
5810         }, {
5811                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5812                 .klen   = 8,
5813                 .iv     = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5814                 .ptext  = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5815                 .ctext  = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5816                 .len    = 8,
5817                 .np     = 2,
5818                 .tap    = { 4, 4 },
5819                 .also_non_np = 1,
5820         }, { /* Copy of openssl vector for chunk testing */
5821              /* From OpenSSL */
5822                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5823                 .klen   = 8,
5824                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5825                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5826                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5827                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5828                 .ctext  = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5829                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5830                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5831                 .len    = 24,
5832                 .np     = 2,
5833                 .tap    = { 13, 11 }
5834         }, { /* Generated with Crypto++ */
5835                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5836                 .klen   = 8,
5837                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5838                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5839                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5840                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5841                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5842                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5843                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5844                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5845                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5846                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5847                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5848                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5849                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5850                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5851                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5852                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5853                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5854                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5855                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5856                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5857                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5858                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5859                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5860                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5861                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5862                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5863                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5864                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5865                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5866                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5867                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5868                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5869                 .ctext  = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
5870                           "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5871                           "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5872                           "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5873                           "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5874                           "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5875                           "\x81\x72\x74\xDE\x30\x19\x69\x49"
5876                           "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5877                           "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5878                           "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5879                           "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5880                           "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5881                           "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5882                           "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5883                           "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5884                           "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5885                           "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5886                           "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5887                           "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5888                           "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5889                           "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5890                           "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5891                           "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5892                           "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5893                           "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5894                           "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5895                           "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5896                           "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5897                           "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5898                           "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5899                           "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5900                 .len    = 248,
5901                 .also_non_np = 1,
5902                 .np     = 3,
5903                 .tap    = { 248 - 10, 2, 8 },
5904         },
5905 };
5906
5907 static const struct cipher_testvec des_ctr_tv_template[] = {
5908         { /* Generated with Crypto++ */
5909                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5910                 .klen   = 8,
5911                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5912                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5913                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5914                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5915                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5916                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5917                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5918                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5919                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5920                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5921                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5922                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5923                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5924                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5925                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5926                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5927                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5928                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5929                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5930                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5931                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5932                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5933                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5934                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5935                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5936                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5937                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5938                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5939                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5940                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5941                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5942                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5943                 .ctext  = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5944                           "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5945                           "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5946                           "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5947                           "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5948                           "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5949                           "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5950                           "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5951                           "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5952                           "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5953                           "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5954                           "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5955                           "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5956                           "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5957                           "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5958                           "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5959                           "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5960                           "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5961                           "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5962                           "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5963                           "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5964                           "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5965                           "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5966                           "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5967                           "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5968                           "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5969                           "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5970                           "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5971                           "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5972                           "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5973                           "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5974                 .len    = 248,
5975                 .also_non_np = 1,
5976                 .np     = 3,
5977                 .tap    = { 248 - 10, 2, 8 },
5978         }, { /* Generated with Crypto++ */
5979                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5980                 .klen   = 8,
5981                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5982                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5983                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5984                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5985                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5986                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5987                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5988                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5989                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5990                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5991                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5992                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5993                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5994                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5995                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5996                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5997                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5998                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5999                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
6000                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
6001                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
6002                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
6003                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
6004                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
6005                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
6006                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
6007                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
6008                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
6009                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
6010                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
6011                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
6012                           "\xC6\x2F\xBB\x24\x8D\x19\x82",
6013                 .ctext  = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
6014                           "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
6015                           "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
6016                           "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
6017                           "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
6018                           "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
6019                           "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
6020                           "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
6021                           "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
6022                           "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
6023                           "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
6024                           "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
6025                           "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
6026                           "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
6027                           "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
6028                           "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
6029                           "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
6030                           "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
6031                           "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
6032                           "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
6033                           "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
6034                           "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
6035                           "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
6036                           "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
6037                           "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
6038                           "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
6039                           "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
6040                           "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
6041                           "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
6042                           "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
6043                           "\x91\x45\x05\x3E\x58\xBF\x32",
6044                 .len    = 247,
6045                 .also_non_np = 1,
6046                 .np     = 2,
6047                 .tap    = { 247 - 8, 8 },
6048         },
6049 };
6050
6051 static const struct cipher_testvec des3_ede_tv_template[] = {
6052         { /* These are from openssl */
6053                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6054                           "\x55\x55\x55\x55\x55\x55\x55\x55"
6055                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6056                 .klen   = 24,
6057                 .ptext  = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
6058                 .ctext  = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
6059                 .len    = 8,
6060         }, {
6061                 .key    = "\x03\x52\x02\x07\x67\x20\x82\x17"
6062                           "\x86\x02\x87\x66\x59\x08\x21\x98"
6063                           "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
6064                 .klen   = 24,
6065                 .ptext  = "\x73\x71\x75\x69\x67\x67\x6c\x65",
6066                 .ctext  = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
6067                 .len    = 8,
6068         }, {
6069                 .key    = "\x10\x46\x10\x34\x89\x98\x80\x20"
6070                           "\x91\x07\xd0\x15\x89\x19\x01\x01"
6071                           "\x19\x07\x92\x10\x98\x1a\x01\x01",
6072                 .klen   = 24,
6073                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
6074                 .ctext  = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
6075                 .len    = 8,
6076         }, { /* Generated with Crypto++ */
6077                 .key    = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
6078                           "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
6079                           "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
6080                 .klen   = 24,
6081                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6082                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6083                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6084                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6085                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6086                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6087                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6088                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6089                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6090                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6091                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6092                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6093                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6094                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6095                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6096                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6097                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6098                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6099                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6100                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6101                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6102                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6103                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6104                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6105                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6106                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6107                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6108                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6109                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6110                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6111                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6112                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6113                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6114                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6115                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6116                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6117                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6118                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6119                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6120                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6121                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6122                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6123                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6124                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6125                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6126                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6127                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6128                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6129                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6130                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6131                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6132                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6133                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6134                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6135                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6136                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6137                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6138                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6139                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6140                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6141                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6142                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6143                 .ctext  = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
6144                           "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
6145                           "\x81\x01\x04\x00\x76\xFA\xED\xD3"
6146                           "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
6147                           "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
6148                           "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
6149                           "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
6150                           "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
6151                           "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
6152                           "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
6153                           "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
6154                           "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
6155                           "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
6156                           "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
6157                           "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
6158                           "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
6159                           "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
6160                           "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
6161                           "\x45\x86\x50\x01\x70\x35\x99\x92"
6162                           "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
6163                           "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
6164                           "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
6165                           "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
6166                           "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
6167                           "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
6168                           "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
6169                           "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
6170                           "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
6171                           "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
6172                           "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
6173                           "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
6174                           "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
6175                           "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
6176                           "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
6177                           "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
6178                           "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
6179                           "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
6180                           "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
6181                           "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
6182                           "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
6183                           "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
6184                           "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
6185                           "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
6186                           "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
6187                           "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
6188                           "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
6189                           "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
6190                           "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
6191                           "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
6192                           "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
6193                           "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
6194                           "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
6195                           "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
6196                           "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
6197                           "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
6198                           "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
6199                           "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
6200                           "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
6201                           "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
6202                           "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
6203                           "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
6204                           "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
6205                 .len    = 496,
6206                 .also_non_np = 1,
6207                 .np     = 3,
6208                 .tap    = { 496 - 20, 4, 16 },
6209         },
6210 };
6211
6212 static const struct cipher_testvec des3_ede_cbc_tv_template[] = {
6213         { /* Generated from openssl */
6214                 .key    = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
6215                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
6216                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
6217                 .klen   = 24,
6218                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
6219                 .ptext  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
6220                           "\x53\x20\x63\x65\x65\x72\x73\x74"
6221                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
6222                           "\x20\x79\x65\x53\x72\x63\x74\x65"
6223                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
6224                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
6225                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
6226                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
6227                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
6228                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
6229                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
6230                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
6231                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
6232                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
6233                           "\x63\x65\x65\x72\x73\x74\x54\x20"
6234                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
6235                 .ctext  = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
6236                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
6237                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
6238                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
6239                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
6240                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
6241                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
6242                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
6243                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
6244                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
6245                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
6246                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
6247                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
6248                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
6249                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
6250                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
6251                 .len    = 128,
6252         }, { /* Generated with Crypto++ */
6253                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6254                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6255                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6256                 .klen   = 24,
6257                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6258                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6259                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6260                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6261                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6262                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6263                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6264                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6265                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6266                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6267                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6268                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6269                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6270                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6271                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6272                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6273                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6274                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6275                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6276                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6277                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6278                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6279                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6280                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6281                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6282                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6283                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6284                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6285                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6286                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6287                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6288                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6289                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6290                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6291                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6292                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6293                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6294                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6295                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6296                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6297                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6298                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6299                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6300                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6301                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6302                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6303                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6304                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6305                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6306                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6307                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6308                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6309                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6310                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6311                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6312                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6313                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6314                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6315                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6316                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6317                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6318                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6319                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6320                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6321                 .ctext  = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
6322                           "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
6323                           "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
6324                           "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
6325                           "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
6326                           "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
6327                           "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
6328                           "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
6329                           "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
6330                           "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
6331                           "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
6332                           "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
6333                           "\x11\x35\x61\x94\x88\x7B\x1C\x48"
6334                           "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
6335                           "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
6336                           "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
6337                           "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
6338                           "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
6339                           "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
6340                           "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
6341                           "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
6342                           "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
6343                           "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
6344                           "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
6345                           "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
6346                           "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
6347                           "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
6348                           "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
6349                           "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
6350                           "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
6351                           "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
6352                           "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
6353                           "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
6354                           "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
6355                           "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
6356                           "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
6357                           "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
6358                           "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
6359                           "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
6360                           "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
6361                           "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
6362                           "\x73\x50\x08\x56\x20\x9B\x94\x23"
6363                           "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
6364                           "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
6365                           "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
6366                           "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
6367                           "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
6368                           "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
6369                           "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
6370                           "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
6371                           "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
6372                           "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
6373                           "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
6374                           "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
6375                           "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
6376                           "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
6377                           "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
6378                           "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
6379                           "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
6380                           "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
6381                           "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
6382                           "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
6383                 .len    = 496,
6384                 .also_non_np = 1,
6385                 .np     = 3,
6386                 .tap    = { 496 - 20, 4, 16 },
6387         },
6388 };
6389
6390 static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
6391         { /* Generated with Crypto++ */
6392                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6393                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6394                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6395                 .klen   = 24,
6396                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6397                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6398                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6399                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6400                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6401                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6402                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6403                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6404                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6405                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6406                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6407                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6408                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6409                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6410                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6411                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6412                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6413                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6414                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6415                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6416                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6417                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6418                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6419                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6420                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6421                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6422                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6423                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6424                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6425                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6426                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6427                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6428                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6429                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6430                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6431                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6432                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6433                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6434                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6435                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6436                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6437                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6438                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6439                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6440                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6441                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6442                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6443                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6444                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6445                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6446                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6447                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6448                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6449                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6450                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6451                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6452                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6453                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6454                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6455                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6456                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6457                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6458                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6459                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6460                 .ctext  = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6461                           "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6462                           "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6463                           "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6464                           "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6465                           "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6466                           "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6467                           "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6468                           "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6469                           "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6470                           "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6471                           "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6472                           "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6473                           "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6474                           "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6475                           "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6476                           "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6477                           "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6478                           "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6479                           "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6480                           "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6481                           "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6482                           "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6483                           "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6484                           "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6485                           "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6486                           "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6487                           "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6488                           "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6489                           "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6490                           "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6491                           "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6492                           "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6493                           "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6494                           "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6495                           "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6496                           "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6497                           "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6498                           "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6499                           "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6500                           "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6501                           "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6502                           "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6503                           "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6504                           "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6505                           "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6506                           "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6507                           "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6508                           "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6509                           "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6510                           "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6511                           "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6512                           "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6513                           "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6514                           "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6515                           "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6516                           "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6517                           "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6518                           "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6519                           "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6520                           "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6521                           "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6522                 .len    = 496,
6523                 .also_non_np = 1,
6524                 .np     = 3,
6525                 .tap    = { 496 - 20, 4, 16 },
6526         }, { /* Generated with Crypto++ */
6527                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6528                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6529                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6530                 .klen   = 24,
6531                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6532                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6533                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6534                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6535                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6536                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6537                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6538                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6539                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6540                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6541                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6542                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6543                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6544                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6545                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6546                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6547                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6548                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6549                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6550                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6551                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6552                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6553                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6554                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6555                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6556                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6557                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6558                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6559                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6560                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6561                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6562                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6563                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6564                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6565                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6566                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6567                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6568                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6569                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6570                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6571                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6572                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6573                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6574                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6575                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6576                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6577                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6578                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6579                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6580                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6581                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6582                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6583                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6584                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6585                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6586                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6587                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6588                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6589                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6590                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6591                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6592                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6593                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6594                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6595                           "\x2E\xB1\x18",
6596                 .ctext  = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6597                           "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6598                           "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6599                           "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6600                           "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6601                           "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6602                           "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6603                           "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6604                           "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6605                           "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6606                           "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6607                           "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6608                           "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6609                           "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6610                           "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6611                           "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6612                           "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6613                           "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6614                           "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6615                           "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6616                           "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6617                           "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6618                           "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6619                           "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6620                           "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6621                           "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6622                           "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6623                           "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6624                           "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6625                           "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6626                           "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6627                           "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6628                           "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6629                           "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6630                           "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6631                           "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6632                           "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6633                           "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6634                           "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6635                           "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6636                           "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6637                           "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6638                           "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6639                           "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6640                           "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6641                           "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6642                           "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6643                           "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6644                           "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6645                           "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6646                           "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6647                           "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6648                           "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6649                           "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6650                           "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6651                           "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6652                           "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6653                           "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6654                           "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6655                           "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6656                           "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6657                           "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6658                           "\xF2\x79\xD9",
6659                 .len    = 499,
6660                 .also_non_np = 1,
6661                 .np     = 2,
6662                 .tap    = { 499 - 16, 16 },
6663         },
6664 };
6665
6666 /*
6667  * Blowfish test vectors.
6668  */
6669 static const struct cipher_testvec bf_tv_template[] = {
6670         { /* DES test vectors from OpenSSL */
6671                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
6672                 .klen   = 8,
6673                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
6674                 .ctext  = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6675                 .len    = 8,
6676         }, {
6677                 .key    = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6678                 .klen   = 8,
6679                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6680                 .ctext  = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6681                 .len    = 8,
6682         }, {
6683                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6684                 .klen   = 8,
6685                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6686                 .ctext  = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6687                 .len    = 8,
6688         }, { /* Vary the keylength... */
6689                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6690                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6691                 .klen   = 16,
6692                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6693                 .ctext  = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6694                 .len    = 8,
6695         }, {
6696                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6697                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6698                           "\x00\x11\x22\x33\x44",
6699                 .klen   = 21,
6700                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6701                 .ctext  = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6702                 .len    = 8,
6703         }, { /* Generated with bf488 */
6704                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6705                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6706                           "\x00\x11\x22\x33\x44\x55\x66\x77"
6707                           "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6708                           "\x58\x40\x23\x64\x1a\xba\x61\x76"
6709                           "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6710                           "\xff\xff\xff\xff\xff\xff\xff\xff",
6711                 .klen   = 56,
6712                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6713                 .ctext  = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6714                 .len    = 8,
6715         }, { /* Generated with Crypto++ */
6716                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6717                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6718                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6719                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6720                 .klen   = 32,
6721                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6722                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6723                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6724                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6725                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6726                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6727                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6728                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6729                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6730                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6731                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6732                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6733                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6734                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6735                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6736                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6737                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6738                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6739                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6740                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6741                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6742                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6743                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6744                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6745                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6746                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6747                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6748                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6749                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6750                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6751                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6752                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6753                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6754                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6755                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6756                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6757                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6758                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6759                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6760                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6761                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6762                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6763                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6764                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6765                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6766                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6767                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6768                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6769                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6770                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6771                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6772                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6773                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6774                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6775                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6776                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6777                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6778                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6779                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6780                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6781                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6782                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6783                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6784                 .ctext  = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6785                           "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6786                           "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6787                           "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6788                           "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6789                           "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6790                           "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6791                           "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6792                           "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6793                           "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6794                           "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6795                           "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6796                           "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6797                           "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6798                           "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6799                           "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6800                           "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6801                           "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6802                           "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6803                           "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6804                           "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6805                           "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6806                           "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6807                           "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6808                           "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6809                           "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6810                           "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6811                           "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6812                           "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6813                           "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6814                           "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6815                           "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6816                           "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6817                           "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6818                           "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6819                           "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6820                           "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6821                           "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6822                           "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6823                           "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6824                           "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6825                           "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6826                           "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6827                           "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6828                           "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6829                           "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6830                           "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6831                           "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6832                           "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6833                           "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6834                           "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6835                           "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6836                           "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6837                           "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6838                           "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6839                           "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6840                           "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6841                           "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6842                           "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6843                           "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6844                           "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6845                           "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6846                           "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6847                 .len    = 504,
6848                 .also_non_np = 1,
6849                 .np     = 3,
6850                 .tap    = { 504 - 10, 2, 8 },
6851         },
6852 };
6853
6854 static const struct cipher_testvec bf_cbc_tv_template[] = {
6855         { /* From OpenSSL */
6856                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6857                           "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6858                 .klen   = 16,
6859                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6860                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
6861                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
6862                           "\x68\x65\x20\x74\x69\x6d\x65\x20"
6863                           "\x66\x6f\x72\x20\x00\x00\x00\x00",
6864                 .ctext  = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
6865                           "\x05\xb1\x56\xe2\x74\x03\x97\x93"
6866                           "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
6867                           "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
6868                 .len    = 32,
6869         }, { /* Generated with Crypto++ */
6870                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6871                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6872                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6873                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6874                 .klen   = 32,
6875                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6876                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6877                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6878                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6879                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6880                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6881                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6882                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6883                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6884                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6885                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6886                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6887                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6888                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6889                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6890                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6891                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6892                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6893                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6894                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6895                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6896                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6897                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6898                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6899                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6900                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6901                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6902                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6903                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6904                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6905                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6906                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6907                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6908                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6909                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6910                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6911                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6912                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6913                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6914                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6915                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6916                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6917                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6918                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6919                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6920                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6921                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6922                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6923                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6924                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6925                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6926                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6927                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6928                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6929                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6930                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6931                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6932                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6933                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6934                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6935                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6936                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6937                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6938                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6939                 .ctext  = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
6940                           "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
6941                           "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
6942                           "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
6943                           "\x01\x9C\x93\x63\x51\x60\x82\xD2"
6944                           "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
6945                           "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
6946                           "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
6947                           "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
6948                           "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
6949                           "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
6950                           "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
6951                           "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
6952                           "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
6953                           "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
6954                           "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
6955                           "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
6956                           "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
6957                           "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
6958                           "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
6959                           "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
6960                           "\x65\xFE\x15\x40\xD0\x62\x41\x02"
6961                           "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
6962                           "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
6963                           "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
6964                           "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
6965                           "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
6966                           "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
6967                           "\x04\xF0\x86\x08\x78\x18\x42\xE0"
6968                           "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
6969                           "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
6970                           "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
6971                           "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
6972                           "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
6973                           "\x97\x18\x92\xFF\x15\x11\xCE\xED"
6974                           "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
6975                           "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
6976                           "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
6977                           "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
6978                           "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
6979                           "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
6980                           "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
6981                           "\x43\x12\x73\x77\xDB\x91\x83\x5B"
6982                           "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
6983                           "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
6984                           "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
6985                           "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
6986                           "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
6987                           "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
6988                           "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
6989                           "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
6990                           "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
6991                           "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
6992                           "\xC5\xF8\x69\x83\x28\x84\x87\x56"
6993                           "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
6994                           "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
6995                           "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
6996                           "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
6997                           "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
6998                           "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
6999                           "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7000                           "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7001                           "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7002                 .len    = 504,
7003                 .also_non_np = 1,
7004                 .np     = 3,
7005                 .tap    = { 504 - 10, 2, 8 },
7006         },
7007 };
7008
7009 static const struct cipher_testvec bf_ctr_tv_template[] = {
7010         { /* Generated with Crypto++ */
7011                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7012                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7013                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7014                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7015                 .klen   = 32,
7016                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7017                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7018                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7019                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7020                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7021                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7022                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7023                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7024                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7025                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7026                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7027                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7028                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7029                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7030                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7031                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7032                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7033                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7034                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7035                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7036                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7037                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7038                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7039                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7040                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7041                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7042                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7043                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7044                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7045                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7046                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7047                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7048                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7049                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7050                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7051                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7052                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7053                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7054                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7055                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7056                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7057                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7058                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7059                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7060                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7061                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7062                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7063                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7064                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7065                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7066                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7067                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7068                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7069                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7070                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7071                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7072                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7073                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7074                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7075                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7076                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7077                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7078                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7079                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7080                 .ctext  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7081                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7082                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7083                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7084                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7085                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7086                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7087                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7088                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7089                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7090                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7091                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7092                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7093                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7094                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7095                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7096                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7097                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7098                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7099                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7100                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7101                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7102                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7103                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7104                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7105                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7106                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7107                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7108                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7109                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7110                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7111                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7112                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7113                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7114                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7115                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7116                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7117                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7118                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7119                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7120                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7121                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7122                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7123                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7124                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7125                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7126                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7127                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7128                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7129                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7130                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7131                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7132                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7133                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7134                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7135                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7136                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7137                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7138                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7139                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7140                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7141                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7142                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7143                 .len    = 504,
7144         }, { /* Generated with Crypto++ */
7145                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7146                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7147                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7148                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7149                 .klen   = 32,
7150                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7151                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7152                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7153                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7154                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7155                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7156                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7157                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7158                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7159                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7160                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7161                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7162                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7163                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7164                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7165                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7166                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7167                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7168                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7169                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7170                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7171                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7172                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7173                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7174                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7175                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7176                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7177                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7178                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7179                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7180                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7181                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7182                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7183                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7184                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7185                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7186                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7187                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7188                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7189                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7190                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7191                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7192                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7193                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7194                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7195                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7196                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7197                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7198                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7199                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7200                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7201                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7202                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7203                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7204                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7205                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7206                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7207                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7208                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7209                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7210                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7211                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7212                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7213                           "\x2B\xC2\x59\xF0\x64\xFB\x92",
7214                 .ctext  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7215                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7216                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7217                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7218                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7219                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7220                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7221                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7222                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7223                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7224                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7225                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7226                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7227                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7228                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7229                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7230                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7231                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7232                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7233                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7234                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7235                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7236                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7237                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7238                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7239                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7240                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7241                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7242                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7243                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7244                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7245                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7246                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7247                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7248                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7249                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7250                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7251                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7252                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7253                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7254                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7255                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7256                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7257                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7258                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7259                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7260                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7261                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7262                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7263                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7264                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7265                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7266                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7267                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7268                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7269                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7270                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7271                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7272                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7273                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7274                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7275                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7276                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7277                 .len    = 503,
7278                 .also_non_np = 1,
7279                 .np     = 2,
7280                 .tap    = { 503 - 8, 8 },
7281         }, { /* Generated with Crypto++ */
7282                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7283                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7284                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7285                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7286                 .klen   = 32,
7287                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7288                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7289                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7290                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7291                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7292                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7293                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7294                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7295                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7296                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7297                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7298                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7299                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7300                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7301                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7302                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7303                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7304                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7305                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7306                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7307                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7308                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7309                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7310                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7311                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7312                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7313                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7314                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7315                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7316                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7317                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7318                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7319                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7320                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7321                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7322                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7323                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7324                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7325                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7326                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7327                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7328                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7329                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7330                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7331                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7332                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7333                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7334                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7335                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7336                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7337                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7338                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7339                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7340                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7341                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7342                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7343                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7344                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7345                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7346                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7347                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7348                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7349                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7350                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7351                 .ctext  = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
7352                           "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7353                           "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7354                           "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7355                           "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7356                           "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7357                           "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7358                           "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7359                           "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7360                           "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7361                           "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7362                           "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7363                           "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7364                           "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7365                           "\x0B\x82\x59\x14\x26\x67\x08\x09"
7366                           "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7367                           "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7368                           "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7369                           "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7370                           "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7371                           "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7372                           "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7373                           "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7374                           "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7375                           "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7376                           "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7377                           "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7378                           "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7379                           "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7380                           "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7381                           "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7382                           "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7383                           "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7384                           "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7385                           "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7386                           "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7387                           "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7388                           "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7389                           "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7390                           "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7391                           "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7392                           "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7393                           "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7394                           "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7395                           "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7396                           "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7397                           "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7398                           "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7399                           "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7400                           "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7401                           "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7402                           "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7403                           "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7404                           "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7405                           "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7406                           "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7407                           "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7408                           "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7409                           "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7410                           "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7411                           "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7412                           "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7413                           "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
7414                 .len    = 504,
7415         },
7416 };
7417
7418 /*
7419  * Twofish test vectors.
7420  */
7421 static const struct cipher_testvec tf_tv_template[] = {
7422         {
7423                 .key    = zeroed_string,
7424                 .klen   = 16,
7425                 .ptext  = zeroed_string,
7426                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7427                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7428                 .len    = 16,
7429         }, {
7430                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7431                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7432                           "\x00\x11\x22\x33\x44\x55\x66\x77",
7433                 .klen   = 24,
7434                 .ptext  = zeroed_string,
7435                 .ctext  = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
7436                           "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
7437                 .len    = 16,
7438         }, {
7439                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7440                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7441                           "\x00\x11\x22\x33\x44\x55\x66\x77"
7442                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
7443                 .klen   = 32,
7444                 .ptext  = zeroed_string,
7445                 .ctext  = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
7446                           "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
7447                 .len    = 16,
7448         }, { /* Generated with Crypto++ */
7449                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
7450                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
7451                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
7452                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
7453                 .klen   = 32,
7454                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7455                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7456                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7457                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7458                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7459                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7460                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7461                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7462                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7463                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7464                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7465                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7466                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7467                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7468                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7469                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7470                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7471                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7472                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7473                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7474                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7475                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7476                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7477                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7478                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7479                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7480                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7481                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7482                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7483                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7484                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7485                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7486                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7487                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7488                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7489                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7490                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7491                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7492                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7493                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7494                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7495                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7496                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7497                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7498                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7499                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7500                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7501                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7502                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7503                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7504                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7505                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7506                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7507                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7508                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7509                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7510                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7511                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7512                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7513                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7514                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7515                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7516                 .ctext  = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
7517                           "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
7518                           "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
7519                           "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
7520                           "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
7521                           "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
7522                           "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
7523                           "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
7524                           "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
7525                           "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
7526                           "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
7527                           "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
7528                           "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
7529                           "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
7530                           "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
7531                           "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
7532                           "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
7533                           "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
7534                           "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
7535                           "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
7536                           "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
7537                           "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
7538                           "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
7539                           "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
7540                           "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
7541                           "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
7542                           "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
7543                           "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
7544                           "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
7545                           "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
7546                           "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
7547                           "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
7548                           "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
7549                           "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
7550                           "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
7551                           "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
7552                           "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
7553                           "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
7554                           "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
7555                           "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
7556                           "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
7557                           "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
7558                           "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
7559                           "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
7560                           "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
7561                           "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
7562                           "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
7563                           "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
7564                           "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
7565                           "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
7566                           "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
7567                           "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
7568                           "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
7569                           "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
7570                           "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
7571                           "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
7572                           "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
7573                           "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
7574                           "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
7575                           "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
7576                           "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
7577                           "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
7578                 .len    = 496,
7579                 .also_non_np = 1,
7580                 .np     = 3,
7581                 .tap    = { 496 - 20, 4, 16 },
7582         },
7583 };
7584
7585 static const struct cipher_testvec tf_cbc_tv_template[] = {
7586         { /* Generated with Nettle */
7587                 .key    = zeroed_string,
7588                 .klen   = 16,
7589                 .iv     = zeroed_string,
7590                 .ptext  = zeroed_string,
7591                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7592                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7593                 .len    = 16,
7594         }, {
7595                 .key    = zeroed_string,
7596                 .klen   = 16,
7597                 .iv     = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7598                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7599                 .ptext  = zeroed_string,
7600                 .ctext  = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7601                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7602                 .len    = 16,
7603         }, {
7604                 .key    = zeroed_string,
7605                 .klen   = 16,
7606                 .iv     = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7607                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7608                 .ptext  = zeroed_string,
7609                 .ctext  = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7610                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7611                 .len    = 16,
7612         }, {
7613                 .key    = zeroed_string,
7614                 .klen   = 16,
7615                 .iv     = zeroed_string,
7616                 .ptext  = zeroed_string,
7617                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7618                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
7619                           "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7620                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
7621                           "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7622                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7623                 .len    = 48,
7624         }, { /* Generated with Crypto++ */
7625                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7626                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7627                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7628                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7629                 .klen   = 32,
7630                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7631                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7632                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7633                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7634                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7635                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7636                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7637                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7638                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7639                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7640                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7641                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7642                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7643                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7644                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7645                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7646                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7647                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7648                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7649                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7650                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7651                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7652                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7653                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7654                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7655                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7656                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7657                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7658                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7659                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7660                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7661                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7662                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7663                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7664                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7665                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7666                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7667                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7668                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7669                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7670                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7671                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7672                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7673                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7674                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7675                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7676                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7677                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7678                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7679                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7680                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7681                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7682                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7683                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7684                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7685                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7686                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7687                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7688                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7689                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7690                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7691                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7692                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7693                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7694                 .ctext  = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
7695                           "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
7696                           "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
7697                           "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
7698                           "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
7699                           "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
7700                           "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
7701                           "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
7702                           "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
7703                           "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
7704                           "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
7705                           "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
7706                           "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
7707                           "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
7708                           "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
7709                           "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7710                           "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7711                           "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7712                           "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7713                           "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7714                           "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7715                           "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7716                           "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7717                           "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7718                           "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7719                           "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7720                           "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7721                           "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7722                           "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7723                           "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7724                           "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7725                           "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7726                           "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7727                           "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7728                           "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7729                           "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7730                           "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7731                           "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7732                           "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7733                           "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7734                           "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7735                           "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7736                           "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7737                           "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7738                           "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7739                           "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7740                           "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7741                           "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7742                           "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7743                           "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7744                           "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7745                           "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7746                           "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7747                           "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7748                           "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7749                           "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7750                           "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7751                           "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7752                           "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7753                           "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7754                           "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7755                           "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
7756                 .len    = 496,
7757                 .also_non_np = 1,
7758                 .np     = 3,
7759                 .tap    = { 496 - 20, 4, 16 },
7760         },
7761 };
7762
7763 static const struct cipher_testvec tf_ctr_tv_template[] = {
7764         { /* Generated with Crypto++ */
7765                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7766                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7767                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7768                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7769                 .klen   = 32,
7770                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7771                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7772                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7773                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7774                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7775                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7776                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7777                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7778                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7779                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7780                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7781                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7782                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7783                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7784                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7785                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7786                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7787                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7788                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7789                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7790                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7791                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7792                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7793                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7794                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7795                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7796                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7797                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7798                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7799                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7800                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7801                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7802                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7803                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7804                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7805                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7806                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7807                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7808                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7809                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7810                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7811                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7812                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7813                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7814                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7815                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7816                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7817                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7818                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7819                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7820                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7821                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7822                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7823                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7824                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7825                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7826                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7827                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7828                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7829                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7830                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7831                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7832                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7833                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7834                 .ctext  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7835                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7836                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7837                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7838                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7839                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7840                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7841                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7842                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7843                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7844                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7845                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7846                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7847                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7848                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7849                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7850                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7851                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7852                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7853                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7854                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7855                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7856                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7857                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7858                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7859                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7860                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7861                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7862                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7863                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7864                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7865                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7866                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7867                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7868                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7869                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7870                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7871                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7872                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7873                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7874                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7875                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7876                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7877                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7878                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7879                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7880                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7881                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7882                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7883                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7884                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7885                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7886                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7887                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7888                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7889                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7890                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7891                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7892                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7893                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7894                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7895                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
7896                 .len    = 496,
7897         }, { /* Generated with Crypto++ */
7898                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7899                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7900                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7901                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7902                 .klen   = 32,
7903                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7904                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7905                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7906                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7907                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7908                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7909                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7910                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7911                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7912                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7913                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7914                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7915                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7916                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7917                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7918                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7919                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7920                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7921                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7922                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7923                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7924                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7925                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7926                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7927                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7928                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7929                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7930                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7931                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7932                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7933                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7934                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7935                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7936                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7937                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7938                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7939                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7940                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7941                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7942                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7943                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7944                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7945                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7946                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7947                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7948                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7949                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7950                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7951                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7952                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7953                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7954                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7955                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7956                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7957                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7958                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7959                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7960                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7961                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7962                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7963                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7964                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7965                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7966                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7967                 .ctext  = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
7968                           "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
7969                           "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
7970                           "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
7971                           "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
7972                           "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
7973                           "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
7974                           "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
7975                           "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
7976                           "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
7977                           "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
7978                           "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
7979                           "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
7980                           "\x39\x18\x09\xA4\x82\x59\x78\xE7"
7981                           "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
7982                           "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
7983                           "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
7984                           "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
7985                           "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
7986                           "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
7987                           "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
7988                           "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
7989                           "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
7990                           "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
7991                           "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
7992                           "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
7993                           "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
7994                           "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
7995                           "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
7996                           "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
7997                           "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
7998                           "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
7999                           "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
8000                           "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
8001                           "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
8002                           "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
8003                           "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
8004                           "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
8005                           "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
8006                           "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
8007                           "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
8008                           "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
8009                           "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
8010                           "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
8011                           "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
8012                           "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
8013                           "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
8014                           "\xDE\x55\x1B\x50\x14\x53\x44\x17"
8015                           "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
8016                           "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
8017                           "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
8018                           "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
8019                           "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
8020                           "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
8021                           "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
8022                           "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
8023                           "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
8024                           "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
8025                           "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
8026                           "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
8027                           "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
8028                           "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
8029                 .len    = 496,
8030         }, { /* Generated with Crypto++ */
8031                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8032                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8033                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8034                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8035                 .klen   = 32,
8036                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8037                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8038                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8039                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8040                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8041                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8042                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8043                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8044                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8045                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8046                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8047                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8048                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8049                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8050                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8051                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8052                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8053                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8054                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8055                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8056                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8057                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8058                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8059                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8060                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8061                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8062                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8063                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8064                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8065                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8066                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8067                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8068                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8069                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8070                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8071                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8072                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8073                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8074                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8075                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8076                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8077                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8078                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8079                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8080                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8081                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8082                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8083                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8084                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8085                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8086                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8087                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8088                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8089                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8090                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8091                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8092                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8093                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8094                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8095                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8096                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8097                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8098                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8099                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8100                           "\x2B\xC2\x59",
8101                 .ctext  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
8102                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
8103                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
8104                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
8105                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
8106                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
8107                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
8108                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
8109                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
8110                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
8111                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
8112                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
8113                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
8114                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
8115                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
8116                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
8117                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
8118                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
8119                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
8120                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8121                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8122                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8123                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8124                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8125                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8126                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8127                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8128                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8129                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8130                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8131                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8132                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
8133                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
8134                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
8135                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
8136                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
8137                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
8138                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
8139                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
8140                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
8141                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
8142                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
8143                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
8144                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
8145                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
8146                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
8147                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
8148                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
8149                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
8150                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
8151                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
8152                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8153                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8154                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8155                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8156                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8157                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8158                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8159                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8160                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
8161                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
8162                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
8163                           "\x6C\x82\x9D",
8164                 .len    = 499,
8165                 .also_non_np = 1,
8166                 .np     = 2,
8167                 .tap    = { 499 - 16, 16 },
8168         },
8169 };
8170
8171 static const struct cipher_testvec tf_lrw_tv_template[] = {
8172         /* Generated from AES-LRW test vectors */
8173         {
8174                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8175                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8176                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8177                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8178                 .klen   = 32,
8179                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8180                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8181                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8182                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8183                 .ctext  = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
8184                           "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
8185                 .len    = 16,
8186         }, {
8187                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8188                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8189                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8190                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8191                 .klen   = 32,
8192                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8193                           "\x00\x00\x00\x00\x00\x00\x00\x02",
8194                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8195                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8196                 .ctext  = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
8197                           "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
8198                 .len    = 16,
8199         }, {
8200                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8201                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8202                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8203                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8204                 .klen   = 32,
8205                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8206                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8207                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8208                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8209                 .ctext  = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
8210                           "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
8211                 .len    = 16,
8212         }, {
8213                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8214                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8215                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8216                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8217                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8218                 .klen   = 40,
8219                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8220                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8221                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8222                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8223                 .ctext  = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
8224                           "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
8225                 .len    = 16,
8226         }, {
8227                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8228                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8229                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8230                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8231                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8232                 .klen   = 40,
8233                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8234                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8235                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8236                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8237                 .ctext  = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
8238                           "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
8239                 .len    = 16,
8240         }, {
8241                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8242                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8243                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8244                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8245                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8246                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8247                 .klen   = 48,
8248                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8249                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8250                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8251                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8252                 .ctext  = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
8253                           "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
8254                 .len    = 16,
8255         }, {
8256                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8257                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8258                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8259                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8260                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8261                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8262                 .klen   = 48,
8263                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8264                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8265                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8266                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8267                 .ctext  = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
8268                           "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
8269                 .len    = 16,
8270         }, {
8271                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8272                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8273                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8274                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8275                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8276                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8277                 .klen   = 48,
8278                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8279                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8280                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
8281                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8282                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8283                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8284                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8285                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8286                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8287                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8288                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8289                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8290                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8291                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8292                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8293                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8294                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8295                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8296                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8297                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8298                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8299                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8300                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8301                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8302                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8303                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8304                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8305                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8306                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8307                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8308                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8309                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8310                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8311                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8312                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8313                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8314                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8315                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8316                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8317                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8318                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8319                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8320                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8321                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8322                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8323                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8324                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8325                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8326                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8327                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8328                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8329                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8330                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8331                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8332                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8333                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8334                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8335                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8336                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8337                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8338                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8339                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8340                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8341                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8342                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8343                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
8344                 .ctext  = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
8345                           "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8346                           "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8347                           "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8348                           "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8349                           "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8350                           "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8351                           "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8352                           "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8353                           "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8354                           "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8355                           "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8356                           "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8357                           "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8358                           "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8359                           "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8360                           "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8361                           "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8362                           "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8363                           "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8364                           "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8365                           "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8366                           "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8367                           "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8368                           "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8369                           "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8370                           "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8371                           "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8372                           "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8373                           "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8374                           "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8375                           "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8376                           "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8377                           "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8378                           "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8379                           "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8380                           "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8381                           "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8382                           "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8383                           "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8384                           "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8385                           "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8386                           "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8387                           "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8388                           "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8389                           "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8390                           "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8391                           "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8392                           "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8393                           "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8394                           "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8395                           "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8396                           "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8397                           "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8398                           "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8399                           "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8400                           "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8401                           "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8402                           "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8403                           "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8404                           "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8405                           "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8406                           "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8407                           "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
8408                 .len    = 512,
8409                 .also_non_np = 1,
8410                 .np     = 3,
8411                 .tap    = { 512 - 20, 4, 16 },
8412         },
8413 };
8414
8415 static const struct cipher_testvec tf_xts_tv_template[] = {
8416         /* Generated from AES-XTS test vectors */
8417 {
8418                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
8419                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8420                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8421                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8422                 .klen   = 32,
8423                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8424                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8425                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8426                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8427                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8428                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8429                 .ctext  = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8430                           "\x30\x74\xe4\x44\x52\x77\x97\x43"
8431                           "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8432                           "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8433                 .len    = 32,
8434         }, {
8435                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
8436                           "\x11\x11\x11\x11\x11\x11\x11\x11"
8437                           "\x22\x22\x22\x22\x22\x22\x22\x22"
8438                           "\x22\x22\x22\x22\x22\x22\x22\x22",
8439                 .klen   = 32,
8440                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
8441                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8442                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
8443                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8444                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8445                           "\x44\x44\x44\x44\x44\x44\x44\x44",
8446                 .ctext  = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8447                           "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8448                           "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8449                           "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8450                 .len    = 32,
8451         }, {
8452                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8453                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8454                           "\x22\x22\x22\x22\x22\x22\x22\x22"
8455                           "\x22\x22\x22\x22\x22\x22\x22\x22",
8456                 .klen   = 32,
8457                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
8458                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8459                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
8460                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8461                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8462                           "\x44\x44\x44\x44\x44\x44\x44\x44",
8463                 .ctext  = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
8464                           "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8465                           "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8466                           "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
8467                 .len    = 32,
8468         }, {
8469                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
8470                           "\x23\x53\x60\x28\x74\x71\x35\x26"
8471                           "\x31\x41\x59\x26\x53\x58\x97\x93"
8472                           "\x23\x84\x62\x64\x33\x83\x27\x95",
8473                 .klen   = 32,
8474                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8475                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8476                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8477                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8478                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8479                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8480                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8481                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8482                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8483                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8484                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8485                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8486                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8487                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8488                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8489                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8490                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8491                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8492                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8493                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8494                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8495                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8496                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8497                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8498                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8499                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8500                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8501                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8502                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8503                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8504                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8505                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8506                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8507                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8508                           "\x00\x01\x02\x03\x04\x05\x06\x07"
8509                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8510                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8511                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8512                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8513                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8514                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8515                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8516                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8517                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8518                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8519                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8520                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8521                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8522                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8523                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8524                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8525                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8526                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8527                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8528                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8529                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8530                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8531                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8532                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8533                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8534                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8535                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8536                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8537                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8538                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8539                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8540                 .ctext  = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
8541                           "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8542                           "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8543                           "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8544                           "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8545                           "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8546                           "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8547                           "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8548                           "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8549                           "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8550                           "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8551                           "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8552                           "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8553                           "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8554                           "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8555                           "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8556                           "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8557                           "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8558                           "\x39\x80\x39\x09\x97\x65\xf2\x83"
8559                           "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8560                           "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8561                           "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8562                           "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8563                           "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8564                           "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8565                           "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8566                           "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8567                           "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8568                           "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8569                           "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
8570                           "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
8571                           "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
8572                           "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
8573                           "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
8574                           "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
8575                           "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
8576                           "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
8577                           "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
8578                           "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
8579                           "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
8580                           "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
8581                           "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
8582                           "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
8583                           "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
8584                           "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
8585                           "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
8586                           "\x04\x39\x73\x32\xb2\x86\x79\xe7"
8587                           "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
8588                           "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
8589                           "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
8590                           "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
8591                           "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
8592                           "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
8593                           "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
8594                           "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
8595                           "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
8596                           "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
8597                           "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
8598                           "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
8599                           "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
8600                           "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
8601                           "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
8602                           "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
8603                           "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
8604                 .len    = 512,
8605         }, {
8606                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
8607                           "\x23\x53\x60\x28\x74\x71\x35\x26"
8608                           "\x62\x49\x77\x57\x24\x70\x93\x69"
8609                           "\x99\x59\x57\x49\x66\x96\x76\x27"
8610                           "\x31\x41\x59\x26\x53\x58\x97\x93"
8611                           "\x23\x84\x62\x64\x33\x83\x27\x95"
8612                           "\x02\x88\x41\x97\x16\x93\x99\x37"
8613                           "\x51\x05\x82\x09\x74\x94\x45\x92",
8614                 .klen   = 64,
8615                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
8616                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8617                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8618                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8619                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8620                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8621                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8622                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8623                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8624                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8625                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8626                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8627                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8628                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8629                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8630                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8631                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8632                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8633                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8634                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8635                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8636                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8637                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8638                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8639                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8640                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8641                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8642                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8643                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8644                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8645                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8646                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8647                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8648                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8649                           "\x00\x01\x02\x03\x04\x05\x06\x07"
8650                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8651                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8652                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8653                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8654                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8655                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8656                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8657                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8658                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8659                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8660                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8661                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8662                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8663                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8664                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8665                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8666                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8667                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8668                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8669                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8670                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8671                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8672                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8673                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8674                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8675                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8676                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8677                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8678                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8679                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8680                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8681                 .ctext  = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
8682                           "\x35\x39\x71\x88\x76\x1e\xc9\xea"
8683                           "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
8684                           "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
8685                           "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
8686                           "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
8687                           "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
8688                           "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
8689                           "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
8690                           "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
8691                           "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
8692                           "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
8693                           "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
8694                           "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
8695                           "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
8696                           "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
8697                           "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
8698                           "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
8699                           "\x69\x35\x61\x86\xf8\x86\xb9\x89"
8700                           "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
8701                           "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
8702                           "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
8703                           "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
8704                           "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
8705                           "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
8706                           "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
8707                           "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
8708                           "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
8709                           "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
8710                           "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
8711                           "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
8712                           "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
8713                           "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
8714                           "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
8715                           "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
8716                           "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
8717                           "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
8718                           "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
8719                           "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
8720                           "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
8721                           "\xad\x12\x32\x31\x03\xf7\x21\xbe"
8722                           "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
8723                           "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
8724                           "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
8725                           "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
8726                           "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
8727                           "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
8728                           "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
8729                           "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
8730                           "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
8731                           "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
8732                           "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
8733                           "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
8734                           "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
8735                           "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
8736                           "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
8737                           "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8738                           "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8739                           "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8740                           "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8741                           "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8742                           "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8743                           "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8744                           "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
8745                 .len    = 512,
8746                 .also_non_np = 1,
8747                 .np     = 3,
8748                 .tap    = { 512 - 20, 4, 16 },
8749         },
8750 };
8751
8752 /*
8753  * Serpent test vectors.  These are backwards because Serpent writes
8754  * octet sequences in right-to-left mode.
8755  */
8756 static const struct cipher_testvec serpent_tv_template[] = {
8757         {
8758                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8759                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8760                 .ctext  = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
8761                           "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
8762                 .len    = 16,
8763         }, {
8764                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8765                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8766                 .klen   = 16,
8767                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8768                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8769                 .ctext  = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
8770                           "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
8771                 .len    = 16,
8772         }, {
8773                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8774                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8775                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8776                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8777                 .klen   = 32,
8778                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8779                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8780                 .ctext  = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
8781                           "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
8782                 .len    = 16,
8783         }, {
8784                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8785                 .klen   = 16,
8786                 .ptext  = zeroed_string,
8787                 .ctext  = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
8788                           "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
8789                 .len    = 16,
8790         }, { /* Generated with Crypto++ */
8791                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8792                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8793                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8794                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8795                 .klen   = 32,
8796                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8797                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8798                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8799                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8800                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8801                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8802                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8803                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8804                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8805                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8806                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8807                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8808                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8809                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8810                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8811                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8812                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8813                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8814                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8815                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8816                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8817                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8818                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8819                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8820                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8821                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8822                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8823                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8824                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8825                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8826                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8827                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8828                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8829                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8830                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8831                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8832                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8833                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8834                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8835                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8836                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8837                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8838                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8839                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8840                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8841                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8842                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8843                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8844                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8845                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8846                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8847                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8848                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8849                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8850                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8851                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8852                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8853                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8854                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8855                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8856                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8857                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8858                 .ctext  = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
8859                           "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
8860                           "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
8861                           "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
8862                           "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
8863                           "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
8864                           "\x99\x34\x89\x5B\x54\xE9\x12\x13"
8865                           "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
8866                           "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
8867                           "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
8868                           "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
8869                           "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
8870                           "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
8871                           "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
8872                           "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
8873                           "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
8874                           "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
8875                           "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
8876                           "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
8877                           "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
8878                           "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
8879                           "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
8880                           "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
8881                           "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
8882                           "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
8883                           "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
8884                           "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
8885                           "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
8886                           "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
8887                           "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
8888                           "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
8889                           "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
8890                           "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
8891                           "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
8892                           "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
8893                           "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
8894                           "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
8895                           "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
8896                           "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
8897                           "\x87\x70\x14\xD0\x01\x57\xCB\x42"
8898                           "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
8899                           "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
8900                           "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
8901                           "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
8902                           "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
8903                           "\x71\x80\x05\x35\x3F\x40\x0B\x21"
8904                           "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
8905                           "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
8906                           "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
8907                           "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
8908                           "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
8909                           "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
8910                           "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
8911                           "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
8912                           "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
8913                           "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
8914                           "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
8915                           "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
8916                           "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
8917                           "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
8918                           "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
8919                           "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
8920                 .len    = 496,
8921                 .also_non_np = 1,
8922                 .np     = 3,
8923                 .tap    = { 496 - 20, 4, 16 },
8924         },
8925 };
8926
8927 static const struct cipher_testvec tnepres_tv_template[] = {
8928         { /* KeySize=0 */
8929                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8930                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8931                 .ctext  = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
8932                           "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
8933                 .len    = 16,
8934         },
8935         { /* KeySize=128, PT=0, I=1 */
8936                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8937                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8938                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8939                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8940                 .klen   = 16,
8941                 .ctext  = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
8942                           "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
8943                 .len    = 16,
8944         }, { /* KeySize=128 */
8945                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8946                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8947                 .klen   = 16,
8948                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8949                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8950                 .ctext  = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
8951                           "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
8952                 .len    = 16,
8953         }, { /* KeySize=128, I=121 */
8954                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8955                 .klen   = 16,
8956                 .ptext  = zeroed_string,
8957                 .ctext  = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
8958                           "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
8959                 .len    = 16,
8960         }, { /* KeySize=192, PT=0, I=1 */
8961                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8962                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8963                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8964                 .klen   = 24,
8965                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8966                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8967                 .ctext  = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
8968                           "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
8969                 .len    = 16,
8970         }, { /* KeySize=256, PT=0, I=1 */
8971                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8972                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8973                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8974                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8975                 .klen   = 32,
8976                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8977                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8978                 .ctext  = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
8979                           "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
8980                 .len    = 16,
8981         }, { /* KeySize=256, I=257 */
8982                 .key    = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
8983                           "\x17\x16\x15\x14\x13\x12\x11\x10"
8984                           "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
8985                           "\x07\x06\x05\x04\x03\x02\x01\x00",
8986                 .klen   = 32,
8987                 .ptext  = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
8988                           "\x07\x06\x05\x04\x03\x02\x01\x00",
8989                 .ctext  = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
8990                           "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
8991                 .len    = 16,
8992         }, { /* KeySize=256 */
8993                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8994                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8995                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8996                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8997                 .klen   = 32,
8998                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8999                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9000                 .ctext  = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
9001                           "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
9002                 .len    = 16,
9003         }
9004 };
9005
9006 static const struct cipher_testvec serpent_cbc_tv_template[] = {
9007         { /* Generated with Crypto++ */
9008                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9009                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9010                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9011                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9012                 .klen   = 32,
9013                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9014                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9015                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9016                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9017                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9018                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9019                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9020                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9021                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9022                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9023                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9024                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9025                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9026                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9027                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9028                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9029                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9030                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9031                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9032                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9033                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9034                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9035                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9036                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9037                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9038                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9039                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9040                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9041                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9042                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9043                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9044                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9045                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9046                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9047                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9048                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9049                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9050                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9051                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9052                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9053                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9054                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9055                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9056                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9057                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9058                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9059                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9060                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9061                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9062                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9063                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9064                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9065                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9066                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9067                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9068                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9069                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9070                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9071                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9072                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9073                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9074                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9075                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9076                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9077                 .ctext  = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
9078                           "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9079                           "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9080                           "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9081                           "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9082                           "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9083                           "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9084                           "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9085                           "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9086                           "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9087                           "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9088                           "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9089                           "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9090                           "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9091                           "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9092                           "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9093                           "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9094                           "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9095                           "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9096                           "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9097                           "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9098                           "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9099                           "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9100                           "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9101                           "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9102                           "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9103                           "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9104                           "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9105                           "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9106                           "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9107                           "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9108                           "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9109                           "\x81\x92\x66\x67\x15\x1E\x39\x98"
9110                           "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9111                           "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9112                           "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9113                           "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9114                           "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9115                           "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9116                           "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9117                           "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9118                           "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9119                           "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9120                           "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9121                           "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9122                           "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9123                           "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9124                           "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9125                           "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9126                           "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9127                           "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9128                           "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9129                           "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9130                           "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9131                           "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9132                           "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9133                           "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9134                           "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9135                           "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9136                           "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9137                           "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9138                           "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9139                 .len    = 496,
9140                 .also_non_np = 1,
9141                 .np     = 3,
9142                 .tap    = { 496 - 20, 4, 16 },
9143         },
9144 };
9145
9146 static const struct cipher_testvec serpent_ctr_tv_template[] = {
9147         { /* Generated with Crypto++ */
9148                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9149                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9150                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9151                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9152                 .klen   = 32,
9153                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9154                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9155                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9156                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9157                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9158                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9159                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9160                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9161                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9162                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9163                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9164                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9165                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9166                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9167                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9168                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9169                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9170                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9171                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9172                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9173                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9174                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9175                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9176                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9177                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9178                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9179                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9180                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9181                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9182                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9183                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9184                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9185                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9186                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9187                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9188                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9189                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9190                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9191                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9192                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9193                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9194                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9195                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9196                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9197                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9198                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9199                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9200                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9201                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9202                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9203                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9204                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9205                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9206                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9207                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9208                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9209                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9210                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9211                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9212                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9213                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9214                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9215                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9216                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9217                 .ctext  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9218                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9219                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9220                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9221                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9222                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9223                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9224                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9225                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9226                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9227                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9228                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9229                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9230                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9231                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9232                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9233                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9234                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9235                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9236                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9237                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9238                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9239                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9240                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9241                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9242                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9243                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9244                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9245                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9246                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9247                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9248                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9249                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9250                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9251                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9252                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9253                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9254                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9255                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9256                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9257                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9258                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9259                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9260                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9261                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9262                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9263                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9264                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9265                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9266                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9267                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9268                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9269                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9270                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9271                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9272                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9273                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9274                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9275                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9276                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9277                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9278                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
9279                 .len    = 496,
9280         }, { /* Generated with Crypto++ */
9281                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9282                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9283                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9284                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9285                 .klen   = 32,
9286                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9287                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9288                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9289                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9290                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9291                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9292                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9293                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9294                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9295                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9296                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9297                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9298                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9299                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9300                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9301                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9302                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9303                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9304                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9305                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9306                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9307                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9308                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9309                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9310                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9311                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9312                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9313                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9314                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9315                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9316                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9317                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9318                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9319                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9320                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9321                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9322                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9323                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9324                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9325                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9326                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9327                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9328                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9329                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9330                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9331                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9332                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9333                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9334                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9335                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9336                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9337                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9338                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9339                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9340                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9341                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9342                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9343                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9344                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9345                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9346                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9347                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9348                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9349                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9350                           "\x2B\xC2\x59",
9351                 .ctext  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9352                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9353                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9354                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9355                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9356                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9357                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9358                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9359                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9360                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9361                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9362                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9363                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9364                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9365                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9366                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9367                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9368                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9369                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9370                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9371                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9372                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9373                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9374                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9375                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9376                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9377                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9378                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9379                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9380                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9381                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9382                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9383                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9384                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9385                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9386                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9387                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9388                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9389                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9390                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9391                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9392                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9393                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9394                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9395                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9396                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9397                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9398                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9399                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9400                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9401                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9402                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9403                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9404                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9405                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9406                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9407                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9408                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9409                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9410                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9411                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9412                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
9413                           "\x38\xE2\xE5",
9414                 .len    = 499,
9415                 .also_non_np = 1,
9416                 .np     = 2,
9417                 .tap    = { 499 - 16, 16 },
9418         }, { /* Generated with Crypto++ */
9419                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9420                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9421                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9422                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9423                 .klen   = 32,
9424                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9425                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9426                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9427                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9428                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9429                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9430                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9431                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9432                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9433                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9434                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9435                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9436                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9437                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9438                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9439                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9440                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9441                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9442                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9443                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9444                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9445                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9446                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9447                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9448                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9449                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9450                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9451                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9452                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9453                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9454                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9455                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9456                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9457                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9458                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9459                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9460                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9461                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9462                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9463                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9464                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9465                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9466                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9467                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9468                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9469                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9470                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9471                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9472                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9473                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9474                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9475                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9476                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9477                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9478                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9479                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9480                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9481                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9482                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9483                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9484                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9485                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9486                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9487                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9488                 .ctext  = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
9489                           "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
9490                           "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
9491                           "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
9492                           "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
9493                           "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
9494                           "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
9495                           "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
9496                           "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
9497                           "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
9498                           "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
9499                           "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
9500                           "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
9501                           "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
9502                           "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
9503                           "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
9504                           "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
9505                           "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
9506                           "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
9507                           "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
9508                           "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
9509                           "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
9510                           "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
9511                           "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
9512                           "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
9513                           "\x29\x5E\x01\x47\x13\x32\x78\xBE"
9514                           "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
9515                           "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
9516                           "\x38\x35\x11\x26\x4A\xB4\x06\x32"
9517                           "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
9518                           "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
9519                           "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
9520                           "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
9521                           "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
9522                           "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
9523                           "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
9524                           "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
9525                           "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
9526                           "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
9527                           "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
9528                           "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
9529                           "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
9530                           "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
9531                           "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
9532                           "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
9533                           "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
9534                           "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
9535                           "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
9536                           "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
9537                           "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
9538                           "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
9539                           "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
9540                           "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
9541                           "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
9542                           "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
9543                           "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
9544                           "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
9545                           "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
9546                           "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
9547                           "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
9548                           "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
9549                           "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
9550                 .len    = 496,
9551         },
9552 };
9553
9554 static const struct cipher_testvec serpent_lrw_tv_template[] = {
9555         /* Generated from AES-LRW test vectors */
9556         {
9557                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9558                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9559                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9560                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9561                 .klen   = 32,
9562                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9563                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9564                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9565                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9566                 .ctext  = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
9567                           "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
9568                 .len    = 16,
9569         }, {
9570                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9571                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9572                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9573                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9574                 .klen   = 32,
9575                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9576                           "\x00\x00\x00\x00\x00\x00\x00\x02",
9577                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9578                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9579                 .ctext  = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
9580                           "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
9581                 .len    = 16,
9582         }, {
9583                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9584                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9585                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9586                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9587                 .klen   = 32,
9588                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9589                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9590                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9591                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9592                 .ctext  = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
9593                           "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
9594                 .len    = 16,
9595         }, {
9596                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9597                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9598                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9599                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9600                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9601                 .klen   = 40,
9602                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9603                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9604                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9605                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9606                 .ctext  = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
9607                           "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
9608                 .len    = 16,
9609         }, {
9610                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9611                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9612                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9613                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9614                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9615                 .klen   = 40,
9616                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9617                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9618                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9619                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9620                 .ctext  = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
9621                           "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
9622                 .len    = 16,
9623         }, {
9624                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9625                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9626                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9627                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9628                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9629                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9630                 .klen   = 48,
9631                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9632                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9633                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9634                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9635                 .ctext  = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
9636                           "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
9637                 .len    = 16,
9638         }, {
9639                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9640                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9641                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9642                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9643                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9644                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9645                 .klen   = 48,
9646                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9647                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9648                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9649                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9650                 .ctext  = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
9651                           "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
9652                 .len    = 16,
9653         }, {
9654                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9655                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9656                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9657                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9658                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9659                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9660                 .klen   = 48,
9661                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9662                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9663                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
9664                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9665                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9666                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9667                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9668                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9669                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9670                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9671                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9672                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9673                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9674                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9675                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9676                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9677                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9678                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9679                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9680                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9681                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9682                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9683                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9684                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9685                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9686                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9687                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9688                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9689                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9690                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9691                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9692                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9693                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9694                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9695                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9696                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9697                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9698                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9699                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9700                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9701                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9702                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9703                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9704                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9705                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9706                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9707                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9708                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9709                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9710                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9711                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9712                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9713                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9714                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9715                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9716                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9717                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9718                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9719                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9720                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9721                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9722                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9723                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9724                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9725                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9726                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
9727                 .ctext  = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
9728                           "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
9729                           "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
9730                           "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
9731                           "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
9732                           "\xce\xab\xda\x33\x30\x20\x12\xfa"
9733                           "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
9734                           "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
9735                           "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
9736                           "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
9737                           "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
9738                           "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
9739                           "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
9740                           "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
9741                           "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
9742                           "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
9743                           "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
9744                           "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
9745                           "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
9746                           "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
9747                           "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
9748                           "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
9749                           "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
9750                           "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
9751                           "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
9752                           "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
9753                           "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
9754                           "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
9755                           "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
9756                           "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
9757                           "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
9758                           "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
9759                           "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
9760                           "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
9761                           "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
9762                           "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
9763                           "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
9764                           "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
9765                           "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
9766                           "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
9767                           "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
9768                           "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
9769                           "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
9770                           "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
9771                           "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
9772                           "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
9773                           "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
9774                           "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
9775                           "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
9776                           "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
9777                           "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
9778                           "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
9779                           "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
9780                           "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
9781                           "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
9782                           "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
9783                           "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
9784                           "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
9785                           "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
9786                           "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
9787                           "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
9788                           "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
9789                           "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
9790                           "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
9791                 .len    = 512,
9792                 .also_non_np = 1,
9793                 .np     = 3,
9794                 .tap    = { 512 - 20, 4, 16 },
9795         },
9796 };
9797
9798 static const struct cipher_testvec serpent_xts_tv_template[] = {
9799         /* Generated from AES-XTS test vectors */
9800         {
9801                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
9802                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9803                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9804                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9805                 .klen   = 32,
9806                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9807                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9808                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
9809                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9810                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9811                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9812                 .ctext  = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
9813                           "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
9814                           "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
9815                           "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
9816                 .len    = 32,
9817         }, {
9818                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
9819                           "\x11\x11\x11\x11\x11\x11\x11\x11"
9820                           "\x22\x22\x22\x22\x22\x22\x22\x22"
9821                           "\x22\x22\x22\x22\x22\x22\x22\x22",
9822                 .klen   = 32,
9823                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
9824                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9825                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
9826                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9827                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9828                           "\x44\x44\x44\x44\x44\x44\x44\x44",
9829                 .ctext  = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
9830                           "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
9831                           "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
9832                           "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
9833                 .len    = 32,
9834         }, {
9835                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
9836                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
9837                           "\x22\x22\x22\x22\x22\x22\x22\x22"
9838                           "\x22\x22\x22\x22\x22\x22\x22\x22",
9839                 .klen   = 32,
9840                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
9841                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9842                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
9843                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9844                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9845                           "\x44\x44\x44\x44\x44\x44\x44\x44",
9846                 .ctext  = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
9847                           "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
9848                           "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
9849                           "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
9850                 .len    = 32,
9851         }, {
9852                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
9853                           "\x23\x53\x60\x28\x74\x71\x35\x26"
9854                           "\x31\x41\x59\x26\x53\x58\x97\x93"
9855                           "\x23\x84\x62\x64\x33\x83\x27\x95",
9856                 .klen   = 32,
9857                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9858                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9859                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
9860                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9861                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9862                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9863                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9864                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9865                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9866                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9867                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9868                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9869                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9870                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9871                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9872                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9873                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9874                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9875                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9876                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9877                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9878                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9879                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9880                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9881                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9882                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9883                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9884                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9885                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9886                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9887                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9888                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9889                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9890                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9891                           "\x00\x01\x02\x03\x04\x05\x06\x07"
9892                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9893                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9894                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9895                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9896                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9897                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9898                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9899                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9900                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9901                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9902                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9903                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9904                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9905                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9906                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9907                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9908                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9909                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9910                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9911                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9912                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9913                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9914                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9915                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9916                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9917                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9918                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9919                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9920                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9921                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9922                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
9923                 .ctext  = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
9924                           "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
9925                           "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
9926                           "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
9927                           "\x00\x5c\x75\x14\x06\xd6\x25\x82"
9928                           "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
9929                           "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
9930                           "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
9931                           "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
9932                           "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
9933                           "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
9934                           "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
9935                           "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
9936                           "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
9937                           "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
9938                           "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
9939                           "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
9940                           "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
9941                           "\x58\xfa\x43\x91\x16\x85\x40\xbb"
9942                           "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
9943                           "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
9944                           "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
9945                           "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
9946                           "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
9947                           "\x6e\x29\x60\xbd\x10\x14\x84\x82"
9948                           "\x83\x82\x0c\x63\x73\x92\x02\x7c"
9949                           "\x55\x37\x20\x80\x17\x51\xc8\xbc"
9950                           "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
9951                           "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
9952                           "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
9953                           "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
9954                           "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
9955                           "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
9956                           "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
9957                           "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
9958                           "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
9959                           "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
9960                           "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
9961                           "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
9962                           "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
9963                           "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
9964                           "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
9965                           "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
9966                           "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
9967                           "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
9968                           "\x43\x42\x35\xd0\xcf\xec\x77\x67"
9969                           "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
9970                           "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
9971                           "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
9972                           "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
9973                           "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
9974                           "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
9975                           "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
9976                           "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
9977                           "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
9978                           "\x03\x57\xe6\x98\x52\x2f\x61\x62"
9979                           "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
9980                           "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
9981                           "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
9982                           "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
9983                           "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
9984                           "\xef\x91\x64\x1d\x18\x07\x4e\x31"
9985                           "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
9986                           "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
9987                 .len    = 512,
9988         }, {
9989                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
9990                           "\x23\x53\x60\x28\x74\x71\x35\x26"
9991                           "\x62\x49\x77\x57\x24\x70\x93\x69"
9992                           "\x99\x59\x57\x49\x66\x96\x76\x27"
9993                           "\x31\x41\x59\x26\x53\x58\x97\x93"
9994                           "\x23\x84\x62\x64\x33\x83\x27\x95"
9995                           "\x02\x88\x41\x97\x16\x93\x99\x37"
9996                           "\x51\x05\x82\x09\x74\x94\x45\x92",
9997                 .klen   = 64,
9998                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
9999                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10000                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10001                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10002                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10003                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10004                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10005                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10006                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10007                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10008                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10009                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10010                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10011                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10012                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10013                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10014                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10015                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10016                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10017                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10018                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10019                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10020                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10021                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10022                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10023                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10024                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10025                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10026                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10027                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10028                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10029                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10030                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10031                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10032                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10033                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10034                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10035                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10036                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10037                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10038                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10039                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10040                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10041                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10042                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10043                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10044                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10045                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10046                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10047                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10048                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10049                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10050                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10051                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10052                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10053                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10054                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10055                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10056                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10057                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10058                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10059                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10060                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10061                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10062                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10063                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10064                 .ctext  = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
10065                           "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
10066                           "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
10067                           "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
10068                           "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
10069                           "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
10070                           "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
10071                           "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
10072                           "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
10073                           "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
10074                           "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
10075                           "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
10076                           "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
10077                           "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
10078                           "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
10079                           "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
10080                           "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
10081                           "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
10082                           "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
10083                           "\xec\x9a\xda\x64\x96\xb5\x61\xff"
10084                           "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
10085                           "\x81\x85\x14\xa8\x59\xac\x8c\x94"
10086                           "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
10087                           "\x82\xc6\x4d\xca\x86\xea\x53\x28"
10088                           "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
10089                           "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
10090                           "\x05\xca\x81\x7b\xda\xa2\xde\x63"
10091                           "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
10092                           "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
10093                           "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
10094                           "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
10095                           "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
10096                           "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
10097                           "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
10098                           "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
10099                           "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
10100                           "\xfd\x43\x7d\xda\x42\x51\x87\x43"
10101                           "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
10102                           "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
10103                           "\x27\x5f\x11\xac\x71\xc7\x48\x46"
10104                           "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
10105                           "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
10106                           "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
10107                           "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
10108                           "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
10109                           "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
10110                           "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
10111                           "\x50\x88\x97\x40\x69\xb1\x37\xf5"
10112                           "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
10113                           "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
10114                           "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
10115                           "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
10116                           "\xc1\x16\x73\x50\x77\xba\xa6\x65"
10117                           "\x20\x2d\xb0\x02\x27\x89\xda\x99"
10118                           "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
10119                           "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
10120                           "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
10121                           "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
10122                           "\xa3\x0e\x33\x74\x40\x18\x39\x72"
10123                           "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
10124                           "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
10125                           "\x30\x05\xc8\x92\x98\x80\xff\x7a"
10126                           "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
10127                           "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
10128                 .len    = 512,
10129                 .also_non_np = 1,
10130                 .np     = 3,
10131                 .tap    = { 512 - 20, 4, 16 },
10132         },
10133 };
10134
10135 /*
10136  * SM4 test vector taken from the draft RFC
10137  * https://tools.ietf.org/html/draft-crypto-sm4-00#ref-GBT.32907-2016
10138  */
10139
10140 static const struct cipher_testvec sm4_tv_template[] = {
10141         { /* SM4 Appendix A: Example Calculations. Example 1. */
10142                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10143                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10144                 .klen   = 16,
10145                 .ptext  = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10146                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10147                 .ctext  = "\x68\x1E\xDF\x34\xD2\x06\x96\x5E"
10148                           "\x86\xB3\xE9\x4F\x53\x6E\x42\x46",
10149                 .len    = 16,
10150         }, { /*
10151               *  SM4 Appendix A: Example Calculations.
10152               *  Last 10 iterations of Example 2.
10153               */
10154                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10155                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10156                 .klen   = 16,
10157                 .ptext  = "\x99\x4a\xc3\xe7\xc3\x57\x89\x6a"
10158                           "\x81\xfc\xa8\xe\x38\x3e\xef\x80"
10159                           "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
10160                           "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10161                           "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10162                           "\xad\x57\x15\xab\x31\x5d\xc\xef"
10163                           "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10164                           "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10165                           "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10166                           "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10167                           "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10168                           "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10169                           "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10170                           "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10171                           "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10172                           "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10173                           "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10174                           "\xed\xce\x0\x19\xe\x16\x2\x6e"
10175                           "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10176                           "\x31\x51\xec\x47\xc3\x51\x83\xc1",
10177                 .ctext  = "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
10178                           "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10179                           "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10180                           "\xad\x57\x15\xab\x31\x5d\xc\xef"
10181                           "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10182                           "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10183                           "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10184                           "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10185                           "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10186                           "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10187                           "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10188                           "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10189                           "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10190                           "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10191                           "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10192                           "\xed\xce\x0\x19\xe\x16\x2\x6e"
10193                           "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10194                           "\x31\x51\xec\x47\xc3\x51\x83\xc1"
10195                           "\x59\x52\x98\xc7\xc6\xfd\x27\x1f"
10196                           "\x4\x2\xf8\x4\xc3\x3d\x3f\x66",
10197                 .len    = 160
10198         }
10199 };
10200
10201 /*
10202  * Speck test vectors taken from the original paper:
10203  * "The Simon and Speck Families of Lightweight Block Ciphers"
10204  * https://eprint.iacr.org/2013/404.pdf
10205  *
10206  * Note that the paper does not make byte and word order clear.  But it was
10207  * confirmed with the authors that the intended orders are little endian byte
10208  * order and (y, x) word order.  Equivalently, the printed test vectors, when
10209  * looking at only the bytes (ignoring the whitespace that divides them into
10210  * words), are backwards: the left-most byte is actually the one with the
10211  * highest memory address, while the right-most byte is actually the one with
10212  * the lowest memory address.
10213  */
10214
10215 static const struct cipher_testvec speck128_tv_template[] = {
10216         { /* Speck128/128 */
10217                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
10218                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10219                 .klen   = 16,
10220                 .ptext  = "\x20\x6d\x61\x64\x65\x20\x69\x74"
10221                           "\x20\x65\x71\x75\x69\x76\x61\x6c",
10222                 .ctext  = "\x18\x0d\x57\x5c\xdf\xfe\x60\x78"
10223                           "\x65\x32\x78\x79\x51\x98\x5d\xa6",
10224                 .len    = 16,
10225         }, { /* Speck128/192 */
10226                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
10227                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10228                           "\x10\x11\x12\x13\x14\x15\x16\x17",
10229                 .klen   = 24,
10230                 .ptext  = "\x65\x6e\x74\x20\x74\x6f\x20\x43"
10231                           "\x68\x69\x65\x66\x20\x48\x61\x72",
10232                 .ctext  = "\x86\x18\x3c\xe0\x5d\x18\xbc\xf9"
10233                           "\x66\x55\x13\x13\x3a\xcf\xe4\x1b",
10234                 .len    = 16,
10235         }, { /* Speck128/256 */
10236                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
10237                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10238                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10239                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10240                 .klen   = 32,
10241                 .ptext  = "\x70\x6f\x6f\x6e\x65\x72\x2e\x20"
10242                           "\x49\x6e\x20\x74\x68\x6f\x73\x65",
10243                 .ctext  = "\x43\x8f\x18\x9c\x8d\xb4\xee\x4e"
10244                           "\x3e\xf5\xc0\x05\x04\x01\x09\x41",
10245                 .len    = 16,
10246         },
10247 };
10248
10249 /*
10250  * Speck128-XTS test vectors, taken from the AES-XTS test vectors with the
10251  * ciphertext recomputed with Speck128 as the cipher
10252  */
10253 static const struct cipher_testvec speck128_xts_tv_template[] = {
10254         {
10255                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
10256                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10257                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10258                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10259                 .klen   = 32,
10260                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10261                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10262                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
10263                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10264                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10265                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10266                 .ctext  = "\xbe\xa0\xe7\x03\xd7\xfe\xab\x62"
10267                           "\x3b\x99\x4a\x64\x74\x77\xac\xed"
10268                           "\xd8\xf4\xa6\xcf\xae\xb9\x07\x42"
10269                           "\x51\xd9\xb6\x1d\xe0\x5e\xbc\x54",
10270                 .len    = 32,
10271         }, {
10272                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
10273                           "\x11\x11\x11\x11\x11\x11\x11\x11"
10274                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10275                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10276                 .klen   = 32,
10277                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10278                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10279                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10280                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10281                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10282                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10283                 .ctext  = "\xfb\x53\x81\x75\x6f\x9f\x34\xad"
10284                           "\x7e\x01\xed\x7b\xcc\xda\x4e\x4a"
10285                           "\xd4\x84\xa4\x53\xd5\x88\x73\x1b"
10286                           "\xfd\xcb\xae\x0d\xf3\x04\xee\xe6",
10287                 .len    = 32,
10288         }, {
10289                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10290                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10291                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10292                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10293                 .klen   = 32,
10294                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10295                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10296                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10297                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10298                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10299                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10300                 .ctext  = "\x21\x52\x84\x15\xd1\xf7\x21\x55"
10301                           "\xd9\x75\x4a\xd3\xc5\xdb\x9f\x7d"
10302                           "\xda\x63\xb2\xf1\x82\xb0\x89\x59"
10303                           "\x86\xd4\xaa\xaa\xdd\xff\x4f\x92",
10304                 .len    = 32,
10305         }, {
10306                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10307                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10308                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10309                           "\x23\x84\x62\x64\x33\x83\x27\x95",
10310                 .klen   = 32,
10311                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10312                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10313                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10314                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10315                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10316                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10317                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10318                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10319                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10320                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10321                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10322                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10323                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10324                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10325                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10326                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10327                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10328                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10329                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10330                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10331                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10332                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10333                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10334                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10335                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10336                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10337                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10338                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10339                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10340                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10341                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10342                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10343                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10344                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10345                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10346                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10347                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10348                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10349                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10350                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10351                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10352                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10353                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10354                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10355                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10356                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10357                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10358                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10359                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10360                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10361                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10362                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10363                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10364                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10365                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10366                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10367                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10368                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10369                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10370                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10371                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10372                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10373                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10374                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10375                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10376                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10377                 .ctext  = "\x57\xb5\xf8\x71\x6e\x6d\xdd\x82"
10378                           "\x53\xd0\xed\x2d\x30\xc1\x20\xef"
10379                           "\x70\x67\x5e\xff\x09\x70\xbb\xc1"
10380                           "\x3a\x7b\x48\x26\xd9\x0b\xf4\x48"
10381                           "\xbe\xce\xb1\xc7\xb2\x67\xc4\xa7"
10382                           "\x76\xf8\x36\x30\xb7\xb4\x9a\xd9"
10383                           "\xf5\x9d\xd0\x7b\xc1\x06\x96\x44"
10384                           "\x19\xc5\x58\x84\x63\xb9\x12\x68"
10385                           "\x68\xc7\xaa\x18\x98\xf2\x1f\x5c"
10386                           "\x39\xa6\xd8\x32\x2b\xc3\x51\xfd"
10387                           "\x74\x79\x2e\xb4\x44\xd7\x69\xc4"
10388                           "\xfc\x29\xe6\xed\x26\x1e\xa6\x9d"
10389                           "\x1c\xbe\x00\x0e\x7f\x3a\xca\xfb"
10390                           "\x6d\x13\x65\xa0\xf9\x31\x12\xe2"
10391                           "\x26\xd1\xec\x2b\x0a\x8b\x59\x99"
10392                           "\xa7\x49\xa0\x0e\x09\x33\x85\x50"
10393                           "\xc3\x23\xca\x7a\xdd\x13\x45\x5f"
10394                           "\xde\x4c\xa7\xcb\x00\x8a\x66\x6f"
10395                           "\xa2\xb6\xb1\x2e\xe1\xa0\x18\xf6"
10396                           "\xad\xf3\xbd\xeb\xc7\xef\x55\x4f"
10397                           "\x79\x91\x8d\x36\x13\x7b\xd0\x4a"
10398                           "\x6c\x39\xfb\x53\xb8\x6f\x02\x51"
10399                           "\xa5\x20\xac\x24\x1c\x73\x59\x73"
10400                           "\x58\x61\x3a\x87\x58\xb3\x20\x56"
10401                           "\x39\x06\x2b\x4d\xd3\x20\x2b\x89"
10402                           "\x3f\xa2\xf0\x96\xeb\x7f\xa4\xcd"
10403                           "\x11\xae\xbd\xcb\x3a\xb4\xd9\x91"
10404                           "\x09\x35\x71\x50\x65\xac\x92\xe3"
10405                           "\x7b\x32\xc0\x7a\xdd\xd4\xc3\x92"
10406                           "\x6f\xeb\x79\xde\x6f\xd3\x25\xc9"
10407                           "\xcd\x63\xf5\x1e\x7a\x3b\x26\x9d"
10408                           "\x77\x04\x80\xa9\xbf\x38\xb5\xbd"
10409                           "\xb8\x05\x07\xbd\xfd\xab\x7b\xf8"
10410                           "\x2a\x26\xcc\x49\x14\x6d\x55\x01"
10411                           "\x06\x94\xd8\xb2\x2d\x53\x83\x1b"
10412                           "\x8f\xd4\xdd\x57\x12\x7e\x18\xba"
10413                           "\x8e\xe2\x4d\x80\xef\x7e\x6b\x9d"
10414                           "\x24\xa9\x60\xa4\x97\x85\x86\x2a"
10415                           "\x01\x00\x09\xf1\xcb\x4a\x24\x1c"
10416                           "\xd8\xf6\xe6\x5b\xe7\x5d\xf2\xc4"
10417                           "\x97\x1c\x10\xc6\x4d\x66\x4f\x98"
10418                           "\x87\x30\xac\xd5\xea\x73\x49\x10"
10419                           "\x80\xea\xe5\x5f\x4d\x5f\x03\x33"
10420                           "\x66\x02\x35\x3d\x60\x06\x36\x4f"
10421                           "\x14\x1c\xd8\x07\x1f\x78\xd0\xf8"
10422                           "\x4f\x6c\x62\x7c\x15\xa5\x7c\x28"
10423                           "\x7c\xcc\xeb\x1f\xd1\x07\x90\x93"
10424                           "\x7e\xc2\xa8\x3a\x80\xc0\xf5\x30"
10425                           "\xcc\x75\xcf\x16\x26\xa9\x26\x3b"
10426                           "\xe7\x68\x2f\x15\x21\x5b\xe4\x00"
10427                           "\xbd\x48\x50\xcd\x75\x70\xc4\x62"
10428                           "\xbb\x41\xfb\x89\x4a\x88\x3b\x3b"
10429                           "\x51\x66\x02\x69\x04\x97\x36\xd4"
10430                           "\x75\xae\x0b\xa3\x42\xf8\xca\x79"
10431                           "\x8f\x93\xe9\xcc\x38\xbd\xd6\xd2"
10432                           "\xf9\x70\x4e\xc3\x6a\x8e\x25\xbd"
10433                           "\xea\x15\x5a\xa0\x85\x7e\x81\x0d"
10434                           "\x03\xe7\x05\x39\xf5\x05\x26\xee"
10435                           "\xec\xaa\x1f\x3d\xc9\x98\x76\x01"
10436                           "\x2c\xf4\xfc\xa3\x88\x77\x38\xc4"
10437                           "\x50\x65\x50\x6d\x04\x1f\xdf\x5a"
10438                           "\xaa\xf2\x01\xa9\xc1\x8d\xee\xca"
10439                           "\x47\x26\xef\x39\xb8\xb4\xf2\xd1"
10440                           "\xd6\xbb\x1b\x2a\xc1\x34\x14\xcf",
10441                 .len    = 512,
10442         }, {
10443                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10444                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10445                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10446                           "\x99\x59\x57\x49\x66\x96\x76\x27"
10447                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10448                           "\x23\x84\x62\x64\x33\x83\x27\x95"
10449                           "\x02\x88\x41\x97\x16\x93\x99\x37"
10450                           "\x51\x05\x82\x09\x74\x94\x45\x92",
10451                 .klen   = 64,
10452                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10453                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10454                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10455                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10456                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10457                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10458                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10459                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10460                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10461                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10462                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10463                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10464                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10465                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10466                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10467                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10468                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10469                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10470                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10471                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10472                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10473                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10474                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10475                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10476                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10477                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10478                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10479                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10480                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10481                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10482                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10483                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10484                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10485                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10486                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10487                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10488                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10489                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10490                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10491                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10492                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10493                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10494                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10495                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10496                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10497                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10498                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10499                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10500                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10501                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10502                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10503                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10504                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10505                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10506                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10507                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10508                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10509                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10510                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10511                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10512                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10513                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10514                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10515                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10516                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10517                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10518                 .ctext  = "\xc5\x85\x2a\x4b\x73\xe4\xf6\xf1"
10519                           "\x7e\xf9\xf6\xe9\xa3\x73\x36\xcb"
10520                           "\xaa\xb6\x22\xb0\x24\x6e\x3d\x73"
10521                           "\x92\x99\xde\xd3\x76\xed\xcd\x63"
10522                           "\x64\x3a\x22\x57\xc1\x43\x49\xd4"
10523                           "\x79\x36\x31\x19\x62\xae\x10\x7e"
10524                           "\x7d\xcf\x7a\xe2\x6b\xce\x27\xfa"
10525                           "\xdc\x3d\xd9\x83\xd3\x42\x4c\xe0"
10526                           "\x1b\xd6\x1d\x1a\x6f\xd2\x03\x00"
10527                           "\xfc\x81\x99\x8a\x14\x62\xf5\x7e"
10528                           "\x0d\xe7\x12\xe8\x17\x9d\x0b\xec"
10529                           "\xe2\xf7\xc9\xa7\x63\xd1\x79\xb6"
10530                           "\x62\x62\x37\xfe\x0a\x4c\x4a\x37"
10531                           "\x70\xc7\x5e\x96\x5f\xbc\x8e\x9e"
10532                           "\x85\x3c\x4f\x26\x64\x85\xbc\x68"
10533                           "\xb0\xe0\x86\x5e\x26\x41\xce\x11"
10534                           "\x50\xda\x97\x14\xe9\x9e\xc7\x6d"
10535                           "\x3b\xdc\x43\xde\x2b\x27\x69\x7d"
10536                           "\xfc\xb0\x28\xbd\x8f\xb1\xc6\x31"
10537                           "\x14\x4d\xf0\x74\x37\xfd\x07\x25"
10538                           "\x96\x55\xe5\xfc\x9e\x27\x2a\x74"
10539                           "\x1b\x83\x4d\x15\x83\xac\x57\xa0"
10540                           "\xac\xa5\xd0\x38\xef\x19\x56\x53"
10541                           "\x25\x4b\xfc\xce\x04\x23\xe5\x6b"
10542                           "\xf6\xc6\x6c\x32\x0b\xb3\x12\xc5"
10543                           "\xed\x22\x34\x1c\x5d\xed\x17\x06"
10544                           "\x36\xa3\xe6\x77\xb9\x97\x46\xb8"
10545                           "\xe9\x3f\x7e\xc7\xbc\x13\x5c\xdc"
10546                           "\x6e\x3f\x04\x5e\xd1\x59\xa5\x82"
10547                           "\x35\x91\x3d\x1b\xe4\x97\x9f\x92"
10548                           "\x1c\x5e\x5f\x6f\x41\xd4\x62\xa1"
10549                           "\x8d\x39\xfc\x42\xfb\x38\x80\xb9"
10550                           "\x0a\xe3\xcc\x6a\x93\xd9\x7a\xb1"
10551                           "\xe9\x69\xaf\x0a\x6b\x75\x38\xa7"
10552                           "\xa1\xbf\xf7\xda\x95\x93\x4b\x78"
10553                           "\x19\xf5\x94\xf9\xd2\x00\x33\x37"
10554                           "\xcf\xf5\x9e\x9c\xf3\xcc\xa6\xee"
10555                           "\x42\xb2\x9e\x2c\x5f\x48\x23\x26"
10556                           "\x15\x25\x17\x03\x3d\xfe\x2c\xfc"
10557                           "\xeb\xba\xda\xe0\x00\x05\xb6\xa6"
10558                           "\x07\xb3\xe8\x36\x5b\xec\x5b\xbf"
10559                           "\xd6\x5b\x00\x74\xc6\x97\xf1\x6a"
10560                           "\x49\xa1\xc3\xfa\x10\x52\xb9\x14"
10561                           "\xad\xb7\x73\xf8\x78\x12\xc8\x59"
10562                           "\x17\x80\x4c\x57\x39\xf1\x6d\x80"
10563                           "\x25\x77\x0f\x5e\x7d\xf0\xaf\x21"
10564                           "\xec\xce\xb7\xc8\x02\x8a\xed\x53"
10565                           "\x2c\x25\x68\x2e\x1f\x85\x5e\x67"
10566                           "\xd1\x07\x7a\x3a\x89\x08\xe0\x34"
10567                           "\xdc\xdb\x26\xb4\x6b\x77\xfc\x40"
10568                           "\x31\x15\x72\xa0\xf0\x73\xd9\x3b"
10569                           "\xd5\xdb\xfe\xfc\x8f\xa9\x44\xa2"
10570                           "\x09\x9f\xc6\x33\xe5\xe2\x88\xe8"
10571                           "\xf3\xf0\x1a\xf4\xce\x12\x0f\xd6"
10572                           "\xf7\x36\xe6\xa4\xf4\x7a\x10\x58"
10573                           "\xcc\x1f\x48\x49\x65\x47\x75\xe9"
10574                           "\x28\xe1\x65\x7b\xf2\xc4\xb5\x07"
10575                           "\xf2\xec\x76\xd8\x8f\x09\xf3\x16"
10576                           "\xa1\x51\x89\x3b\xeb\x96\x42\xac"
10577                           "\x65\xe0\x67\x63\x29\xdc\xb4\x7d"
10578                           "\xf2\x41\x51\x6a\xcb\xde\x3c\xfb"
10579                           "\x66\x8d\x13\xca\xe0\x59\x2a\x00"
10580                           "\xc9\x53\x4c\xe6\x9e\xe2\x73\xd5"
10581                           "\x67\x19\xb2\xbd\x9a\x63\xd7\x5c",
10582                 .len    = 512,
10583                 .also_non_np = 1,
10584                 .np     = 3,
10585                 .tap    = { 512 - 20, 4, 16 },
10586         }
10587 };
10588
10589 static const struct cipher_testvec speck64_tv_template[] = {
10590         { /* Speck64/96 */
10591                 .key    = "\x00\x01\x02\x03\x08\x09\x0a\x0b"
10592                           "\x10\x11\x12\x13",
10593                 .klen   = 12,
10594                 .ptext  = "\x65\x61\x6e\x73\x20\x46\x61\x74",
10595                 .ctext  = "\x6c\x94\x75\x41\xec\x52\x79\x9f",
10596                 .len    = 8,
10597         }, { /* Speck64/128 */
10598                 .key    = "\x00\x01\x02\x03\x08\x09\x0a\x0b"
10599                           "\x10\x11\x12\x13\x18\x19\x1a\x1b",
10600                 .klen   = 16,
10601                 .ptext  = "\x2d\x43\x75\x74\x74\x65\x72\x3b",
10602                 .ctext  = "\x8b\x02\x4e\x45\x48\xa5\x6f\x8c",
10603                 .len    = 8,
10604         },
10605 };
10606
10607 /*
10608  * Speck64-XTS test vectors, taken from the AES-XTS test vectors with the
10609  * ciphertext recomputed with Speck64 as the cipher, and key lengths adjusted
10610  */
10611 static const struct cipher_testvec speck64_xts_tv_template[] = {
10612         {
10613                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
10614                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10615                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10616                 .klen   = 24,
10617                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10618                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10619                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
10620                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10621                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10622                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10623                 .ctext  = "\x84\xaf\x54\x07\x19\xd4\x7c\xa6"
10624                           "\xe4\xfe\xdf\xc4\x1f\x34\xc3\xc2"
10625                           "\x80\xf5\x72\xe7\xcd\xf0\x99\x22"
10626                           "\x35\xa7\x2f\x06\xef\xdc\x51\xaa",
10627                 .len    = 32,
10628         }, {
10629                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
10630                           "\x11\x11\x11\x11\x11\x11\x11\x11"
10631                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10632                 .klen   = 24,
10633                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10634                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10635                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10636                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10637                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10638                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10639                 .ctext  = "\x12\x56\x73\xcd\x15\x87\xa8\x59"
10640                           "\xcf\x84\xae\xd9\x1c\x66\xd6\x9f"
10641                           "\xb3\x12\x69\x7e\x36\xeb\x52\xff"
10642                           "\x62\xdd\xba\x90\xb3\xe1\xee\x99",
10643                 .len    = 32,
10644         }, {
10645                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10646                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10647                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10648                 .klen   = 24,
10649                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10650                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10651                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10652                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10653                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10654                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10655                 .ctext  = "\x15\x1b\xe4\x2c\xa2\x5a\x2d\x2c"
10656                           "\x27\x36\xc0\xbf\x5d\xea\x36\x37"
10657                           "\x2d\x1a\x88\xbc\x66\xb5\xd0\x0b"
10658                           "\xa1\xbc\x19\xb2\x0f\x3b\x75\x34",
10659                 .len    = 32,
10660         }, {
10661                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10662                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10663                           "\x31\x41\x59\x26\x53\x58\x97\x93",
10664                 .klen   = 24,
10665                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10666                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10667                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10668                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10669                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10670                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10671                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10672                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10673                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10674                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10675                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10676                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10677                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10678                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10679                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10680                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10681                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10682                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10683                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10684                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10685                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10686                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10687                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10688                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10689                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10690                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10691                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10692                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10693                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10694                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10695                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10696                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10697                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10698                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10699                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10700                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10701                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10702                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10703                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10704                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10705                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10706                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10707                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10708                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10709                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10710                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10711                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10712                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10713                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10714                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10715                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10716                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10717                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10718                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10719                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10720                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10721                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10722                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10723                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10724                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10725                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10726                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10727                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10728                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10729                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10730                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10731                 .ctext  = "\xaf\xa1\x81\xa6\x32\xbb\x15\x8e"
10732                           "\xf8\x95\x2e\xd3\xe6\xee\x7e\x09"
10733                           "\x0c\x1a\xf5\x02\x97\x8b\xe3\xb3"
10734                           "\x11\xc7\x39\x96\xd0\x95\xf4\x56"
10735                           "\xf4\xdd\x03\x38\x01\x44\x2c\xcf"
10736                           "\x88\xae\x8e\x3c\xcd\xe7\xaa\x66"
10737                           "\xfe\x3d\xc6\xfb\x01\x23\x51\x43"
10738                           "\xd5\xd2\x13\x86\x94\x34\xe9\x62"
10739                           "\xf9\x89\xe3\xd1\x7b\xbe\xf8\xef"
10740                           "\x76\x35\x04\x3f\xdb\x23\x9d\x0b"
10741                           "\x85\x42\xb9\x02\xd6\xcc\xdb\x96"
10742                           "\xa7\x6b\x27\xb6\xd4\x45\x8f\x7d"
10743                           "\xae\xd2\x04\xd5\xda\xc1\x7e\x24"
10744                           "\x8c\x73\xbe\x48\x7e\xcf\x65\x28"
10745                           "\x29\xe5\xbe\x54\x30\xcb\x46\x95"
10746                           "\x4f\x2e\x8a\x36\xc8\x27\xc5\xbe"
10747                           "\xd0\x1a\xaf\xab\x26\xcd\x9e\x69"
10748                           "\xa1\x09\x95\x71\x26\xe9\xc4\xdf"
10749                           "\xe6\x31\xc3\x46\xda\xaf\x0b\x41"
10750                           "\x1f\xab\xb1\x8e\xd6\xfc\x0b\xb3"
10751                           "\x82\xc0\x37\x27\xfc\x91\xa7\x05"
10752                           "\xfb\xc5\xdc\x2b\x74\x96\x48\x43"
10753                           "\x5d\x9c\x19\x0f\x60\x63\x3a\x1f"
10754                           "\x6f\xf0\x03\xbe\x4d\xfd\xc8\x4a"
10755                           "\xc6\xa4\x81\x6d\xc3\x12\x2a\x5c"
10756                           "\x07\xff\xf3\x72\x74\x48\xb5\x40"
10757                           "\x50\xb5\xdd\x90\x43\x31\x18\x15"
10758                           "\x7b\xf2\xa6\xdb\x83\xc8\x4b\x4a"
10759                           "\x29\x93\x90\x8b\xda\x07\xf0\x35"
10760                           "\x6d\x90\x88\x09\x4e\x83\xf5\x5b"
10761                           "\x94\x12\xbb\x33\x27\x1d\x3f\x23"
10762                           "\x51\xa8\x7c\x07\xa2\xae\x77\xa6"
10763                           "\x50\xfd\xcc\xc0\x4f\x80\x7a\x9f"
10764                           "\x66\xdd\xcd\x75\x24\x8b\x33\xf7"
10765                           "\x20\xdb\x83\x9b\x4f\x11\x63\x6e"
10766                           "\xcf\x37\xef\xc9\x11\x01\x5c\x45"
10767                           "\x32\x99\x7c\x3c\x9e\x42\x89\xe3"
10768                           "\x70\x6d\x15\x9f\xb1\xe6\xb6\x05"
10769                           "\xfe\x0c\xb9\x49\x2d\x90\x6d\xcc"
10770                           "\x5d\x3f\xc1\xfe\x89\x0a\x2e\x2d"
10771                           "\xa0\xa8\x89\x3b\x73\x39\xa5\x94"
10772                           "\x4c\xa4\xa6\xbb\xa7\x14\x46\x89"
10773                           "\x10\xff\xaf\xef\xca\xdd\x4f\x80"
10774                           "\xb3\xdf\x3b\xab\xd4\xe5\x5a\xc7"
10775                           "\x33\xca\x00\x8b\x8b\x3f\xea\xec"
10776                           "\x68\x8a\xc2\x6d\xfd\xd4\x67\x0f"
10777                           "\x22\x31\xe1\x0e\xfe\x5a\x04\xd5"
10778                           "\x64\xa3\xf1\x1a\x76\x28\xcc\x35"
10779                           "\x36\xa7\x0a\x74\xf7\x1c\x44\x9b"
10780                           "\xc7\x1b\x53\x17\x02\xea\xd1\xad"
10781                           "\x13\x51\x73\xc0\xa0\xb2\x05\x32"
10782                           "\xa8\xa2\x37\x2e\xe1\x7a\x3a\x19"
10783                           "\x26\xb4\x6c\x62\x5d\xb3\x1a\x1d"
10784                           "\x59\xda\xee\x1a\x22\x18\xda\x0d"
10785                           "\x88\x0f\x55\x8b\x72\x62\xfd\xc1"
10786                           "\x69\x13\xcd\x0d\x5f\xc1\x09\x52"
10787                           "\xee\xd6\xe3\x84\x4d\xee\xf6\x88"
10788                           "\xaf\x83\xdc\x76\xf4\xc0\x93\x3f"
10789                           "\x4a\x75\x2f\xb0\x0b\x3e\xc4\x54"
10790                           "\x7d\x69\x8d\x00\x62\x77\x0d\x14"
10791                           "\xbe\x7c\xa6\x7d\xc5\x24\x4f\xf3"
10792                           "\x50\xf7\x5f\xf4\xc2\xca\x41\x97"
10793                           "\x37\xbe\x75\x74\xcd\xf0\x75\x6e"
10794                           "\x25\x23\x94\xbd\xda\x8d\xb0\xd4",
10795                 .len    = 512,
10796         }, {
10797                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10798                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10799                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10800                           "\x99\x59\x57\x49\x66\x96\x76\x27",
10801                 .klen   = 32,
10802                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10803                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10804                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10805                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10806                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10807                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10808                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10809                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10810                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10811                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10812                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10813                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10814                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10815                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10816                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10817                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10818                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10819                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10820                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10821                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10822                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10823                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10824                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10825                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10826                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10827                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10828                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10829                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10830                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10831                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10832                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10833                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10834                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10835                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10836                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10837                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10838                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10839                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10840                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10841                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10842                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10843                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10844                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10845                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10846                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10847                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10848                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10849                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10850                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10851                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10852                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10853                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10854                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10855                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10856                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10857                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10858                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10859                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10860                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10861                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10862                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10863                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10864                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10865                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10866                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10867                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10868                 .ctext  = "\x55\xed\x71\xd3\x02\x8e\x15\x3b"
10869                           "\xc6\x71\x29\x2d\x3e\x89\x9f\x59"
10870                           "\x68\x6a\xcc\x8a\x56\x97\xf3\x95"
10871                           "\x4e\x51\x08\xda\x2a\xf8\x6f\x3c"
10872                           "\x78\x16\xea\x80\xdb\x33\x75\x94"
10873                           "\xf9\x29\xc4\x2b\x76\x75\x97\xc7"
10874                           "\xf2\x98\x2c\xf9\xff\xc8\xd5\x2b"
10875                           "\x18\xf1\xaf\xcf\x7c\xc5\x0b\xee"
10876                           "\xad\x3c\x76\x7c\xe6\x27\xa2\x2a"
10877                           "\xe4\x66\xe1\xab\xa2\x39\xfc\x7c"
10878                           "\xf5\xec\x32\x74\xa3\xb8\x03\x88"
10879                           "\x52\xfc\x2e\x56\x3f\xa1\xf0\x9f"
10880                           "\x84\x5e\x46\xed\x20\x89\xb6\x44"
10881                           "\x8d\xd0\xed\x54\x47\x16\xbe\x95"
10882                           "\x8a\xb3\x6b\x72\xc4\x32\x52\x13"
10883                           "\x1b\xb0\x82\xbe\xac\xf9\x70\xa6"
10884                           "\x44\x18\xdd\x8c\x6e\xca\x6e\x45"
10885                           "\x8f\x1e\x10\x07\x57\x25\x98\x7b"
10886                           "\x17\x8c\x78\xdd\x80\xa7\xd9\xd8"
10887                           "\x63\xaf\xb9\x67\x57\xfd\xbc\xdb"
10888                           "\x44\xe9\xc5\x65\xd1\xc7\x3b\xff"
10889                           "\x20\xa0\x80\x1a\xc3\x9a\xad\x5e"
10890                           "\x5d\x3b\xd3\x07\xd9\xf5\xfd\x3d"
10891                           "\x4a\x8b\xa8\xd2\x6e\x7a\x51\x65"
10892                           "\x6c\x8e\x95\xe0\x45\xc9\x5f\x4a"
10893                           "\x09\x3c\x3d\x71\x7f\x0c\x84\x2a"
10894                           "\xc8\x48\x52\x1a\xc2\xd5\xd6\x78"
10895                           "\x92\x1e\xa0\x90\x2e\xea\xf0\xf3"
10896                           "\xdc\x0f\xb1\xaf\x0d\x9b\x06\x2e"
10897                           "\x35\x10\x30\x82\x0d\xe7\xc5\x9b"
10898                           "\xde\x44\x18\xbd\x9f\xd1\x45\xa9"
10899                           "\x7b\x7a\x4a\xad\x35\x65\x27\xca"
10900                           "\xb2\xc3\xd4\x9b\x71\x86\x70\xee"
10901                           "\xf1\x89\x3b\x85\x4b\x5b\xaa\xaf"
10902                           "\xfc\x42\xc8\x31\x59\xbe\x16\x60"
10903                           "\x4f\xf9\xfa\x12\xea\xd0\xa7\x14"
10904                           "\xf0\x7a\xf3\xd5\x8d\xbd\x81\xef"
10905                           "\x52\x7f\x29\x51\x94\x20\x67\x3c"
10906                           "\xd1\xaf\x77\x9f\x22\x5a\x4e\x63"
10907                           "\xe7\xff\x73\x25\xd1\xdd\x96\x8a"
10908                           "\x98\x52\x6d\xf3\xac\x3e\xf2\x18"
10909                           "\x6d\xf6\x0a\x29\xa6\x34\x3d\xed"
10910                           "\xe3\x27\x0d\x9d\x0a\x02\x44\x7e"
10911                           "\x5a\x7e\x67\x0f\x0a\x9e\xd6\xad"
10912                           "\x91\xe6\x4d\x81\x8c\x5c\x59\xaa"
10913                           "\xfb\xeb\x56\x53\xd2\x7d\x4c\x81"
10914                           "\x65\x53\x0f\x41\x11\xbd\x98\x99"
10915                           "\xf9\xc6\xfa\x51\x2e\xa3\xdd\x8d"
10916                           "\x84\x98\xf9\x34\xed\x33\x2a\x1f"
10917                           "\x82\xed\xc1\x73\x98\xd3\x02\xdc"
10918                           "\xe6\xc2\x33\x1d\xa2\xb4\xca\x76"
10919                           "\x63\x51\x34\x9d\x96\x12\xae\xce"
10920                           "\x83\xc9\x76\x5e\xa4\x1b\x53\x37"
10921                           "\x17\xd5\xc0\x80\x1d\x62\xf8\x3d"
10922                           "\x54\x27\x74\xbb\x10\x86\x57\x46"
10923                           "\x68\xe1\xed\x14\xe7\x9d\xfc\x84"
10924                           "\x47\xbc\xc2\xf8\x19\x4b\x99\xcf"
10925                           "\x7a\xe9\xc4\xb8\x8c\x82\x72\x4d"
10926                           "\x7b\x4f\x38\x55\x36\x71\x64\xc1"
10927                           "\xfc\x5c\x75\x52\x33\x02\x18\xf8"
10928                           "\x17\xe1\x2b\xc2\x43\x39\xbd\x76"
10929                           "\x9b\x63\x76\x32\x2f\x19\x72\x10"
10930                           "\x9f\x21\x0c\xf1\x66\x50\x7f\xa5"
10931                           "\x0d\x1f\x46\xe0\xba\xd3\x2f\x3c",
10932                 .len    = 512,
10933                 .also_non_np = 1,
10934                 .np     = 3,
10935                 .tap    = { 512 - 20, 4, 16 },
10936         }
10937 };
10938
10939 /* Cast6 test vectors from RFC 2612 */
10940 static const struct cipher_testvec cast6_tv_template[] = {
10941         {
10942                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10943                           "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
10944                 .klen   = 16,
10945                 .ptext  = zeroed_string,
10946                 .ctext  = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
10947                           "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
10948                 .len    = 16,
10949         }, {
10950                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10951                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10952                           "\xba\xc7\x7a\x77\x17\x94\x28\x63",
10953                 .klen   = 24,
10954                 .ptext  = zeroed_string,
10955                 .ctext  = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
10956                           "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
10957                 .len    = 16,
10958         }, {
10959                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10960                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10961                           "\x8d\x7c\x47\xce\x26\x49\x08\x46"
10962                           "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
10963                 .klen   = 32,
10964                 .ptext  = zeroed_string,
10965                 .ctext  = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
10966                           "\xc9\x87\x01\x36\x55\x33\x17\xfa",
10967                 .len    = 16,
10968         }, { /* Generated from TF test vectors */
10969                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10970                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10971                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10972                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10973                 .klen   = 32,
10974                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10975                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10976                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10977                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10978                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10979                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10980                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10981                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10982                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10983                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10984                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10985                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10986                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10987                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10988                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10989                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10990                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10991                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10992                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10993                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10994                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10995                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10996                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10997                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10998                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10999                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11000                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11001                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11002                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11003                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11004                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11005                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11006                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11007                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11008                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11009                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11010                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11011                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11012                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11013                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11014                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11015                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11016                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11017                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11018                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11019                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11020                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11021                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11022                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11023                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11024                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11025                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11026                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11027                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11028                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11029                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11030                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11031                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11032                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11033                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11034                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11035                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11036                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11037                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11038                 .ctext  = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
11039                           "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
11040                           "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
11041                           "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
11042                           "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
11043                           "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
11044                           "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
11045                           "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
11046                           "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
11047                           "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
11048                           "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
11049                           "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
11050                           "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
11051                           "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
11052                           "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
11053                           "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
11054                           "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
11055                           "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
11056                           "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
11057                           "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
11058                           "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
11059                           "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
11060                           "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
11061                           "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
11062                           "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
11063                           "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
11064                           "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
11065                           "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
11066                           "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
11067                           "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
11068                           "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
11069                           "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
11070                           "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
11071                           "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
11072                           "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
11073                           "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
11074                           "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
11075                           "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
11076                           "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
11077                           "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
11078                           "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
11079                           "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
11080                           "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
11081                           "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
11082                           "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
11083                           "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
11084                           "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
11085                           "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
11086                           "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
11087                           "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
11088                           "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
11089                           "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
11090                           "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
11091                           "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
11092                           "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
11093                           "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
11094                           "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
11095                           "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
11096                           "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
11097                           "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
11098                           "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
11099                           "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
11100                 .len    = 496,
11101                 .also_non_np = 1,
11102                 .np     = 3,
11103                 .tap    = { 496 - 20, 4, 16 },
11104         },
11105 };
11106
11107 static const struct cipher_testvec cast6_cbc_tv_template[] = {
11108         { /* Generated from TF test vectors */
11109                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11110                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11111                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11112                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11113                 .klen   = 32,
11114                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11115                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11116                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11117                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11118                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11119                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11120                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11121                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11122                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11123                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11124                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11125                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11126                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11127                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11128                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11129                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11130                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11131                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11132                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11133                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11134                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11135                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11136                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11137                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11138                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11139                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11140                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11141                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11142                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11143                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11144                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11145                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11146                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11147                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11148                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11149                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11150                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11151                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11152                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11153                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11154                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11155                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11156                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11157                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11158                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11159                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11160                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11161                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11162                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11163                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11164                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11165                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11166                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11167                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11168                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11169                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11170                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11171                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11172                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11173                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11174                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11175                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11176                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11177                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11178                 .ctext  = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
11179                           "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
11180                           "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
11181                           "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
11182                           "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
11183                           "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
11184                           "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
11185                           "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
11186                           "\x57\x95\xE1\x21\x26\x10\x9A\x21"
11187                           "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
11188                           "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
11189                           "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
11190                           "\x23\x16\x47\x72\x81\x13\x3A\x72"
11191                           "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
11192                           "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
11193                           "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
11194                           "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
11195                           "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
11196                           "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
11197                           "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
11198                           "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
11199                           "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
11200                           "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
11201                           "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
11202                           "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
11203                           "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
11204                           "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
11205                           "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
11206                           "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
11207                           "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
11208                           "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
11209                           "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
11210                           "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
11211                           "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
11212                           "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
11213                           "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
11214                           "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
11215                           "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
11216                           "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
11217                           "\x73\x3F\x12\x91\x47\x54\xBA\x39"
11218                           "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
11219                           "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
11220                           "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
11221                           "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
11222                           "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
11223                           "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
11224                           "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
11225                           "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
11226                           "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
11227                           "\x80\x21\x83\x58\x3C\x76\xFD\x28"
11228                           "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
11229                           "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
11230                           "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
11231                           "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
11232                           "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
11233                           "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
11234                           "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
11235                           "\x56\x4D\x82\x62\x37\xA3\x48\x01"
11236                           "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
11237                           "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
11238                           "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
11239                           "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
11240                 .len    = 496,
11241                 .also_non_np = 1,
11242                 .np     = 3,
11243                 .tap    = { 496 - 20, 4, 16 },
11244         },
11245 };
11246
11247 static const struct cipher_testvec cast6_ctr_tv_template[] = {
11248         { /* Generated from TF test vectors */
11249                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11250                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11251                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11252                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11253                 .klen   = 32,
11254                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11255                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11256                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11257                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11258                           "\x3A",
11259                 .ctext  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11260                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11261                           "\x57",
11262                 .len    = 17,
11263         }, { /* Generated from TF test vectors */
11264                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11265                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11266                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11267                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11268                 .klen   = 32,
11269                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11270                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11271                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11272                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11273                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11274                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11275                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11276                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11277                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11278                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11279                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11280                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11281                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11282                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11283                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11284                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11285                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11286                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11287                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11288                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11289                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11290                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11291                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11292                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11293                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11294                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11295                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11296                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11297                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11298                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11299                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11300                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11301                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11302                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11303                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11304                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11305                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11306                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11307                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11308                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11309                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11310                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11311                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11312                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11313                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11314                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11315                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11316                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11317                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11318                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11319                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11320                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11321                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11322                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11323                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11324                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11325                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11326                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11327                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11328                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11329                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11330                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11331                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11332                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11333                 .ctext  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11334                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11335                           "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
11336                           "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
11337                           "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
11338                           "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
11339                           "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
11340                           "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
11341                           "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
11342                           "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
11343                           "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
11344                           "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
11345                           "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
11346                           "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
11347                           "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
11348                           "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
11349                           "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
11350                           "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
11351                           "\x49\x61\x22\x52\x64\x8C\x46\x41"
11352                           "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
11353                           "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
11354                           "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
11355                           "\x00\x14\x15\x59\xC1\x30\x64\xAF"
11356                           "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
11357                           "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
11358                           "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
11359                           "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
11360                           "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
11361                           "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
11362                           "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
11363                           "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
11364                           "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
11365                           "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
11366                           "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
11367                           "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
11368                           "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
11369                           "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
11370                           "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
11371                           "\x60\x40\x38\x90\x20\x46\xC7\xB3"
11372                           "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
11373                           "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
11374                           "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
11375                           "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
11376                           "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
11377                           "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
11378                           "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
11379                           "\x73\xFC\x91\xAB\x79\x41\x23\x14"
11380                           "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
11381                           "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
11382                           "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
11383                           "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
11384                           "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
11385                           "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
11386                           "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
11387                           "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
11388                           "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
11389                           "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
11390                           "\x19\x35\x88\x22\x45\x59\x0E\x8F"
11391                           "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
11392                           "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
11393                           "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
11394                           "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
11395                 .len    = 496,
11396                 .also_non_np = 1,
11397                 .np     = 3,
11398                 .tap    = { 496 - 20, 4, 16 },
11399         },
11400 };
11401
11402 static const struct cipher_testvec cast6_lrw_tv_template[] = {
11403         { /* Generated from TF test vectors */
11404                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11405                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11406                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11407                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11408                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11409                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11410                 .klen   = 48,
11411                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
11412                           "\x00\x00\x00\x00\x00\x00\x00\x01",
11413                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
11414                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
11415                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
11416                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
11417                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
11418                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
11419                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
11420                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
11421                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
11422                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
11423                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
11424                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
11425                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
11426                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
11427                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
11428                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
11429                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
11430                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
11431                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
11432                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
11433                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
11434                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
11435                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
11436                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
11437                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
11438                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
11439                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
11440                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
11441                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
11442                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
11443                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
11444                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
11445                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
11446                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
11447                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
11448                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
11449                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
11450                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
11451                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
11452                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
11453                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
11454                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
11455                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
11456                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
11457                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
11458                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
11459                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
11460                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
11461                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
11462                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
11463                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
11464                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
11465                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
11466                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
11467                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
11468                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
11469                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
11470                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
11471                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
11472                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
11473                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
11474                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
11475                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
11476                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
11477                 .ctext  = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
11478                           "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
11479                           "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
11480                           "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
11481                           "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
11482                           "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
11483                           "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
11484                           "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
11485                           "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
11486                           "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
11487                           "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
11488                           "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
11489                           "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
11490                           "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
11491                           "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
11492                           "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
11493                           "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
11494                           "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
11495                           "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
11496                           "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
11497                           "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
11498                           "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
11499                           "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
11500                           "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
11501                           "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
11502                           "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
11503                           "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
11504                           "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
11505                           "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
11506                           "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
11507                           "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
11508                           "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
11509                           "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
11510                           "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
11511                           "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
11512                           "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
11513                           "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
11514                           "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
11515                           "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
11516                           "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
11517                           "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
11518                           "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
11519                           "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
11520                           "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
11521                           "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
11522                           "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
11523                           "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
11524                           "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
11525                           "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
11526                           "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
11527                           "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
11528                           "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
11529                           "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
11530                           "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
11531                           "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
11532                           "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
11533                           "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
11534                           "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
11535                           "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
11536                           "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
11537                           "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
11538                           "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
11539                           "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
11540                           "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
11541                 .len    = 512,
11542                 .also_non_np = 1,
11543                 .np     = 3,
11544                 .tap    = { 512 - 20, 4, 16 },
11545         },
11546 };
11547
11548 static const struct cipher_testvec cast6_xts_tv_template[] = {
11549         { /* Generated from TF test vectors */
11550                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
11551                           "\x23\x53\x60\x28\x74\x71\x35\x26"
11552                           "\x62\x49\x77\x57\x24\x70\x93\x69"
11553                           "\x99\x59\x57\x49\x66\x96\x76\x27"
11554                           "\x31\x41\x59\x26\x53\x58\x97\x93"
11555                           "\x23\x84\x62\x64\x33\x83\x27\x95"
11556                           "\x02\x88\x41\x97\x16\x93\x99\x37"
11557                           "\x51\x05\x82\x09\x74\x94\x45\x92",
11558                 .klen   = 64,
11559                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
11560                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11561                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11562                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11563                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11564                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11565                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11566                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11567                           "\x30\x31\x32\x33\x34\x35\x36\x37"
11568                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11569                           "\x40\x41\x42\x43\x44\x45\x46\x47"
11570                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11571                           "\x50\x51\x52\x53\x54\x55\x56\x57"
11572                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11573                           "\x60\x61\x62\x63\x64\x65\x66\x67"
11574                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11575                           "\x70\x71\x72\x73\x74\x75\x76\x77"
11576                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11577                           "\x80\x81\x82\x83\x84\x85\x86\x87"
11578                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11579                           "\x90\x91\x92\x93\x94\x95\x96\x97"
11580                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11581                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11582                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11583                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11584                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11585                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11586                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11587                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11588                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11589                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11590                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11591                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11592                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11593                           "\x00\x01\x02\x03\x04\x05\x06\x07"
11594                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11595                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11596                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11597                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11598                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11599                           "\x30\x31\x32\x33\x34\x35\x36\x37"
11600                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11601                           "\x40\x41\x42\x43\x44\x45\x46\x47"
11602                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11603                           "\x50\x51\x52\x53\x54\x55\x56\x57"
11604                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11605                           "\x60\x61\x62\x63\x64\x65\x66\x67"
11606                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11607                           "\x70\x71\x72\x73\x74\x75\x76\x77"
11608                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11609                           "\x80\x81\x82\x83\x84\x85\x86\x87"
11610                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11611                           "\x90\x91\x92\x93\x94\x95\x96\x97"
11612                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11613                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11614                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11615                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11616                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11617                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11618                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11619                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11620                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11621                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11622                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11623                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11624                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11625                 .ctext  = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
11626                           "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
11627                           "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
11628                           "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
11629                           "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
11630                           "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
11631                           "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
11632                           "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
11633                           "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
11634                           "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
11635                           "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
11636                           "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
11637                           "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
11638                           "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
11639                           "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
11640                           "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
11641                           "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
11642                           "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
11643                           "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
11644                           "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
11645                           "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
11646                           "\x71\x38\x17\x91\x44\xE8\xFC\x65"
11647                           "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
11648                           "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
11649                           "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
11650                           "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
11651                           "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
11652                           "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
11653                           "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
11654                           "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
11655                           "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
11656                           "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
11657                           "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
11658                           "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
11659                           "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
11660                           "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
11661                           "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
11662                           "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
11663                           "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
11664                           "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
11665                           "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
11666                           "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
11667                           "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
11668                           "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
11669                           "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
11670                           "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
11671                           "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
11672                           "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
11673                           "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
11674                           "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
11675                           "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
11676                           "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
11677                           "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
11678                           "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
11679                           "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
11680                           "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
11681                           "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
11682                           "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
11683                           "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
11684                           "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
11685                           "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
11686                           "\x45\x72\x80\x17\x81\xBD\x9D\x62"
11687                           "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
11688                           "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
11689                 .len    = 512,
11690                 .also_non_np = 1,
11691                 .np     = 3,
11692                 .tap    = { 512 - 20, 4, 16 },
11693         },
11694 };
11695
11696 /*
11697  * AES test vectors.
11698  */
11699 static const struct cipher_testvec aes_tv_template[] = {
11700         { /* From FIPS-197 */
11701                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11702                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11703                 .klen   = 16,
11704                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11705                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11706                 .ctext  = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
11707                           "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
11708                 .len    = 16,
11709         }, {
11710                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11711                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11712                           "\x10\x11\x12\x13\x14\x15\x16\x17",
11713                 .klen   = 24,
11714                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11715                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11716                 .ctext  = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
11717                           "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
11718                 .len    = 16,
11719         }, {
11720                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11721                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11722                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11723                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11724                 .klen   = 32,
11725                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11726                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11727                 .ctext  = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
11728                           "\xea\xfc\x49\x90\x4b\x49\x60\x89",
11729                 .len    = 16,
11730         }, { /* Generated with Crypto++ */
11731                 .key    = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
11732                           "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
11733                           "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
11734                           "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
11735                 .klen   = 32,
11736                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11737                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11738                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11739                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11740                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11741                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11742                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11743                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11744                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11745                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11746                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11747                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11748                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11749                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11750                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11751                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11752                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11753                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11754                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11755                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11756                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11757                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11758                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11759                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11760                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11761                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11762                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11763                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11764                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11765                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11766                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11767                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11768                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11769                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11770                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11771                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11772                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11773                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11774                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11775                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11776                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11777                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11778                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11779                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11780                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11781                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11782                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11783                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11784                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11785                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11786                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11787                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11788                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11789                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11790                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11791                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11792                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11793                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11794                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11795                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11796                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11797                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11798                 .ctext  = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
11799                           "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
11800                           "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
11801                           "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
11802                           "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
11803                           "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
11804                           "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
11805                           "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
11806                           "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
11807                           "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
11808                           "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
11809                           "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
11810                           "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
11811                           "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
11812                           "\x41\x72\x51\x97\x1D\x07\x49\xA0"
11813                           "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
11814                           "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
11815                           "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
11816                           "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
11817                           "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
11818                           "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
11819                           "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
11820                           "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
11821                           "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
11822                           "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
11823                           "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
11824                           "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
11825                           "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
11826                           "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
11827                           "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
11828                           "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
11829                           "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
11830                           "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
11831                           "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
11832                           "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
11833                           "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
11834                           "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
11835                           "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
11836                           "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
11837                           "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
11838                           "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
11839                           "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
11840                           "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
11841                           "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
11842                           "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
11843                           "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
11844                           "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
11845                           "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
11846                           "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
11847                           "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
11848                           "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
11849                           "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
11850                           "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
11851                           "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
11852                           "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
11853                           "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
11854                           "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
11855                           "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
11856                           "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
11857                           "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
11858                           "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
11859                           "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
11860                 .len    = 496,
11861                 .also_non_np = 1,
11862                 .np     = 3,
11863                 .tap    = { 496 - 20, 4, 16 },
11864         },
11865 };
11866
11867 static const struct cipher_testvec aes_cbc_tv_template[] = {
11868         { /* From RFC 3602 */
11869                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
11870                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
11871                 .klen   = 16,
11872                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11873                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11874                 .ptext  = "Single block msg",
11875                 .ctext  = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
11876                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
11877                 .len    = 16,
11878                 .also_non_np = 1,
11879                 .np     = 8,
11880                 .tap    = { 3, 2, 3, 2, 3, 1, 1, 1 },
11881         }, {
11882                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
11883                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
11884                 .klen   = 16,
11885                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11886                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11887                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11888                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11889                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11890                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11891                 .ctext  = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
11892                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
11893                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
11894                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
11895                 .len    = 32,
11896         }, { /* From NIST SP800-38A */
11897                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11898                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11899                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11900                 .klen   = 24,
11901                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11902                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11903                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11904                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11905                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11906                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11907                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11908                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11909                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11910                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11911                 .ctext  = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
11912                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
11913                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
11914                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
11915                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
11916                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
11917                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
11918                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
11919                 .len    = 64,
11920         }, {
11921                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11922                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11923                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11924                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11925                 .klen   = 32,
11926                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11927                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11928                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11929                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11930                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11931                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11932                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11933                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11934                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11935                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11936                 .ctext  = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
11937                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
11938                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
11939                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
11940                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
11941                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
11942                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
11943                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
11944                 .len    = 64,
11945         }, { /* Generated with Crypto++ */
11946                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
11947                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
11948                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
11949                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
11950                 .klen   = 32,
11951                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
11952                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
11953                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11954                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11955                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11956                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11957                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11958                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11959                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11960                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11961                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11962                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11963                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11964                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11965                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11966                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11967                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11968                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11969                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11970                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11971                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11972                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11973                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11974                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11975                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11976                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11977                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11978                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11979                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11980                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11981                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11982                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11983                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11984                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11985                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11986                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11987                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11988                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11989                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11990                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11991                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11992                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11993                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11994                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11995                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11996                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11997                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11998                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11999                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
12000                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
12001                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
12002                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
12003                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
12004                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
12005                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
12006                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
12007                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
12008                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
12009                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
12010                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
12011                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
12012                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
12013                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
12014                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
12015                 .ctext  = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
12016                           "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
12017                           "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
12018                           "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
12019                           "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
12020                           "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
12021                           "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
12022                           "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
12023                           "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
12024                           "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
12025                           "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
12026                           "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
12027                           "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
12028                           "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
12029                           "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
12030                           "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
12031                           "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
12032                           "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
12033                           "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
12034                           "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
12035                           "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
12036                           "\x16\x24\x02\x07\x48\xAE\xF2\x31"
12037                           "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
12038                           "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
12039                           "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
12040                           "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
12041                           "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
12042                           "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
12043                           "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
12044                           "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
12045                           "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
12046                           "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
12047                           "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
12048                           "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
12049                           "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
12050                           "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
12051                           "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
12052                           "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
12053                           "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
12054                           "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
12055                           "\x22\x39\x7B\x16\x03\x01\x69\xAF"
12056                           "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
12057                           "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
12058                           "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
12059                           "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
12060                           "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
12061                           "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
12062                           "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
12063                           "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
12064                           "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
12065                           "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
12066                           "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
12067                           "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
12068                           "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
12069                           "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
12070                           "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
12071                           "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
12072                           "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
12073                           "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
12074                           "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
12075                           "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
12076                           "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
12077                 .len    = 496,
12078                 .also_non_np = 1,
12079                 .np     = 3,
12080                 .tap    = { 496 - 20, 4, 16 },
12081         },
12082 };
12083
12084 static const struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
12085         { /* Input data from RFC 2410 Case 1 */
12086 #ifdef __LITTLE_ENDIAN
12087                 .key    = "\x08\x00"            /* rta length */
12088                           "\x01\x00"            /* rta type */
12089 #else
12090                 .key    = "\x00\x08"            /* rta length */
12091                           "\x00\x01"            /* rta type */
12092 #endif
12093                           "\x00\x00\x00\x00"    /* enc key length */
12094                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12095                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12096                 .klen   = 8 + 16 + 0,
12097                 .iv     = "",
12098                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12099                 .ilen   = 8,
12100                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12101                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
12102                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
12103                 .rlen   = 8 + 16,
12104         }, { /* Input data from RFC 2410 Case 2 */
12105 #ifdef __LITTLE_ENDIAN
12106                 .key    = "\x08\x00"            /* rta length */
12107                           "\x01\x00"            /* rta type */
12108 #else
12109                 .key    = "\x00\x08"            /* rta length */
12110                           "\x00\x01"            /* rta type */
12111 #endif
12112                           "\x00\x00\x00\x00"    /* enc key length */
12113                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12114                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12115                 .klen   = 8 + 16 + 0,
12116                 .iv     = "",
12117                 .input  = "Network Security People Have A Strange Sense Of Humor",
12118                 .ilen   = 53,
12119                 .result = "Network Security People Have A Strange Sense Of Humor"
12120                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
12121                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
12122                 .rlen   = 53 + 16,
12123         },
12124 };
12125
12126 static const struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
12127         {
12128 #ifdef __LITTLE_ENDIAN
12129                 .key    = "\x08\x00"            /* rta length */
12130                           "\x01\x00"            /* rta type */
12131 #else
12132                 .key    = "\x00\x08"            /* rta length */
12133                           "\x00\x01"            /* rta type */
12134 #endif
12135                           "\x00\x00\x00\x00"    /* enc key length */
12136                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12137                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12138                 .klen   = 8 + 16 + 0,
12139                 .iv     = "",
12140                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12141                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
12142                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
12143                 .ilen   = 8 + 16,
12144                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12145                 .rlen   = 8,
12146         }, {
12147 #ifdef __LITTLE_ENDIAN
12148                 .key    = "\x08\x00"            /* rta length */
12149                           "\x01\x00"            /* rta type */
12150 #else
12151                 .key    = "\x00\x08"            /* rta length */
12152                           "\x00\x01"            /* rta type */
12153 #endif
12154                           "\x00\x00\x00\x00"    /* enc key length */
12155                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12156                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12157                 .klen   = 8 + 16 + 0,
12158                 .iv     = "",
12159                 .input  = "Network Security People Have A Strange Sense Of Humor"
12160                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
12161                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
12162                 .ilen   = 53 + 16,
12163                 .result = "Network Security People Have A Strange Sense Of Humor",
12164                 .rlen   = 53,
12165         },
12166 };
12167
12168 static const struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
12169         { /* RFC 3602 Case 1 */
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\x10"    /* enc key length */
12178                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12179                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12180                           "\x00\x00\x00\x00"
12181                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12182                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12183                 .klen   = 8 + 20 + 16,
12184                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12185                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12186                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12187                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12188                 .alen   = 16,
12189                 .input  = "Single block msg",
12190                 .ilen   = 16,
12191                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12192                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12193                           "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
12194                           "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
12195                           "\x03\x71\xa2\x06",
12196                 .rlen   = 16 + 20,
12197         }, { /* RFC 3602 Case 2 */
12198 #ifdef __LITTLE_ENDIAN
12199                 .key    = "\x08\x00"            /* rta length */
12200                           "\x01\x00"            /* rta type */
12201 #else
12202                 .key    = "\x00\x08"            /* rta length */
12203                           "\x00\x01"            /* rta type */
12204 #endif
12205                           "\x00\x00\x00\x10"    /* enc key length */
12206                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12207                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12208                           "\x30\x31\x32\x33"
12209                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12210                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12211                 .klen   = 8 + 20 + 16,
12212                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12213                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12214                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12215                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12216                 .alen   = 16,
12217                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12218                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12219                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12220                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12221                 .ilen   = 32,
12222                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12223                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12224                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12225                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12226                           "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
12227                           "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
12228                           "\x65\x39\xf8\xde",
12229                 .rlen   = 32 + 20,
12230         }, { /* RFC 3602 Case 3 */
12231 #ifdef __LITTLE_ENDIAN
12232                 .key    = "\x08\x00"            /* rta length */
12233                           "\x01\x00"            /* rta type */
12234 #else
12235                 .key    = "\x00\x08"            /* rta length */
12236                           "\x00\x01"            /* rta type */
12237 #endif
12238                           "\x00\x00\x00\x10"    /* enc key length */
12239                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12240                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12241                           "\x22\x33\x44\x55"
12242                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12243                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12244                 .klen   = 8 + 20 + 16,
12245                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12246                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12247                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12248                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12249                 .alen   = 16,
12250                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12251                 .ilen   = 48,
12252                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12253                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12254                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12255                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12256                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12257                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12258                           "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
12259                           "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
12260                           "\x8d\x62\xf2\x1e",
12261                 .rlen   = 48 + 20,
12262         }, { /* RFC 3602 Case 4 */
12263 #ifdef __LITTLE_ENDIAN
12264                 .key    = "\x08\x00"            /* rta length */
12265                           "\x01\x00"            /* rta type */
12266 #else
12267                 .key    = "\x00\x08"            /* rta length */
12268                           "\x00\x01"            /* rta type */
12269 #endif
12270                           "\x00\x00\x00\x10"    /* enc key length */
12271                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12272                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12273                           "\x22\x33\x44\x55"
12274                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12275                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12276                 .klen   = 8 + 20 + 16,
12277                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12278                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12279                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12280                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12281                 .alen   = 16,
12282                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12283                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12284                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12285                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12286                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12287                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12288                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12289                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12290                 .ilen   = 64,
12291                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12292                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12293                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12294                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12295                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12296                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12297                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12298                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12299                           "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
12300                           "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
12301                           "\x1d\xbe\xc6\xe9",
12302                 .rlen   = 64 + 20,
12303         }, { /* RFC 3602 Case 5 */
12304 #ifdef __LITTLE_ENDIAN
12305                 .key    = "\x08\x00"            /* rta length */
12306                           "\x01\x00"            /* rta type */
12307 #else
12308                 .key    = "\x00\x08"            /* rta length */
12309                           "\x00\x01"            /* rta type */
12310 #endif
12311                           "\x00\x00\x00\x10"    /* enc key length */
12312                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12313                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12314                           "\x22\x33\x44\x55"
12315                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12316                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12317                 .klen   = 8 + 20 + 16,
12318                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12319                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12320                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12321                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12322                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12323                 .alen   = 24,
12324                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12325                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12326                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12327                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12328                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12329                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12330                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12331                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12332                           "\x01\x02\x03\x04\x05\x06\x07\x08"
12333                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12334                 .ilen   = 80,
12335                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12336                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12337                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12338                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12339                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12340                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12341                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12342                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12343                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12344                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12345                           "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
12346                           "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
12347                           "\x85\xe1\x59\xf7",
12348                 .rlen   = 80 + 20,
12349        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12350 #ifdef __LITTLE_ENDIAN
12351                 .key    = "\x08\x00"            /* rta length */
12352                           "\x01\x00"            /* rta type */
12353 #else
12354                 .key    = "\x00\x08"            /* rta length */
12355                           "\x00\x01"            /* rta type */
12356 #endif
12357                           "\x00\x00\x00\x18"    /* enc key length */
12358                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12359                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12360                           "\x22\x33\x44\x55"
12361                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12362                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12363                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12364                 .klen   = 8 + 20 + 24,
12365                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12366                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12367                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12368                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12369                 .alen   = 16,
12370                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12371                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12372                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12373                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12374                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12375                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12376                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12377                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12378                 .ilen   = 64,
12379                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12380                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12381                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12382                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12383                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12384                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12385                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12386                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12387                           "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
12388                           "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
12389                           "\x47\x4c\xfc\x36",
12390                 .rlen   = 64 + 20,
12391         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12392 #ifdef __LITTLE_ENDIAN
12393                 .key    = "\x08\x00"            /* rta length */
12394                           "\x01\x00"            /* rta type */
12395 #else
12396                 .key    = "\x00\x08"            /* rta length */
12397                           "\x00\x01"            /* rta type */
12398 #endif
12399                           "\x00\x00\x00\x20"    /* enc key length */
12400                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12401                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12402                           "\x22\x33\x44\x55"
12403                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12404                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12405                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12406                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12407                 .klen   = 8 + 20 + 32,
12408                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12409                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12410                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12411                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12412                 .alen   = 16,
12413                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12414                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12415                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12416                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12417                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12418                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12419                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12420                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12421                 .ilen   = 64,
12422                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12423                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12424                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12425                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12426                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12427                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12428                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12429                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12430                           "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
12431                           "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
12432                           "\x51\xee\xd6\x4e",
12433                 .rlen   = 64 + 20,
12434         },
12435 };
12436
12437 static const struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
12438         { /* Input data from RFC 2410 Case 1 */
12439 #ifdef __LITTLE_ENDIAN
12440                 .key    = "\x08\x00"            /* rta length */
12441                           "\x01\x00"            /* rta type */
12442 #else
12443                 .key    = "\x00\x08"            /* rta length */
12444                           "\x00\x01"            /* rta type */
12445 #endif
12446                           "\x00\x00\x00\x00"    /* enc key length */
12447                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12448                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12449                           "\x00\x00\x00\x00",
12450                 .klen   = 8 + 20 + 0,
12451                 .iv     = "",
12452                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12453                 .ilen   = 8,
12454                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12455                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
12456                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
12457                           "\x8c\x5e\xe4\x08",
12458                 .rlen   = 8 + 20,
12459         }, { /* Input data from RFC 2410 Case 2 */
12460 #ifdef __LITTLE_ENDIAN
12461                 .key    = "\x08\x00"            /* rta length */
12462                           "\x01\x00"            /* rta type */
12463 #else
12464                 .key    = "\x00\x08"            /* rta length */
12465                           "\x00\x01"            /* rta type */
12466 #endif
12467                           "\x00\x00\x00\x00"    /* enc key length */
12468                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12469                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12470                           "\x00\x00\x00\x00",
12471                 .klen   = 8 + 20 + 0,
12472                 .iv     = "",
12473                 .input  = "Network Security People Have A Strange Sense Of Humor",
12474                 .ilen   = 53,
12475                 .result = "Network Security People Have A Strange Sense Of Humor"
12476                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
12477                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
12478                           "\x91\x56\xe4\xd6",
12479                 .rlen   = 53 + 20,
12480         },
12481 };
12482
12483 static const struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
12484         {
12485 #ifdef __LITTLE_ENDIAN
12486                 .key    = "\x08\x00"            /* rta length */
12487                           "\x01\x00"            /* rta type */
12488 #else
12489                 .key    = "\x00\x08"            /* rta length */
12490                           "\x00\x01"            /* rta type */
12491 #endif
12492                           "\x00\x00\x00\x00"    /* enc key length */
12493                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12494                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12495                           "\x00\x00\x00\x00",
12496                 .klen   = 8 + 20 + 0,
12497                 .iv     = "",
12498                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12499                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
12500                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
12501                           "\x8c\x5e\xe4\x08",
12502                 .ilen   = 8 + 20,
12503                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12504                 .rlen   = 8,
12505         }, {
12506 #ifdef __LITTLE_ENDIAN
12507                 .key    = "\x08\x00"            /* rta length */
12508                           "\x01\x00"            /* rta type */
12509 #else
12510                 .key    = "\x00\x08"            /* rta length */
12511                           "\x00\x01"            /* rta type */
12512 #endif
12513                           "\x00\x00\x00\x00"    /* enc key length */
12514                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12515                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12516                           "\x00\x00\x00\x00",
12517                 .klen   = 8 + 20 + 0,
12518                 .iv     = "",
12519                 .input  = "Network Security People Have A Strange Sense Of Humor"
12520                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
12521                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
12522                           "\x91\x56\xe4\xd6",
12523                 .ilen   = 53 + 20,
12524                 .result = "Network Security People Have A Strange Sense Of Humor",
12525                 .rlen   = 53,
12526         },
12527 };
12528
12529 static const struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
12530         { /* RFC 3602 Case 1 */
12531 #ifdef __LITTLE_ENDIAN
12532                 .key    = "\x08\x00"            /* rta length */
12533                           "\x01\x00"            /* rta type */
12534 #else
12535                 .key    = "\x00\x08"            /* rta length */
12536                           "\x00\x01"            /* rta type */
12537 #endif
12538                           "\x00\x00\x00\x10"    /* enc key length */
12539                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12540                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12541                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12542                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12543                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12544                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12545                 .klen   = 8 + 32 + 16,
12546                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12547                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12548                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12549                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12550                 .alen   = 16,
12551                 .input  = "Single block msg",
12552                 .ilen   = 16,
12553                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12554                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12555                           "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
12556                           "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
12557                           "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
12558                           "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
12559                 .rlen   = 16 + 32,
12560         }, { /* RFC 3602 Case 2 */
12561 #ifdef __LITTLE_ENDIAN
12562                 .key    = "\x08\x00"            /* rta length */
12563                           "\x01\x00"            /* rta type */
12564 #else
12565                 .key    = "\x00\x08"            /* rta length */
12566                           "\x00\x01"            /* rta type */
12567 #endif
12568                           "\x00\x00\x00\x10"    /* enc key length */
12569                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12570                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12571                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12572                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12573                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12574                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12575                 .klen   = 8 + 32 + 16,
12576                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12577                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12578                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12579                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12580                 .alen   = 16,
12581                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12582                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12583                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12584                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12585                 .ilen   = 32,
12586                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12587                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12588                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12589                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12590                           "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
12591                           "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
12592                           "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
12593                           "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
12594                 .rlen   = 32 + 32,
12595         }, { /* RFC 3602 Case 3 */
12596 #ifdef __LITTLE_ENDIAN
12597                 .key    = "\x08\x00"            /* rta length */
12598                           "\x01\x00"            /* rta type */
12599 #else
12600                 .key    = "\x00\x08"            /* rta length */
12601                           "\x00\x01"            /* rta type */
12602 #endif
12603                           "\x00\x00\x00\x10"    /* enc key length */
12604                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12605                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12606                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12607                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12608                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12609                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12610                 .klen   = 8 + 32 + 16,
12611                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12612                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12613                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12614                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12615                 .alen   = 16,
12616                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12617                 .ilen   = 48,
12618                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12619                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12620                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12621                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12622                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12623                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12624                           "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
12625                           "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
12626                           "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
12627                           "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
12628                 .rlen   = 48 + 32,
12629         }, { /* RFC 3602 Case 4 */
12630 #ifdef __LITTLE_ENDIAN
12631                 .key    = "\x08\x00"            /* rta length */
12632                           "\x01\x00"            /* rta type */
12633 #else
12634                 .key    = "\x00\x08"            /* rta length */
12635                           "\x00\x01"            /* rta type */
12636 #endif
12637                           "\x00\x00\x00\x10"    /* enc key length */
12638                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12639                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12640                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12641                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12642                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12643                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12644                 .klen   = 8 + 32 + 16,
12645                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12646                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12647                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12648                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12649                 .alen   = 16,
12650                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12651                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12652                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12653                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12654                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12655                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12656                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12657                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12658                 .ilen   = 64,
12659                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12660                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12661                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12662                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12663                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12664                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12665                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12666                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12667                           "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
12668                           "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
12669                           "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
12670                           "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
12671                 .rlen   = 64 + 32,
12672         }, { /* RFC 3602 Case 5 */
12673 #ifdef __LITTLE_ENDIAN
12674                 .key    = "\x08\x00"            /* rta length */
12675                           "\x01\x00"            /* rta type */
12676 #else
12677                 .key    = "\x00\x08"            /* rta length */
12678                           "\x00\x01"            /* rta type */
12679 #endif
12680                           "\x00\x00\x00\x10"    /* enc key length */
12681                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12682                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12683                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12684                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12685                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12686                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12687                 .klen   = 8 + 32 + 16,
12688                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12689                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12690                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12691                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12692                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12693                 .alen   = 24,
12694                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12695                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12696                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12697                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12698                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12699                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12700                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12701                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12702                           "\x01\x02\x03\x04\x05\x06\x07\x08"
12703                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12704                 .ilen   = 80,
12705                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12706                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12707                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12708                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12709                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12710                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12711                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12712                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12713                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12714                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12715                           "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
12716                           "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
12717                           "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
12718                           "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
12719                 .rlen   = 80 + 32,
12720        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12721 #ifdef __LITTLE_ENDIAN
12722                 .key    = "\x08\x00"            /* rta length */
12723                           "\x01\x00"            /* rta type */
12724 #else
12725                 .key    = "\x00\x08"            /* rta length */
12726                           "\x00\x01"            /* rta type */
12727 #endif
12728                           "\x00\x00\x00\x18"    /* enc key length */
12729                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12730                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12731                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12732                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12733                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12734                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12735                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12736                 .klen   = 8 + 32 + 24,
12737                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12738                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12739                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12740                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12741                 .alen   = 16,
12742                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12743                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12744                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12745                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12746                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12747                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12748                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12749                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12750                 .ilen   = 64,
12751                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12752                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12753                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12754                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12755                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12756                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12757                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12758                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12759                           "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
12760                           "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
12761                           "\xca\x71\x85\x93\xf7\x85\x55\x8b"
12762                           "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
12763                 .rlen   = 64 + 32,
12764         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12765 #ifdef __LITTLE_ENDIAN
12766                 .key    = "\x08\x00"            /* rta length */
12767                           "\x01\x00"            /* rta type */
12768 #else
12769                 .key    = "\x00\x08"            /* rta length */
12770                           "\x00\x01"            /* rta type */
12771 #endif
12772                           "\x00\x00\x00\x20"    /* enc key length */
12773                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12774                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12775                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12776                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12777                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12778                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12779                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12780                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12781                 .klen   = 8 + 32 + 32,
12782                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12783                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12784                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12785                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12786                 .alen   = 16,
12787                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12788                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12789                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12790                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12791                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12792                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12793                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12794                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12795                 .ilen   = 64,
12796                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12797                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12798                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12799                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12800                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12801                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12802                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12803                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12804                           "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
12805                           "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
12806                           "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
12807                           "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
12808                 .rlen   = 64 + 32,
12809         },
12810 };
12811
12812 static const struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
12813         { /* RFC 3602 Case 1 */
12814 #ifdef __LITTLE_ENDIAN
12815                 .key    = "\x08\x00"            /* rta length */
12816                           "\x01\x00"            /* rta type */
12817 #else
12818                 .key    = "\x00\x08"            /* rta length */
12819                           "\x00\x01"            /* rta type */
12820 #endif
12821                           "\x00\x00\x00\x10"    /* enc key length */
12822                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12823                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12824                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12825                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12826                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12827                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12828                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12829                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12830                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12831                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12832                 .klen   = 8 + 64 + 16,
12833                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12834                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12835                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12836                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12837                 .alen   = 16,
12838                 .input  = "Single block msg",
12839                 .ilen   = 16,
12840                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12841                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12842                           "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
12843                           "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
12844                           "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
12845                           "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
12846                           "\xec\xbd\x50\x08\x07\x64\x1a\x49"
12847                           "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
12848                           "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
12849                           "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
12850                 .rlen   = 16 + 64,
12851         }, { /* RFC 3602 Case 2 */
12852 #ifdef __LITTLE_ENDIAN
12853                 .key    = "\x08\x00"            /* rta length */
12854                           "\x01\x00"            /* rta type */
12855 #else
12856                 .key    = "\x00\x08"            /* rta length */
12857                           "\x00\x01"            /* rta type */
12858 #endif
12859                           "\x00\x00\x00\x10"    /* enc key length */
12860                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12861                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12862                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12863                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12864                           "\x40\x41\x42\x43\x44\x45\x46\x47"
12865                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12866                           "\x50\x51\x52\x53\x54\x55\x56\x57"
12867                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12868                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12869                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12870                 .klen   = 8 + 64 + 16,
12871                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12872                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12873                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12874                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12875                 .alen   = 16,
12876                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12877                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12878                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12879                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12880                 .ilen   = 32,
12881                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12882                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12883                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12884                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12885                           "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
12886                           "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
12887                           "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
12888                           "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
12889                           "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
12890                           "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
12891                           "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
12892                           "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
12893                 .rlen   = 32 + 64,
12894         }, { /* RFC 3602 Case 3 */
12895 #ifdef __LITTLE_ENDIAN
12896                 .key    = "\x08\x00"            /* rta length */
12897                           "\x01\x00"            /* rta type */
12898 #else
12899                 .key    = "\x00\x08"            /* rta length */
12900                           "\x00\x01"            /* rta type */
12901 #endif
12902                           "\x00\x00\x00\x10"    /* enc key length */
12903                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12904                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12905                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12906                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12907                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12908                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12909                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12910                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12911                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12912                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12913                 .klen   = 8 + 64 + 16,
12914                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12915                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12916                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12917                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12918                 .alen   = 16,
12919                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12920                 .ilen   = 48,
12921                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12922                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12923                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12924                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12925                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12926                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12927                           "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
12928                           "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
12929                           "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
12930                           "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
12931                           "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
12932                           "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
12933                           "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
12934                           "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
12935                 .rlen   = 48 + 64,
12936         }, { /* RFC 3602 Case 4 */
12937 #ifdef __LITTLE_ENDIAN
12938                 .key    = "\x08\x00"            /* rta length */
12939                           "\x01\x00"            /* rta type */
12940 #else
12941                 .key    = "\x00\x08"            /* rta length */
12942                           "\x00\x01"            /* rta type */
12943 #endif
12944                           "\x00\x00\x00\x10"    /* enc key length */
12945                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12946                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12947                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12948                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12949                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12950                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12951                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12952                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12953                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12954                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12955                 .klen   = 8 + 64 + 16,
12956                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12957                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12958                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12959                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12960                 .alen   = 16,
12961                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12962                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12963                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12964                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12965                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12966                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12967                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12968                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12969                 .ilen   = 64,
12970                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12971                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12972                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12973                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12974                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12975                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12976                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12977                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12978                           "\x82\xcd\x42\x28\x21\x20\x15\xcc"
12979                           "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
12980                           "\x61\x32\x82\x85\xcf\x27\xed\xb4"
12981                           "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
12982                           "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
12983                           "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
12984                           "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
12985                           "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
12986                 .rlen   = 64 + 64,
12987         }, { /* RFC 3602 Case 5 */
12988 #ifdef __LITTLE_ENDIAN
12989                 .key    = "\x08\x00"            /* rta length */
12990                           "\x01\x00"            /* rta type */
12991 #else
12992                 .key    = "\x00\x08"            /* rta length */
12993                           "\x00\x01"            /* rta type */
12994 #endif
12995                           "\x00\x00\x00\x10"    /* enc key length */
12996                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12997                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12998                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12999                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13000                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13001                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13002                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13003                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13004                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13005                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13006                 .klen   = 8 + 64 + 16,
13007                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13008                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13009                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13010                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13011                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13012                 .alen   = 24,
13013                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
13014                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13015                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13016                           "\x10\x11\x12\x13\x14\x15\x16\x17"
13017                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13018                           "\x20\x21\x22\x23\x24\x25\x26\x27"
13019                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13020                           "\x30\x31\x32\x33\x34\x35\x36\x37"
13021                           "\x01\x02\x03\x04\x05\x06\x07\x08"
13022                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
13023                 .ilen   = 80,
13024                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
13025                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13026                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13027                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13028                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13029                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13030                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13031                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13032                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13033                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13034                           "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
13035                           "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
13036                           "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
13037                           "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
13038                           "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
13039                           "\x92\x26\xc1\x76\x20\x11\xeb\xba"
13040                           "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
13041                           "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
13042                 .rlen   = 80 + 64,
13043        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13044 #ifdef __LITTLE_ENDIAN
13045                 .key    = "\x08\x00"            /* rta length */
13046                           "\x01\x00"            /* rta type */
13047 #else
13048                 .key    = "\x00\x08"            /* rta length */
13049                           "\x00\x01"            /* rta type */
13050 #endif
13051                           "\x00\x00\x00\x18"    /* enc key length */
13052                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13053                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13054                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13055                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13056                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13057                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13058                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13059                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13060                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13061                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13062                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13063                 .klen   = 8 + 64 + 24,
13064                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13065                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13066                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13067                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13068                 .alen   = 16,
13069                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13070                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13071                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13072                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13073                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13074                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13075                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13076                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13077                 .ilen   = 64,
13078                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13079                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13080                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13081                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13082                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13083                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13084                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13085                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13086                           "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
13087                           "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
13088                           "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
13089                           "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
13090                           "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
13091                           "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
13092                           "\x8d\x43\x98\xa7\x94\x16\x07\x02"
13093                           "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
13094                 .rlen   = 64 + 64,
13095         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13096 #ifdef __LITTLE_ENDIAN
13097                 .key    = "\x08\x00"            /* rta length */
13098                           "\x01\x00"            /* rta type */
13099 #else
13100                 .key    = "\x00\x08"            /* rta length */
13101                           "\x00\x01"            /* rta type */
13102 #endif
13103                           "\x00\x00\x00\x20"    /* enc key length */
13104                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13105                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13106                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13107                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13108                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13109                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13110                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13111                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13112                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13113                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13114                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13115                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13116                 .klen   = 8 + 64 + 32,
13117                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13118                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13119                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13120                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13121                 .alen   = 16,
13122                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13123                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13124                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13125                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13126                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13127                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13128                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13129                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13130                 .ilen   = 64,
13131                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13132                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13133                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13134                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13135                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13136                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13137                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13138                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13139                           "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
13140                           "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
13141                           "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
13142                           "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
13143                           "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
13144                           "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
13145                           "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
13146                           "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
13147                 .rlen   = 64 + 64,
13148         },
13149 };
13150
13151 static const struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
13152         { /*Generated with cryptopp*/
13153 #ifdef __LITTLE_ENDIAN
13154                 .key    = "\x08\x00"            /* rta length */
13155                           "\x01\x00"            /* rta type */
13156 #else
13157         .key    = "\x00\x08"            /* rta length */
13158                           "\x00\x01"            /* rta type */
13159 #endif
13160                           "\x00\x00\x00\x08"    /* enc key length */
13161                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13162                   "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13163                           "\x22\x33\x44\x55"
13164                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13165                 .klen   = 8 + 20 + 8,
13166                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13167                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13168                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13169                 .alen   = 16,
13170                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13171                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13172                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13173                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13174                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13175                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13176                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13177                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13178                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13179                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13180                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13181                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13182                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13183                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13184                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13185                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13186                 .ilen   = 128,
13187                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13188                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13189                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13190                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13191                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13192                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13193                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13194                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13195                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13196                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13197                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13198                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13199                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13200                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13201                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13202                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13203                           "\x95\x16\x20\x09\xf5\x95\x19\xfd"
13204                           "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
13205                           "\x5c\x44\xa9\x37",
13206                           .rlen = 128 + 20,
13207         },
13208 };
13209
13210 static const struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
13211         { /*Generated with cryptopp*/
13212 #ifdef __LITTLE_ENDIAN
13213                 .key    = "\x08\x00"            /* rta length */
13214                           "\x01\x00"            /* rta type */
13215 #else
13216                 .key    = "\x00\x08"            /* rta length */
13217                           "\x00\x01"            /* rta type */
13218 #endif
13219                           "\x00\x00\x00\x08"    /* enc key length */
13220                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13221                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13222                   "\x22\x33\x44\x55\x66\x77\x88\x99"
13223                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13224                 .klen   = 8 + 24 + 8,
13225                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13226                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13227                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13228                 .alen   = 16,
13229                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13230                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13231                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13232                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13233                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13234                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13235                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13236                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13237                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13238                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13239                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13240                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13241                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13242                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13243                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13244                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13245                 .ilen   = 128,
13246                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13247                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13248                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13249                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13250                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13251                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13252                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13253                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13254                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13255                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13256                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13257                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13258                   "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13259                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13260                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13261                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13262                           "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
13263                           "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
13264                           "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
13265                 .rlen   = 128 + 24,
13266         },
13267 };
13268
13269 static const struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
13270         { /*Generated with cryptopp*/
13271 #ifdef __LITTLE_ENDIAN
13272                 .key    = "\x08\x00"            /* rta length */
13273                           "\x01\x00"            /* rta type */
13274 #else
13275                 .key    = "\x00\x08"            /* rta length */
13276                           "\x00\x01"            /* rta type */
13277 #endif
13278                           "\x00\x00\x00\x08"    /* enc key length */
13279                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13280                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13281                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13282                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13283                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13284                 .klen   = 8 + 32 + 8,
13285                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13286                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13287                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13288                 .alen   = 16,
13289                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13290                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13291                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13292                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13293                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13294                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13295                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13296                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13297                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13298                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13299                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13300                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13301                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13302                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13303                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13304                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13305                 .ilen   = 128,
13306                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13307                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13308                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13309                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13310                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13311                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13312                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13313                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13314                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13315                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13316                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13317                   "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13318                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13319                   "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13320                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13321                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13322                           "\xc6\x58\xa1\x60\x70\x91\x39\x36"
13323                           "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
13324                           "\xde\x63\xde\x76\x52\xde\x9f\xba"
13325                           "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
13326                 .rlen   = 128 + 32,
13327         },
13328 };
13329
13330 static const struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
13331         { /*Generated with cryptopp*/
13332 #ifdef __LITTLE_ENDIAN
13333                 .key    = "\x08\x00"            /* rta length */
13334                           "\x01\x00"            /* rta type */
13335 #else
13336                 .key    = "\x00\x08"            /* rta length */
13337                           "\x00\x01"            /* rta type */
13338 #endif
13339                           "\x00\x00\x00\x08"    /* enc key length */
13340                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13341                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13342                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13343                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13344                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13345                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13346                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13347                 .klen   = 8 + 48 + 8,
13348                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13349                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13350                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13351                 .alen   = 16,
13352                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13353                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13354                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13355                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13356                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13357                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13358                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13359                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13360                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13361                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13362                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13363                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13364                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13365                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13366                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13367                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13368                 .ilen   = 128,
13369                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13370                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13371                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13372                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13373                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13374                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13375                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13376                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13377                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13378                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13379                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13380                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13381                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13382                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13383                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13384                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13385                           "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
13386                           "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
13387                           "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
13388                           "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
13389                           "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
13390                           "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
13391                 .rlen   = 128 + 48,
13392         },
13393 };
13394
13395 static const struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
13396         { /*Generated with cryptopp*/
13397 #ifdef __LITTLE_ENDIAN
13398                 .key    = "\x08\x00"            /* rta length */
13399                   "\x01\x00"            /* rta type */
13400 #else
13401                 .key    = "\x00\x08"            /* rta length */
13402                           "\x00\x01"            /* rta type */
13403 #endif
13404                           "\x00\x00\x00\x08"    /* enc key length */
13405                   "\x11\x22\x33\x44\x55\x66\x77\x88"
13406                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13407                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13408                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13409                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13410                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13411                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13412                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13413                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13414                 .klen   = 8 + 64 + 8,
13415                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13416                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13417                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13418                 .alen   = 16,
13419                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13420                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13421                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13422                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13423                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13424                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13425                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13426                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13427                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13428                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13429                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13430                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13431                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13432                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13433                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13434                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13435                 .ilen   = 128,
13436                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13437                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13438                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13439                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13440                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13441                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13442                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13443                   "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13444                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13445                   "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13446                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13447                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13448                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13449                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13450                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13451                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13452                           "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
13453                           "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
13454                           "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
13455                           "\x58\x83\xda\x67\xfb\x21\x24\xa2"
13456                           "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
13457                           "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
13458                           "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
13459                           "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
13460                 .rlen   = 128 + 64,
13461         },
13462 };
13463
13464 static const struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
13465         { /*Generated with cryptopp*/
13466 #ifdef __LITTLE_ENDIAN
13467                 .key    = "\x08\x00"            /* rta length */
13468                           "\x01\x00"            /* rta type */
13469 #else
13470                 .key    = "\x00\x08"            /* rta length */
13471                           "\x00\x01"            /* rta type */
13472 #endif
13473                           "\x00\x00\x00\x18"    /* enc key length */
13474                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13475                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13476                           "\x22\x33\x44\x55"
13477                   "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13478                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13479                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13480                 .klen   = 8 + 20 + 24,
13481                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13482                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13483                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13484                 .alen   = 16,
13485                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13486                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13487                   "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13488                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13489                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13490                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13491                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13492                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13493                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13494                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13495                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13496                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13497                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13498                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13499                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13500                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13501                 .ilen   = 128,
13502                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13503                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13504                   "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13505                   "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13506                   "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13507                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13508                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13509                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13510                   "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13511                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13512                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13513                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13514                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13515                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13516                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13517                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13518                           "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
13519                           "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
13520                           "\xd1\x60\x91\xb3",
13521                           .rlen = 128 + 20,
13522         },
13523 };
13524
13525 static const struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
13526         { /*Generated with cryptopp*/
13527 #ifdef __LITTLE_ENDIAN
13528                 .key    = "\x08\x00"            /* rta length */
13529                           "\x01\x00"            /* rta type */
13530 #else
13531                 .key    = "\x00\x08"            /* rta length */
13532                           "\x00\x01"            /* rta type */
13533 #endif
13534                           "\x00\x00\x00\x18"    /* enc key length */
13535                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13536                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13537                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13538                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13539                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13540                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13541                 .klen   = 8 + 24 + 24,
13542                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13543                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13544                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13545                 .alen   = 16,
13546                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13547                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13548                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13549                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13550                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13551                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13552                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13553                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13554                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13555                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13556                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13557                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13558                   "\x72\x63\x74\x65\x20\x73\x6f\x54"
13559                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13560                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13561                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13562                 .ilen   = 128,
13563                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13564                   "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13565                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13566                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13567                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13568                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13569                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13570                   "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13571                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13572                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13573                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13574                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13575                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13576                   "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13577                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13578                   "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13579                           "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
13580                           "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
13581                           "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
13582                           .rlen = 128 + 24,
13583         },
13584 };
13585
13586 static const struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
13587         { /*Generated with cryptopp*/
13588 #ifdef __LITTLE_ENDIAN
13589                 .key    = "\x08\x00"            /* rta length */
13590                           "\x01\x00"            /* rta type */
13591 #else
13592                 .key    = "\x00\x08"            /* rta length */
13593                           "\x00\x01"            /* rta type */
13594 #endif
13595                           "\x00\x00\x00\x18"    /* enc key length */
13596                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13597                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13598                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13599                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13600                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13601                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13602                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13603                 .klen   = 8 + 32 + 24,
13604                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13605                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13606                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13607                 .alen   = 16,
13608                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13609                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13610                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13611                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13612                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13613                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13614                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13615                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13616                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13617                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13618                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13619                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13620                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13621                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13622                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13623                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13624                 .ilen   = 128,
13625                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13626                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13627                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13628                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13629                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13630                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13631                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13632                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13633                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13634                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13635                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13636                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13637                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13638                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13639                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13640                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13641                           "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
13642                           "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
13643                           "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
13644                           "\xca\x43\x95\xdf\x80\x61\x81\xa9",
13645                 .rlen   = 128 + 32,
13646         },
13647 };
13648
13649 static const struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
13650         { /*Generated with cryptopp*/
13651 #ifdef __LITTLE_ENDIAN
13652                 .key    = "\x08\x00"            /* rta length */
13653                           "\x01\x00"            /* rta type */
13654 #else
13655                 .key    = "\x00\x08"            /* rta length */
13656                           "\x00\x01"            /* rta type */
13657 #endif
13658                           "\x00\x00\x00\x18"    /* enc key length */
13659                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13660                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13661                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13662                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13663                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13664                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13665                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13666                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13667                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13668                 .klen   = 8 + 48 + 24,
13669                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13670                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13671                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13672                 .alen   = 16,
13673                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13674                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13675                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13676                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13677                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13678                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13679                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13680                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13681                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13682                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13683                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13684                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13685                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13686                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13687                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13688                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13689                 .ilen   = 128,
13690                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13691                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13692                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13693                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13694                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13695                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13696                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13697                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13698                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13699                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13700                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13701                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13702                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13703                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13704                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13705                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13706                           "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
13707                   "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
13708                           "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
13709                           "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
13710                           "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
13711                           "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
13712                 .rlen   = 128 + 48,
13713         },
13714 };
13715
13716 static const struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
13717         { /*Generated with cryptopp*/
13718 #ifdef __LITTLE_ENDIAN
13719                 .key    = "\x08\x00"            /* rta length */
13720                           "\x01\x00"            /* rta type */
13721 #else
13722                 .key    = "\x00\x08"            /* rta length */
13723                           "\x00\x01"            /* rta type */
13724 #endif
13725                           "\x00\x00\x00\x18"    /* enc key length */
13726                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13727                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13728                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13729                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13730                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13731                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13732                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13733                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13734                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13735                   "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13736                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13737                 .klen   = 8 + 64 + 24,
13738                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13739                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13740                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13741                 .alen   = 16,
13742                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13743                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13744                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13745                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13746                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13747                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13748                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13749                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13750                   "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13751                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13752                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13753                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13754                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13755                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13756                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13757                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13758                 .ilen   = 128,
13759                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13760                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13761                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13762                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13763                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13764                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13765                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13766                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13767                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13768                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13769                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13770                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13771                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13772                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13773                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13774                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13775                           "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
13776                           "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
13777                           "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
13778                           "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
13779                           "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
13780                           "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
13781                           "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
13782                           "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
13783                 .rlen   = 128 + 64,
13784         },
13785 };
13786
13787 static const struct cipher_testvec aes_lrw_tv_template[] = {
13788         /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
13789         { /* LRW-32-AES 1 */
13790                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
13791                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
13792                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
13793                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
13794                 .klen   = 32,
13795                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13796                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13797                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13798                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13799                 .ctext  = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
13800                           "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
13801                 .len    = 16,
13802         }, { /* LRW-32-AES 2 */
13803                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
13804                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
13805                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
13806                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
13807                 .klen   = 32,
13808                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13809                           "\x00\x00\x00\x00\x00\x00\x00\x02",
13810                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13811                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13812                 .ctext  = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
13813                           "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
13814                 .len    = 16,
13815         }, { /* LRW-32-AES 3 */
13816                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
13817                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
13818                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
13819                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
13820                 .klen   = 32,
13821                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13822                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13823                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13824                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13825                 .ctext  = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
13826                           "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
13827                 .len    = 16,
13828         }, { /* LRW-32-AES 4 */
13829                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
13830                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
13831                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
13832                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
13833                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
13834                 .klen   = 40,
13835                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13836                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13837                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13838                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13839                 .ctext  = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
13840                           "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
13841                 .len    = 16,
13842         }, { /* LRW-32-AES 5 */
13843                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
13844                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
13845                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
13846                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
13847                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
13848                 .klen   = 40,
13849                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13850                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13851                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13852                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13853                 .ctext  = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
13854                           "\xc8\x60\x48\x02\x87\xe3\x34\x06",
13855                 .len    = 16,
13856         }, { /* LRW-32-AES 6 */
13857                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13858                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13859                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13860                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13861                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13862                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13863                 .klen   = 48,
13864                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13865                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13866                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13867                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13868                 .ctext  = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
13869                           "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
13870                 .len    = 16,
13871         }, { /* LRW-32-AES 7 */
13872                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
13873                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
13874                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
13875                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
13876                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
13877                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
13878                 .klen   = 48,
13879                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13880                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13881                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13882                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13883                 .ctext  = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
13884                           "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
13885                 .len    = 16,
13886         }, {
13887 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
13888                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13889                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13890                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13891                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13892                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13893                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13894                 .klen   = 48,
13895                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13896                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13897                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
13898                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13899                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13900                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13901                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13902                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13903                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13904                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13905                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13906                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13907                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13908                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13909                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13910                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13911                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13912                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13913                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13914                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13915                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13916                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13917                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13918                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13919                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13920                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13921                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13922                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13923                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13924                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13925                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13926                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13927                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13928                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13929                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13930                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13931                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13932                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13933                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13934                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13935                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13936                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13937                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13938                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13939                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13940                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13941                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13942                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13943                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13944                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13945                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13946                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13947                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13948                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13949                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13950                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13951                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13952                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13953                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13954                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13955                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13956                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13957                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13958                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13959                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13960                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13961                 .ctext  = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
13962                           "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
13963                           "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
13964                           "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
13965                           "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
13966                           "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
13967                           "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
13968                           "\xe8\x58\x46\x97\x39\x51\x07\xde"
13969                           "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
13970                           "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
13971                           "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
13972                           "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
13973                           "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
13974                           "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
13975                           "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
13976                           "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
13977                           "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
13978                           "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
13979                           "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
13980                           "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
13981                           "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
13982                           "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
13983                           "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
13984                           "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
13985                           "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
13986                           "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
13987                           "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
13988                           "\x41\x30\x58\xc5\x62\x74\x52\x1d"
13989                           "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
13990                           "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
13991                           "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
13992                           "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
13993                           "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
13994                           "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
13995                           "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
13996                           "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
13997                           "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
13998                           "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
13999                           "\xb8\x79\x78\x97\x94\xff\x72\x13"
14000                           "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
14001                           "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
14002                           "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
14003                           "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
14004                           "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
14005                           "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
14006                           "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
14007                           "\x1e\x86\x53\x11\x53\x94\x00\xee"
14008                           "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
14009                           "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
14010                           "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
14011                           "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
14012                           "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
14013                           "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
14014                           "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
14015                           "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
14016                           "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
14017                           "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
14018                           "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
14019                           "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
14020                           "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
14021                           "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
14022                           "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
14023                           "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
14024                           "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
14025                 .len    = 512,
14026                 .also_non_np = 1,
14027                 .np     = 3,
14028                 .tap    = { 512 - 20, 4, 16 },
14029         }
14030 };
14031
14032 static const struct cipher_testvec aes_xts_tv_template[] = {
14033         /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
14034         { /* XTS-AES 1 */
14035                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
14036                           "\x00\x00\x00\x00\x00\x00\x00\x00"
14037                           "\x00\x00\x00\x00\x00\x00\x00\x00"
14038                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14039                 .klen   = 32,
14040                 .fips_skip = 1,
14041                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14042                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14043                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
14044                           "\x00\x00\x00\x00\x00\x00\x00\x00"
14045                           "\x00\x00\x00\x00\x00\x00\x00\x00"
14046                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14047                 .ctext  = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
14048                           "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
14049                           "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
14050                           "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
14051                 .len    = 32,
14052         }, { /* XTS-AES 2 */
14053                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
14054                           "\x11\x11\x11\x11\x11\x11\x11\x11"
14055                           "\x22\x22\x22\x22\x22\x22\x22\x22"
14056                           "\x22\x22\x22\x22\x22\x22\x22\x22",
14057                 .klen   = 32,
14058                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
14059                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14060                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
14061                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14062                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14063                           "\x44\x44\x44\x44\x44\x44\x44\x44",
14064                 .ctext  = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
14065                           "\x39\x33\x40\x38\xac\xef\x83\x8b"
14066                           "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
14067                           "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
14068                 .len    = 32,
14069         }, { /* XTS-AES 3 */
14070                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
14071                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
14072                           "\x22\x22\x22\x22\x22\x22\x22\x22"
14073                           "\x22\x22\x22\x22\x22\x22\x22\x22",
14074                 .klen   = 32,
14075                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
14076                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14077                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
14078                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14079                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14080                           "\x44\x44\x44\x44\x44\x44\x44\x44",
14081                 .ctext  = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
14082                           "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
14083                           "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
14084                           "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
14085                 .len    = 32,
14086         }, { /* XTS-AES 4 */
14087                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
14088                           "\x23\x53\x60\x28\x74\x71\x35\x26"
14089                           "\x31\x41\x59\x26\x53\x58\x97\x93"
14090                           "\x23\x84\x62\x64\x33\x83\x27\x95",
14091                 .klen   = 32,
14092                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14093                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14094                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14095                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14096                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14097                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14098                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14099                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14100                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14101                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14102                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14103                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14104                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14105                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14106                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14107                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14108                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14109                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14110                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14111                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14112                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14113                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14114                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14115                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14116                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14117                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14118                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14119                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14120                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14121                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14122                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14123                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14124                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14125                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14126                           "\x00\x01\x02\x03\x04\x05\x06\x07"
14127                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14128                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14129                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14130                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14131                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14132                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14133                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14134                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14135                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14136                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14137                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14138                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14139                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14140                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14141                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14142                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14143                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14144                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14145                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14146                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14147                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14148                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14149                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14150                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14151                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14152                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14153                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14154                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14155                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14156                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14157                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14158                 .ctext  = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
14159                           "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
14160                           "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
14161                           "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
14162                           "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
14163                           "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
14164                           "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
14165                           "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
14166                           "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
14167                           "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
14168                           "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
14169                           "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
14170                           "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
14171                           "\x22\x97\x61\x46\xae\x20\xce\x84"
14172                           "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
14173                           "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
14174                           "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
14175                           "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
14176                           "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
14177                           "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
14178                           "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
14179                           "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
14180                           "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
14181                           "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
14182                           "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
14183                           "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
14184                           "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
14185                           "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
14186                           "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
14187                           "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
14188                           "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
14189                           "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
14190                           "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
14191                           "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
14192                           "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
14193                           "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
14194                           "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
14195                           "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
14196                           "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
14197                           "\x55\xef\x52\x97\xca\x67\xe9\xf3"
14198                           "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
14199                           "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
14200                           "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
14201                           "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
14202                           "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
14203                           "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
14204                           "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
14205                           "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
14206                           "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
14207                           "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
14208                           "\x18\x84\x69\x77\xae\x11\x9f\x7a"
14209                           "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
14210                           "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
14211                           "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
14212                           "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
14213                           "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
14214                           "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
14215                           "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
14216                           "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
14217                           "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
14218                           "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
14219                           "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
14220                           "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
14221                           "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
14222                 .len    = 512,
14223         }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
14224                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
14225                           "\x23\x53\x60\x28\x74\x71\x35\x26"
14226                           "\x62\x49\x77\x57\x24\x70\x93\x69"
14227                           "\x99\x59\x57\x49\x66\x96\x76\x27"
14228                           "\x31\x41\x59\x26\x53\x58\x97\x93"
14229                           "\x23\x84\x62\x64\x33\x83\x27\x95"
14230                           "\x02\x88\x41\x97\x16\x93\x99\x37"
14231                           "\x51\x05\x82\x09\x74\x94\x45\x92",
14232                 .klen   = 64,
14233                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
14234                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14235                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14236                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14237                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14238                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14239                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14240                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14241                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14242                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14243                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14244                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14245                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14246                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14247                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14248                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14249                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14250                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14251                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14252                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14253                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14254                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14255                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14256                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14257                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14258                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14259                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14260                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14261                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14262                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14263                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14264                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14265                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14266                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14267                           "\x00\x01\x02\x03\x04\x05\x06\x07"
14268                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14269                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14270                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14271                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14272                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14273                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14274                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14275                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14276                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14277                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14278                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14279                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14280                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14281                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14282                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14283                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14284                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14285                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14286                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14287                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14288                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14289                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14290                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14291                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14292                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14293                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14294                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14295                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14296                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14297                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14298                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14299                 .ctext  = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
14300                           "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
14301                           "\xea\x00\x80\x3f\x5e\x48\x23\x57"
14302                           "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
14303                           "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
14304                           "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
14305                           "\x68\x0a\x86\xac\x35\xad\xfc\x33"
14306                           "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
14307                           "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
14308                           "\xb1\x08\xfd\x10\x98\xba\xec\x70"
14309                           "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
14310                           "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
14311                           "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
14312                           "\xae\xba\x12\x29\x61\xd0\x3a\x75"
14313                           "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
14314                           "\x00\x02\x08\x87\x89\x14\x29\xca"
14315                           "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
14316                           "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
14317                           "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
14318                           "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
14319                           "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
14320                           "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
14321                           "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
14322                           "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
14323                           "\x93\xec\x05\xc5\x2e\x04\x93\xef"
14324                           "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
14325                           "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
14326                           "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
14327                           "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
14328                           "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
14329                           "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
14330                           "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
14331                           "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
14332                           "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
14333                           "\xbc\x48\x14\x57\x77\x8f\x61\x60"
14334                           "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
14335                           "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
14336                           "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
14337                           "\xf4\xc3\x33\xec\x44\x23\x88\x51"
14338                           "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
14339                           "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
14340                           "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
14341                           "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
14342                           "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
14343                           "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
14344                           "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
14345                           "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
14346                           "\x92\x5f\xed\xc4\xae\x74\xff\xac"
14347                           "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
14348                           "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
14349                           "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
14350                           "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
14351                           "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
14352                           "\x94\x30\x54\xff\x84\x01\x14\x93"
14353                           "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
14354                           "\x53\x76\x44\x1a\x77\xed\x43\x85"
14355                           "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
14356                           "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
14357                           "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
14358                           "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
14359                           "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
14360                           "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
14361                           "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
14362                           "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
14363                 .len    = 512,
14364                 .also_non_np = 1,
14365                 .np     = 3,
14366                 .tap    = { 512 - 20, 4, 16 },
14367         }
14368 };
14369
14370 static const struct cipher_testvec aes_ctr_tv_template[] = {
14371         { /* From NIST Special Publication 800-38A, Appendix F.5 */
14372                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
14373                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
14374                 .klen   = 16,
14375                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14376                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14377                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14378                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14379                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14380                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14381                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14382                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14383                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14384                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14385                 .ctext  = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
14386                           "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
14387                           "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
14388                           "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
14389                           "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
14390                           "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
14391                           "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
14392                           "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
14393                 .len    = 64,
14394         }, {
14395                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14396                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14397                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14398                 .klen   = 24,
14399                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14400                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14401                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14402                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14403                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14404                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14405                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14406                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14407                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14408                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14409                 .ctext  = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
14410                           "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
14411                           "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
14412                           "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
14413                           "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
14414                           "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
14415                           "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
14416                           "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
14417                 .len    = 64,
14418         }, {
14419                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14420                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14421                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14422                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14423                 .klen   = 32,
14424                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14425                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14426                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14427                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14428                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14429                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14430                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14431                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14432                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14433                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14434                 .ctext  = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
14435                           "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
14436                           "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
14437                           "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
14438                           "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
14439                           "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
14440                           "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
14441                           "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
14442                 .len    = 64,
14443         }, { /* Generated with Crypto++ */
14444                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14445                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14446                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14447                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14448                 .klen   = 32,
14449                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
14450                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
14451                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14452                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14453                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14454                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14455                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14456                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14457                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14458                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14459                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14460                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14461                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14462                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14463                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14464                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14465                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14466                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14467                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14468                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14469                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14470                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14471                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14472                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14473                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14474                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14475                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14476                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14477                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14478                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14479                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14480                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14481                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14482                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14483                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14484                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14485                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14486                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14487                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14488                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14489                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14490                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14491                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14492                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14493                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14494                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14495                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14496                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14497                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14498                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14499                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14500                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14501                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14502                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14503                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14504                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14505                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14506                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14507                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14508                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14509                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14510                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14511                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14512                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
14513                 .ctext  = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
14514                           "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
14515                           "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
14516                           "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
14517                           "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
14518                           "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
14519                           "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
14520                           "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
14521                           "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
14522                           "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
14523                           "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
14524                           "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
14525                           "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
14526                           "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
14527                           "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
14528                           "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
14529                           "\x34\x4B\x31\x69\x84\x66\x96\x44"
14530                           "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
14531                           "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
14532                           "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
14533                           "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
14534                           "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
14535                           "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
14536                           "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
14537                           "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
14538                           "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
14539                           "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
14540                           "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
14541                           "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
14542                           "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
14543                           "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
14544                           "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
14545                           "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
14546                           "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
14547                           "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
14548                           "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
14549                           "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
14550                           "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
14551                           "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
14552                           "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
14553                           "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
14554                           "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
14555                           "\x85\x99\x22\xE8\x91\x38\x70\x83"
14556                           "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
14557                           "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
14558                           "\x2F\x69\xEE\x84\x36\x44\x76\x98"
14559                           "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
14560                           "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
14561                           "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
14562                           "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
14563                           "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
14564                           "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
14565                           "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
14566                           "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
14567                           "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
14568                           "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
14569                           "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
14570                           "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
14571                           "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
14572                           "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
14573                           "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
14574                           "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
14575                 .len    = 496,
14576                 .also_non_np = 1,
14577                 .np     = 3,
14578                 .tap    = { 496 - 20, 4, 16 },
14579         }, { /* Generated with Crypto++ */
14580                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14581                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14582                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14583                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14584                 .klen   = 32,
14585                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14586                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14587                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14588                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14589                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14590                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14591                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14592                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14593                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14594                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14595                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14596                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14597                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14598                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14599                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14600                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14601                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14602                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14603                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14604                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14605                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14606                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14607                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14608                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14609                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14610                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14611                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14612                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14613                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14614                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14615                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14616                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14617                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14618                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14619                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14620                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14621                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14622                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14623                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14624                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14625                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14626                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14627                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14628                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14629                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14630                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14631                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14632                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14633                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14634                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14635                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14636                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14637                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14638                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14639                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14640                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14641                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14642                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14643                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14644                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14645                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14646                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14647                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14648                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
14649                           "\x7B\xE4\x4D",
14650                 .ctext  = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
14651                           "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
14652                           "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
14653                           "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
14654                           "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
14655                           "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
14656                           "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
14657                           "\x75\xDE\x71\x86\x3C\x98\x23\x44"
14658                           "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
14659                           "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
14660                           "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
14661                           "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
14662                           "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
14663                           "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
14664                           "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
14665                           "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
14666                           "\xA8\x28\x69\x65\x31\xE1\x45\x83"
14667                           "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
14668                           "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
14669                           "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
14670                           "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
14671                           "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
14672                           "\x45\x18\x18\x74\x19\xAD\x71\x01"
14673                           "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
14674                           "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
14675                           "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
14676                           "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
14677                           "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
14678                           "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
14679                           "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
14680                           "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
14681                           "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
14682                           "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
14683                           "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
14684                           "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
14685                           "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
14686                           "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
14687                           "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
14688                           "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
14689                           "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
14690                           "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
14691                           "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
14692                           "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
14693                           "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
14694                           "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
14695                           "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
14696                           "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
14697                           "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
14698                           "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
14699                           "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
14700                           "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
14701                           "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
14702                           "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
14703                           "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
14704                           "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
14705                           "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
14706                           "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
14707                           "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
14708                           "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
14709                           "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
14710                           "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
14711                           "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
14712                           "\xFB\xF2\x3F",
14713                 .len    = 499,
14714                 .also_non_np = 1,
14715                 .np     = 2,
14716                 .tap    = { 499 - 16, 16 },
14717         },
14718 };
14719
14720 static const struct cipher_testvec aes_ctr_rfc3686_tv_template[] = {
14721         { /* From RFC 3686 */
14722                 .key    = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
14723                           "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
14724                           "\x00\x00\x00\x30",
14725                 .klen   = 20,
14726                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
14727                 .ptext  = "Single block msg",
14728                 .ctext  = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
14729                           "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
14730                 .len    = 16,
14731         }, {
14732                 .key    = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
14733                           "\x43\xd6\xce\x1f\x32\x53\x91\x63"
14734                           "\x00\x6c\xb6\xdb",
14735                 .klen   = 20,
14736                 .iv     = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
14737                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14738                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14739                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14740                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14741                 .ctext  = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
14742                           "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
14743                           "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
14744                           "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
14745                 .len    = 32,
14746         }, {
14747                 .key    = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
14748                           "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
14749                           "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
14750                           "\x00\x00\x00\x48",
14751                 .klen   = 28,
14752                 .iv     = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
14753                 .ptext  = "Single block msg",
14754                 .ctext  = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
14755                           "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
14756                 .len    = 16,
14757         }, {
14758                 .key    = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
14759                           "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
14760                           "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
14761                           "\x00\x96\xb0\x3b",
14762                 .klen   = 28,
14763                 .iv     = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
14764                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14765                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14766                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14767                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14768                 .ctext  = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
14769                           "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
14770                           "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
14771                           "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
14772                 .len    = 32,
14773         }, {
14774                 .key    = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
14775                           "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
14776                           "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
14777                           "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
14778                           "\x00\x00\x00\x60",
14779                 .klen   = 36,
14780                 .iv     = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
14781                 .ptext  = "Single block msg",
14782                 .ctext  = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
14783                           "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
14784                 .len    = 16,
14785         }, {
14786                 .key    = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
14787                           "\x07\x96\x36\x58\x79\xef\xf8\x86"
14788                           "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
14789                           "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
14790                           "\x00\xfa\xac\x24",
14791                 .klen   = 36,
14792                 .iv     = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
14793                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14794                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14795                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14796                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14797                 .ctext  = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
14798                           "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
14799                           "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
14800                           "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
14801                 .len    = 32,
14802         }, {
14803         // generated using Crypto++
14804                 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
14805                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14806                         "\x10\x11\x12\x13\x14\x15\x16\x17"
14807                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14808                         "\x00\x00\x00\x00",
14809                 .klen = 32 + 4,
14810                 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
14811                 .ptext =
14812                         "\x00\x01\x02\x03\x04\x05\x06\x07"
14813                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14814                         "\x10\x11\x12\x13\x14\x15\x16\x17"
14815                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14816                         "\x20\x21\x22\x23\x24\x25\x26\x27"
14817                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14818                         "\x30\x31\x32\x33\x34\x35\x36\x37"
14819                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14820                         "\x40\x41\x42\x43\x44\x45\x46\x47"
14821                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14822                         "\x50\x51\x52\x53\x54\x55\x56\x57"
14823                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14824                         "\x60\x61\x62\x63\x64\x65\x66\x67"
14825                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14826                         "\x70\x71\x72\x73\x74\x75\x76\x77"
14827                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14828                         "\x80\x81\x82\x83\x84\x85\x86\x87"
14829                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14830                         "\x90\x91\x92\x93\x94\x95\x96\x97"
14831                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14832                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14833                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14834                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14835                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14836                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14837                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14838                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14839                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14840                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14841                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14842                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14843                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14844                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
14845                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
14846                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
14847                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
14848                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
14849                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
14850                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
14851                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
14852                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
14853                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
14854                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
14855                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
14856                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
14857                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
14858                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
14859                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
14860                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
14861                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
14862                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
14863                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
14864                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
14865                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
14866                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
14867                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
14868                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
14869                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
14870                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
14871                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
14872                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
14873                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
14874                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
14875                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
14876                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
14877                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
14878                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
14879                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
14880                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
14881                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
14882                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
14883                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
14884                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
14885                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
14886                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
14887                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
14888                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
14889                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
14890                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
14891                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
14892                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
14893                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
14894                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
14895                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
14896                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
14897                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
14898                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
14899                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
14900                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
14901                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
14902                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
14903                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
14904                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
14905                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
14906                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
14907                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
14908                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
14909                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
14910                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
14911                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
14912                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
14913                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
14914                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
14915                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
14916                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
14917                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
14918                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
14919                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
14920                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
14921                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
14922                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
14923                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
14924                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
14925                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
14926                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
14927                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
14928                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
14929                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
14930                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
14931                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
14932                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
14933                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
14934                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
14935                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
14936                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
14937                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
14938                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
14939                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
14940                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
14941                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
14942                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
14943                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
14944                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
14945                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
14946                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
14947                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
14948                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
14949                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
14950                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
14951                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
14952                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
14953                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
14954                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
14955                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
14956                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
14957                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
14958                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
14959                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
14960                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
14961                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
14962                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
14963                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
14964                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
14965                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
14966                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
14967                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
14968                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
14969                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
14970                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
14971                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
14972                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
14973                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
14974                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
14975                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
14976                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
14977                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
14978                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
14979                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
14980                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
14981                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
14982                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
14983                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
14984                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
14985                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
14986                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
14987                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
14988                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
14989                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
14990                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
14991                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
14992                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
14993                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
14994                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
14995                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
14996                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
14997                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
14998                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
14999                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
15000                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
15001                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
15002                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
15003                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
15004                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
15005                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
15006                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
15007                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
15008                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
15009                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
15010                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
15011                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
15012                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
15013                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
15014                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
15015                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
15016                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
15017                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
15018                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
15019                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
15020                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
15021                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
15022                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
15023                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
15024                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
15025                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
15026                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
15027                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
15028                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
15029                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
15030                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
15031                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
15032                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
15033                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
15034                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
15035                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
15036                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
15037                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
15038                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
15039                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
15040                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
15041                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
15042                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
15043                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
15044                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
15045                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
15046                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
15047                         "\x28\x37\x46\x55\x64\x73\x82\x91"
15048                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
15049                         "\x18\x27\x36\x45\x54\x63\x72\x81"
15050                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
15051                         "\x08\x17\x26\x35\x44\x53\x62\x71"
15052                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
15053                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
15054                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
15055                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
15056                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
15057                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
15058                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
15059                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
15060                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
15061                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
15062                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
15063                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
15064                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
15065                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
15066                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
15067                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
15068                         "\x00\x11\x22\x33\x44\x55\x66\x77"
15069                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
15070                         "\x10\x21\x32\x43\x54\x65\x76\x87"
15071                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
15072                         "\x20\x31\x42\x53\x64\x75\x86\x97"
15073                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
15074                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
15075                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
15076                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
15077                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
15078                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
15079                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
15080                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
15081                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
15082                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
15083                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
15084                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
15085                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
15086                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
15087                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
15088                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
15089                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
15090                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
15091                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
15092                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
15093                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
15094                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
15095                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
15096                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
15097                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
15098                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
15099                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
15100                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
15101                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
15102                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
15103                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
15104                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
15105                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
15106                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
15107                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
15108                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
15109                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
15110                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
15111                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
15112                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
15113                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
15114                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
15115                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
15116                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
15117                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
15118                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
15119                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
15120                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
15121                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
15122                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
15123                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
15124                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
15125                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
15126                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
15127                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
15128                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
15129                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
15130                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
15131                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
15132                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
15133                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
15134                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
15135                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
15136                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
15137                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
15138                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
15139                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
15140                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
15141                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
15142                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
15143                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
15144                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
15145                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
15146                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
15147                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
15148                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
15149                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
15150                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
15151                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
15152                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
15153                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
15154                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
15155                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
15156                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
15157                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
15158                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
15159                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
15160                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
15161                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
15162                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
15163                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
15164                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
15165                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
15166                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
15167                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
15168                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
15169                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
15170                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
15171                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
15172                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
15173                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
15174                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
15175                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
15176                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
15177                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
15178                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
15179                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
15180                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
15181                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
15182                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
15183                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
15184                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
15185                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
15186                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
15187                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
15188                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
15189                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
15190                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
15191                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
15192                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
15193                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
15194                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
15195                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
15196                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
15197                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
15198                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
15199                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
15200                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
15201                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
15202                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
15203                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
15204                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
15205                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
15206                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
15207                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
15208                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
15209                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
15210                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
15211                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
15212                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
15213                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
15214                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
15215                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
15216                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
15217                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
15218                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
15219                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
15220                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
15221                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
15222                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
15223                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
15224                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
15225                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
15226                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
15227                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
15228                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
15229                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
15230                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
15231                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
15232                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
15233                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
15234                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
15235                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
15236                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
15237                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
15238                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
15239                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
15240                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
15241                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
15242                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
15243                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
15244                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
15245                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
15246                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
15247                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
15248                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
15249                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
15250                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
15251                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
15252                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
15253                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
15254                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
15255                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
15256                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
15257                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
15258                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
15259                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
15260                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
15261                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
15262                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
15263                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
15264                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
15265                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
15266                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
15267                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
15268                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
15269                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
15270                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
15271                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
15272                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
15273                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
15274                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
15275                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
15276                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
15277                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
15278                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
15279                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
15280                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
15281                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
15282                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
15283                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
15284                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
15285                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
15286                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
15287                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
15288                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
15289                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
15290                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
15291                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
15292                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
15293                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
15294                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
15295                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
15296                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
15297                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
15298                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
15299                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
15300                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
15301                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
15302                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
15303                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
15304                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
15305                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
15306                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
15307                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
15308                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
15309                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
15310                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
15311                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
15312                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
15313                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
15314                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
15315                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
15316                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
15317                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
15318                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
15319                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
15320                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
15321                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
15322                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
15323                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
15324                         "\x00\x21\x42\x63",
15325                 .ctext =
15326                         "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
15327                         "\xae\xff\x91\x3a\x44\xcf\x38\x32"
15328                         "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
15329                         "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
15330                         "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
15331                         "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
15332                         "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
15333                         "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
15334                         "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
15335                         "\x18\xff\x75\x6d\x06\x2d\x00\xab"
15336                         "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
15337                         "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
15338                         "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
15339                         "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
15340                         "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
15341                         "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
15342                         "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
15343                         "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
15344                         "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
15345                         "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
15346                         "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
15347                         "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
15348                         "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
15349                         "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
15350                         "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
15351                         "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
15352                         "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
15353                         "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
15354                         "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
15355                         "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
15356                         "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
15357                         "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
15358                         "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
15359                         "\x6a\x25\x15\x33\x4e\x45\x08\xec"
15360                         "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
15361                         "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
15362                         "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
15363                         "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
15364                         "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
15365                         "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
15366                         "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
15367                         "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
15368                         "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
15369                         "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
15370                         "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
15371                         "\x04\x02\xef\xd3\x44\xde\x76\x31"
15372                         "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
15373                         "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
15374                         "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
15375                         "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
15376                         "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
15377                         "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
15378                         "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
15379                         "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
15380                         "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
15381                         "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
15382                         "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
15383                         "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
15384                         "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
15385                         "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
15386                         "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
15387                         "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
15388                         "\x32\x03\xed\xf0\x50\x1c\x56\x39"
15389                         "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
15390                         "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
15391                         "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
15392                         "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
15393                         "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
15394                         "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
15395                         "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
15396                         "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
15397                         "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
15398                         "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
15399                         "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
15400                         "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
15401                         "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
15402                         "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
15403                         "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
15404                         "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
15405                         "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
15406                         "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
15407                         "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
15408                         "\x69\x3a\x29\x23\xac\x86\x32\xa5"
15409                         "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
15410                         "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
15411                         "\x59\x6a\xd3\x50\x59\x43\x59\xde"
15412                         "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
15413                         "\x18\x34\x0d\x1a\x63\x33\xed\x10"
15414                         "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
15415                         "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
15416                         "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
15417                         "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
15418                         "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
15419                         "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
15420                         "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
15421                         "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
15422                         "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
15423                         "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
15424                         "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
15425                         "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
15426                         "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
15427                         "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
15428                         "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
15429                         "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
15430                         "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
15431                         "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
15432                         "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
15433                         "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
15434                         "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
15435                         "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
15436                         "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
15437                         "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
15438                         "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
15439                         "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
15440                         "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
15441                         "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
15442                         "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
15443                         "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
15444                         "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
15445                         "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
15446                         "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
15447                         "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
15448                         "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
15449                         "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
15450                         "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
15451                         "\x26\x39\x83\x94\xef\x27\xd8\x53"
15452                         "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
15453                         "\x43\x7c\x95\x0a\x53\xef\x66\xda"
15454                         "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
15455                         "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
15456                         "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
15457                         "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
15458                         "\x88\xee\x73\xcf\x66\x2f\x52\x56"
15459                         "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
15460                         "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
15461                         "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
15462                         "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
15463                         "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
15464                         "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
15465                         "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
15466                         "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
15467                         "\xba\x61\x34\x38\x7c\xda\x48\x3e"
15468                         "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
15469                         "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
15470                         "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
15471                         "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
15472                         "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
15473                         "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
15474                         "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
15475                         "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
15476                         "\x35\x12\xe3\x36\x28\x27\x36\x58"
15477                         "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
15478                         "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
15479                         "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
15480                         "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
15481                         "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
15482                         "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
15483                         "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
15484                         "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
15485                         "\x89\xf3\x78\x35\x44\x62\x78\x72"
15486                         "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
15487                         "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
15488                         "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
15489                         "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
15490                         "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
15491                         "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
15492                         "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
15493                         "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
15494                         "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
15495                         "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
15496                         "\xd2\x49\x77\x81\x6d\x90\x70\xae"
15497                         "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
15498                         "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
15499                         "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
15500                         "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
15501                         "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
15502                         "\x45\x42\x27\x75\x50\xe5\xee\xb8"
15503                         "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
15504                         "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
15505                         "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
15506                         "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
15507                         "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
15508                         "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
15509                         "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
15510                         "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
15511                         "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
15512                         "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
15513                         "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
15514                         "\xa9\x21\x2b\x92\x94\x87\x62\x57"
15515                         "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
15516                         "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
15517                         "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
15518                         "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
15519                         "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
15520                         "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
15521                         "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
15522                         "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
15523                         "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
15524                         "\x69\x34\x78\x61\x24\x21\x9c\x8a"
15525                         "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
15526                         "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
15527                         "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
15528                         "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
15529                         "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
15530                         "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
15531                         "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
15532                         "\xb1\x95\x28\x86\x20\xe9\x17\x49"
15533                         "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
15534                         "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
15535                         "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
15536                         "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
15537                         "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
15538                         "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
15539                         "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
15540                         "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
15541                         "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
15542                         "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
15543                         "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
15544                         "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
15545                         "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
15546                         "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
15547                         "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
15548                         "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
15549                         "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
15550                         "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
15551                         "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
15552                         "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
15553                         "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
15554                         "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
15555                         "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
15556                         "\x29\x90\x46\x30\x92\x69\x7d\x13"
15557                         "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
15558                         "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
15559                         "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
15560                         "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
15561                         "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
15562                         "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
15563                         "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
15564                         "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
15565                         "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
15566                         "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
15567                         "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
15568                         "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
15569                         "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
15570                         "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
15571                         "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
15572                         "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
15573                         "\x77\x65\x08\x60\x11\x76\x4c\x8d"
15574                         "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
15575                         "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
15576                         "\x03\xd1\x24\x95\xec\x6d\xab\x38"
15577                         "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
15578                         "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
15579                         "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
15580                         "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
15581                         "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
15582                         "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
15583                         "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
15584                         "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
15585                         "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
15586                         "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
15587                         "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
15588                         "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
15589                         "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
15590                         "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
15591                         "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
15592                         "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
15593                         "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
15594                         "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
15595                         "\xe5\x79\x81\x73\xcd\x43\x59\x68"
15596                         "\x73\x02\x3b\x78\x21\x72\x43\x00"
15597                         "\x49\x17\xf7\x00\xaf\x68\x24\x53"
15598                         "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
15599                         "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
15600                         "\x11\x94\x13\x69\x51\x09\x28\xde"
15601                         "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
15602                         "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
15603                         "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
15604                         "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
15605                         "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
15606                         "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
15607                         "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
15608                         "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
15609                         "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
15610                         "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
15611                         "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
15612                         "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
15613                         "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
15614                         "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
15615                         "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
15616                         "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
15617                         "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
15618                         "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
15619                         "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
15620                         "\x69\xdc\xab\x24\x57\x60\x47\xc1"
15621                         "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
15622                         "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
15623                         "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
15624                         "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
15625                         "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
15626                         "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
15627                         "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
15628                         "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
15629                         "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
15630                         "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
15631                         "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
15632                         "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
15633                         "\x85\x62\x82\x70\x18\xe2\x9a\x78"
15634                         "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
15635                         "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
15636                         "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
15637                         "\x35\xf3\x61\x06\x72\x84\xc4\x32"
15638                         "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
15639                         "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
15640                         "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
15641                         "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
15642                         "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
15643                         "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
15644                         "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
15645                         "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
15646                         "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
15647                         "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
15648                         "\x4f\x73\x38\x09\x75\x64\x48\xe0"
15649                         "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
15650                         "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
15651                         "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
15652                         "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
15653                         "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
15654                         "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
15655                         "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
15656                         "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
15657                         "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
15658                         "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
15659                         "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
15660                         "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
15661                         "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
15662                         "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
15663                         "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
15664                         "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
15665                         "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
15666                         "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
15667                         "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
15668                         "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
15669                         "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
15670                         "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
15671                         "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
15672                         "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
15673                         "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
15674                         "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
15675                         "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
15676                         "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
15677                         "\xce\x4d\x5f\x18\x60\xce\x87\x22"
15678                         "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
15679                         "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
15680                         "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
15681                         "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
15682                         "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
15683                         "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
15684                         "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
15685                         "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
15686                         "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
15687                         "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
15688                         "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
15689                         "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
15690                         "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
15691                         "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
15692                         "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
15693                         "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
15694                         "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
15695                         "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
15696                         "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
15697                         "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
15698                         "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
15699                         "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
15700                         "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
15701                         "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
15702                         "\xce\x54\xf9\x18\x58\xb5\xff\x44"
15703                         "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
15704                         "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
15705                         "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
15706                         "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
15707                         "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
15708                         "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
15709                         "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
15710                         "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
15711                         "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
15712                         "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
15713                         "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
15714                         "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
15715                         "\x0c\xd6\x04\x14\xde\x51\x74\x75"
15716                         "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
15717                         "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
15718                         "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
15719                         "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
15720                         "\x75\x46\x65\x4e\x07\x34\x37\xa3"
15721                         "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
15722                         "\x69\x24\x0e\x38\x67\x43\x8c\xde"
15723                         "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
15724                         "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
15725                         "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
15726                         "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
15727                         "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
15728                         "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
15729                         "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
15730                         "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
15731                         "\x91\x7d\x62\x64\x96\x72\xde\xfc"
15732                         "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
15733                         "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
15734                         "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
15735                         "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
15736                         "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
15737                         "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
15738                         "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
15739                         "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
15740                         "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
15741                         "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
15742                         "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
15743                         "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
15744                         "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
15745                         "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
15746                         "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
15747                         "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
15748                         "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
15749                         "\xae\xed\x39\x88\x42\x11\x3c\xed"
15750                         "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
15751                         "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
15752                         "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
15753                         "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
15754                         "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
15755                         "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
15756                         "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
15757                         "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
15758                         "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
15759                         "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
15760                         "\x34\x17\xde\xba\x47\xf1\x06\x18"
15761                         "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
15762                         "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
15763                         "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
15764                         "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
15765                         "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
15766                         "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
15767                         "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
15768                         "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
15769                         "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
15770                         "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
15771                         "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
15772                         "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
15773                         "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
15774                         "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
15775                         "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
15776                         "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
15777                         "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
15778                         "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
15779                         "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
15780                         "\x2c\x56\x39\x79\x0f\x69\x44\x75"
15781                         "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
15782                         "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
15783                         "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
15784                         "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
15785                         "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
15786                         "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
15787                         "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
15788                         "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
15789                         "\x63\x9b\xce\x61\x24\x79\xc0\x70"
15790                         "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
15791                         "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
15792                         "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
15793                         "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
15794                         "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
15795                         "\x74\x56\x58\x40\x02\x37\x52\x2c"
15796                         "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
15797                         "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
15798                         "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
15799                         "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
15800                         "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
15801                         "\xed\x38\x80\x36\x72\x43\x27\x49"
15802                         "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
15803                         "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
15804                         "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
15805                         "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
15806                         "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
15807                         "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
15808                         "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
15809                         "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
15810                         "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
15811                         "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
15812                         "\x12\xee\x30\xfe\xd8\x30\xef\x34"
15813                         "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
15814                         "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
15815                         "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
15816                         "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
15817                         "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
15818                         "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
15819                         "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
15820                         "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
15821                         "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
15822                         "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
15823                         "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
15824                         "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
15825                         "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
15826                         "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
15827                         "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
15828                         "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
15829                         "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
15830                         "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
15831                         "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
15832                         "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
15833                         "\x44\x12\xfb\x73\x77\xd4\x13\x39"
15834                         "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
15835                         "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
15836                         "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
15837                         "\x4b\xef\x31\x18\xea\xac\xb1\x84"
15838                         "\x21\xed\xda\x86",
15839                 .len    = 4100,
15840                 .np     = 2,
15841                 .tap    = { 4064, 36 },
15842         },
15843 };
15844
15845 static const struct cipher_testvec aes_ofb_tv_template[] = {
15846          /* From NIST Special Publication 800-38A, Appendix F.5 */
15847         {
15848                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15849                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15850                 .klen   = 16,
15851                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
15852                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15853                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15854                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15855                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15856                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15857                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15858                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15859                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15860                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15861                 .ctext  = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
15862                           "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
15863                           "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
15864                           "\x3c\x52\xda\xc5\x4e\xd8\x25"
15865                           "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
15866                           "\x44\xf7\xa8\x22\x60\xed\xcc"
15867                           "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
15868                           "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
15869                 .len    = 64,
15870         }
15871 };
15872
15873 static const struct aead_testvec aes_gcm_enc_tv_template[] = {
15874         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
15875                 .key    = zeroed_string,
15876                 .klen   = 16,
15877                 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
15878                           "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
15879                 .rlen   = 16,
15880         }, {
15881                 .key    = zeroed_string,
15882                 .klen   = 16,
15883                 .input  = zeroed_string,
15884                 .ilen   = 16,
15885                 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
15886                           "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
15887                           "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
15888                           "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
15889                 .rlen   = 32,
15890         }, {
15891                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15892                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15893                 .klen   = 16,
15894                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15895                           "\xde\xca\xf8\x88",
15896                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15897                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15898                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15899                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15900                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15901                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15902                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15903                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15904                 .ilen   = 64,
15905                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15906                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15907                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15908                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15909                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15910                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15911                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15912                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
15913                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
15914                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
15915                 .rlen   = 80,
15916         }, {
15917                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15918                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15919                 .klen   = 16,
15920                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15921                           "\xde\xca\xf8\x88",
15922                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15923                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15924                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15925                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15926                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15927                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15928                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15929                           "\xba\x63\x7b\x39",
15930                 .ilen   = 60,
15931                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15932                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15933                           "\xab\xad\xda\xd2",
15934                 .alen   = 20,
15935                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15936                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15937                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15938                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15939                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15940                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15941                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15942                           "\x3d\x58\xe0\x91"
15943                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
15944                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
15945                 .rlen   = 76,
15946         }, {
15947                 .key    = zeroed_string,
15948                 .klen   = 24,
15949                 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
15950                           "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
15951                 .rlen   = 16,
15952         }, {
15953                 .key    = zeroed_string,
15954                 .klen   = 24,
15955                 .input  = zeroed_string,
15956                 .ilen   = 16,
15957                 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
15958                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
15959                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
15960                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
15961                 .rlen   = 32,
15962         }, {
15963                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15964                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15965                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15966                 .klen   = 24,
15967                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15968                           "\xde\xca\xf8\x88",
15969                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15970                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15971                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15972                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15973                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15974                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15975                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15976                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15977                 .ilen   = 64,
15978                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15979                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15980                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15981                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15982                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15983                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15984                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15985                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
15986                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
15987                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
15988                 .rlen   = 80,
15989         }, {
15990                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15991                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15992                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15993                 .klen   = 24,
15994                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15995                           "\xde\xca\xf8\x88",
15996                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15997                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15998                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15999                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16000                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16001                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16002                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16003                           "\xba\x63\x7b\x39",
16004                 .ilen   = 60,
16005                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16006                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16007                           "\xab\xad\xda\xd2",
16008                 .alen   = 20,
16009                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
16010                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
16011                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
16012                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
16013                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
16014                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
16015                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
16016                           "\xcc\xda\x27\x10"
16017                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
16018                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
16019                 .rlen   = 76,
16020                 .np     = 2,
16021                 .tap    = { 32, 28 },
16022                 .anp    = 2,
16023                 .atap   = { 8, 12 }
16024         }, {
16025                 .key    = zeroed_string,
16026                 .klen   = 32,
16027                 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
16028                           "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
16029                 .rlen   = 16,
16030         }
16031 };
16032
16033 static const struct aead_testvec aes_gcm_dec_tv_template[] = {
16034         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
16035                 .key    = zeroed_string,
16036                 .klen   = 32,
16037                 .input  = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
16038                           "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
16039                           "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
16040                           "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
16041                 .ilen   = 32,
16042                 .result  = zeroed_string,
16043                 .rlen   = 16,
16044         }, {
16045                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16046                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16047                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16048                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16049                 .klen   = 32,
16050                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16051                           "\xde\xca\xf8\x88",
16052                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
16053                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
16054                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
16055                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
16056                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
16057                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
16058                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
16059                           "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
16060                           "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
16061                           "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
16062                 .ilen   = 80,
16063                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16064                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16065                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16066                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16067                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16068                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16069                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16070                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16071                 .rlen   = 64,
16072         }, {
16073                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16074                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16075                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16076                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16077                 .klen   = 32,
16078                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16079                           "\xde\xca\xf8\x88",
16080                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
16081                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
16082                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
16083                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
16084                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
16085                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
16086                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
16087                           "\xbc\xc9\xf6\x62"
16088                           "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
16089                           "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
16090                 .ilen   = 76,
16091                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16092                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16093                           "\xab\xad\xda\xd2",
16094                 .alen   = 20,
16095                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16096                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16097                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16098                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16099                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16100                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16101                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16102                           "\xba\x63\x7b\x39",
16103                 .rlen   = 60,
16104                 .np     = 2,
16105                 .tap    = { 48, 28 },
16106                 .anp    = 3,
16107                 .atap   = { 8, 8, 4 }
16108         }, {
16109                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16110                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16111                 .klen   = 16,
16112                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16113                           "\xde\xca\xf8\x88",
16114                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
16115                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
16116                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
16117                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
16118                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
16119                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
16120                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
16121                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
16122                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
16123                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
16124                 .ilen   = 80,
16125                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16126                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16127                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16128                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16129                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16130                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16131                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16132                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16133                 .rlen   = 64,
16134         }, {
16135                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16136                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16137                 .klen   = 16,
16138                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16139                           "\xde\xca\xf8\x88",
16140                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
16141                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
16142                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
16143                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
16144                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
16145                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
16146                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
16147                           "\x3d\x58\xe0\x91"
16148                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
16149                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
16150                 .ilen   = 76,
16151                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16152                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16153                           "\xab\xad\xda\xd2",
16154                 .alen   = 20,
16155                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16156                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16157                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16158                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16159                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16160                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16161                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16162                           "\xba\x63\x7b\x39",
16163                 .rlen   = 60,
16164         }, {
16165                 .key    = zeroed_string,
16166                 .klen   = 24,
16167                 .input  = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
16168                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
16169                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
16170                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
16171                 .ilen   = 32,
16172                 .result  = zeroed_string,
16173                 .rlen   = 16,
16174         }, {
16175                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16176                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16177                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
16178                 .klen   = 24,
16179                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16180                           "\xde\xca\xf8\x88",
16181                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
16182                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
16183                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
16184                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
16185                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
16186                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
16187                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
16188                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
16189                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
16190                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
16191                 .ilen   = 80,
16192                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16193                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16194                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16195                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16196                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16197                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16198                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16199                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16200                 .rlen   = 64,
16201         }, {
16202                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16203                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16204                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
16205                 .klen   = 24,
16206                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16207                           "\xde\xca\xf8\x88",
16208                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
16209                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
16210                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
16211                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
16212                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
16213                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
16214                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
16215                           "\xcc\xda\x27\x10"
16216                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
16217                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
16218                 .ilen   = 76,
16219                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16220                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16221                           "\xab\xad\xda\xd2",
16222                 .alen   = 20,
16223                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16224                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16225                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16226                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16227                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16228                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16229                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16230                           "\xba\x63\x7b\x39",
16231                 .rlen   = 60,
16232         }
16233 };
16234
16235 static const struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
16236         { /* Generated using Crypto++ */
16237                 .key    = zeroed_string,
16238                 .klen   = 20,
16239                 .iv     = zeroed_string,
16240                 .input  = zeroed_string,
16241                 .ilen   = 16,
16242                 .assoc  = zeroed_string,
16243                 .alen   = 16,
16244                 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
16245                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
16246                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
16247                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
16248                 .rlen   = 32,
16249         },{
16250                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16251                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16252                           "\x00\x00\x00\x00",
16253                 .klen   = 20,
16254                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16255                 .input  = zeroed_string,
16256                 .ilen   = 16,
16257                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
16258                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16259                 .alen   = 16,
16260                 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
16261                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
16262                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
16263                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
16264                 .rlen   = 32,
16265
16266         }, {
16267                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16268                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16269                           "\x00\x00\x00\x00",
16270                 .klen   = 20,
16271                 .iv     = zeroed_string,
16272                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16273                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16274                 .ilen   = 16,
16275                 .assoc  = zeroed_string,
16276                 .alen   = 16,
16277                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16278                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16279                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
16280                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
16281                 .rlen   = 32,
16282         }, {
16283                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16284                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16285                           "\x00\x00\x00\x00",
16286                 .klen   = 20,
16287                 .iv     = zeroed_string,
16288                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16289                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16290                 .ilen   = 16,
16291                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16292                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16293                 .alen   = 16,
16294                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16295                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16296                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
16297                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
16298                 .rlen   = 32,
16299         }, {
16300                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16301                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16302                           "\x00\x00\x00\x00",
16303                 .klen   = 20,
16304                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16305                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16306                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16307                 .ilen   = 16,
16308                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16309                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16310                 .alen   = 16,
16311                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16312                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16313                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
16314                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
16315                 .rlen   = 32,
16316         }, {
16317                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16318                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16319                           "\x00\x00\x00\x00",
16320                 .klen   = 20,
16321                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16322                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16323                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16324                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16325                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16326                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16327                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16328                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16329                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16330                 .ilen   = 64,
16331                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16332                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16333                 .alen   = 16,
16334                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16335                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16336                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
16337                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
16338                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
16339                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
16340                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
16341                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
16342                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
16343                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
16344                 .rlen   = 80,
16345         }, {
16346                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
16347                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16348                           "\x00\x00\x00\x00",
16349                 .klen   = 20,
16350                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
16351                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
16352                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16353                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16354                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16355                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16356                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16357                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16358                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16359                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16360                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16361                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16362                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16363                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16364                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16365                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16366                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16367                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16368                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16369                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16370                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16371                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16372                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16373                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16374                           "\xff\xff\xff\xff\xff\xff\xff\xff",
16375                 .ilen   = 192,
16376                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
16377                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
16378                           "\x89\xab\xcd\xef",
16379                 .alen   = 20,
16380                 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
16381                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
16382                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
16383                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
16384                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
16385                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
16386                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
16387                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
16388                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
16389                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
16390                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
16391                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
16392                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
16393                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
16394                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
16395                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
16396                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
16397                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
16398                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
16399                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
16400                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
16401                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
16402                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
16403                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
16404                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
16405                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
16406                 .rlen   = 208,
16407         }, { /* From draft-mcgrew-gcm-test-01 */
16408                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16409                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16410                           "\x2E\x44\x3B\x68",
16411                 .klen   = 20,
16412                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
16413                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
16414                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
16415                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
16416                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
16417                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
16418                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
16419                           "\x69\x70\x09\x63\x79\x62\x65\x72"
16420                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
16421                           "\x00\x21\x00\x01\x01\x02\x02\x01",
16422                 .ilen   = 72,
16423                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16424                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
16425                           "\x3B\x24\x4C\xFE",
16426                 .alen   = 20,
16427                 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
16428                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
16429                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
16430                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
16431                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
16432                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
16433                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
16434                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
16435                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
16436                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
16437                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
16438                 .rlen   = 88,
16439         }, {
16440                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16441                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16442                           "\xCA\xFE\xBA\xBE",
16443                 .klen   = 20,
16444                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16445                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
16446                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
16447                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
16448                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
16449                           "\x00\x01\x00\x00\x00\x00\x00\x00"
16450                           "\x03\x73\x69\x70\x09\x63\x79\x62"
16451                           "\x65\x72\x63\x69\x74\x79\x02\x64"
16452                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
16453                 .ilen   = 64,
16454                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16455                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16456                 .alen   = 16,
16457                 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
16458                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
16459                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
16460                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
16461                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
16462                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
16463                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
16464                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
16465                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
16466                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
16467                 .rlen   = 80,
16468         }, {
16469                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16470                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16471                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16472                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16473                           "\x11\x22\x33\x44",
16474                 .klen   = 36,
16475                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
16476                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
16477                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
16478                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
16479                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
16480                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
16481                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
16482                           "\x01\x02\x02\x01",
16483                 .ilen   = 52,
16484                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
16485                           "\x01\x02\x03\x04\x05\x06\x07\x08",
16486                 .alen   = 16,
16487                 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
16488                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
16489                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
16490                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
16491                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
16492                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
16493                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
16494                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
16495                           "\x15\x95\x6C\x96",
16496                 .rlen   = 68,
16497         }, {
16498                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
16499                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16500                           "\x00\x00\x00\x00",
16501                 .klen   = 20,
16502                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
16503                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
16504                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
16505                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
16506                           "\x02\x00\x44\x00\x61\x62\x63\x64"
16507                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16508                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16509                           "\x75\x76\x77\x61\x62\x63\x64\x65"
16510                           "\x66\x67\x68\x69\x01\x02\x02\x01",
16511                 .ilen   = 64,
16512                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
16513                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16514                 .alen   = 16,
16515                 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
16516                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
16517                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
16518                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
16519                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
16520                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
16521                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
16522                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
16523                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
16524                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
16525                 .rlen   = 80,
16526         }, {
16527                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16528                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16529                           "\x57\x69\x0E\x43",
16530                 .klen   = 20,
16531                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16532                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
16533                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
16534                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
16535                           "\x02\x00\x43\x00\x61\x62\x63\x64"
16536                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16537                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16538                           "\x75\x76\x77\x61\x62\x63\x64\x65"
16539                           "\x66\x67\x68\x69\x01\x02\x02\x01",
16540                 .ilen   = 64,
16541                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16542                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16543                           "\xA2\xFC\xA1\xA3",
16544                 .alen   = 20,
16545                 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
16546                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
16547                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
16548                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
16549                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16550                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16551                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
16552                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
16553                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
16554                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
16555                 .rlen   = 80,
16556         }, {
16557                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16558                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16559                           "\x57\x69\x0E\x43",
16560                 .klen   = 20,
16561                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16562                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
16563                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
16564                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
16565                           "\x01\x02\x02\x01",
16566                 .ilen   = 28,
16567                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16568                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16569                           "\xA2\xFC\xA1\xA3",
16570                 .alen   = 20,
16571                 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
16572                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
16573                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
16574                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
16575                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
16576                           "\xE7\xD0\x5D\x35",
16577                 .rlen   = 44,
16578         }, {
16579                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16580                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16581                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16582                           "\xCA\xFE\xBA\xBE",
16583                 .klen   = 28,
16584                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16585                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
16586                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
16587                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
16588                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
16589                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
16590                 .ilen   = 40,
16591                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16592                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16593                 .alen   = 16,
16594                 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
16595                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
16596                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
16597                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
16598                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
16599                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
16600                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
16601                 .rlen   = 56,
16602         }, {
16603                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16604                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16605                           "\xDE\xCA\xF8\x88",
16606                 .klen   = 20,
16607                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16608                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
16609                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
16610                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16611                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
16612                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
16613                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
16614                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
16615                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
16616                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
16617                           "\x23\x01\x01\x01",
16618                 .ilen   = 76,
16619                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16620                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16621                           "\xCE\xFA\xCE\x74",
16622                 .alen   = 20,
16623                 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
16624                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
16625                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
16626                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
16627                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
16628                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
16629                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
16630                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
16631                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
16632                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
16633                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
16634                           "\x69\x62\x34\x36",
16635                 .rlen   = 92,
16636         }, {
16637                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16638                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16639                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16640                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16641                           "\x73\x61\x6C\x74",
16642                 .klen   = 36,
16643                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16644                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
16645                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
16646                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
16647                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
16648                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
16649                 .ilen   = 40,
16650                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16651                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16652                           "\x69\x76\x65\x63",
16653                 .alen   = 20,
16654                 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
16655                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
16656                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
16657                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
16658                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
16659                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
16660                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
16661                 .rlen   = 56,
16662         }, {
16663                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16664                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16665                           "\x57\x69\x0E\x43",
16666                 .klen   = 20,
16667                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16668                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
16669                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
16670                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16671                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
16672                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
16673                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
16674                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
16675                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
16676                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
16677                           "\x15\x01\x01\x01",
16678                 .ilen   = 76,
16679                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16680                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16681                           "\xA2\xFC\xA1\xA3",
16682                 .alen   = 20,
16683                 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
16684                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
16685                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
16686                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
16687                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
16688                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
16689                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
16690                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
16691                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
16692                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
16693                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
16694                           "\x8C\xAA\x81\xE2",
16695                 .rlen   = 92,
16696         }, {
16697                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16698                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16699                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16700                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16701                           "\x73\x61\x6C\x74",
16702                 .klen   = 36,
16703                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16704                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
16705                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
16706                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
16707                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
16708                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
16709                           "\x67\x69\x65\x73\x01\x74\x68\x61"
16710                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
16711                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
16712                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
16713                 .ilen   = 72,
16714                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16715                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16716                           "\x69\x76\x65\x63",
16717                 .alen   = 20,
16718                 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
16719                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
16720                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
16721                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
16722                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
16723                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
16724                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
16725                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
16726                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
16727                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
16728                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
16729                 .rlen   = 88,
16730         }, {
16731                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
16732                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
16733                           "\xD9\x66\x42\x67",
16734                 .klen   = 20,
16735                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16736                 .input  = "\x01\x02\x02\x01",
16737                 .ilen   = 4,
16738                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
16739                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16740                 .alen   = 16,
16741                 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
16742                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
16743                           "\x04\xBE\xF2\x70",
16744                 .rlen   = 20,
16745         }, {
16746                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16747                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16748                           "\xDE\xCA\xF8\x88",
16749                 .klen   = 20,
16750                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16751                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
16752                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
16753                           "\x62\x65\x00\x01",
16754                 .ilen   = 20,
16755                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16756                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16757                           "\xCE\xFA\xCE\x74",
16758                 .alen   = 20,
16759                 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
16760                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
16761                           "\x43\x33\x21\x64\x41\x25\x03\x52"
16762                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
16763                           "\x43\xAF\x8C\x3E",
16764                 .rlen   = 36,
16765         }, {
16766                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
16767                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
16768                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
16769                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
16770                           "\x74\x75\x72\x6E",
16771                 .klen   = 36,
16772                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
16773                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16774                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16775                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16776                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16777                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16778                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16779                           "\x01\x02\x02\x01",
16780                 .ilen   = 52,
16781                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
16782                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
16783                           "\x67\x65\x74\x6D",
16784                 .alen   = 20,
16785                 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
16786                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
16787                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
16788                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
16789                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
16790                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
16791                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
16792                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
16793                           "\x9F\xB4\xC0\x53",
16794                 .rlen   = 68,
16795         }, {
16796                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16797                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16798                           "\x57\x69\x0E\x43",
16799                 .klen   = 20,
16800                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16801                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16802                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16803                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16804                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16805                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16806                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16807                           "\x01\x02\x02\x01",
16808                 .ilen   = 52,
16809                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
16810                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16811                           "\xA2\xFC\xA1\xA3",
16812                 .alen   = 20,
16813                 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
16814                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
16815                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
16816                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
16817                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16818                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16819                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
16820                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
16821                           "\x40\xD7\xCB\x05",
16822                 .rlen   = 68,
16823         }, {
16824                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16825                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16826                           "\x22\x43\x3C\x64",
16827                 .klen   = 20,
16828                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
16829                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
16830                           "\x61\x62\x63\x64\x65\x66\x67\x68"
16831                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
16832                           "\x71\x72\x73\x74\x01\x02\x02\x01",
16833                 .ilen   = 32,
16834                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16835                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
16836                           "\x3A\x23\x4B\xFD",
16837                 .alen   = 20,
16838                 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
16839                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
16840                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
16841                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
16842                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
16843                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
16844                 .rlen   = 48,
16845         }
16846 };
16847
16848 static const struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
16849         { /* Generated using Crypto++ */
16850                 .key    = zeroed_string,
16851                 .klen   = 20,
16852                 .iv     = zeroed_string,
16853                 .input  = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
16854                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
16855                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
16856                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
16857                 .ilen   = 32,
16858                 .assoc  = zeroed_string,
16859                 .alen   = 16,
16860                 .result = zeroed_string,
16861                 .rlen   = 16,
16862
16863         },{
16864                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16865                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16866                           "\x00\x00\x00\x00",
16867                 .klen   = 20,
16868                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16869                 .input  = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
16870                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
16871                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
16872                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
16873                 .ilen   = 32,
16874                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
16875                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16876                 .alen   = 16,
16877                 .result = zeroed_string,
16878                 .rlen   = 16,
16879         }, {
16880                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16881                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16882                           "\x00\x00\x00\x00",
16883                 .klen   = 20,
16884                 .iv     = zeroed_string,
16885                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16886                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16887                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
16888                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
16889                 .ilen   = 32,
16890                 .assoc  = zeroed_string,
16891                 .alen   = 16,
16892                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16893                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16894                 .rlen   = 16,
16895         }, {
16896                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16897                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16898                           "\x00\x00\x00\x00",
16899                 .klen   = 20,
16900                 .iv     = zeroed_string,
16901                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16902                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16903                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
16904                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
16905                 .ilen   = 32,
16906                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16907                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16908                 .alen   = 16,
16909                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16910                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16911                 .rlen   = 16,
16912
16913         }, {
16914                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16915                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16916                           "\x00\x00\x00\x00",
16917                 .klen   = 20,
16918                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16919                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16920                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16921                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
16922                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
16923                 .ilen   = 32,
16924                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16925                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16926                 .alen   = 16,
16927                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16928                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16929                 .rlen   = 16,
16930         }, {
16931                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16932                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16933                           "\x00\x00\x00\x00",
16934                 .klen   = 20,
16935                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16936                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16937                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16938                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
16939                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
16940                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
16941                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
16942                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
16943                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
16944                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
16945                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
16946                 .ilen   = 80,
16947                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16948                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16949                 .alen   = 16,
16950                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16951                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16952                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16953                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16954                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16955                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16956                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16957                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16958                 .rlen   = 64,
16959         }, {
16960                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
16961                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16962                           "\x00\x00\x00\x00",
16963                 .klen   = 20,
16964                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
16965                 .input  = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
16966                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
16967                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
16968                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
16969                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
16970                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
16971                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
16972                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
16973                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
16974                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
16975                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
16976                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
16977                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
16978                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
16979                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
16980                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
16981                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
16982                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
16983                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
16984                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
16985                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
16986                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
16987                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
16988                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
16989                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
16990                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
16991                 .ilen   = 208,
16992                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
16993                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
16994                           "\x89\xab\xcd\xef",
16995                 .alen   = 20,
16996                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
16997                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16998                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16999                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17000                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17001                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17002                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17003                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17004                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17005                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17006                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17007                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17008                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17009                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17010                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17011                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17012                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17013                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17014                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17015                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17016                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17017                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17018                           "\xff\xff\xff\xff\xff\xff\xff\xff"
17019                           "\xff\xff\xff\xff\xff\xff\xff\xff",
17020                 .rlen   = 192,
17021         }, {
17022                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17023                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17024                           "\x2E\x44\x3B\x68",
17025                 .klen   = 20,
17026                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
17027                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
17028                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
17029                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
17030                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
17031                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
17032                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
17033                           "\x69\x70\x09\x63\x79\x62\x65\x72"
17034                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
17035                           "\x00\x21\x00\x01\x01\x02\x02\x01",
17036                 .rlen   = 72,
17037                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
17038                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
17039                           "\x3B\x24\x4C\xFE",
17040                 .alen   = 20,
17041                 .input  = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
17042                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
17043                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
17044                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
17045                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
17046                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
17047                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
17048                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
17049                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
17050                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
17051                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
17052                 .ilen   = 88,
17053         }, {
17054                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17055                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17056                           "\xCA\xFE\xBA\xBE",
17057                 .klen   = 20,
17058                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17059                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
17060                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
17061                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
17062                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
17063                           "\x00\x01\x00\x00\x00\x00\x00\x00"
17064                           "\x03\x73\x69\x70\x09\x63\x79\x62"
17065                           "\x65\x72\x63\x69\x74\x79\x02\x64"
17066                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
17067                 .rlen   = 64,
17068                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17069                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17070                 .alen   = 16,
17071                 .input  = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
17072                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
17073                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
17074                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
17075                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
17076                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
17077                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
17078                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
17079                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
17080                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
17081                 .ilen   = 80,
17082         }, {
17083                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17084                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17085                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17086                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17087                           "\x11\x22\x33\x44",
17088                 .klen   = 36,
17089                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
17090                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
17091                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
17092                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
17093                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
17094                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
17095                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
17096                           "\x01\x02\x02\x01",
17097                 .rlen   = 52,
17098                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
17099                           "\x01\x02\x03\x04\x05\x06\x07\x08",
17100                 .alen   = 16,
17101                 .input  = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
17102                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
17103                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
17104                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
17105                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
17106                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
17107                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
17108                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
17109                           "\x15\x95\x6C\x96",
17110                 .ilen   = 68,
17111         }, {
17112                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
17113                           "\x00\x00\x00\x00\x00\x00\x00\x00"
17114                           "\x00\x00\x00\x00",
17115                 .klen   = 20,
17116                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
17117                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
17118                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
17119                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
17120                           "\x02\x00\x44\x00\x61\x62\x63\x64"
17121                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17122                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17123                           "\x75\x76\x77\x61\x62\x63\x64\x65"
17124                           "\x66\x67\x68\x69\x01\x02\x02\x01",
17125                 .rlen   = 64,
17126                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
17127                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17128                 .alen   = 16,
17129                 .input  = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
17130                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
17131                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
17132                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
17133                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
17134                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
17135                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
17136                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
17137                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
17138                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
17139                 .ilen   = 80,
17140         }, {
17141                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17142                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17143                           "\x57\x69\x0E\x43",
17144                 .klen   = 20,
17145                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17146                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
17147                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
17148                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
17149                           "\x02\x00\x43\x00\x61\x62\x63\x64"
17150                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17151                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17152                           "\x75\x76\x77\x61\x62\x63\x64\x65"
17153                           "\x66\x67\x68\x69\x01\x02\x02\x01",
17154                 .rlen   = 64,
17155                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17156                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17157                           "\xA2\xFC\xA1\xA3",
17158                 .alen   = 20,
17159                 .input  = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
17160                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
17161                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
17162                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
17163                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17164                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17165                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
17166                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
17167                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
17168                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
17169                 .ilen   = 80,
17170         }, {
17171                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17172                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17173                           "\x57\x69\x0E\x43",
17174                 .klen   = 20,
17175                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17176                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
17177                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
17178                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
17179                           "\x01\x02\x02\x01",
17180                 .rlen   = 28,
17181                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17182                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17183                           "\xA2\xFC\xA1\xA3",
17184                 .alen   = 20,
17185                 .input  = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
17186                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
17187                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
17188                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
17189                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
17190                           "\xE7\xD0\x5D\x35",
17191                 .ilen   = 44,
17192         }, {
17193                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17194                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17195                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17196                           "\xCA\xFE\xBA\xBE",
17197                 .klen   = 28,
17198                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17199                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
17200                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
17201                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
17202                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
17203                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
17204                 .rlen   = 40,
17205                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17206                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17207                 .alen   = 16,
17208                 .input  = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
17209                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
17210                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
17211                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
17212                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
17213                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
17214                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
17215                 .ilen   = 56,
17216         }, {
17217                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17218                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17219                           "\xDE\xCA\xF8\x88",
17220                 .klen   = 20,
17221                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
17222                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
17223                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
17224                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17225                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
17226                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
17227                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
17228                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
17229                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
17230                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
17231                           "\x23\x01\x01\x01",
17232                 .rlen   = 76,
17233                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
17234                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17235                           "\xCE\xFA\xCE\x74",
17236                 .alen   = 20,
17237                 .input  = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
17238                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
17239                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
17240                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
17241                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
17242                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
17243                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
17244                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
17245                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
17246                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
17247                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
17248                           "\x69\x62\x34\x36",
17249                 .ilen   = 92,
17250         }, {
17251                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17252                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17253                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17254                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17255                           "\x73\x61\x6C\x74",
17256                 .klen   = 36,
17257                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
17258                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
17259                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
17260                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
17261                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
17262                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
17263                 .rlen   = 40,
17264                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
17265                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17266                           "\x69\x76\x65\x63",
17267                 .alen   = 20,
17268                 .input  = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
17269                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
17270                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
17271                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
17272                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
17273                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
17274                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
17275                 .ilen   = 56,
17276         }, {
17277                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17278                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17279                           "\x57\x69\x0E\x43",
17280                 .klen   = 20,
17281                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17282                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
17283                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
17284                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17285                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
17286                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
17287                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
17288                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
17289                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
17290                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
17291                           "\x15\x01\x01\x01",
17292                 .rlen   = 76,
17293                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17294                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17295                           "\xA2\xFC\xA1\xA3",
17296                 .alen   = 20,
17297                 .input  = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
17298                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
17299                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
17300                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
17301                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
17302                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
17303                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
17304                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
17305                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
17306                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
17307                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
17308                           "\x8C\xAA\x81\xE2",
17309                 .ilen   = 92,
17310         }, {
17311                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17312                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17313                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17314                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17315                           "\x73\x61\x6C\x74",
17316                 .klen   = 36,
17317                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
17318                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
17319                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
17320                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
17321                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
17322                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
17323                           "\x67\x69\x65\x73\x01\x74\x68\x61"
17324                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
17325                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
17326                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
17327                 .rlen   = 72,
17328                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
17329                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17330                           "\x69\x76\x65\x63",
17331                 .alen   = 20,
17332                 .input  = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
17333                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
17334                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
17335                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
17336                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
17337                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
17338                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
17339                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
17340                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
17341                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
17342                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
17343                 .ilen   = 88,
17344         }, {
17345                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
17346                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
17347                           "\xD9\x66\x42\x67",
17348                 .klen   = 20,
17349                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
17350                 .result = "\x01\x02\x02\x01",
17351                 .rlen   = 4,
17352                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
17353                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
17354                 .alen   = 16,
17355                 .input  = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
17356                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
17357                           "\x04\xBE\xF2\x70",
17358                 .ilen   = 20,
17359         }, {
17360                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17361                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17362                           "\xDE\xCA\xF8\x88",
17363                 .klen   = 20,
17364                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
17365                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
17366                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
17367                           "\x62\x65\x00\x01",
17368                 .rlen   = 20,
17369                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
17370                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17371                           "\xCE\xFA\xCE\x74",
17372                 .alen   = 20,
17373                 .input  = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
17374                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
17375                           "\x43\x33\x21\x64\x41\x25\x03\x52"
17376                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
17377                           "\x43\xAF\x8C\x3E",
17378                 .ilen   = 36,
17379         }, {
17380                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
17381                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
17382                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
17383                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
17384                           "\x74\x75\x72\x6E",
17385                 .klen   = 36,
17386                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
17387                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
17388                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17389                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17390                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17391                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17392                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17393                           "\x01\x02\x02\x01",
17394                 .rlen   = 52,
17395                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
17396                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
17397                           "\x67\x65\x74\x6D",
17398                 .alen   = 20,
17399                 .input  = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
17400                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
17401                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
17402                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
17403                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
17404                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
17405                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
17406                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
17407                           "\x9F\xB4\xC0\x53",
17408                 .ilen   = 68,
17409         }, {
17410                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17411                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17412                           "\x57\x69\x0E\x43",
17413                 .klen   = 20,
17414                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17415                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
17416                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17417                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17418                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17419                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17420                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17421                           "\x01\x02\x02\x01",
17422                 .rlen   = 52,
17423                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
17424                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17425                           "\xA2\xFC\xA1\xA3",
17426                 .alen   = 20,
17427                 .input  = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
17428                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
17429                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
17430                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
17431                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17432                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17433                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
17434                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
17435                           "\x40\xD7\xCB\x05",
17436                 .ilen   = 68,
17437         }, {
17438                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17439                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17440                           "\x22\x43\x3C\x64",
17441                 .klen   = 20,
17442                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
17443                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
17444                           "\x61\x62\x63\x64\x65\x66\x67\x68"
17445                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
17446                           "\x71\x72\x73\x74\x01\x02\x02\x01",
17447                 .rlen   = 32,
17448                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
17449                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
17450                           "\x3A\x23\x4B\xFD",
17451                 .alen   = 20,
17452                 .input  = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
17453                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
17454                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
17455                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
17456                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
17457                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
17458                 .ilen   = 48,
17459         }
17460 };
17461
17462 static const struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
17463         { /* From draft-mcgrew-gcm-test-01 */
17464                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17465                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17466                           "\x22\x43\x3c\x64",
17467                 .klen   = 20,
17468                 .iv     = zeroed_string,
17469                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
17470                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17471                 .alen   = 16,
17472                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17473                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17474                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17475                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17476                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17477                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17478                           "\x01\x02\x02\x01",
17479                 .ilen   = 52,
17480                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17481                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17482                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17483                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17484                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17485                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17486                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17487                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17488                           "\xe4\x09\x9a\xaa",
17489                 .rlen   = 68,
17490         }
17491 };
17492
17493 static const struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
17494         { /* From draft-mcgrew-gcm-test-01 */
17495                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17496                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17497                           "\x22\x43\x3c\x64",
17498                 .klen   = 20,
17499                 .iv     = zeroed_string,
17500                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
17501                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17502                 .alen   = 16,
17503                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17504                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17505                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17506                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17507                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17508                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17509                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17510                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17511                           "\xe4\x09\x9a\xaa",
17512                 .ilen   = 68,
17513                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17514                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17515                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17516                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17517                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17518                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17519                           "\x01\x02\x02\x01",
17520                 .rlen   = 52,
17521         }, { /* nearly same as previous, but should fail */
17522                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17523                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17524                           "\x22\x43\x3c\x64",
17525                 .klen   = 20,
17526                 .iv     = zeroed_string,
17527                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
17528                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17529                 .alen   = 16,
17530                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17531                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17532                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17533                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17534                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17535                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17536                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17537                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17538                           "\x00\x00\x00\x00",
17539                 .ilen   = 68,
17540                 .novrfy = 1,
17541                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17542                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17543                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17544                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17545                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17546                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17547                           "\x01\x02\x02\x01",
17548                 .rlen   = 52,
17549         },
17550 };
17551
17552 static const struct aead_testvec aes_ccm_enc_tv_template[] = {
17553         { /* From RFC 3610 */
17554                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17555                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17556                 .klen   = 16,
17557                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
17558                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17559                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17560                 .alen   = 8,
17561                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17562                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17563                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
17564                 .ilen   = 23,
17565                 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
17566                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
17567                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
17568                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
17569                 .rlen   = 31,
17570         }, {
17571                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17572                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17573                 .klen   = 16,
17574                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
17575                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17576                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17577                           "\x08\x09\x0a\x0b",
17578                 .alen   = 12,
17579                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17580                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17581                           "\x1c\x1d\x1e\x1f",
17582                 .ilen   = 20,
17583                 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
17584                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
17585                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
17586                           "\x7d\x9c\x2d\x93",
17587                 .rlen   = 28,
17588         }, {
17589                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17590                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17591                 .klen   = 16,
17592                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
17593                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17594                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17595                 .alen   = 8,
17596                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17597                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17598                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17599                           "\x20",
17600                 .ilen   = 25,
17601                 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17602                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17603                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17604                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17605                           "\x7e\x5f\x4e",
17606                 .rlen   = 35,
17607         }, {
17608                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17609                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17610                 .klen   = 16,
17611                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17612                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17613                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17614                           "\x08\x09\x0a\x0b",
17615                 .alen   = 12,
17616                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17617                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17618                           "\x1c\x1d\x1e",
17619                 .ilen   = 19,
17620                 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
17621                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17622                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17623                           "\x4d\x99\x99\x88\xdd",
17624                 .rlen   = 29,
17625         }, {
17626                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17627                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17628                 .klen   = 16,
17629                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17630                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17631                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17632                 .alen   = 8,
17633                 .input  = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17634                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17635                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17636                 .ilen   = 24,
17637                 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17638                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17639                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17640                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17641                 .rlen   = 32,
17642         }, {
17643                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17644                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17645                 .klen   = 16,
17646                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17647                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17648                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17649                           "\x20\xea\x60\xc0",
17650                 .alen   = 12,
17651                 .input  = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17652                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17653                           "\x3a\x80\x3b\xa8\x7f",
17654                 .ilen   = 21,
17655                 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17656                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17657                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17658                           "\x5a\xe0\x70\x45\x51",
17659                 .rlen   = 29,
17660         }, {
17661                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17662                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17663                 .klen   = 16,
17664                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17665                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17666                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17667                 .alen   = 8,
17668                 .input  = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17669                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17670                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
17671                 .ilen   = 23,
17672                 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17673                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17674                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17675                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17676                           "\xba",
17677                 .rlen   = 33,
17678         }, {
17679                 /* This is taken from FIPS CAVS. */
17680                 .key    = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
17681                           "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
17682                 .klen   = 16,
17683                 .iv     = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
17684                 .alen   = 0,
17685                 .input  = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
17686                           "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
17687                           "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
17688                           "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
17689                 .ilen   = 32,
17690                 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
17691                           "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
17692                           "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
17693                           "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
17694                           "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
17695                           "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
17696                 .rlen   = 48,
17697         }, {
17698                 .key    = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
17699                           "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
17700                 .klen   = 16,
17701                 .iv     = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
17702                           "\x30\x60\x15\x56\x00\x00\x00\x00",
17703                 .assoc  = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
17704                           "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
17705                           "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
17706                           "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
17707                 .alen   = 32,
17708                 .input  = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
17709                           "\xa9\x28\x63\xba\x12\xa3\x14\x85"
17710                           "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
17711                           "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
17712                 .ilen   = 32,
17713                 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
17714                           "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
17715                           "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
17716                           "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
17717                           "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
17718                           "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
17719                 .rlen   = 48,
17720         }, {
17721                 .key    = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
17722                           "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
17723                           "\x53\x14\x73\x66\x8d\x88\xf6\x80",
17724                 .klen   = 24,
17725                 .iv     = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
17726                           "\x50\x20\xda\xe2\x00\x00\x00\x00",
17727                 .assoc  = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
17728                           "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
17729                           "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
17730                           "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
17731                 .alen   = 32,
17732                 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
17733                           "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
17734                 .rlen   = 16,
17735         }, {
17736                 .key    = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
17737                           "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
17738                           "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
17739                 .klen   = 24,
17740                 .iv     = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
17741                           "\xef\x09\x2e\x94\x00\x00\x00\x00",
17742                 .assoc  = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
17743                           "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
17744                           "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
17745                           "\xe3\x00\x73\x69\x84\x69\x87\x79",
17746                 .alen   = 32,
17747                 .input  = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
17748                           "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
17749                           "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
17750                           "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
17751                 .ilen   = 32,
17752                 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
17753                           "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
17754                           "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
17755                           "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
17756                           "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
17757                           "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
17758                 .rlen   = 48,
17759         }, {
17760                 .key    = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
17761                           "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
17762                           "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
17763                           "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
17764                 .klen   = 32,
17765                 .iv     = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
17766                           "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
17767                 .assoc  = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
17768                           "\x78\x2b\x94\x02\x29\x0f\x42\x27"
17769                           "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
17770                           "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
17771                 .alen   = 32,
17772                 .input  = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
17773                           "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
17774                           "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
17775                           "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
17776                 .ilen   = 32,
17777                 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
17778                           "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
17779                           "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
17780                           "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
17781                           "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
17782                 .rlen   = 40,
17783         }, {
17784                 .key    = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
17785                           "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
17786                           "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
17787                           "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
17788                 .klen   = 32,
17789                 .iv     = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
17790                           "\x43\xf6\x1e\x50\0\0\0\0",
17791                 .assoc  = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
17792                           "\x13\x02\x01\x0c\x83\x4c\x96\x35"
17793                           "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
17794                           "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
17795                 .alen   = 32,
17796                 .input  = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
17797                           "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
17798                           "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
17799                           "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
17800                 .ilen   = 32,
17801                 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
17802                           "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
17803                           "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
17804                           "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
17805                           "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
17806                           "\x7b\x72\x8a\xf7",
17807                 .rlen   = 44,
17808         }, {
17809                 .key    = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
17810                           "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
17811                           "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
17812                           "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
17813                 .klen   = 32,
17814                 .iv     = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
17815                           "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
17816                 .assoc  = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
17817                           "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
17818                           "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
17819                           "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
17820                 .alen   = 32,
17821                 .input  = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
17822                           "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
17823                           "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
17824                           "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
17825                 .ilen   = 32,
17826                 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
17827                           "\xef\xbb\x80\x21\x04\x6c\x58\x09"
17828                           "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
17829                           "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
17830                           "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
17831                           "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
17832                 .rlen   = 48,
17833         }
17834 };
17835
17836 static const struct aead_testvec aes_ccm_dec_tv_template[] = {
17837         { /* From RFC 3610 */
17838                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17839                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17840                 .klen   = 16,
17841                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
17842                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17843                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17844                 .alen   = 8,
17845                 .input  = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
17846                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
17847                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
17848                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
17849                 .ilen   = 31,
17850                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17851                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17852                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
17853                 .rlen   = 23,
17854         }, {
17855                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17856                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17857                 .klen   = 16,
17858                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
17859                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17860                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17861                           "\x08\x09\x0a\x0b",
17862                 .alen   = 12,
17863                 .input  = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
17864                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
17865                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
17866                           "\x7d\x9c\x2d\x93",
17867                 .ilen   = 28,
17868                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17869                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17870                           "\x1c\x1d\x1e\x1f",
17871                 .rlen   = 20,
17872         }, {
17873                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17874                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17875                 .klen   = 16,
17876                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
17877                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17878                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17879                 .alen   = 8,
17880                 .input  = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17881                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17882                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17883                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17884                           "\x7e\x5f\x4e",
17885                 .ilen   = 35,
17886                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17887                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17888                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17889                           "\x20",
17890                 .rlen   = 25,
17891         }, {
17892                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17893                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17894                 .klen   = 16,
17895                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17896                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17897                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17898                           "\x08\x09\x0a\x0b",
17899                 .alen   = 12,
17900                 .input  = "\x07\x34\x25\x94\x15\x77\x85\x15"
17901                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17902                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17903                           "\x4d\x99\x99\x88\xdd",
17904                 .ilen   = 29,
17905                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17906                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17907                           "\x1c\x1d\x1e",
17908                 .rlen   = 19,
17909         }, {
17910                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17911                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17912                 .klen   = 16,
17913                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17914                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17915                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17916                 .alen   = 8,
17917                 .input  = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17918                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17919                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17920                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17921                 .ilen   = 32,
17922                 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17923                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17924                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17925                 .rlen   = 24,
17926         }, {
17927                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17928                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17929                 .klen   = 16,
17930                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17931                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17932                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17933                           "\x20\xea\x60\xc0",
17934                 .alen   = 12,
17935                 .input  = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17936                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17937                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17938                           "\x5a\xe0\x70\x45\x51",
17939                 .ilen   = 29,
17940                 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17941                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17942                           "\x3a\x80\x3b\xa8\x7f",
17943                 .rlen   = 21,
17944         }, {
17945                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17946                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17947                 .klen   = 16,
17948                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17949                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17950                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17951                 .alen   = 8,
17952                 .input  = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17953                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17954                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17955                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17956                           "\xba",
17957                 .ilen   = 33,
17958                 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17959                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17960                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
17961                 .rlen   = 23,
17962         }, {
17963                 /* This is taken from FIPS CAVS. */
17964                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
17965                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17966                 .klen   = 16,
17967                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17968                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
17969                 .alen   = 0,
17970                 .input  = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
17971                 .ilen   = 8,
17972                 .result = "\x00",
17973                 .rlen   = 0,
17974                 .novrfy = 1,
17975         }, {
17976                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
17977                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17978                 .klen   = 16,
17979                 .iv     = "\x03\xaf\x94\x87\x78\x35\x82\x81"
17980                           "\x7f\x88\x94\x68\x00\x00\x00\x00",
17981                 .alen   = 0,
17982                 .input  = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
17983                 .ilen   = 8,
17984                 .result = "\x00",
17985                 .rlen   = 0,
17986         }, {
17987                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
17988                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
17989                 .klen   = 16,
17990                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17991                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
17992                 .assoc  = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
17993                           "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
17994                           "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
17995                           "\xd8\x94\x99\x91\x81\x54\x62\x57",
17996                 .alen   = 32,
17997                 .input  = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
17998                           "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
17999                           "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
18000                           "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
18001                           "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
18002                           "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
18003                 .ilen   = 48,
18004                 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
18005                           "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
18006                           "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
18007                           "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
18008                 .rlen   = 32,
18009                 .novrfy = 1,
18010         }, {
18011                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
18012                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
18013                 .klen   = 16,
18014                 .iv     = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
18015                           "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
18016                 .assoc  = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
18017                           "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
18018                           "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
18019                           "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
18020                 .alen   = 32,
18021                 .input  = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
18022                           "\xad\x83\x52\x6d\x71\x03\x25\x1c"
18023                           "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
18024                           "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
18025                           "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
18026                           "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
18027                 .ilen   = 48,
18028                 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
18029                           "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
18030                           "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
18031                           "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
18032                 .rlen   = 32,
18033         }, {
18034                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18035                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18036                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
18037                 .klen   = 24,
18038                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18039                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18040                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18041                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18042                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18043                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18044                 .alen   = 32,
18045                 .input  = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
18046                 .ilen   = 8,
18047                 .result = "\x00",
18048                 .rlen   = 0,
18049         }, {
18050                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18051                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18052                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
18053                 .klen   = 24,
18054                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18055                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18056                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18057                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18058                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18059                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18060                 .alen   = 32,
18061                 .input  = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
18062                           "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
18063                           "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
18064                           "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
18065                           "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
18066                 .ilen   = 40,
18067                 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
18068                           "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
18069                           "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
18070                           "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
18071                 .rlen   = 32,
18072         }, {
18073                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18074                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18075                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
18076                 .klen   = 24,
18077                 .iv     = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
18078                           "\xad\x71\xaa\x1f\x00\x00\x00\x00",
18079                 .assoc  = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
18080                           "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
18081                           "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
18082                           "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
18083                 .alen   = 32,
18084                 .input  = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
18085                           "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
18086                           "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
18087                           "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
18088                           "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
18089                           "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
18090                 .ilen   = 48,
18091                 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
18092                           "\x99\x2a\xa8\xca\x04\x25\x45\x90"
18093                           "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
18094                           "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
18095                 .rlen   = 32,
18096                 .novrfy = 1,
18097         }, {
18098                 .key    = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
18099                           "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
18100                           "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
18101                           "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
18102                 .klen   = 32,
18103                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18104                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18105                 .alen   = 0,
18106                 .input  = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
18107                 .ilen   = 8,
18108                 .result = "\x00",
18109                 .rlen   = 0,
18110         }, {
18111                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18112                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18113                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
18114                           "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
18115                 .klen   = 32,
18116                 .iv     = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
18117                           "\x36\x58\xe0\x6b\x00\x00\x00\x00",
18118                 .alen   = 0,
18119                 .input  = "\x48\x01\x5e\x02\x24\x04\x66\x47"
18120                           "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
18121                           "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
18122                           "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
18123                           "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
18124                           "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
18125                 .ilen   = 48,
18126                 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
18127                           "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
18128                           "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
18129                           "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
18130                 .rlen   = 32,
18131                 .novrfy = 1,
18132         }, {
18133                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18134                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18135                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
18136                           "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
18137                 .klen   = 32,
18138                 .iv     = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
18139                           "\x44\x89\x40\x7b\x00\x00\x00\x00",
18140                 .assoc  = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
18141                           "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
18142                           "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
18143                           "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
18144                 .alen   = 32,
18145                 .input  = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
18146                           "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
18147                           "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
18148                           "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
18149                           "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
18150                           "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
18151                 .ilen   = 48,
18152                 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
18153                           "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
18154                           "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
18155                           "\x04\x49\x3b\x19\x93\x57\x25\x5d",
18156                 .rlen   = 32,
18157         },
18158 };
18159
18160 /*
18161  * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
18162  * use a 13-byte nonce, we only support an 11-byte nonce.  Worse,
18163  * they use AD lengths which are not valid ESP header lengths.
18164  *
18165  * These vectors are copied/generated from the ones for rfc4106 with
18166  * the key truncated by one byte..
18167  */
18168 static const struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
18169         { /* Generated using Crypto++ */
18170                 .key    = zeroed_string,
18171                 .klen   = 19,
18172                 .iv     = zeroed_string,
18173                 .input  = zeroed_string,
18174                 .ilen   = 16,
18175                 .assoc  = zeroed_string,
18176                 .alen   = 16,
18177                 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
18178                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
18179                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
18180                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
18181                 .rlen   = 32,
18182         },{
18183                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18184                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18185                           "\x00\x00\x00",
18186                 .klen   = 19,
18187                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18188                 .input  = zeroed_string,
18189                 .ilen   = 16,
18190                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
18191                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18192                 .alen   = 16,
18193                 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
18194                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
18195                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
18196                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
18197                 .rlen   = 32,
18198
18199         }, {
18200                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18201                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18202                           "\x00\x00\x00",
18203                 .klen   = 19,
18204                 .iv     = zeroed_string,
18205                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18206                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18207                 .ilen   = 16,
18208                 .assoc  = zeroed_string,
18209                 .alen   = 16,
18210                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18211                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18212                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
18213                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
18214                 .rlen   = 32,
18215         }, {
18216                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18217                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18218                           "\x00\x00\x00",
18219                 .klen   = 19,
18220                 .iv     = zeroed_string,
18221                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18222                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18223                 .ilen   = 16,
18224                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18225                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18226                 .alen   = 16,
18227                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18228                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18229                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
18230                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
18231                 .rlen   = 32,
18232         }, {
18233                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18234                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18235                           "\x00\x00\x00",
18236                 .klen   = 19,
18237                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18238                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18239                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18240                 .ilen   = 16,
18241                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18242                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18243                 .alen   = 16,
18244                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18245                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18246                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
18247                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
18248                 .rlen   = 32,
18249         }, {
18250                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18251                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18252                           "\x00\x00\x00",
18253                 .klen   = 19,
18254                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18255                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18256                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18257                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18258                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18259                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18260                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18261                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18262                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18263                 .ilen   = 64,
18264                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18265                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18266                 .alen   = 16,
18267                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18268                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18269                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
18270                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
18271                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
18272                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
18273                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
18274                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
18275                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
18276                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
18277                 .rlen   = 80,
18278         }, {
18279                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
18280                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18281                           "\x00\x00\x00",
18282                 .klen   = 19,
18283                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
18284                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
18285                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18286                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18287                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18288                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18289                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18290                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18291                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18292                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18293                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18294                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18295                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18296                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18297                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18298                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18299                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18300                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18301                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18302                           "\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                 .ilen   = 192,
18309                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18310                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
18311                           "\x89\xab\xcd\xef",
18312                 .alen   = 20,
18313                 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
18314                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
18315                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
18316                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
18317                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
18318                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
18319                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
18320                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
18321                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
18322                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
18323                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
18324                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
18325                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
18326                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
18327                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
18328                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
18329                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
18330                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
18331                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
18332                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
18333                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
18334                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
18335                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
18336                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
18337                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
18338                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
18339                 .rlen   = 208,
18340         }, { /* From draft-mcgrew-gcm-test-01 */
18341                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18342                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18343                           "\x2E\x44\x3B",
18344                 .klen   = 19,
18345                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
18346                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
18347                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
18348                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
18349                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
18350                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
18351                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
18352                           "\x69\x70\x09\x63\x79\x62\x65\x72"
18353                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
18354                           "\x00\x21\x00\x01\x01\x02\x02\x01",
18355                 .ilen   = 72,
18356                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18357                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
18358                           "\x3B\x24\x4C\xFE",
18359                 .alen   = 20,
18360                 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
18361                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
18362                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
18363                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
18364                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
18365                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
18366                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
18367                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
18368                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
18369                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
18370                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
18371                 .rlen   = 88,
18372         }, {
18373                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18374                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18375                           "\xCA\xFE\xBA",
18376                 .klen   = 19,
18377                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18378                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
18379                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
18380                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
18381                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
18382                           "\x00\x01\x00\x00\x00\x00\x00\x00"
18383                           "\x03\x73\x69\x70\x09\x63\x79\x62"
18384                           "\x65\x72\x63\x69\x74\x79\x02\x64"
18385                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
18386                 .ilen   = 64,
18387                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18388                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18389                 .alen   = 16,
18390                 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
18391                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
18392                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
18393                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
18394                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
18395                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
18396                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
18397                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
18398                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
18399                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
18400                 .rlen   = 80,
18401         }, {
18402                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18403                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18404                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18405                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18406                           "\x11\x22\x33",
18407                 .klen   = 35,
18408                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
18409                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
18410                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
18411                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
18412                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
18413                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
18414                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
18415                           "\x01\x02\x02\x01",
18416                 .ilen   = 52,
18417                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
18418                           "\x01\x02\x03\x04\x05\x06\x07\x08",
18419                 .alen   = 16,
18420                 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
18421                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
18422                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
18423                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
18424                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
18425                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
18426                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
18427                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
18428                           "\x5A\x48\x6A\x3E",
18429                 .rlen   = 68,
18430         }, {
18431                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
18432                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18433                           "\x00\x00\x00",
18434                 .klen   = 19,
18435                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
18436                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
18437                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
18438                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
18439                           "\x02\x00\x44\x00\x61\x62\x63\x64"
18440                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18441                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18442                           "\x75\x76\x77\x61\x62\x63\x64\x65"
18443                           "\x66\x67\x68\x69\x01\x02\x02\x01",
18444                 .ilen   = 64,
18445                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
18446                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18447                 .alen   = 16,
18448                 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
18449                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
18450                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
18451                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
18452                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
18453                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
18454                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
18455                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
18456                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
18457                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
18458                 .rlen   = 80,
18459         }, {
18460                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18461                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18462                           "\x57\x69\x0E",
18463                 .klen   = 19,
18464                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18465                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
18466                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
18467                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
18468                           "\x02\x00\x43\x00\x61\x62\x63\x64"
18469                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18470                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18471                           "\x75\x76\x77\x61\x62\x63\x64\x65"
18472                           "\x66\x67\x68\x69\x01\x02\x02\x01",
18473                 .ilen   = 64,
18474                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18475                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18476                           "\xA2\xFC\xA1\xA3",
18477                 .alen   = 20,
18478                 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
18479                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
18480                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
18481                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
18482                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18483                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18484                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
18485                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
18486                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
18487                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
18488                 .rlen   = 80,
18489         }, {
18490                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18491                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18492                           "\x57\x69\x0E",
18493                 .klen   = 19,
18494                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18495                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
18496                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
18497                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
18498                           "\x01\x02\x02\x01",
18499                 .ilen   = 28,
18500                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18501                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18502                           "\xA2\xFC\xA1\xA3",
18503                 .alen   = 20,
18504                 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
18505                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
18506                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
18507                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
18508                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
18509                           "\x08\xB4\x22\xE4",
18510                 .rlen   = 44,
18511         }, {
18512                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18513                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18514                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18515                           "\xCA\xFE\xBA",
18516                 .klen   = 27,
18517                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18518                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
18519                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
18520                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
18521                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
18522                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
18523                 .ilen   = 40,
18524                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18525                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18526                 .alen   = 16,
18527                 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
18528                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
18529                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
18530                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
18531                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
18532                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
18533                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
18534                 .rlen   = 56,
18535         }, {
18536                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18537                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18538                           "\xDE\xCA\xF8",
18539                 .klen   = 19,
18540                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18541                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
18542                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
18543                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18544                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
18545                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
18546                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
18547                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
18548                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
18549                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
18550                           "\x23\x01\x01\x01",
18551                 .ilen   = 76,
18552                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
18553                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18554                           "\xCE\xFA\xCE\x74",
18555                 .alen   = 20,
18556                 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
18557                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
18558                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
18559                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
18560                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
18561                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
18562                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
18563                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
18564                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
18565                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
18566                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
18567                           "\x12\x25\x0B\xF9",
18568                 .rlen   = 92,
18569         }, {
18570                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18571                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18572                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18573                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18574                           "\x73\x61\x6C",
18575                 .klen   = 35,
18576                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18577                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
18578                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
18579                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
18580                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
18581                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
18582                 .ilen   = 40,
18583                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18584                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18585                           "\x69\x76\x65\x63",
18586                 .alen   = 20,
18587                 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
18588                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
18589                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
18590                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
18591                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
18592                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
18593                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
18594                 .rlen   = 56,
18595         }, {
18596                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18597                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18598                           "\x57\x69\x0E",
18599                 .klen   = 19,
18600                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18601                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
18602                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
18603                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18604                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
18605                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
18606                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
18607                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
18608                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
18609                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
18610                           "\x15\x01\x01\x01",
18611                 .ilen   = 76,
18612                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18613                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18614                           "\xA2\xFC\xA1\xA3",
18615                 .alen   = 20,
18616                 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
18617                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
18618                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
18619                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
18620                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
18621                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
18622                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
18623                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
18624                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
18625                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
18626                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
18627                           "\xCC\xF7\x46\x6F",
18628                 .rlen   = 92,
18629         }, {
18630                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18631                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18632                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18633                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18634                           "\x73\x61\x6C",
18635                 .klen   = 35,
18636                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18637                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
18638                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
18639                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
18640                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
18641                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
18642                           "\x67\x69\x65\x73\x01\x74\x68\x61"
18643                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
18644                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
18645                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
18646                 .ilen   = 72,
18647                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18648                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18649                           "\x69\x76\x65\x63",
18650                 .alen   = 20,
18651                 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
18652                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
18653                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
18654                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
18655                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
18656                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
18657                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
18658                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
18659                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
18660                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
18661                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
18662                 .rlen   = 88,
18663         }, {
18664                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
18665                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
18666                           "\xD9\x66\x42",
18667                 .klen   = 19,
18668                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18669                 .input  = "\x01\x02\x02\x01",
18670                 .ilen   = 4,
18671                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
18672                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18673                 .alen   = 16,
18674                 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
18675                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
18676                           "\xF7\x61\x24\x62",
18677                 .rlen   = 20,
18678         }, {
18679                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18680                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18681                           "\xDE\xCA\xF8",
18682                 .klen   = 19,
18683                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18684                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
18685                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
18686                           "\x62\x65\x00\x01",
18687                 .ilen   = 20,
18688                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
18689                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18690                           "\xCE\xFA\xCE\x74",
18691                 .alen   = 20,
18692                 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
18693                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
18694                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
18695                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
18696                           "\x17\x17\x65\xAD",
18697                 .rlen   = 36,
18698         }, {
18699                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
18700                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
18701                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
18702                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
18703                           "\x74\x75\x72",
18704                 .klen   = 35,
18705                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
18706                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18707                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18708                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18709                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18710                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18711                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18712                           "\x01\x02\x02\x01",
18713                 .ilen   = 52,
18714                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
18715                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
18716                           "\x67\x65\x74\x6D",
18717                 .alen   = 20,
18718                 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
18719                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
18720                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
18721                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
18722                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
18723                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
18724                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
18725                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
18726                           "\x39\xDB\xC8\xDC",
18727                 .rlen   = 68,
18728         }, {
18729                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18730                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18731                           "\x57\x69\x0E",
18732                 .klen   = 19,
18733                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18734                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18735                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18736                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18737                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18738                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18739                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18740                           "\x01\x02\x02\x01",
18741                 .ilen   = 52,
18742                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
18743                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18744                           "\xA2\xFC\xA1\xA3",
18745                 .alen   = 20,
18746                 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
18747                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
18748                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
18749                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
18750                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18751                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18752                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
18753                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
18754                           "\xF4\x95\x5D\x4F",
18755                 .rlen   = 68,
18756         }, {
18757                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18758                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18759                           "\x22\x43\x3C",
18760                 .klen   = 19,
18761                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
18762                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
18763                           "\x61\x62\x63\x64\x65\x66\x67\x68"
18764                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18765                           "\x71\x72\x73\x74\x01\x02\x02\x01",
18766                 .ilen   = 32,
18767                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18768                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18769                           "\x3A\x23\x4B\xFD",
18770                 .alen   = 20,
18771                 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
18772                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
18773                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
18774                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
18775                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
18776                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
18777                 .rlen   = 48,
18778         }
18779 };
18780
18781 static const struct aead_testvec aes_ccm_rfc4309_dec_tv_template[]      = {
18782         { /* Generated using Crypto++ */
18783                 .key    = zeroed_string,
18784                 .klen   = 19,
18785                 .iv     = zeroed_string,
18786                 .result = zeroed_string,
18787                 .rlen   = 16,
18788                 .assoc  = zeroed_string,
18789                 .alen   = 16,
18790                 .input  = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
18791                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
18792                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
18793                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
18794                 .ilen   = 32,
18795         },{
18796                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18797                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18798                           "\x00\x00\x00",
18799                 .klen   = 19,
18800                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18801                 .result = zeroed_string,
18802                 .rlen   = 16,
18803                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
18804                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18805                 .alen   = 16,
18806                 .input  = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
18807                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
18808                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
18809                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
18810                 .ilen   = 32,
18811
18812         }, {
18813                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18814                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18815                           "\x00\x00\x00",
18816                 .klen   = 19,
18817                 .iv     = zeroed_string,
18818                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18819                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18820                 .rlen   = 16,
18821                 .assoc  = zeroed_string,
18822                 .alen   = 16,
18823                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18824                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18825                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
18826                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
18827                 .ilen   = 32,
18828         }, {
18829                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18830                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18831                           "\x00\x00\x00",
18832                 .klen   = 19,
18833                 .iv     = zeroed_string,
18834                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18835                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18836                 .rlen   = 16,
18837                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18838                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18839                 .alen   = 16,
18840                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18841                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18842                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
18843                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
18844                 .ilen   = 32,
18845         }, {
18846                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18847                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18848                           "\x00\x00\x00",
18849                 .klen   = 19,
18850                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18851                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18852                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18853                 .rlen   = 16,
18854                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18855                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18856                 .alen   = 16,
18857                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18858                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18859                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
18860                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
18861                 .ilen   = 32,
18862         }, {
18863                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18864                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18865                           "\x00\x00\x00",
18866                 .klen   = 19,
18867                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18868                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18869                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18870                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18871                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18872                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18873                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18874                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18875                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18876                 .rlen   = 64,
18877                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18878                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18879                 .alen   = 16,
18880                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18881                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18882                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
18883                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
18884                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
18885                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
18886                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
18887                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
18888                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
18889                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
18890                 .ilen   = 80,
18891         }, {
18892                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
18893                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18894                           "\x00\x00\x00",
18895                 .klen   = 19,
18896                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
18897                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
18898                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18899                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18900                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18901                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18902                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18903                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18904                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18905                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18906                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18907                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18908                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18909                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18910                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18911                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18912                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18913                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18914                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18915                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18916                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18917                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18918                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18919                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18920                           "\xff\xff\xff\xff\xff\xff\xff\xff",
18921                 .rlen   = 192,
18922                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18923                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
18924                           "\x89\xab\xcd\xef",
18925                 .alen   = 20,
18926                 .input  = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
18927                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
18928                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
18929                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
18930                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
18931                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
18932                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
18933                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
18934                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
18935                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
18936                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
18937                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
18938                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
18939                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
18940                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
18941                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
18942                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
18943                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
18944                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
18945                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
18946                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
18947                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
18948                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
18949                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
18950                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
18951                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
18952                 .ilen   = 208,
18953         }, { /* From draft-mcgrew-gcm-test-01 */
18954                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18955                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18956                           "\x2E\x44\x3B",
18957                 .klen   = 19,
18958                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
18959                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
18960                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
18961                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
18962                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
18963                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
18964                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
18965                           "\x69\x70\x09\x63\x79\x62\x65\x72"
18966                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
18967                           "\x00\x21\x00\x01\x01\x02\x02\x01",
18968                 .rlen   = 72,
18969                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18970                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
18971                           "\x3B\x24\x4C\xFE",
18972                 .alen   = 20,
18973                 .input  = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
18974                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
18975                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
18976                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
18977                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
18978                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
18979                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
18980                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
18981                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
18982                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
18983                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
18984                 .ilen   = 88,
18985         }, {
18986                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18987                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18988                           "\xCA\xFE\xBA",
18989                 .klen   = 19,
18990                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18991                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
18992                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
18993                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
18994                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
18995                           "\x00\x01\x00\x00\x00\x00\x00\x00"
18996                           "\x03\x73\x69\x70\x09\x63\x79\x62"
18997                           "\x65\x72\x63\x69\x74\x79\x02\x64"
18998                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
18999                 .rlen   = 64,
19000                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
19001                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19002                 .alen   = 16,
19003                 .input  = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
19004                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
19005                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
19006                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
19007                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
19008                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
19009                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
19010                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
19011                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
19012                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
19013                 .ilen   = 80,
19014         }, {
19015                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19016                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19017                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19018                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19019                           "\x11\x22\x33",
19020                 .klen   = 35,
19021                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
19022                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
19023                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
19024                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
19025                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
19026                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
19027                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
19028                           "\x01\x02\x02\x01",
19029                 .rlen   = 52,
19030                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
19031                           "\x01\x02\x03\x04\x05\x06\x07\x08",
19032                 .alen   = 16,
19033                 .input  = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
19034                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
19035                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
19036                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
19037                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
19038                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
19039                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
19040                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
19041                           "\x5A\x48\x6A\x3E",
19042                 .ilen   = 68,
19043         }, {
19044                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
19045                           "\x00\x00\x00\x00\x00\x00\x00\x00"
19046                           "\x00\x00\x00",
19047                 .klen   = 19,
19048                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
19049                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
19050                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
19051                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
19052                           "\x02\x00\x44\x00\x61\x62\x63\x64"
19053                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19054                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19055                           "\x75\x76\x77\x61\x62\x63\x64\x65"
19056                           "\x66\x67\x68\x69\x01\x02\x02\x01",
19057                 .rlen   = 64,
19058                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
19059                           "\x00\x00\x00\x00\x00\x00\x00\x00",
19060                 .alen   = 16,
19061                 .input  = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
19062                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
19063                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
19064                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
19065                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
19066                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
19067                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
19068                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
19069                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
19070                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
19071                 .ilen   = 80,
19072         }, {
19073                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19074                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19075                           "\x57\x69\x0E",
19076                 .klen   = 19,
19077                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19078                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
19079                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
19080                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
19081                           "\x02\x00\x43\x00\x61\x62\x63\x64"
19082                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19083                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19084                           "\x75\x76\x77\x61\x62\x63\x64\x65"
19085                           "\x66\x67\x68\x69\x01\x02\x02\x01",
19086                 .rlen   = 64,
19087                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19088                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19089                           "\xA2\xFC\xA1\xA3",
19090                 .alen   = 20,
19091                 .input  = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
19092                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
19093                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
19094                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
19095                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
19096                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
19097                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
19098                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
19099                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
19100                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
19101                 .ilen   = 80,
19102         }, {
19103                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19104                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19105                           "\x57\x69\x0E",
19106                 .klen   = 19,
19107                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19108                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
19109                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
19110                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
19111                           "\x01\x02\x02\x01",
19112                 .rlen   = 28,
19113                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19114                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19115                           "\xA2\xFC\xA1\xA3",
19116                 .alen   = 20,
19117                 .input  = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
19118                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
19119                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
19120                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
19121                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
19122                           "\x08\xB4\x22\xE4",
19123                 .ilen   = 44,
19124         }, {
19125                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
19126                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
19127                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
19128                           "\xCA\xFE\xBA",
19129                 .klen   = 27,
19130                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19131                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
19132                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
19133                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
19134                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
19135                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
19136                 .rlen   = 40,
19137                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
19138                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19139                 .alen   = 16,
19140                 .input  = "\x05\x22\x15\xD1\x52\x56\x85\x04"
19141                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
19142                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
19143                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
19144                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
19145                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
19146                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
19147                 .ilen   = 56,
19148         }, {
19149                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19150                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19151                           "\xDE\xCA\xF8",
19152                 .klen   = 19,
19153                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
19154                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
19155                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
19156                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
19157                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
19158                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
19159                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
19160                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
19161                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
19162                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
19163                           "\x23\x01\x01\x01",
19164                 .rlen   = 76,
19165                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
19166                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
19167                           "\xCE\xFA\xCE\x74",
19168                 .alen   = 20,
19169                 .input  = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
19170                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
19171                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
19172                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
19173                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
19174                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
19175                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
19176                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
19177                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
19178                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
19179                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
19180                           "\x12\x25\x0B\xF9",
19181                 .ilen   = 92,
19182         }, {
19183                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19184                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19185                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19186                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19187                           "\x73\x61\x6C",
19188                 .klen   = 35,
19189                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
19190                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
19191                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
19192                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
19193                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
19194                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
19195                 .rlen   = 40,
19196                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
19197                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19198                           "\x69\x76\x65\x63",
19199                 .alen   = 20,
19200                 .input  = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
19201                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
19202                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
19203                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
19204                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
19205                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
19206                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
19207                 .ilen   = 56,
19208         }, {
19209                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19210                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19211                           "\x57\x69\x0E",
19212                 .klen   = 19,
19213                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19214                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
19215                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
19216                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
19217                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
19218                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
19219                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
19220                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
19221                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
19222                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
19223                           "\x15\x01\x01\x01",
19224                 .rlen   = 76,
19225                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19226                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19227                           "\xA2\xFC\xA1\xA3",
19228                 .alen   = 20,
19229                 .input  = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
19230                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
19231                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
19232                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
19233                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
19234                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
19235                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
19236                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
19237                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
19238                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
19239                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
19240                           "\xCC\xF7\x46\x6F",
19241                 .ilen   = 92,
19242         }, {
19243                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19244                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19245                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19246                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19247                           "\x73\x61\x6C",
19248                 .klen   = 35,
19249                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
19250                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
19251                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
19252                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
19253                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
19254                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
19255                           "\x67\x69\x65\x73\x01\x74\x68\x61"
19256                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
19257                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
19258                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
19259                 .rlen   = 72,
19260                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
19261                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19262                           "\x69\x76\x65\x63",
19263                 .alen   = 20,
19264                 .input  = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
19265                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
19266                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
19267                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
19268                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
19269                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
19270                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
19271                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
19272                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
19273                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
19274                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
19275                 .ilen   = 88,
19276         }, {
19277                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
19278                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
19279                           "\xD9\x66\x42",
19280                 .klen   = 19,
19281                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
19282                 .result = "\x01\x02\x02\x01",
19283                 .rlen   = 4,
19284                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
19285                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
19286                 .alen   = 16,
19287                 .input  = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
19288                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
19289                           "\xF7\x61\x24\x62",
19290                 .ilen   = 20,
19291         }, {
19292                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19293                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19294                           "\xDE\xCA\xF8",
19295                 .klen   = 19,
19296                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
19297                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
19298                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
19299                           "\x62\x65\x00\x01",
19300                 .rlen   = 20,
19301                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
19302                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
19303                           "\xCE\xFA\xCE\x74",
19304                 .alen   = 20,
19305                 .input  = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
19306                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
19307                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
19308                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
19309                           "\x17\x17\x65\xAD",
19310                 .ilen   = 36,
19311         }, {
19312                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
19313                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
19314                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
19315                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
19316                           "\x74\x75\x72",
19317                 .klen   = 35,
19318                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
19319                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
19320                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19321                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19322                           "\x02\x00\x07\x00\x61\x62\x63\x64"
19323                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19324                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19325                           "\x01\x02\x02\x01",
19326                 .rlen   = 52,
19327                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
19328                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
19329                           "\x67\x65\x74\x6D",
19330                 .alen   = 20,
19331                 .input  = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
19332                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
19333                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
19334                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
19335                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
19336                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
19337                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
19338                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
19339                           "\x39\xDB\xC8\xDC",
19340                 .ilen   = 68,
19341         }, {
19342                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19343                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19344                           "\x57\x69\x0E",
19345                 .klen   = 19,
19346                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19347                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
19348                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19349                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19350                           "\x02\x00\x07\x00\x61\x62\x63\x64"
19351                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19352                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19353                           "\x01\x02\x02\x01",
19354                 .rlen   = 52,
19355                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
19356                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19357                           "\xA2\xFC\xA1\xA3",
19358                 .alen   = 20,
19359                 .input  = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
19360                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
19361                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
19362                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
19363                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
19364                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
19365                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
19366                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
19367                           "\xF4\x95\x5D\x4F",
19368                 .ilen   = 68,
19369         }, {
19370                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
19371                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
19372                           "\x22\x43\x3C",
19373                 .klen   = 19,
19374                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
19375                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
19376                           "\x61\x62\x63\x64\x65\x66\x67\x68"
19377                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
19378                           "\x71\x72\x73\x74\x01\x02\x02\x01",
19379                 .rlen   = 32,
19380                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
19381                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
19382                           "\x3A\x23\x4B\xFD",
19383                 .alen   = 20,
19384                 .input  = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
19385                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
19386                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
19387                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
19388                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
19389                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
19390                 .ilen   = 48,
19391         }
19392 };
19393
19394 /*
19395  * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
19396  */
19397 static const struct aead_testvec rfc7539_enc_tv_template[] = {
19398         {
19399                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
19400                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19401                           "\x90\x91\x92\x93\x94\x95\x96\x97"
19402                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
19403                 .klen   = 32,
19404                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
19405                           "\x44\x45\x46\x47",
19406                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
19407                           "\xc4\xc5\xc6\xc7",
19408                 .alen   = 12,
19409                 .input  = "\x4c\x61\x64\x69\x65\x73\x20\x61"
19410                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
19411                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
19412                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
19413                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
19414                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
19415                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
19416                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
19417                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
19418                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
19419                           "\x74\x68\x65\x20\x66\x75\x74\x75"
19420                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
19421                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
19422                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
19423                           "\x74\x2e",
19424                 .ilen   = 114,
19425                 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
19426                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
19427                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
19428                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
19429                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
19430                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
19431                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
19432                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
19433                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
19434                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
19435                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
19436                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
19437                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
19438                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
19439                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
19440                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
19441                           "\x06\x91",
19442                 .rlen   = 130,
19443         }, {
19444                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19445                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19446                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19447                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
19448                 .klen   = 32,
19449                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
19450                           "\x05\x06\x07\x08",
19451                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19452                           "\x00\x00\x4e\x91",
19453                 .alen   = 12,
19454                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19455                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19456                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19457                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19458                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19459                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19460                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19461                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19462                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19463                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19464                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19465                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19466                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19467                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19468                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19469                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19470                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19471                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19472                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19473                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19474                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19475                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19476                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19477                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19478                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19479                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19480                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19481                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19482                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19483                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19484                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19485                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19486                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19487                           "\x9d",
19488                 .ilen   = 265,
19489                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19490                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19491                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19492                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19493                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19494                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19495                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19496                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19497                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19498                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19499                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19500                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19501                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19502                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19503                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19504                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19505                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19506                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19507                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19508                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19509                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19510                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19511                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19512                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19513                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19514                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19515                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19516                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19517                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19518                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19519                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19520                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19521                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19522                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19523                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19524                           "\x38",
19525                 .rlen   = 281,
19526         },
19527 };
19528
19529 static const struct aead_testvec rfc7539_dec_tv_template[] = {
19530         {
19531                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
19532                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19533                           "\x90\x91\x92\x93\x94\x95\x96\x97"
19534                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
19535                 .klen   = 32,
19536                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
19537                           "\x44\x45\x46\x47",
19538                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
19539                           "\xc4\xc5\xc6\xc7",
19540                 .alen   = 12,
19541                 .input  = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
19542                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
19543                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
19544                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
19545                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
19546                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
19547                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
19548                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
19549                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
19550                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
19551                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
19552                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
19553                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
19554                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
19555                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
19556                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
19557                           "\x06\x91",
19558                 .ilen   = 130,
19559                 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
19560                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
19561                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
19562                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
19563                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
19564                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
19565                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
19566                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
19567                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
19568                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
19569                           "\x74\x68\x65\x20\x66\x75\x74\x75"
19570                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
19571                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
19572                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
19573                           "\x74\x2e",
19574                 .rlen   = 114,
19575         }, {
19576                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19577                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19578                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19579                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
19580                 .klen   = 32,
19581                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
19582                           "\x05\x06\x07\x08",
19583                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19584                           "\x00\x00\x4e\x91",
19585                 .alen   = 12,
19586                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19587                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19588                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19589                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19590                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19591                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19592                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19593                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19594                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19595                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19596                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19597                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19598                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19599                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19600                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19601                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19602                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19603                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19604                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19605                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19606                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19607                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19608                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19609                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19610                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19611                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19612                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19613                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19614                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19615                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19616                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19617                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19618                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19619                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19620                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19621                           "\x38",
19622                 .ilen   = 281,
19623                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19624                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19625                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19626                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19627                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19628                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19629                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19630                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19631                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19632                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19633                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19634                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19635                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19636                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19637                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19638                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19639                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19640                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19641                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19642                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19643                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19644                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19645                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19646                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19647                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19648                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19649                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19650                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19651                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19652                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19653                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19654                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19655                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19656                           "\x9d",
19657                 .rlen   = 265,
19658         },
19659 };
19660
19661 /*
19662  * draft-irtf-cfrg-chacha20-poly1305
19663  */
19664 static const struct aead_testvec rfc7539esp_enc_tv_template[] = {
19665         {
19666                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19667                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19668                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19669                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19670                           "\x00\x00\x00\x00",
19671                 .klen   = 36,
19672                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
19673                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19674                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
19675                           "\x05\x06\x07\x08",
19676                 .alen   = 20,
19677                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19678                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19679                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19680                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19681                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19682                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19683                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19684                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19685                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19686                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19687                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19688                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19689                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19690                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19691                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19692                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19693                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19694                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19695                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19696                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19697                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19698                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19699                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19700                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19701                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19702                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19703                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19704                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19705                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19706                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19707                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19708                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19709                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19710                           "\x9d",
19711                 .ilen   = 265,
19712                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19713                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19714                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19715                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19716                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19717                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19718                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19719                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19720                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19721                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19722                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19723                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19724                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19725                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19726                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19727                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19728                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19729                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19730                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19731                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19732                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19733                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19734                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19735                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19736                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19737                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19738                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19739                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19740                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19741                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19742                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19743                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19744                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19745                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19746                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19747                           "\x38",
19748                 .rlen   = 281,
19749         },
19750 };
19751
19752 static const struct aead_testvec rfc7539esp_dec_tv_template[] = {
19753         {
19754                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19755                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19756                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19757                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19758                           "\x00\x00\x00\x00",
19759                 .klen   = 36,
19760                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
19761                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19762                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
19763                           "\x05\x06\x07\x08",
19764                 .alen   = 20,
19765                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19766                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19767                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19768                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19769                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19770                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19771                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19772                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19773                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19774                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19775                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19776                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19777                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19778                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19779                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19780                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19781                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19782                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19783                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19784                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19785                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19786                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19787                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19788                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19789                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19790                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19791                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19792                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19793                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19794                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19795                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19796                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19797                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19798                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19799                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19800                           "\x38",
19801                 .ilen   = 281,
19802                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19803                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19804                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19805                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19806                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19807                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19808                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19809                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19810                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19811                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19812                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19813                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19814                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19815                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19816                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19817                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19818                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19819                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19820                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19821                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19822                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19823                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19824                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19825                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19826                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19827                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19828                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19829                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19830                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19831                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19832                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19833                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19834                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19835                           "\x9d",
19836                 .rlen   = 265,
19837         },
19838 };
19839
19840 static const struct aead_testvec aegis128_enc_tv_template[] = {
19841         {
19842                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
19843                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
19844                 .klen   = 16,
19845                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
19846                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
19847                 .assoc  = "",
19848                 .alen   = 0,
19849                 .input  = "",
19850                 .ilen   = 0,
19851                 .result = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
19852                           "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
19853                 .rlen   = 16,
19854         }, {
19855                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
19856                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
19857                 .klen   = 16,
19858                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
19859                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
19860                 .assoc  = "",
19861                 .alen   = 0,
19862                 .input  = "\x79",
19863                 .ilen   = 1,
19864                 .result = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
19865                           "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
19866                           "\xcc",
19867                 .rlen   = 17,
19868         }, {
19869                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
19870                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
19871                 .klen   = 16,
19872                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
19873                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
19874                 .assoc  = "",
19875                 .alen   = 0,
19876                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
19877                           "\x82\x8e\x16\xb4\xed\x6d\x47",
19878                 .ilen   = 15,
19879                 .result = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
19880                           "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
19881                           "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
19882                           "\x7a\x21\x16\xb3\xe6\x67\x66",
19883                 .rlen   = 31,
19884         }, {
19885                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
19886                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
19887                 .klen   = 16,
19888                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
19889                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
19890                 .assoc  = "",
19891                 .alen   = 0,
19892                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
19893                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
19894                 .ilen   = 16,
19895                 .result = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
19896                           "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
19897                           "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
19898                           "\x51\x10\x16\x27\x70\x9b\x64\x29",
19899                 .rlen   = 32,
19900         }, {
19901                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
19902                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
19903                 .klen   = 16,
19904                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
19905                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
19906                 .assoc  = "",
19907                 .alen   = 0,
19908                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
19909                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
19910                           "\xd3",
19911                 .ilen   = 17,
19912                 .result = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
19913                           "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
19914                           "\x46\x80\xb1\x0e\x18\x30\x40\x97"
19915                           "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
19916                           "\x3b",
19917                 .rlen   = 33,
19918         }, {
19919                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
19920                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
19921                 .klen   = 16,
19922                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
19923                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
19924                 .assoc  = "",
19925                 .alen   = 0,
19926                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
19927                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
19928                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
19929                           "\x88\x11\x39\x12\x1c\x3a\xbb",
19930                 .ilen   = 31,
19931                 .result = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
19932                           "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
19933                           "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
19934                           "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
19935                           "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
19936                           "\x75\xc4\x53\x01\x89\x45\x59",
19937                 .rlen   = 47,
19938         }, {
19939                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
19940                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
19941                 .klen   = 16,
19942                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
19943                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
19944                 .assoc  = "",
19945                 .alen   = 0,
19946                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
19947                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
19948                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
19949                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
19950                 .ilen   = 32,
19951                 .result = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
19952                           "\x95\xf4\x58\x38\x14\x83\x27\x01"
19953                           "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
19954                           "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
19955                           "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
19956                           "\x51\x52\x77\xf2\x5e\x85\x80\x41",
19957                 .rlen   = 48,
19958         }, {
19959                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
19960                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
19961                 .klen   = 16,
19962                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
19963                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
19964                 .assoc  = "\xd5",
19965                 .alen   = 1,
19966                 .input  = "",
19967                 .ilen   = 0,
19968                 .result = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
19969                           "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
19970                 .rlen   = 16,
19971         }, {
19972                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
19973                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
19974                 .klen   = 16,
19975                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
19976                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
19977                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
19978                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
19979                 .alen   = 15,
19980                 .input  = "",
19981                 .ilen   = 0,
19982                 .result = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
19983                           "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
19984                 .rlen   = 16,
19985         }, {
19986                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
19987                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
19988                 .klen   = 16,
19989                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
19990                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
19991                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
19992                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
19993                 .alen   = 16,
19994                 .input  = "",
19995                 .ilen   = 0,
19996                 .result = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
19997                           "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
19998                 .rlen   = 16,
19999         }, {
20000                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20001                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20002                 .klen   = 16,
20003                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20004                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20005                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20006                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20007                           "\x07",
20008                 .alen   = 17,
20009                 .input  = "",
20010                 .ilen   = 0,
20011                 .result = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
20012                           "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
20013                 .rlen   = 16,
20014         }, {
20015                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20016                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20017                 .klen   = 16,
20018                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20019                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20020                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20021                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20022                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20023                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20024                 .alen   = 31,
20025                 .input  = "",
20026                 .ilen   = 0,
20027                 .result = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
20028                           "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
20029                 .rlen   = 16,
20030         }, {
20031                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20032                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20033                 .klen   = 16,
20034                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20035                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20036                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20037                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20038                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20039                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20040                 .alen   = 32,
20041                 .input  = "",
20042                 .ilen   = 0,
20043                 .result = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
20044                           "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
20045                 .rlen   = 16,
20046         }, {
20047                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20048                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20049                 .klen   = 16,
20050                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20051                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20052                 .assoc  = "\x40",
20053                 .alen   = 1,
20054                 .input  = "\x4f",
20055                 .ilen   = 1,
20056                 .result = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
20057                           "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
20058                           "\x39",
20059                 .rlen   = 17,
20060         }, {
20061                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20062                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20063                 .klen   = 16,
20064                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20065                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20066                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20067                           "\x6d\x92\x42\x61\xa7\x58\x37",
20068                 .alen   = 15,
20069                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20070                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20071                 .ilen   = 15,
20072                 .result = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
20073                           "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
20074                           "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
20075                           "\x98\xbd\x71\x7a\xef\xa4\xfa",
20076                 .rlen   = 31,
20077         }, {
20078                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20079                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20080                 .klen   = 16,
20081                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20082                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20083                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20084                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20085                 .alen   = 16,
20086                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20087                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20088                 .ilen   = 16,
20089                 .result = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
20090                           "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
20091                           "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
20092                           "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
20093                 .rlen   = 32,
20094         }, {
20095                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20096                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20097                 .klen   = 16,
20098                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20099                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20100                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20101                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20102                           "\x05",
20103                 .alen   = 17,
20104                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20105                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20106                           "\xd0",
20107                 .ilen   = 17,
20108                 .result = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
20109                           "\x38\x2d\x69\x90\x1c\x71\x38\x98"
20110                           "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
20111                           "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
20112                           "\x93",
20113                 .rlen   = 33,
20114         }, {
20115                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20116                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20117                 .klen   = 16,
20118                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20119                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20120                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20121                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20122                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20123                           "\x68\x28\x73\x40\x9f\x96\x4a",
20124                 .alen   = 31,
20125                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20126                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20127                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20128                           "\x98\x34\xab\x37\x56\xae\x32",
20129                 .ilen   = 31,
20130                 .result = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
20131                           "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
20132                           "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
20133                           "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
20134                           "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
20135                           "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
20136                 .rlen   = 47,
20137         }, {
20138                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20139                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20140                 .klen   = 16,
20141                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20142                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
20143                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20144                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20145                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20146                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20147                 .alen   = 32,
20148                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20149                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20150                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20151                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20152                 .ilen   = 32,
20153                 .result = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
20154                           "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
20155                           "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
20156                           "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
20157                           "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
20158                           "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
20159                 .rlen   = 48,
20160         }, {
20161                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20162                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20163                 .klen   = 16,
20164                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20165                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20166                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20167                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20168                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20169                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20170                           "\x9d",
20171                 .alen   = 33,
20172                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20173                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20174                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20175                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20176                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20177                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20178                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20179                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20180                           "\xbd",
20181                 .ilen   = 65,
20182                 .result = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
20183                           "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
20184                           "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
20185                           "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
20186                           "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
20187                           "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
20188                           "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
20189                           "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
20190                           "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
20191                           "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
20192                           "\x3f",
20193                 .rlen   = 81,
20194         }, {
20195                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20196                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20197                 .klen   = 16,
20198                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20199                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20200                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20201                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20202                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20203                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20204                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20205                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20206                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20207                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20208                           "\x54",
20209                 .alen   = 65,
20210                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20211                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20212                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20213                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20214                           "\x2f",
20215                 .ilen   = 33,
20216                 .result = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
20217                           "\x77\x09\xac\x74\xef\xd2\x56\xae"
20218                           "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
20219                           "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
20220                           "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
20221                           "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
20222                           "\x39",
20223                 .rlen   = 49,
20224         }, {
20225                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20226                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20227                 .klen   = 16,
20228                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20229                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20230                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20231                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20232                 .alen   = 16,
20233                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20234                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20235                 .ilen   = 16,
20236                 .result = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
20237                           "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
20238                           "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
20239                           "\xde\x20\x59\x77\xc1\x74\x90",
20240                 .rlen   = 31,
20241         }, {
20242                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20243                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20244                 .klen   = 16,
20245                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20246                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20247                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20248                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20249                 .alen   = 16,
20250                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20251                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20252                 .ilen   = 16,
20253                 .result = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
20254                           "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
20255                           "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
20256                           "\xe9\xe0\x17\x45\x70\x12",
20257                 .rlen   = 30,
20258         }, {
20259                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20260                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20261                 .klen   = 16,
20262                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20263                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20264                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20265                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20266                 .alen   = 16,
20267                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20268                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20269                 .ilen   = 16,
20270                 .result = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
20271                           "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
20272                           "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
20273                 .rlen   = 24,
20274         },
20275 };
20276
20277 /*
20278  * AEGIS-128 test vectors - generated via reference implementation from
20279  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
20280  *
20281  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
20282  *   (see crypto_aead/aegis128/)
20283  */
20284 static const struct aead_testvec aegis128_dec_tv_template[] = {
20285         {
20286                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20287                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20288                 .klen   = 16,
20289                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20290                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20291                 .assoc  = "",
20292                 .alen   = 0,
20293                 .input  = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
20294                           "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
20295                 .ilen   = 16,
20296                 .result = "",
20297                 .rlen   = 0,
20298         }, {
20299                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20300                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20301                 .klen   = 16,
20302                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20303                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20304                 .assoc  = "",
20305                 .alen   = 0,
20306                 .input  = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
20307                           "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
20308                           "\xcc",
20309                 .ilen   = 17,
20310                 .result = "\x79",
20311                 .rlen   = 1,
20312         }, {
20313                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20314                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20315                 .klen   = 16,
20316                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20317                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20318                 .assoc  = "",
20319                 .alen   = 0,
20320                 .input  = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
20321                           "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
20322                           "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
20323                           "\x7a\x21\x16\xb3\xe6\x67\x66",
20324                 .ilen   = 31,
20325                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20326                           "\x82\x8e\x16\xb4\xed\x6d\x47",
20327                 .rlen   = 15,
20328         }, {
20329                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20330                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20331                 .klen   = 16,
20332                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20333                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20334                 .assoc  = "",
20335                 .alen   = 0,
20336                 .input  = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
20337                           "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
20338                           "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
20339                           "\x51\x10\x16\x27\x70\x9b\x64\x29",
20340                 .ilen   = 32,
20341                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20342                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20343                 .rlen   = 16,
20344         }, {
20345                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20346                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20347                 .klen   = 16,
20348                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20349                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20350                 .assoc  = "",
20351                 .alen   = 0,
20352                 .input  = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
20353                           "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
20354                           "\x46\x80\xb1\x0e\x18\x30\x40\x97"
20355                           "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
20356                           "\x3b",
20357                 .ilen   = 33,
20358                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20359                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20360                           "\xd3",
20361                 .rlen   = 17,
20362         }, {
20363                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20364                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20365                 .klen   = 16,
20366                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20367                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20368                 .assoc  = "",
20369                 .alen   = 0,
20370                 .input  = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
20371                           "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
20372                           "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
20373                           "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
20374                           "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
20375                           "\x75\xc4\x53\x01\x89\x45\x59",
20376                 .ilen   = 47,
20377                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20378                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20379                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20380                           "\x88\x11\x39\x12\x1c\x3a\xbb",
20381                 .rlen   = 31,
20382         }, {
20383                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20384                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20385                 .klen   = 16,
20386                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20387                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20388                 .assoc  = "",
20389                 .alen   = 0,
20390                 .input  = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
20391                           "\x95\xf4\x58\x38\x14\x83\x27\x01"
20392                           "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
20393                           "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
20394                           "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
20395                           "\x51\x52\x77\xf2\x5e\x85\x80\x41",
20396                 .ilen   = 48,
20397                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20398                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20399                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20400                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20401                 .rlen   = 32,
20402         }, {
20403                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20404                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20405                 .klen   = 16,
20406                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20407                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20408                 .assoc  = "\xd5",
20409                 .alen   = 1,
20410                 .input  = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
20411                           "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
20412                 .ilen   = 16,
20413                 .result = "",
20414                 .rlen   = 0,
20415         }, {
20416                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20417                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20418                 .klen   = 16,
20419                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20420                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20421                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20422                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
20423                 .alen   = 15,
20424                 .input  = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
20425                           "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
20426                 .ilen   = 16,
20427                 .result = "",
20428                 .rlen   = 0,
20429         }, {
20430                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20431                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20432                 .klen   = 16,
20433                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20434                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20435                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20436                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20437                 .alen   = 16,
20438                 .input  = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
20439                           "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
20440                 .ilen   = 16,
20441                 .result = "",
20442                 .rlen   = 0,
20443         }, {
20444                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20445                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20446                 .klen   = 16,
20447                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20448                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20449                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20450                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20451                           "\x07",
20452                 .alen   = 17,
20453                 .input  = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
20454                           "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
20455                 .ilen   = 16,
20456                 .result = "",
20457                 .rlen   = 0,
20458         }, {
20459                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20460                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20461                 .klen   = 16,
20462                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20463                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20464                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20465                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20466                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20467                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20468                 .alen   = 31,
20469                 .input  = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
20470                           "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
20471                 .ilen   = 16,
20472                 .result = "",
20473                 .rlen   = 0,
20474         }, {
20475                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20476                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20477                 .klen   = 16,
20478                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20479                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20480                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20481                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20482                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20483                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20484                 .alen   = 32,
20485                 .input  = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
20486                           "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
20487                 .ilen   = 16,
20488                 .result = "",
20489                 .rlen   = 0,
20490         }, {
20491                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20492                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20493                 .klen   = 16,
20494                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20495                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20496                 .assoc  = "\x40",
20497                 .alen   = 1,
20498                 .input  = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
20499                           "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
20500                           "\x39",
20501                 .ilen   = 17,
20502                 .result = "\x4f",
20503                 .rlen   = 1,
20504         }, {
20505                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20506                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20507                 .klen   = 16,
20508                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20509                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20510                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20511                           "\x6d\x92\x42\x61\xa7\x58\x37",
20512                 .alen   = 15,
20513                 .input  = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
20514                           "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
20515                           "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
20516                           "\x98\xbd\x71\x7a\xef\xa4\xfa",
20517                 .ilen   = 31,
20518                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20519                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20520                 .rlen   = 15,
20521         }, {
20522                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20523                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20524                 .klen   = 16,
20525                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20526                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20527                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20528                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20529                 .alen   = 16,
20530                 .input  = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
20531                           "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
20532                           "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
20533                           "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
20534                 .ilen   = 32,
20535                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20536                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20537                 .rlen   = 16,
20538         }, {
20539                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20540                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20541                 .klen   = 16,
20542                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20543                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20544                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20545                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20546                           "\x05",
20547                 .alen   = 17,
20548                 .input  = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
20549                           "\x38\x2d\x69\x90\x1c\x71\x38\x98"
20550                           "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
20551                           "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
20552                           "\x93",
20553                 .ilen   = 33,
20554                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20555                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20556                           "\xd0",
20557                 .rlen   = 17,
20558         }, {
20559                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20560                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20561                 .klen   = 16,
20562                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20563                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20564                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20565                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20566                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20567                           "\x68\x28\x73\x40\x9f\x96\x4a",
20568                 .alen   = 31,
20569                 .input  = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
20570                           "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
20571                           "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
20572                           "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
20573                           "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
20574                           "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
20575                 .ilen   = 47,
20576                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20577                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20578                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20579                           "\x98\x34\xab\x37\x56\xae\x32",
20580                 .rlen   = 31,
20581         }, {
20582                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20583                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20584                 .klen   = 16,
20585                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20586                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
20587                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20588                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20589                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20590                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20591                 .alen   = 32,
20592                 .input  = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
20593                           "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
20594                           "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
20595                           "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
20596                           "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
20597                           "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
20598                 .ilen   = 48,
20599                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20600                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20601                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20602                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20603                 .rlen   = 32,
20604         }, {
20605                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20606                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20607                 .klen   = 16,
20608                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20609                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20610                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20611                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20612                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20613                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20614                           "\x9d",
20615                 .alen   = 33,
20616                 .input  = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
20617                           "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
20618                           "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
20619                           "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
20620                           "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
20621                           "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
20622                           "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
20623                           "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
20624                           "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
20625                           "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
20626                           "\x3f",
20627                 .ilen   = 81,
20628                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20629                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20630                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20631                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20632                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20633                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20634                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20635                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20636                           "\xbd",
20637                 .rlen   = 65,
20638         }, {
20639                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20640                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20641                 .klen   = 16,
20642                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20643                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20644                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20645                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20646                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20647                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20648                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20649                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20650                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20651                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20652                           "\x54",
20653                 .alen   = 65,
20654                 .input  = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
20655                           "\x77\x09\xac\x74\xef\xd2\x56\xae"
20656                           "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
20657                           "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
20658                           "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
20659                           "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
20660                           "\x39",
20661                 .ilen   = 49,
20662                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20663                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20664                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20665                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20666                           "\x2f",
20667                 .rlen   = 33,
20668         }, {
20669                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20670                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20671                 .klen   = 16,
20672                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20673                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20674                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20675                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20676                 .alen   = 16,
20677                 .input  = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
20678                           "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
20679                           "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
20680                           "\xde\x20\x59\x77\xc1\x74\x90",
20681                 .ilen   = 31,
20682                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20683                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20684                 .rlen   = 16,
20685         }, {
20686                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20687                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20688                 .klen   = 16,
20689                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20690                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20691                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20692                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20693                 .alen   = 16,
20694                 .input  = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
20695                           "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
20696                           "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
20697                           "\xe9\xe0\x17\x45\x70\x12",
20698                 .ilen   = 30,
20699                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20700                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20701                 .rlen   = 16,
20702         }, {
20703                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20704                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20705                 .klen   = 16,
20706                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20707                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20708                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20709                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20710                 .alen   = 16,
20711                 .input  = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
20712                           "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
20713                           "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
20714                 .ilen   = 24,
20715                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20716                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20717                 .rlen   = 16,
20718         },
20719 };
20720
20721 /*
20722  * AEGIS-128L test vectors - generated via reference implementation from
20723  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
20724  *
20725  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
20726  *   (see crypto_aead/aegis128l/)
20727  */
20728 static const struct aead_testvec aegis128l_enc_tv_template[] = {
20729         {
20730                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20731                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20732                 .klen   = 16,
20733                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20734                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20735                 .assoc  = "",
20736                 .alen   = 0,
20737                 .input  = "",
20738                 .ilen   = 0,
20739                 .result = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
20740                           "\x20\x72\x78\xdd\x93\xc8\x57\xef",
20741                 .rlen   = 16,
20742         }, {
20743                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20744                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20745                 .klen   = 16,
20746                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20747                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20748                 .assoc  = "",
20749                 .alen   = 0,
20750                 .input  = "\x79",
20751                 .ilen   = 1,
20752                 .result = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
20753                           "\x40\xb3\x71\xc5\x22\x58\x31\x77"
20754                           "\x6d",
20755                 .rlen   = 17,
20756         }, {
20757                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20758                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20759                 .klen   = 16,
20760                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20761                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20762                 .assoc  = "",
20763                 .alen   = 0,
20764                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20765                           "\x82\x8e\x16\xb4\xed\x6d\x47",
20766                 .ilen   = 15,
20767                 .result = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
20768                           "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
20769                           "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
20770                           "\xe1\xa8\x04\x7f\xe1\x71\xbe",
20771                 .rlen   = 31,
20772         }, {
20773                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20774                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20775                 .klen   = 16,
20776                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20777                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20778                 .assoc  = "",
20779                 .alen   = 0,
20780                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20781                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20782                 .ilen   = 16,
20783                 .result = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
20784                           "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
20785                           "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
20786                           "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
20787                 .rlen   = 32,
20788         }, {
20789                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20790                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20791                 .klen   = 16,
20792                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20793                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20794                 .assoc  = "",
20795                 .alen   = 0,
20796                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20797                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20798                           "\xd3",
20799                 .ilen   = 17,
20800                 .result = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
20801                           "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
20802                           "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
20803                           "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
20804                           "\xf8",
20805                 .rlen   = 33,
20806         }, {
20807                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20808                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20809                 .klen   = 16,
20810                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20811                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20812                 .assoc  = "",
20813                 .alen   = 0,
20814                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20815                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20816                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20817                           "\x88\x11\x39\x12\x1c\x3a\xbb",
20818                 .ilen   = 31,
20819                 .result = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
20820                           "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
20821                           "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
20822                           "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
20823                           "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
20824                           "\x59\x28\x88\x3c\x79\x10\x6b",
20825                 .rlen   = 47,
20826         }, {
20827                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20828                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20829                 .klen   = 16,
20830                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20831                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20832                 .assoc  = "",
20833                 .alen   = 0,
20834                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20835                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20836                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20837                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20838                 .ilen   = 32,
20839                 .result = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
20840                           "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
20841                           "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
20842                           "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
20843                           "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
20844                           "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
20845                 .rlen   = 48,
20846         }, {
20847                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20848                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20849                 .klen   = 16,
20850                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20851                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20852                 .assoc  = "\xd5",
20853                 .alen   = 1,
20854                 .input  = "",
20855                 .ilen   = 0,
20856                 .result = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
20857                           "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
20858                 .rlen   = 16,
20859         }, {
20860                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20861                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20862                 .klen   = 16,
20863                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20864                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20865                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20866                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
20867                 .alen   = 15,
20868                 .input  = "",
20869                 .ilen   = 0,
20870                 .result = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
20871                           "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
20872                 .rlen   = 16,
20873         }, {
20874                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20875                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20876                 .klen   = 16,
20877                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20878                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20879                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20880                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20881                 .alen   = 16,
20882                 .input  = "",
20883                 .ilen   = 0,
20884                 .result = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
20885                           "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
20886                 .rlen   = 16,
20887         }, {
20888                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20889                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20890                 .klen   = 16,
20891                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20892                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20893                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20894                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20895                           "\x07",
20896                 .alen   = 17,
20897                 .input  = "",
20898                 .ilen   = 0,
20899                 .result = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
20900                           "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
20901                 .rlen   = 16,
20902         }, {
20903                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20904                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20905                 .klen   = 16,
20906                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20907                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20908                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20909                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20910                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20911                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20912                 .alen   = 31,
20913                 .input  = "",
20914                 .ilen   = 0,
20915                 .result = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
20916                           "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
20917                 .rlen   = 16,
20918         }, {
20919                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20920                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20921                 .klen   = 16,
20922                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20923                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20924                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20925                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20926                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20927                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20928                 .alen   = 32,
20929                 .input  = "",
20930                 .ilen   = 0,
20931                 .result = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
20932                           "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
20933                 .rlen   = 16,
20934         }, {
20935                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20936                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20937                 .klen   = 16,
20938                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20939                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20940                 .assoc  = "\x40",
20941                 .alen   = 1,
20942                 .input  = "\x4f",
20943                 .ilen   = 1,
20944                 .result = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
20945                           "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
20946                           "\xf4",
20947                 .rlen   = 17,
20948         }, {
20949                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20950                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20951                 .klen   = 16,
20952                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20953                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20954                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20955                           "\x6d\x92\x42\x61\xa7\x58\x37",
20956                 .alen   = 15,
20957                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20958                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20959                 .ilen   = 15,
20960                 .result = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
20961                           "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
20962                           "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
20963                           "\x20\x63\x0b\x49\x7e\x97\x08",
20964                 .rlen   = 31,
20965         }, {
20966                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20967                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20968                 .klen   = 16,
20969                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20970                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20971                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20972                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20973                 .alen   = 16,
20974                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20975                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20976                 .ilen   = 16,
20977                 .result = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
20978                           "\x78\x08\x12\xec\x09\xaf\x53\x14"
20979                           "\x90\x3e\x3d\x76\xad\x71\x21\x08"
20980                           "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
20981                 .rlen   = 32,
20982         }, {
20983                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20984                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20985                 .klen   = 16,
20986                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20987                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20988                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20989                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20990                           "\x05",
20991                 .alen   = 17,
20992                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20993                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20994                           "\xd0",
20995                 .ilen   = 17,
20996                 .result = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
20997                           "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
20998                           "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
20999                           "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
21000                           "\x7d",
21001                 .rlen   = 33,
21002         }, {
21003                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21004                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
21005                 .klen   = 16,
21006                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21007                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
21008                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21009                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21010                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21011                           "\x68\x28\x73\x40\x9f\x96\x4a",
21012                 .alen   = 31,
21013                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21014                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21015                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21016                           "\x98\x34\xab\x37\x56\xae\x32",
21017                 .ilen   = 31,
21018                 .result = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
21019                           "\x0d\x19\x15\x61\x65\x3b\x06\x26"
21020                           "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
21021                           "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
21022                           "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
21023                           "\xed\x90\xce\xb9\xcd\xcc\xa1",
21024                 .rlen   = 47,
21025         }, {
21026                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21027                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
21028                 .klen   = 16,
21029                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21030                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
21031                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21032                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21033                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21034                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21035                 .alen   = 32,
21036                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21037                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21038                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21039                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21040                 .ilen   = 32,
21041                 .result = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
21042                           "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
21043                           "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
21044                           "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
21045                           "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
21046                           "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
21047                 .rlen   = 48,
21048         }, {
21049                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21050                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
21051                 .klen   = 16,
21052                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21053                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
21054                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21055                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21056                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21057                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21058                           "\x9d",
21059                 .alen   = 33,
21060                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21061                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21062                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21063                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21064                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21065                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21066                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21067                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21068                           "\xbd",
21069                 .ilen   = 65,
21070                 .result = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
21071                           "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
21072                           "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
21073                           "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
21074                           "\xbc\x46\x76\x48\x82\xc7\x57\x96"
21075                           "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
21076                           "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
21077                           "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
21078                           "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
21079                           "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
21080                           "\x01",
21081                 .rlen   = 81,
21082         }, {
21083                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21084                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
21085                 .klen   = 16,
21086                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21087                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
21088                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21089                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21090                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21091                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21092                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21093                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21094                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21095                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21096                           "\x54",
21097                 .alen   = 65,
21098                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21099                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21100                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21101                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21102                           "\x2f",
21103                 .ilen   = 33,
21104                 .result = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
21105                           "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
21106                           "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
21107                           "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
21108                           "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
21109                           "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
21110                           "\x9f",
21111                 .rlen   = 49,
21112         }, {
21113                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21114                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
21115                 .klen   = 16,
21116                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21117                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
21118                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21119                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21120                 .alen   = 16,
21121                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21122                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21123                 .ilen   = 16,
21124                 .result = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
21125                           "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
21126                           "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
21127                           "\x05\xa8\x31\x50\x11\x19\x44",
21128                 .rlen   = 31,
21129         }, {
21130                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21131                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
21132                 .klen   = 16,
21133                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21134                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
21135                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21136                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21137                 .alen   = 16,
21138                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21139                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21140                 .ilen   = 16,
21141                 .result = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
21142                           "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
21143                           "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
21144                           "\x21\x93\x2e\x31\x84\x83",
21145                 .rlen   = 30,
21146         }, {
21147                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21148                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
21149                 .klen   = 16,
21150                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21151                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
21152                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21153                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21154                 .alen   = 16,
21155                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21156                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21157                 .ilen   = 16,
21158                 .result = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
21159                           "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
21160                           "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
21161                 .rlen   = 24,
21162         },
21163 };
21164
21165 static const struct aead_testvec aegis128l_dec_tv_template[] = {
21166         {
21167                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21168                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
21169                 .klen   = 16,
21170                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21171                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
21172                 .assoc  = "",
21173                 .alen   = 0,
21174                 .input  = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
21175                           "\x20\x72\x78\xdd\x93\xc8\x57\xef",
21176                 .ilen   = 16,
21177                 .result = "",
21178                 .rlen   = 0,
21179         }, {
21180                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21181                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
21182                 .klen   = 16,
21183                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21184                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
21185                 .assoc  = "",
21186                 .alen   = 0,
21187                 .input  = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
21188                           "\x40\xb3\x71\xc5\x22\x58\x31\x77"
21189                           "\x6d",
21190                 .ilen   = 17,
21191                 .result = "\x79",
21192                 .rlen   = 1,
21193         }, {
21194                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21195                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
21196                 .klen   = 16,
21197                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21198                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
21199                 .assoc  = "",
21200                 .alen   = 0,
21201                 .input  = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
21202                           "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
21203                           "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
21204                           "\xe1\xa8\x04\x7f\xe1\x71\xbe",
21205                 .ilen   = 31,
21206                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21207                           "\x82\x8e\x16\xb4\xed\x6d\x47",
21208                 .rlen   = 15,
21209         }, {
21210                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21211                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
21212                 .klen   = 16,
21213                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21214                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
21215                 .assoc  = "",
21216                 .alen   = 0,
21217                 .input  = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
21218                           "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
21219                           "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
21220                           "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
21221                 .ilen   = 32,
21222                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21223                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21224                 .rlen   = 16,
21225         }, {
21226                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21227                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
21228                 .klen   = 16,
21229                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21230                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
21231                 .assoc  = "",
21232                 .alen   = 0,
21233                 .input  = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
21234                           "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
21235                           "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
21236                           "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
21237                           "\xf8",
21238                 .ilen   = 33,
21239                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21240                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21241                           "\xd3",
21242                 .rlen   = 17,
21243         }, {
21244                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21245                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
21246                 .klen   = 16,
21247                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21248                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
21249                 .assoc  = "",
21250                 .alen   = 0,
21251                 .input  = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
21252                           "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
21253                           "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
21254                           "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
21255                           "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
21256                           "\x59\x28\x88\x3c\x79\x10\x6b",
21257                 .ilen   = 47,
21258                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21259                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21260                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21261                           "\x88\x11\x39\x12\x1c\x3a\xbb",
21262                 .rlen   = 31,
21263         }, {
21264                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21265                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
21266                 .klen   = 16,
21267                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21268                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
21269                 .assoc  = "",
21270                 .alen   = 0,
21271                 .input  = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
21272                           "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
21273                           "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
21274                           "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
21275                           "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
21276                           "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
21277                 .ilen   = 48,
21278                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21279                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21280                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21281                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21282                 .rlen   = 32,
21283         }, {
21284                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21285                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
21286                 .klen   = 16,
21287                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21288                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
21289                 .assoc  = "\xd5",
21290                 .alen   = 1,
21291                 .input  = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
21292                           "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
21293                 .ilen   = 16,
21294                 .result = "",
21295                 .rlen   = 0,
21296         }, {
21297                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21298                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
21299                 .klen   = 16,
21300                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21301                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
21302                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21303                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
21304                 .alen   = 15,
21305                 .input  = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
21306                           "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
21307                 .ilen   = 16,
21308                 .result = "",
21309                 .rlen   = 0,
21310         }, {
21311                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21312                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
21313                 .klen   = 16,
21314                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21315                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
21316                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21317                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21318                 .alen   = 16,
21319                 .input  = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
21320                           "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
21321                 .ilen   = 16,
21322                 .result = "",
21323                 .rlen   = 0,
21324         }, {
21325                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21326                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
21327                 .klen   = 16,
21328                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21329                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
21330                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21331                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21332                           "\x07",
21333                 .alen   = 17,
21334                 .input  = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
21335                           "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
21336                 .ilen   = 16,
21337                 .result = "",
21338                 .rlen   = 0,
21339         }, {
21340                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21341                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
21342                 .klen   = 16,
21343                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21344                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
21345                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21346                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21347                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21348                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21349                 .alen   = 31,
21350                 .input  = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
21351                           "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
21352                 .ilen   = 16,
21353                 .result = "",
21354                 .rlen   = 0,
21355         }, {
21356                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21357                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
21358                 .klen   = 16,
21359                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21360                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
21361                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21362                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21363                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21364                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21365                 .alen   = 32,
21366                 .input  = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
21367                           "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
21368                 .ilen   = 16,
21369                 .result = "",
21370                 .rlen   = 0,
21371         }, {
21372                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21373                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
21374                 .klen   = 16,
21375                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21376                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
21377                 .assoc  = "\x40",
21378                 .alen   = 1,
21379                 .input  = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
21380                           "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
21381                           "\xf4",
21382                 .ilen   = 17,
21383                 .result = "\x4f",
21384                 .rlen   = 1,
21385         }, {
21386                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21387                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
21388                 .klen   = 16,
21389                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21390                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
21391                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21392                           "\x6d\x92\x42\x61\xa7\x58\x37",
21393                 .alen   = 15,
21394                 .input  = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
21395                           "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
21396                           "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
21397                           "\x20\x63\x0b\x49\x7e\x97\x08",
21398                 .ilen   = 31,
21399                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21400                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
21401                 .rlen   = 15,
21402         }, {
21403                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21404                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
21405                 .klen   = 16,
21406                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21407                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
21408                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21409                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21410                 .alen   = 16,
21411                 .input  = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
21412                           "\x78\x08\x12\xec\x09\xaf\x53\x14"
21413                           "\x90\x3e\x3d\x76\xad\x71\x21\x08"
21414                           "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
21415                 .ilen   = 32,
21416                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21417                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21418                 .rlen   = 16,
21419         }, {
21420                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21421                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
21422                 .klen   = 16,
21423                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21424                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
21425                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21426                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21427                           "\x05",
21428                 .alen   = 17,
21429                 .input  = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
21430                           "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
21431                           "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
21432                           "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
21433                           "\x7d",
21434                 .ilen   = 33,
21435                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21436                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21437                           "\xd0",
21438                 .rlen   = 17,
21439         }, {
21440                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21441                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
21442                 .klen   = 16,
21443                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21444                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
21445                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21446                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21447                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21448                           "\x68\x28\x73\x40\x9f\x96\x4a",
21449                 .alen   = 31,
21450                 .input  = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
21451                           "\x0d\x19\x15\x61\x65\x3b\x06\x26"
21452                           "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
21453                           "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
21454                           "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
21455                           "\xed\x90\xce\xb9\xcd\xcc\xa1",
21456                 .ilen   = 47,
21457                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21458                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21459                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21460                           "\x98\x34\xab\x37\x56\xae\x32",
21461                 .rlen   = 31,
21462         }, {
21463                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21464                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
21465                 .klen   = 16,
21466                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21467                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
21468                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21469                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21470                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21471                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21472                 .alen   = 32,
21473                 .input  = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
21474                           "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
21475                           "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
21476                           "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
21477                           "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
21478                           "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
21479                 .ilen   = 48,
21480                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21481                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21482                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21483                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21484                 .rlen   = 32,
21485         }, {
21486                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21487                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
21488                 .klen   = 16,
21489                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21490                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
21491                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21492                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21493                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21494                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21495                           "\x9d",
21496                 .alen   = 33,
21497                 .input  = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
21498                           "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
21499                           "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
21500                           "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
21501                           "\xbc\x46\x76\x48\x82\xc7\x57\x96"
21502                           "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
21503                           "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
21504                           "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
21505                           "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
21506                           "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
21507                           "\x01",
21508                 .ilen   = 81,
21509                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21510                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21511                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21512                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21513                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21514                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21515                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21516                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21517                           "\xbd",
21518                 .rlen   = 65,
21519         }, {
21520                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21521                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
21522                 .klen   = 16,
21523                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21524                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
21525                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21526                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21527                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21528                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21529                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21530                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21531                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21532                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21533                           "\x54",
21534                 .alen   = 65,
21535                 .input  = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
21536                           "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
21537                           "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
21538                           "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
21539                           "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
21540                           "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
21541                           "\x9f",
21542                 .ilen   = 49,
21543                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21544                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21545                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21546                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21547                           "\x2f",
21548                 .rlen   = 33,
21549         }, {
21550                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21551                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
21552                 .klen   = 16,
21553                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21554                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
21555                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21556                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21557                 .alen   = 16,
21558                 .input  = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
21559                           "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
21560                           "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
21561                           "\x05\xa8\x31\x50\x11\x19\x44",
21562                 .ilen   = 31,
21563                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21564                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21565                 .rlen   = 16,
21566         }, {
21567                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21568                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
21569                 .klen   = 16,
21570                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21571                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
21572                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21573                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21574                 .alen   = 16,
21575                 .input  = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
21576                           "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
21577                           "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
21578                           "\x21\x93\x2e\x31\x84\x83",
21579                 .ilen   = 30,
21580                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21581                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21582                 .rlen   = 16,
21583         }, {
21584                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21585                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
21586                 .klen   = 16,
21587                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21588                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
21589                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21590                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21591                 .alen   = 16,
21592                 .input  = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
21593                           "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
21594                           "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
21595                 .ilen   = 24,
21596                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21597                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21598                 .rlen   = 16,
21599         },
21600 };
21601
21602 /*
21603  * AEGIS-256 test vectors - generated via reference implementation from
21604  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
21605  *
21606  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
21607  *   (see crypto_aead/aegis256/)
21608  */
21609 static const struct aead_testvec aegis256_enc_tv_template[] = {
21610         {
21611                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21612                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
21613                           "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
21614                           "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
21615                 .klen   = 32,
21616                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21617                           "\x40\x6d\x59\x48\xfc\x92\x61\x03"
21618                           "\x95\x61\x05\x42\x82\x50\xc0\x0c"
21619                           "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
21620                 .assoc  = "",
21621                 .alen   = 0,
21622                 .input  = "",
21623                 .ilen   = 0,
21624                 .result = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
21625                           "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
21626                 .rlen   = 16,
21627         }, {
21628                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21629                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
21630                           "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
21631                           "\xf1\x38\x16\xce\x90\x76\x87\x8c",
21632                 .klen   = 32,
21633                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21634                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
21635                           "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
21636                           "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
21637                 .assoc  = "",
21638                 .alen   = 0,
21639                 .input  = "\x79",
21640                 .ilen   = 1,
21641                 .result = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
21642                           "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
21643                           "\x8b",
21644                 .rlen   = 17,
21645         }, {
21646                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21647                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
21648                           "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
21649                           "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
21650                 .klen   = 32,
21651                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21652                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
21653                           "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
21654                           "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
21655                 .assoc  = "",
21656                 .alen   = 0,
21657                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21658                           "\x82\x8e\x16\xb4\xed\x6d\x47",
21659                 .ilen   = 15,
21660                 .result = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
21661                           "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
21662                           "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
21663                           "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
21664                 .rlen   = 31,
21665         }, {
21666                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21667                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
21668                           "\x49\xf7\xa5\xad\x50\x88\x66\x53"
21669                           "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
21670                 .klen   = 32,
21671                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21672                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
21673                           "\x14\xa8\x28\xce\x92\x30\x46\x59"
21674                           "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
21675                 .assoc  = "",
21676                 .alen   = 0,
21677                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21678                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21679                 .ilen   = 16,
21680                 .result = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
21681                           "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
21682                           "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
21683                           "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
21684                 .rlen   = 32,
21685         }, {
21686                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21687                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
21688                           "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
21689                           "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
21690                 .klen   = 32,
21691                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21692                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
21693                           "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
21694                           "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
21695                 .assoc  = "",
21696                 .alen   = 0,
21697                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21698                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21699                           "\xd3",
21700                 .ilen   = 17,
21701                 .result = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
21702                           "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
21703                           "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
21704                           "\xc0\x00\x39\x13\xb5\x51\x68\x44"
21705                           "\xad",
21706                 .rlen   = 33,
21707         }, {
21708                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21709                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
21710                           "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
21711                           "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
21712                 .klen   = 32,
21713                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21714                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
21715                           "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
21716                           "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
21717                 .assoc  = "",
21718                 .alen   = 0,
21719                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21720                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21721                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21722                           "\x88\x11\x39\x12\x1c\x3a\xbb",
21723                 .ilen   = 31,
21724                 .result = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
21725                           "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
21726                           "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
21727                           "\x89\x85\x23\x15\xb8\x79\x07\x4c"
21728                           "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
21729                           "\xc4\x1f\x12\x27\xcf\x77\x90",
21730                 .rlen   = 47,
21731         }, {
21732                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21733                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
21734                           "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
21735                           "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
21736                 .klen   = 32,
21737                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21738                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
21739                           "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
21740                           "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
21741                 .assoc  = "",
21742                 .alen   = 0,
21743                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21744                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21745                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21746                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21747                 .ilen   = 32,
21748                 .result = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
21749                           "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
21750                           "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
21751                           "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
21752                           "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
21753                           "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
21754                 .rlen   = 48,
21755         }, {
21756                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21757                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
21758                           "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
21759                           "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
21760                 .klen   = 32,
21761                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21762                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
21763                           "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
21764                           "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
21765                 .assoc  = "\xd5",
21766                 .alen   = 1,
21767                 .input  = "",
21768                 .ilen   = 0,
21769                 .result = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
21770                           "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
21771                 .rlen   = 16,
21772         }, {
21773                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21774                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
21775                           "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
21776                           "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
21777                 .klen   = 32,
21778                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21779                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
21780                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
21781                           "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
21782                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21783                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
21784                 .alen   = 15,
21785                 .input  = "",
21786                 .ilen   = 0,
21787                 .result = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
21788                           "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
21789                 .rlen   = 16,
21790         }, {
21791                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21792                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
21793                           "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
21794                           "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
21795                 .klen   = 32,
21796                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21797                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
21798                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
21799                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
21800                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21801                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21802                 .alen   = 16,
21803                 .input  = "",
21804                 .ilen   = 0,
21805                 .result = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
21806                           "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
21807                 .rlen   = 16,
21808         }, {
21809                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21810                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
21811                           "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
21812                           "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
21813                 .klen   = 32,
21814                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21815                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
21816                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
21817                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
21818                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21819                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21820                           "\x07",
21821                 .alen   = 17,
21822                 .input  = "",
21823                 .ilen   = 0,
21824                 .result = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
21825                           "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
21826                 .rlen   = 16,
21827         }, {
21828                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21829                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
21830                           "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
21831                           "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
21832                 .klen   = 32,
21833                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21834                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
21835                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
21836                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
21837                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21838                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21839                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21840                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21841                 .alen   = 31,
21842                 .input  = "",
21843                 .ilen   = 0,
21844                 .result = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
21845                           "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
21846                 .rlen   = 16,
21847         }, {
21848                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21849                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
21850                           "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
21851                           "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
21852                 .klen   = 32,
21853                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21854                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
21855                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
21856                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
21857                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21858                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21859                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21860                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21861                 .alen   = 32,
21862                 .input  = "",
21863                 .ilen   = 0,
21864                 .result = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
21865                           "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
21866                 .rlen   = 16,
21867         }, {
21868                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21869                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
21870                           "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
21871                           "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
21872                 .klen   = 32,
21873                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21874                           "\xcc\x81\x63\xab\xae\x6b\x43\x54"
21875                           "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
21876                           "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
21877                 .assoc  = "\x40",
21878                 .alen   = 1,
21879                 .input  = "\x4f",
21880                 .ilen   = 1,
21881                 .result = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
21882                           "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
21883                           "\xc7",
21884                 .rlen   = 17,
21885         }, {
21886                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21887                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
21888                           "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
21889                           "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
21890                 .klen   = 32,
21891                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21892                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
21893                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
21894                           "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
21895                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21896                           "\x6d\x92\x42\x61\xa7\x58\x37",
21897                 .alen   = 15,
21898                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21899                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
21900                 .ilen   = 15,
21901                 .result = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
21902                           "\x7e\x98\x83\x02\x34\x23\xf7\x94"
21903                           "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
21904                           "\x14\x80\x6a\xa7\x1b\xae\x1d",
21905                 .rlen   = 31,
21906         }, {
21907                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21908                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
21909                           "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
21910                           "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
21911                 .klen   = 32,
21912                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21913                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
21914                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
21915                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
21916                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21917                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21918                 .alen   = 16,
21919                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21920                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21921                 .ilen   = 16,
21922                 .result = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
21923                           "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
21924                           "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
21925                           "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
21926                 .rlen   = 32,
21927         }, {
21928                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21929                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
21930                           "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
21931                           "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
21932                 .klen   = 32,
21933                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21934                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
21935                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
21936                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
21937                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21938                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21939                           "\x05",
21940                 .alen   = 17,
21941                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21942                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21943                           "\xd0",
21944                 .ilen   = 17,
21945                 .result = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
21946                           "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
21947                           "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
21948                           "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
21949                           "\x55",
21950                 .rlen   = 33,
21951         }, {
21952                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21953                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
21954                           "\x9a\x97\x48\xe9\x98\x48\x82\xba"
21955                           "\x07\x11\x04\x54\x32\x67\x7b\xf5",
21956                 .klen   = 32,
21957                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21958                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
21959                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
21960                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
21961                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21962                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21963                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21964                           "\x68\x28\x73\x40\x9f\x96\x4a",
21965                 .alen   = 31,
21966                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21967                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21968                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21969                           "\x98\x34\xab\x37\x56\xae\x32",
21970                 .ilen   = 31,
21971                 .result = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
21972                           "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
21973                           "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
21974                           "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
21975                           "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
21976                           "\xdf\xb8\xea\xd8\xa9\x38\xed",
21977                 .rlen   = 47,
21978         }, {
21979                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21980                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
21981                           "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
21982                           "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
21983                 .klen   = 32,
21984                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21985                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
21986                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
21987                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
21988                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21989                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21990                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21991                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21992                 .alen   = 32,
21993                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21994                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21995                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21996                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21997                 .ilen   = 32,
21998                 .result = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
21999                           "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
22000                           "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
22001                           "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
22002                           "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
22003                           "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
22004                 .rlen   = 48,
22005         }, {
22006                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22007                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
22008                           "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
22009                           "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
22010                 .klen   = 32,
22011                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22012                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22013                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22014                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
22015                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22016                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22017                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22018                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22019                           "\x9d",
22020                 .alen   = 33,
22021                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22022                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
22023                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
22024                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
22025                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
22026                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
22027                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
22028                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
22029                           "\xbd",
22030                 .ilen   = 65,
22031                 .result = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
22032                           "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
22033                           "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
22034                           "\x1a\x93\x33\x79\x97\x82\x81\xc0"
22035                           "\x96\xc2\x00\xab\x39\xae\xa1\x62"
22036                           "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
22037                           "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
22038                           "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
22039                           "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
22040                           "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
22041                           "\x65",
22042                 .rlen   = 81,
22043         }, {
22044                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22045                           "\x32\x42\x15\x80\x85\xa1\x65\xfe"
22046                           "\x19\xde\x6b\x76\xa8\x28\x08\x07"
22047                           "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
22048                 .klen   = 32,
22049                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22050                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22051                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22052                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
22053                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22054                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22055                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22056                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22057                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
22058                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
22059                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
22060                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
22061                           "\x54",
22062                 .alen   = 65,
22063                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22064                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22065                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22066                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22067                           "\x2f",
22068                 .ilen   = 33,
22069                 .result = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
22070                           "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
22071                           "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
22072                           "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
22073                           "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
22074                           "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
22075                           "\xda",
22076                 .rlen   = 49,
22077         }, {
22078                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22079                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
22080                           "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
22081                           "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
22082                 .klen   = 32,
22083                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22084                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
22085                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
22086                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
22087                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22088                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22089                 .alen   = 16,
22090                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22091                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22092                 .ilen   = 16,
22093                 .result = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
22094                           "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
22095                           "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
22096                           "\xc7\xff\xbd\xbc\x85\x09\x0b",
22097                 .rlen   = 31,
22098         }, {
22099                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22100                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
22101                           "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
22102                           "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
22103                 .klen   = 32,
22104                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22105                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
22106                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
22107                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
22108                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22109                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22110                 .alen   = 16,
22111                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22112                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22113                 .ilen   = 16,
22114                 .result = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
22115                           "\x6c\xd9\x84\x63\x70\x97\x61\x37"
22116                           "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
22117                           "\x62\xd5\xc8\xf0\x46\x1a",
22118                 .rlen   = 30,
22119         }, {
22120                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22121                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
22122                           "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
22123                           "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
22124                 .klen   = 32,
22125                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22126                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
22127                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
22128                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
22129                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22130                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22131                 .alen   = 16,
22132                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22133                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22134                 .ilen   = 16,
22135                 .result = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
22136                           "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
22137                           "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
22138                 .rlen   = 24,
22139         },
22140 };
22141
22142 static const struct aead_testvec aegis256_dec_tv_template[] = {
22143         {
22144                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22145                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
22146                           "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
22147                           "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
22148                 .klen   = 32,
22149                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
22150                           "\x40\x6d\x59\x48\xfc\x92\x61\x03"
22151                           "\x95\x61\x05\x42\x82\x50\xc0\x0c"
22152                           "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
22153                 .assoc  = "",
22154                 .alen   = 0,
22155                 .input  = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
22156                           "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
22157                 .ilen   = 16,
22158                 .result = "",
22159                 .rlen   = 0,
22160         }, {
22161                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22162                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
22163                           "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
22164                           "\xf1\x38\x16\xce\x90\x76\x87\x8c",
22165                 .klen   = 32,
22166                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
22167                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
22168                           "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
22169                           "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
22170                 .assoc  = "",
22171                 .alen   = 0,
22172                 .input  = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
22173                           "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
22174                           "\x8b",
22175                 .ilen   = 17,
22176                 .result = "\x79",
22177                 .rlen   = 1,
22178         }, {
22179                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22180                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
22181                           "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
22182                           "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
22183                 .klen   = 32,
22184                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
22185                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
22186                           "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
22187                           "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
22188                 .assoc  = "",
22189                 .alen   = 0,
22190                 .input  = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
22191                           "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
22192                           "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
22193                           "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
22194                 .ilen   = 31,
22195                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22196                           "\x82\x8e\x16\xb4\xed\x6d\x47",
22197                 .rlen   = 15,
22198         }, {
22199                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22200                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
22201                           "\x49\xf7\xa5\xad\x50\x88\x66\x53"
22202                           "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
22203                 .klen   = 32,
22204                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
22205                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
22206                           "\x14\xa8\x28\xce\x92\x30\x46\x59"
22207                           "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
22208                 .assoc  = "",
22209                 .alen   = 0,
22210                 .input  = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
22211                           "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
22212                           "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
22213                           "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
22214                 .ilen   = 32,
22215                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22216                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22217                 .rlen   = 16,
22218         }, {
22219                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22220                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
22221                           "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
22222                           "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
22223                 .klen   = 32,
22224                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
22225                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
22226                           "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
22227                           "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
22228                 .assoc  = "",
22229                 .alen   = 0,
22230                 .input  = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
22231                           "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
22232                           "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
22233                           "\xc0\x00\x39\x13\xb5\x51\x68\x44"
22234                           "\xad",
22235                 .ilen   = 33,
22236                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22237                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
22238                           "\xd3",
22239                 .rlen   = 17,
22240         }, {
22241                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22242                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
22243                           "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
22244                           "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
22245                 .klen   = 32,
22246                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
22247                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
22248                           "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
22249                           "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
22250                 .assoc  = "",
22251                 .alen   = 0,
22252                 .input  = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
22253                           "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
22254                           "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
22255                           "\x89\x85\x23\x15\xb8\x79\x07\x4c"
22256                           "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
22257                           "\xc4\x1f\x12\x27\xcf\x77\x90",
22258                 .ilen   = 47,
22259                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22260                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
22261                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
22262                           "\x88\x11\x39\x12\x1c\x3a\xbb",
22263                 .rlen   = 31,
22264         }, {
22265                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22266                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
22267                           "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
22268                           "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
22269                 .klen   = 32,
22270                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
22271                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
22272                           "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
22273                           "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
22274                 .assoc  = "",
22275                 .alen   = 0,
22276                 .input  = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
22277                           "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
22278                           "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
22279                           "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
22280                           "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
22281                           "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
22282                 .ilen   = 48,
22283                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22284                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
22285                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
22286                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
22287                 .rlen   = 32,
22288         }, {
22289                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22290                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
22291                           "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
22292                           "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
22293                 .klen   = 32,
22294                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
22295                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
22296                           "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
22297                           "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
22298                 .assoc  = "\xd5",
22299                 .alen   = 1,
22300                 .input  = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
22301                           "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
22302                 .ilen   = 16,
22303                 .result = "",
22304                 .rlen   = 0,
22305         }, {
22306                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22307                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
22308                           "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
22309                           "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
22310                 .klen   = 32,
22311                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22312                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
22313                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
22314                           "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
22315                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
22316                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
22317                 .alen   = 15,
22318                 .input  = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
22319                           "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
22320                 .ilen   = 16,
22321                 .result = "",
22322                 .rlen   = 0,
22323         }, {
22324                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22325                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
22326                           "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
22327                           "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
22328                 .klen   = 32,
22329                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22330                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
22331                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
22332                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
22333                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
22334                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
22335                 .alen   = 16,
22336                 .input  = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
22337                           "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
22338                 .ilen   = 16,
22339                 .result = "",
22340                 .rlen   = 0,
22341         }, {
22342                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22343                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
22344                           "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
22345                           "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
22346                 .klen   = 32,
22347                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22348                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22349                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
22350                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
22351                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
22352                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
22353                           "\x07",
22354                 .alen   = 17,
22355                 .input  = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
22356                           "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
22357                 .ilen   = 16,
22358                 .result = "",
22359                 .rlen   = 0,
22360         }, {
22361                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22362                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
22363                           "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
22364                           "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
22365                 .klen   = 32,
22366                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22367                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22368                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22369                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
22370                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
22371                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
22372                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
22373                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
22374                 .alen   = 31,
22375                 .input  = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
22376                           "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
22377                 .ilen   = 16,
22378                 .result = "",
22379                 .rlen   = 0,
22380         }, {
22381                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22382                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
22383                           "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
22384                           "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
22385                 .klen   = 32,
22386                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22387                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22388                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22389                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22390                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
22391                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
22392                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
22393                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
22394                 .alen   = 32,
22395                 .input  = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
22396                           "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
22397                 .ilen   = 16,
22398                 .result = "",
22399                 .rlen   = 0,
22400         }, {
22401                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22402                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
22403                           "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
22404                           "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
22405                 .klen   = 32,
22406                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
22407                           "\xcc\x81\x63\xab\xae\x6b\x43\x54"
22408                           "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
22409                           "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
22410                 .assoc  = "\x40",
22411                 .alen   = 1,
22412                 .input  = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
22413                           "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
22414                           "\xc7",
22415                 .ilen   = 17,
22416                 .result = "\x4f",
22417                 .rlen   = 1,
22418         }, {
22419                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22420                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
22421                           "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
22422                           "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
22423                 .klen   = 32,
22424                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22425                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
22426                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
22427                           "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
22428                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22429                           "\x6d\x92\x42\x61\xa7\x58\x37",
22430                 .alen   = 15,
22431                 .input  = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
22432                           "\x7e\x98\x83\x02\x34\x23\xf7\x94"
22433                           "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
22434                           "\x14\x80\x6a\xa7\x1b\xae\x1d",
22435                 .ilen   = 31,
22436                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22437                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
22438                 .rlen   = 15,
22439         }, {
22440                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22441                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
22442                           "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
22443                           "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
22444                 .klen   = 32,
22445                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22446                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
22447                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
22448                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
22449                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22450                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22451                 .alen   = 16,
22452                 .input  = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
22453                           "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
22454                           "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
22455                           "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
22456                 .ilen   = 32,
22457                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22458                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22459                 .rlen   = 16,
22460         }, {
22461                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22462                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
22463                           "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
22464                           "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
22465                 .klen   = 32,
22466                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22467                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22468                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
22469                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
22470                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22471                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22472                           "\x05",
22473                 .alen   = 17,
22474                 .input  = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
22475                           "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
22476                           "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
22477                           "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
22478                           "\x55",
22479                 .ilen   = 33,
22480                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22481                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
22482                           "\xd0",
22483                 .rlen   = 17,
22484         }, {
22485                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22486                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
22487                           "\x9a\x97\x48\xe9\x98\x48\x82\xba"
22488                           "\x07\x11\x04\x54\x32\x67\x7b\xf5",
22489                 .klen   = 32,
22490                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22491                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22492                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22493                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
22494                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22495                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22496                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22497                           "\x68\x28\x73\x40\x9f\x96\x4a",
22498                 .alen   = 31,
22499                 .input  = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
22500                           "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
22501                           "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
22502                           "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
22503                           "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
22504                           "\xdf\xb8\xea\xd8\xa9\x38\xed",
22505                 .ilen   = 47,
22506                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22507                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
22508                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
22509                           "\x98\x34\xab\x37\x56\xae\x32",
22510                 .rlen   = 31,
22511         }, {
22512                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22513                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
22514                           "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
22515                           "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
22516                 .klen   = 32,
22517                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22518                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
22519                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22520                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22521                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22522                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22523                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22524                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22525                 .alen   = 32,
22526                 .input  = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
22527                           "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
22528                           "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
22529                           "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
22530                           "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
22531                           "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
22532                 .ilen   = 48,
22533                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22534                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
22535                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
22536                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
22537                 .rlen   = 32,
22538         }, {
22539                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22540                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
22541                           "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
22542                           "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
22543                 .klen   = 32,
22544                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22545                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22546                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22547                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
22548                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22549                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22550                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22551                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22552                           "\x9d",
22553                 .alen   = 33,
22554                 .input  = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
22555                           "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
22556                           "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
22557                           "\x1a\x93\x33\x79\x97\x82\x81\xc0"
22558                           "\x96\xc2\x00\xab\x39\xae\xa1\x62"
22559                           "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
22560                           "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
22561                           "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
22562                           "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
22563                           "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
22564                           "\x65",
22565                 .ilen   = 81,
22566                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22567                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
22568                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
22569                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
22570                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
22571                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
22572                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
22573                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
22574                           "\xbd",
22575                 .rlen   = 65,
22576         }, {
22577                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22578                           "\x32\x42\x15\x80\x85\xa1\x65\xfe"
22579                           "\x19\xde\x6b\x76\xa8\x28\x08\x07"
22580                           "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
22581                 .klen   = 32,
22582                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22583                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22584                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22585                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
22586                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22587                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22588                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22589                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22590                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
22591                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
22592                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
22593                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
22594                           "\x54",
22595                 .alen   = 65,
22596                 .input  = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
22597                           "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
22598                           "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
22599                           "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
22600                           "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
22601                           "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
22602                           "\xda",
22603                 .ilen   = 49,
22604                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22605                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22606                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22607                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22608                           "\x2f",
22609                 .rlen   = 33,
22610         }, {
22611                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22612                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
22613                           "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
22614                           "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
22615                 .klen   = 32,
22616                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22617                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
22618                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
22619                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
22620                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22621                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22622                 .alen   = 16,
22623                 .input  = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
22624                           "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
22625                           "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
22626                           "\xc7\xff\xbd\xbc\x85\x09\x0b",
22627                 .ilen   = 31,
22628                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22629                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22630                 .rlen   = 16,
22631         }, {
22632                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22633                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
22634                           "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
22635                           "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
22636                 .klen   = 32,
22637                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22638                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
22639                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
22640                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
22641                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22642                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22643                 .alen   = 16,
22644                 .input  = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
22645                           "\x6c\xd9\x84\x63\x70\x97\x61\x37"
22646                           "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
22647                           "\x62\xd5\xc8\xf0\x46\x1a",
22648                 .ilen   = 30,
22649                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22650                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22651                 .rlen   = 16,
22652         }, {
22653                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22654                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
22655                           "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
22656                           "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
22657                 .klen   = 32,
22658                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22659                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
22660                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
22661                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
22662                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22663                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22664                 .alen   = 16,
22665                 .input  = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
22666                           "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
22667                           "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
22668                 .ilen   = 24,
22669                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22670                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22671                 .rlen   = 16,
22672         },
22673 };
22674
22675 /*
22676  * MORUS-640 test vectors - generated via reference implementation from
22677  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
22678  *
22679  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
22680  *   (see crypto_aead/morus640128v2/)
22681  */
22682 static const struct aead_testvec morus640_enc_tv_template[] = {
22683         {
22684                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
22685                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22686                 .klen   = 16,
22687                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22688                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
22689                 .assoc  = "",
22690                 .alen   = 0,
22691                 .input  = "",
22692                 .ilen   = 0,
22693                 .result = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
22694                           "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
22695                 .rlen   = 16,
22696         }, {
22697                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
22698                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
22699                 .klen   = 16,
22700                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22701                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
22702                 .assoc  = "",
22703                 .alen   = 0,
22704                 .input  = "\x69",
22705                 .ilen   = 1,
22706                 .result = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
22707                           "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
22708                           "\x09",
22709                 .rlen   = 17,
22710         }, {
22711                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
22712                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
22713                 .klen   = 16,
22714                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22715                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
22716                 .assoc  = "",
22717                 .alen   = 0,
22718                 .input  = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
22719                           "\x62\x58\xe9\x8f\xef\xa4\x17",
22720                 .ilen   = 15,
22721                 .result = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
22722                           "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
22723                           "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
22724                           "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
22725                 .rlen   = 31,
22726         }, {
22727                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22728                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
22729                 .klen   = 16,
22730                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22731                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
22732                 .assoc  = "",
22733                 .alen   = 0,
22734                 .input  = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
22735                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
22736                 .ilen   = 16,
22737                 .result = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
22738                           "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
22739                           "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
22740                           "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
22741                 .rlen   = 32,
22742         }, {
22743                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22744                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22745                 .klen   = 16,
22746                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22747                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
22748                 .assoc  = "",
22749                 .alen   = 0,
22750                 .input  = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
22751                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
22752                           "\x09",
22753                 .ilen   = 17,
22754                 .result = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
22755                           "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
22756                           "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
22757                           "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
22758                           "\x0d",
22759                 .rlen   = 33,
22760         }, {
22761                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22762                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
22763                 .klen   = 16,
22764                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22765                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
22766                 .assoc  = "",
22767                 .alen   = 0,
22768                 .input  = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
22769                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
22770                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
22771                           "\x57\x05\x01\x1c\x66\x22\xd3",
22772                 .ilen   = 31,
22773                 .result = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
22774                           "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
22775                           "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
22776                           "\x36\x12\x12\xed\xa3\x31\xc5\x30"
22777                           "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
22778                           "\x75\xfa\x6c\x17\xc6\x73\xca",
22779                 .rlen   = 47,
22780         }, {
22781                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22782                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
22783                 .klen   = 16,
22784                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22785                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
22786                 .assoc  = "",
22787                 .alen   = 0,
22788                 .input  = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
22789                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
22790                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
22791                           "\x19\x33\xe0\xf4\x40\x81\x72\x28",
22792                 .ilen   = 32,
22793                 .result = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
22794                           "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
22795                           "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
22796                           "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
22797                           "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
22798                           "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
22799                 .rlen   = 48,
22800         }, {
22801                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22802                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
22803                 .klen   = 16,
22804                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22805                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
22806                 .assoc  = "\xc5",
22807                 .alen   = 1,
22808                 .input  = "",
22809                 .ilen   = 0,
22810                 .result = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
22811                           "\x09\x48\x39\x69\x9c\xb3\x62\x46",
22812                 .rlen   = 16,
22813         }, {
22814                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
22815                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
22816                 .klen   = 16,
22817                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22818                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
22819                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22820                           "\x47\x3e\xe9\xd4\xcc\xb5\x76",
22821                 .alen   = 15,
22822                 .input  = "",
22823                 .ilen   = 0,
22824                 .result = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
22825                           "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
22826                 .rlen   = 16,
22827         }, {
22828                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
22829                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
22830                 .klen   = 16,
22831                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22832                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
22833                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22834                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
22835                 .alen   = 16,
22836                 .input  = "",
22837                 .ilen   = 0,
22838                 .result = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
22839                           "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
22840                 .rlen   = 16,
22841         }, {
22842                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
22843                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
22844                 .klen   = 16,
22845                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22846                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
22847                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22848                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22849                           "\x3c",
22850                 .alen   = 17,
22851                 .input  = "",
22852                 .ilen   = 0,
22853                 .result = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
22854                           "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
22855                 .rlen   = 16,
22856         }, {
22857                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
22858                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
22859                 .klen   = 16,
22860                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22861                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
22862                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22863                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22864                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22865                           "\xaf\x0b\x02\x38\xcc\x44\xa7",
22866                 .alen   = 31,
22867                 .input  = "",
22868                 .ilen   = 0,
22869                 .result = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
22870                           "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
22871                 .rlen   = 16,
22872         }, {
22873                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
22874                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
22875                 .klen   = 16,
22876                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22877                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
22878                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22879                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22880                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22881                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22882                 .alen   = 32,
22883                 .input  = "",
22884                 .ilen   = 0,
22885                 .result = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
22886                           "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
22887                 .rlen   = 16,
22888         }, {
22889                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
22890                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
22891                 .klen   = 16,
22892                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22893                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
22894                 .assoc  = "\x31",
22895                 .alen   = 1,
22896                 .input  = "\x40",
22897                 .ilen   = 1,
22898                 .result = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
22899                           "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
22900                           "\x22",
22901                 .rlen   = 17,
22902         }, {
22903                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
22904                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
22905                 .klen   = 16,
22906                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22907                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22908                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22909                           "\x4d\x5b\x15\x3c\xa8\x8f\x06",
22910                 .alen   = 15,
22911                 .input  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22912                           "\x6d\x92\x42\x61\xa7\x58\x37",
22913                 .ilen   = 15,
22914                 .result = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
22915                           "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
22916                           "\x07\x95\xa7\x44\x74\xf7\x22\xff"
22917                           "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
22918                 .rlen   = 31,
22919         }, {
22920                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22921                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
22922                 .klen   = 16,
22923                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22924                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22925                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22926                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22927                 .alen   = 16,
22928                 .input  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22929                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22930                 .ilen   = 16,
22931                 .result = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
22932                           "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
22933                           "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
22934                           "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
22935                 .rlen   = 32,
22936         }, {
22937                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22938                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22939                 .klen   = 16,
22940                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22941                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22942                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22943                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22944                           "\x3b",
22945                 .alen   = 17,
22946                 .input  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22947                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22948                           "\x05",
22949                 .ilen   = 17,
22950                 .result = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
22951                           "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
22952                           "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
22953                           "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
22954                           "\x83",
22955                 .rlen   = 33,
22956         }, {
22957                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22958                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
22959                 .klen   = 16,
22960                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22961                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22962                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22963                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22964                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22965                           "\x38\x1d\x3b\x4a\xe9\x7e\x62",
22966                 .alen   = 31,
22967                 .input  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22968                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22969                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22970                           "\x68\x28\x73\x40\x9f\x96\x4a",
22971                 .ilen   = 31,
22972                 .result = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
22973                           "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
22974                           "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
22975                           "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
22976                           "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
22977                           "\xf1\x5a\x66\x69\xe0\xca\x83",
22978                 .rlen   = 47,
22979         }, {
22980                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22981                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
22982                 .klen   = 16,
22983                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22984                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
22985                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22986                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
22987                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22988                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22989                 .alen   = 32,
22990                 .input  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22991                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22992                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22993                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22994                 .ilen   = 32,
22995                 .result = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
22996                           "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
22997                           "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
22998                           "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
22999                           "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
23000                           "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
23001                 .rlen   = 48,
23002         }, {
23003                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23004                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
23005                 .klen   = 16,
23006                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23007                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
23008                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23009                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23010                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23011                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
23012                           "\x1a",
23013                 .alen   = 33,
23014                 .input  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23015                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23016                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23017                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23018                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
23019                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
23020                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
23021                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
23022                           "\x8a",
23023                 .ilen   = 65,
23024                 .result = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
23025                           "\xb1\x37\xde\x95\x06\x90\x11\x08"
23026                           "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
23027                           "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
23028                           "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
23029                           "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
23030                           "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
23031                           "\xef\x35\x25\x48\xed\xcf\x29\xa8"
23032                           "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
23033                           "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
23034                           "\xc4",
23035                 .rlen   = 81,
23036         }, {
23037                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23038                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
23039                 .klen   = 16,
23040                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23041                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
23042                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23043                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23044                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23045                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
23046                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
23047                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
23048                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
23049                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
23050                           "\x21",
23051                 .alen   = 65,
23052                 .input  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23053                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23054                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23055                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23056                           "\xac",
23057                 .ilen   = 33,
23058                 .result = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
23059                           "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
23060                           "\xf3\x78\x63\x34\x89\x79\x39\x6b"
23061                           "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
23062                           "\x54\x0b\xea\x05\xa6\x95\x64\xed"
23063                           "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
23064                           "\x66",
23065                 .rlen   = 49,
23066         }, {
23067                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23068                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
23069                 .klen   = 16,
23070                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23071                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
23072                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23073                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
23074                 .alen   = 16,
23075                 .input  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23076                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
23077                 .ilen   = 16,
23078                 .result = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
23079                           "\x33\x98\x87\xde\x08\xb6\xb6\xae"
23080                           "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
23081                           "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
23082                 .rlen   = 31,
23083         }, {
23084                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23085                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23086                 .klen   = 16,
23087                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23088                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
23089                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23090                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
23091                 .alen   = 16,
23092                 .input  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23093                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
23094                 .ilen   = 16,
23095                 .result = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
23096                           "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
23097                           "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
23098                           "\x03\xde\x85\x71\x5d\x34",
23099                 .rlen   = 30,
23100         }, {
23101                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23102                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23103                 .klen   = 16,
23104                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23105                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
23106                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23107                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
23108                 .alen   = 16,
23109                 .input  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23110                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
23111                 .ilen   = 16,
23112                 .result = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
23113                           "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
23114                           "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
23115                 .rlen   = 24,
23116         }, {
23117                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23118                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23119                 .klen   = 16,
23120                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
23121                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
23122                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
23123                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
23124                 .alen   = 16,
23125                 .input  = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
23126                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
23127                 .ilen   = 16,
23128                 .result = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
23129                           "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
23130                           "\x6e",
23131                 .rlen   = 17,
23132         },
23133 };
23134
23135 static const struct aead_testvec morus640_dec_tv_template[] = {
23136         {
23137                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
23138                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23139                 .klen   = 16,
23140                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23141                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
23142                 .assoc  = "",
23143                 .alen   = 0,
23144                 .input  = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
23145                           "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
23146                 .ilen   = 16,
23147                 .result = "",
23148                 .rlen   = 0,
23149         }, {
23150                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
23151                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
23152                 .klen   = 16,
23153                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23154                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
23155                 .assoc  = "",
23156                 .alen   = 0,
23157                 .input  = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
23158                           "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
23159                           "\x09",
23160                 .ilen   = 17,
23161                 .result = "\x69",
23162                 .rlen   = 1,
23163         }, {
23164                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
23165                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
23166                 .klen   = 16,
23167                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23168                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
23169                 .assoc  = "",
23170                 .alen   = 0,
23171                 .input  = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
23172                           "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
23173                           "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
23174                           "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
23175                 .ilen   = 31,
23176                 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
23177                           "\x62\x58\xe9\x8f\xef\xa4\x17",
23178                 .rlen   = 15,
23179         }, {
23180                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23181                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
23182                 .klen   = 16,
23183                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23184                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
23185                 .assoc  = "",
23186                 .alen   = 0,
23187                 .input  = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
23188                           "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
23189                           "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
23190                           "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
23191                 .ilen   = 32,
23192                 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
23193                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
23194                 .rlen   = 16,
23195         }, {
23196                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23197                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23198                 .klen   = 16,
23199                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23200                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
23201                 .assoc  = "",
23202                 .alen   = 0,
23203                 .input  = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
23204                           "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
23205                           "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
23206                           "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
23207                           "\x0d",
23208                 .ilen   = 33,
23209                 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
23210                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
23211                           "\x09",
23212                 .rlen   = 17,
23213         }, {
23214                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23215                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
23216                 .klen   = 16,
23217                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23218                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
23219                 .assoc  = "",
23220                 .alen   = 0,
23221                 .input  = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
23222                           "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
23223                           "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
23224                           "\x36\x12\x12\xed\xa3\x31\xc5\x30"
23225                           "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
23226                           "\x75\xfa\x6c\x17\xc6\x73\xca",
23227                 .ilen   = 47,
23228                 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
23229                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
23230                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
23231                           "\x57\x05\x01\x1c\x66\x22\xd3",
23232                 .rlen   = 31,
23233         }, {
23234                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23235                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
23236                 .klen   = 16,
23237                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23238                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
23239                 .assoc  = "",
23240                 .alen   = 0,
23241                 .input  = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
23242                           "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
23243                           "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
23244                           "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
23245                           "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
23246                           "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
23247                 .ilen   = 48,
23248                 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
23249                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
23250                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
23251                           "\x19\x33\xe0\xf4\x40\x81\x72\x28",
23252                 .rlen   = 32,
23253         }, {
23254                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23255                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
23256                 .klen   = 16,
23257                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23258                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
23259                 .assoc  = "\xc5",
23260                 .alen   = 1,
23261                 .input  = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
23262                           "\x09\x48\x39\x69\x9c\xb3\x62\x46",
23263                 .ilen   = 16,
23264                 .result = "",
23265                 .rlen   = 0,
23266         }, {
23267                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
23268                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
23269                 .klen   = 16,
23270                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23271                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
23272                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23273                           "\x47\x3e\xe9\xd4\xcc\xb5\x76",
23274                 .alen   = 15,
23275                 .input  = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
23276                           "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
23277                 .ilen   = 16,
23278                 .result = "",
23279                 .rlen   = 0,
23280         }, {
23281                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
23282                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
23283                 .klen   = 16,
23284                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23285                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
23286                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23287                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
23288                 .alen   = 16,
23289                 .input  = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
23290                           "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
23291                 .ilen   = 16,
23292                 .result = "",
23293                 .rlen   = 0,
23294         }, {
23295                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
23296                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
23297                 .klen   = 16,
23298                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23299                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
23300                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23301                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23302                           "\x3c",
23303                 .alen   = 17,
23304                 .input  = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
23305                           "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
23306                 .ilen   = 16,
23307                 .result = "",
23308                 .rlen   = 0,
23309         }, {
23310                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
23311                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
23312                 .klen   = 16,
23313                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23314                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
23315                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23316                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23317                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23318                           "\xaf\x0b\x02\x38\xcc\x44\xa7",
23319                 .alen   = 31,
23320                 .input  = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
23321                           "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
23322                 .ilen   = 16,
23323                 .result = "",
23324                 .rlen   = 0,
23325         }, {
23326                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
23327                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
23328                 .klen   = 16,
23329                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23330                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
23331                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23332                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23333                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23334                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
23335                 .alen   = 32,
23336                 .input  = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
23337                           "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
23338                 .ilen   = 16,
23339                 .result = "",
23340                 .rlen   = 0,
23341         }, {
23342                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
23343                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
23344                 .klen   = 16,
23345                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23346                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
23347                 .assoc  = "\x31",
23348                 .alen   = 1,
23349                 .input  = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
23350                           "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
23351                           "\x22",
23352                 .ilen   = 17,
23353                 .result = "\x40",
23354                 .rlen   = 1,
23355         }, {
23356                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
23357                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
23358                 .klen   = 16,
23359                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23360                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
23361                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23362                           "\x4d\x5b\x15\x3c\xa8\x8f\x06",
23363                 .alen   = 15,
23364                 .input  = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
23365                           "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
23366                           "\x07\x95\xa7\x44\x74\xf7\x22\xff"
23367                           "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
23368                 .ilen   = 31,
23369                 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23370                           "\x6d\x92\x42\x61\xa7\x58\x37",
23371                 .rlen   = 15,
23372         }, {
23373                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23374                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
23375                 .klen   = 16,
23376                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23377                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
23378                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23379                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
23380                 .alen   = 16,
23381                 .input  = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
23382                           "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
23383                           "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
23384                           "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
23385                 .ilen   = 32,
23386                 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23387                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
23388                 .rlen   = 16,
23389         }, {
23390                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23391                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23392                 .klen   = 16,
23393                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23394                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
23395                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
23396                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
23397                           "\x3b",
23398                 .alen   = 17,
23399                 .input  = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
23400                           "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
23401                           "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
23402                           "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
23403                           "\x83",
23404                 .ilen   = 33,
23405                 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
23406                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
23407                           "\x05",
23408                 .rlen   = 17,
23409         }, {
23410                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
23411                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
23412                 .klen   = 16,
23413                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23414                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
23415                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23416                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23417                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23418                           "\x38\x1d\x3b\x4a\xe9\x7e\x62",
23419                 .alen   = 31,
23420                 .input  = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
23421                           "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
23422                           "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
23423                           "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
23424                           "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
23425                           "\xf1\x5a\x66\x69\xe0\xca\x83",
23426                 .ilen   = 47,
23427                 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23428                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23429                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23430                           "\x68\x28\x73\x40\x9f\x96\x4a",
23431                 .rlen   = 31,
23432         }, {
23433                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23434                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
23435                 .klen   = 16,
23436                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23437                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
23438                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23439                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
23440                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23441                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
23442                 .alen   = 32,
23443                 .input  = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
23444                           "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
23445                           "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
23446                           "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
23447                           "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
23448                           "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
23449                 .ilen   = 48,
23450                 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23451                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23452                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23453                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
23454                 .rlen   = 32,
23455         }, {
23456                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23457                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
23458                 .klen   = 16,
23459                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23460                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
23461                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23462                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23463                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23464                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
23465                           "\x1a",
23466                 .alen   = 33,
23467                 .input  = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
23468                           "\xb1\x37\xde\x95\x06\x90\x11\x08"
23469                           "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
23470                           "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
23471                           "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
23472                           "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
23473                           "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
23474                           "\xef\x35\x25\x48\xed\xcf\x29\xa8"
23475                           "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
23476                           "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
23477                           "\xc4",
23478                 .ilen   = 81,
23479                 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23480                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23481                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23482                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23483                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
23484                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
23485                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
23486                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
23487                           "\x8a",
23488                 .rlen   = 65,
23489         }, {
23490                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23491                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
23492                 .klen   = 16,
23493                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23494                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
23495                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23496                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23497                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23498                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
23499                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
23500                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
23501                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
23502                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
23503                           "\x21",
23504                 .alen   = 65,
23505                 .input  = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
23506                           "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
23507                           "\xf3\x78\x63\x34\x89\x79\x39\x6b"
23508                           "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
23509                           "\x54\x0b\xea\x05\xa6\x95\x64\xed"
23510                           "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
23511                           "\x66",
23512                 .ilen   = 49,
23513                 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23514                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23515                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23516                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23517                           "\xac",
23518                 .rlen   = 33,
23519         }, {
23520                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23521                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
23522                 .klen   = 16,
23523                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23524                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
23525                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23526                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
23527                 .alen   = 16,
23528                 .input  = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
23529                           "\x33\x98\x87\xde\x08\xb6\xb6\xae"
23530                           "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
23531                           "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
23532                 .ilen   = 31,
23533                 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23534                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
23535                 .rlen   = 16,
23536         }, {
23537                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23538                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23539                 .klen   = 16,
23540                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23541                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
23542                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23543                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
23544                 .alen   = 16,
23545                 .input  = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
23546                           "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
23547                           "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
23548                           "\x03\xde\x85\x71\x5d\x34",
23549                 .ilen   = 30,
23550                 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23551                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
23552                 .rlen   = 16,
23553         }, {
23554                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23555                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23556                 .klen   = 16,
23557                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23558                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
23559                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23560                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
23561                 .alen   = 16,
23562                 .input  = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
23563                           "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
23564                           "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
23565                 .ilen   = 24,
23566                 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23567                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
23568                 .rlen   = 16,
23569         }, {
23570                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23571                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23572                 .klen   = 16,
23573                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
23574                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
23575                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
23576                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
23577                 .alen   = 16,
23578                 .input  = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
23579                           "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
23580                           "\x6e",
23581                 .ilen   = 17,
23582                 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
23583                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
23584                 .rlen   = 16,
23585         },
23586 };
23587
23588 /*
23589  * MORUS-1280 test vectors - generated via reference implementation from
23590  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
23591  *
23592  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
23593  *   (see crypto_aead/morus1280128v2/ and crypto_aead/morus1280256v2/ )
23594  */
23595 static const struct aead_testvec morus1280_enc_tv_template[] = {
23596         {
23597                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
23598                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23599                 .klen   = 16,
23600                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23601                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
23602                 .assoc  = "",
23603                 .alen   = 0,
23604                 .input  = "",
23605                 .ilen   = 0,
23606                 .result = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
23607                           "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
23608                 .rlen   = 16,
23609         }, {
23610                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
23611                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
23612                 .klen   = 16,
23613                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23614                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
23615                 .assoc  = "",
23616                 .alen   = 0,
23617                 .input  = "\x69",
23618                 .ilen   = 1,
23619                 .result = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
23620                           "\x96\xda\x76\x34\x33\x4e\xd5\x39"
23621                           "\x73",
23622                 .rlen   = 17,
23623         }, {
23624                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
23625                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
23626                 .klen   = 16,
23627                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23628                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
23629                 .assoc  = "",
23630                 .alen   = 0,
23631                 .input  = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
23632                           "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
23633                           "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
23634                           "\x13\x7d\x64\x93\xd7\x05\xf5",
23635                 .ilen   = 31,
23636                 .result = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
23637                           "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
23638                           "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
23639                           "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
23640                           "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
23641                           "\xa4\x21\x74\xcf\x19\x16\x59",
23642                 .rlen   = 47,
23643         }, {
23644                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23645                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
23646                 .klen   = 16,
23647                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23648                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
23649                 .assoc  = "",
23650                 .alen   = 0,
23651                 .input  = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
23652                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
23653                           "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
23654                           "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
23655                 .ilen   = 32,
23656                 .result = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
23657                           "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
23658                           "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
23659                           "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
23660                           "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
23661                           "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
23662                 .rlen   = 48,
23663         }, {
23664                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23665                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23666                 .klen   = 16,
23667                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23668                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
23669                 .assoc  = "",
23670                 .alen   = 0,
23671                 .input  = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
23672                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
23673                           "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
23674                           "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
23675                           "\xc4",
23676                 .ilen   = 33,
23677                 .result = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
23678                           "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
23679                           "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
23680                           "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
23681                           "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
23682                           "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
23683                           "\xd0",
23684                 .rlen   = 49,
23685         }, {
23686                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23687                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
23688                 .klen   = 16,
23689                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23690                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
23691                 .assoc  = "",
23692                 .alen   = 0,
23693                 .input  = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
23694                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
23695                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
23696                           "\x57\x05\x01\x1c\x66\x22\xd3\x51"
23697                           "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
23698                           "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
23699                           "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
23700                           "\xe6\x16\xa2\xac\xde\x47\x40",
23701                 .ilen   = 63,
23702                 .result = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
23703                           "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
23704                           "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
23705                           "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
23706                           "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
23707                           "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
23708                           "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
23709                           "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
23710                           "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
23711                           "\x99\x7a\x72\x9c\x54\x31\xa1",
23712                 .rlen   = 79,
23713         }, {
23714                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23715                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
23716                 .klen   = 16,
23717                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23718                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
23719                 .assoc  = "",
23720                 .alen   = 0,
23721                 .input  = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
23722                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
23723                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
23724                           "\x19\x33\xe0\xf4\x40\x81\x72\x28"
23725                           "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
23726                           "\xb0\x68\x69\xf2\x27\x35\x91\x84"
23727                           "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
23728                           "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
23729                 .ilen   = 64,
23730                 .result = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
23731                           "\xa5\x07\x12\xa7\x12\x39\x60\x66"
23732                           "\x30\x81\x4a\x03\x78\x28\x45\x52"
23733                           "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
23734                           "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
23735                           "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
23736                           "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
23737                           "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
23738                           "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
23739                           "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
23740                 .rlen   = 80,
23741         }, {
23742                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23743                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
23744                 .klen   = 16,
23745                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23746                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
23747                 .assoc  = "\xc5",
23748                 .alen   = 1,
23749                 .input  = "",
23750                 .ilen   = 0,
23751                 .result = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
23752                           "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
23753                 .rlen   = 16,
23754         }, {
23755                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
23756                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
23757                 .klen   = 16,
23758                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23759                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
23760                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23761                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
23762                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
23763                           "\x6b\x83\x66\xaf\x3e\x27\xc9",
23764                 .alen   = 31,
23765                 .input  = "",
23766                 .ilen   = 0,
23767                 .result = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
23768                           "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
23769                 .rlen   = 16,
23770         }, {
23771                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
23772                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
23773                 .klen   = 16,
23774                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23775                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
23776                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23777                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
23778                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
23779                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
23780                 .alen   = 32,
23781                 .input  = "",
23782                 .ilen   = 0,
23783                 .result = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
23784                           "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
23785                 .rlen   = 16,
23786         }, {
23787                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
23788                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
23789                 .klen   = 16,
23790                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23791                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
23792                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23793                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23794                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
23795                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
23796                           "\x97",
23797                 .alen   = 33,
23798                 .input  = "",
23799                 .ilen   = 0,
23800                 .result = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
23801                           "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
23802                 .rlen   = 16,
23803         }, {
23804                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
23805                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
23806                 .klen   = 16,
23807                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23808                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
23809                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23810                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23811                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23812                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
23813                           "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
23814                           "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
23815                           "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
23816                           "\xcd\x2c\x45\x58\xbd\x8e\x80",
23817                 .alen   = 63,
23818                 .input  = "",
23819                 .ilen   = 0,
23820                 .result = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
23821                           "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
23822                 .rlen   = 16,
23823         }, {
23824                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
23825                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
23826                 .klen   = 16,
23827                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23828                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
23829                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23830                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23831                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23832                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
23833                           "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
23834                           "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
23835                           "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
23836                           "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
23837                 .alen   = 64,
23838                 .input  = "",
23839                 .ilen   = 0,
23840                 .result = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
23841                           "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
23842                 .rlen   = 16,
23843         }, {
23844                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
23845                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
23846                 .klen   = 16,
23847                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23848                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
23849                 .assoc  = "\x31",
23850                 .alen   = 1,
23851                 .input  = "\x40",
23852                 .ilen   = 1,
23853                 .result = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
23854                           "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
23855                           "\xbf",
23856                 .rlen   = 17,
23857         }, {
23858                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
23859                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
23860                 .klen   = 16,
23861                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23862                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
23863                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23864                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
23865                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
23866                           "\xf4\x94\x9f\xc1\x5a\x61\x85",
23867                 .alen   = 31,
23868                 .input  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23869                           "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
23870                           "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
23871                           "\x24\xa0\xd6\xb7\x11\x79\x6c",
23872                 .ilen   = 31,
23873                 .result = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
23874                           "\x63\x09\x08\x58\xb5\x56\xbd\x72"
23875                           "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
23876                           "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
23877                           "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
23878                           "\x85\x87\x17\x09\x42\xed\x4e",
23879                 .rlen   = 47,
23880         }, {
23881                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23882                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
23883                 .klen   = 16,
23884                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23885                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
23886                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23887                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
23888                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
23889                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
23890                 .alen   = 32,
23891                 .input  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23892                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
23893                           "\xdb\x74\x36\x23\x11\x58\x3f\x93"
23894                           "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
23895                 .ilen   = 32,
23896                 .result = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
23897                           "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
23898                           "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
23899                           "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
23900                           "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
23901                           "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
23902                 .rlen   = 48,
23903         }, {
23904                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23905                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23906                 .klen   = 16,
23907                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23908                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
23909                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
23910                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
23911                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
23912                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
23913                           "\xee",
23914                 .alen   = 33,
23915                 .input  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
23916                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
23917                           "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
23918                           "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
23919                           "\x72",
23920                 .ilen   = 33,
23921                 .result = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
23922                           "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
23923                           "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
23924                           "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
23925                           "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
23926                           "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
23927                           "\x5e",
23928                 .rlen   = 49,
23929         }, {
23930                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
23931                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
23932                 .klen   = 16,
23933                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23934                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
23935                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23936                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23937                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23938                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
23939                           "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
23940                           "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
23941                           "\x10\x0b\x56\x85\xad\x54\xaa\x66"
23942                           "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
23943                 .alen   = 63,
23944                 .input  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23945                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23946                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23947                           "\x68\x28\x73\x40\x9f\x96\x4a\x60"
23948                           "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
23949                           "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
23950                           "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
23951                           "\x9c\x44\xb2\xa4\x99\x98\x34",
23952                 .ilen   = 63,
23953                 .result = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
23954                           "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
23955                           "\xef\x36\x19\xae\x91\xfa\xd6\x63"
23956                           "\x46\xea\x8a\x39\x14\x21\xa6\x37"
23957                           "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
23958                           "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
23959                           "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
23960                           "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
23961                           "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
23962                           "\x4f\x20\x37\xdb\x7b\x22\xa3",
23963                 .rlen   = 79,
23964         }, {
23965                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23966                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
23967                 .klen   = 16,
23968                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23969                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
23970                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23971                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
23972                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23973                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
23974                           "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
23975                           "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
23976                           "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
23977                           "\x77\x47\x63\x14\x95\x3d\xe4\x34",
23978                 .alen   = 64,
23979                 .input  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23980                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23981                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23982                           "\x29\x56\x52\x19\x79\xf5\xe9\x37"
23983                           "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
23984                           "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
23985                           "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
23986                           "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
23987                 .ilen   = 64,
23988                 .result = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
23989                           "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
23990                           "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
23991                           "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
23992                           "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
23993                           "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
23994                           "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
23995                           "\xec\x99\x7d\x61\xb3\x15\x93\xed"
23996                           "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
23997                           "\x95\x74\x44\xd5\x54\xa6\x27\x06",
23998                 .rlen   = 80,
23999         }, {
24000                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
24001                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
24002                 .klen   = 16,
24003                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
24004                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
24005                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
24006                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
24007                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
24008                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
24009                           "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
24010                           "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
24011                           "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
24012                           "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
24013                           "\x58",
24014                 .alen   = 65,
24015                 .input  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
24016                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
24017                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
24018                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
24019                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
24020                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
24021                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
24022                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
24023                           "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
24024                           "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
24025                           "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
24026                           "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
24027                           "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
24028                           "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
24029                           "\x33\x16\x59\x6c\x3b\xef\x88\xad"
24030                           "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
24031                           "\x36",
24032                 .ilen   = 129,
24033                 .result = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
24034                           "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
24035                           "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
24036                           "\x38\xa4\x74\xa5\x04\x15\x63\x05"
24037                           "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
24038                           "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
24039                           "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
24040                           "\x42\x01\xe6\xbc\x75\x15\x87\xee"
24041                           "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
24042                           "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
24043                           "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
24044                           "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
24045                           "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
24046                           "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
24047                           "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
24048                           "\x4f\x61\x64\x37\x22\x36\x6d\x78"
24049                           "\xed\xed\x35\xe8\x83\xa5\xec\x25"
24050                           "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
24051                           "\x20",
24052                 .rlen   = 145,
24053         }, {
24054                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
24055                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
24056                 .klen   = 16,
24057                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
24058                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
24059                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
24060                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
24061                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
24062                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
24063                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
24064                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
24065                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
24066                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
24067                           "\x21\xf7\x42\x89\xac\x12\x2a\x54"
24068                           "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
24069                           "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
24070                           "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
24071                           "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
24072                           "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
24073                           "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
24074                           "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
24075                           "\x51",
24076                 .alen   = 129,
24077                 .input  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
24078                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
24079                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
24080                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
24081                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
24082                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
24083                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
24084                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
24085                           "\x54",
24086                 .ilen   = 65,
24087                 .result = "\x36\x78\xb9\x22\xde\x62\x35\x55"
24088                           "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
24089                           "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
24090                           "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
24091                           "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
24092                           "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
24093                           "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
24094                           "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
24095                           "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
24096                           "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
24097                           "\xa2",
24098                 .rlen   = 81,
24099         }, {
24100                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
24101                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
24102                 .klen   = 16,
24103                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
24104                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
24105                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
24106                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
24107                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
24108                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
24109                 .alen   = 32,
24110                 .input  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
24111                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
24112                           "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
24113                           "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
24114                 .ilen   = 32,
24115                 .result = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
24116                           "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
24117                           "\x89\x14\x33\x70\x0a\xbc\xea\x39"
24118                           "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
24119                           "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
24120                           "\x2f\x03\x30\x05\x47\xaf\x34",
24121                 .rlen   = 47,
24122         }, {
24123                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
24124                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
24125                 .klen   = 16,
24126                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
24127                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
24128                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
24129                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
24130                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
24131                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
24132                 .alen   = 32,
24133                 .input  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
24134                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
24135                           "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
24136                           "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
24137                 .ilen   = 32,
24138                 .result = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
24139                           "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
24140                           "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
24141                           "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
24142                           "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
24143                           "\xb9\x9c\xe5\xef\xf2\x05",
24144                 .rlen   = 46,
24145         }, {
24146                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
24147                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
24148                 .klen   = 16,
24149                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
24150                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
24151                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
24152                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
24153                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
24154                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
24155                 .alen   = 32,
24156                 .input  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
24157                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
24158                           "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
24159                           "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
24160                 .ilen   = 32,
24161                 .result = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
24162                           "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
24163                           "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
24164                           "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
24165                           "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
24166                 .rlen   = 40,
24167         }, {
24168                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
24169                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
24170                 .klen   = 16,
24171                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
24172                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
24173                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
24174                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
24175                           "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
24176                           "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
24177                 .alen   = 32,
24178                 .input  = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
24179                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
24180                           "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
24181                           "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
24182                 .ilen   = 32,
24183                 .result = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
24184                           "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
24185                           "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
24186                           "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
24187                           "\x1a",
24188                 .rlen   = 33,
24189         }, {
24190                 .key    = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
24191                           "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
24192                           "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
24193                           "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
24194                 .klen   = 32,
24195                 .iv     = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
24196                           "\xb7\x85\x90\x58\x67\x57\x33\x1d",
24197                 .assoc  = "",
24198                 .alen   = 0,
24199                 .input  = "",
24200                 .ilen   = 0,
24201                 .result = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
24202                           "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
24203                 .rlen   = 16,
24204         }, {
24205                 .key    = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
24206                           "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
24207                           "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
24208                           "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
24209                 .klen   = 32,
24210                 .iv     = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
24211                           "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
24212                 .assoc  = "",
24213                 .alen   = 0,
24214                 .input  = "\x53",
24215                 .ilen   = 1,
24216                 .result = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
24217                           "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
24218                           "\x53",
24219                 .rlen   = 17,
24220         }, {
24221                 .key    = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
24222                           "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
24223                           "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
24224                           "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
24225                 .klen   = 32,
24226                 .iv     = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
24227                           "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
24228                 .assoc  = "",
24229                 .alen   = 0,
24230                 .input  = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
24231                           "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
24232                           "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
24233                           "\xf6\xf0\x27\xb4\x25\x4c\x83",
24234                 .ilen   = 31,
24235                 .result = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
24236                           "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
24237                           "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
24238                           "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
24239                           "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
24240                           "\xb8\x4d\x11\x42\xd1\xf8\xf1",
24241                 .rlen   = 47,
24242         }, {
24243                 .key    = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
24244                           "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
24245                           "\xa2\x40\x45\x77\x90\x80\x37\xce"
24246                           "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
24247                 .klen   = 32,
24248                 .iv     = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
24249                           "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
24250                 .assoc  = "",
24251                 .alen   = 0,
24252                 .input  = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
24253                           "\x7a\x81\xff\x55\x52\x56\xdc\x33"
24254                           "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
24255                           "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
24256                 .ilen   = 32,
24257                 .result = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
24258                           "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
24259                           "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
24260                           "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
24261                           "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
24262                           "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
24263                 .rlen   = 48,
24264         }, {
24265                 .key    = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
24266                           "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
24267                           "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
24268                           "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
24269                 .klen   = 32,
24270                 .iv     = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
24271                           "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
24272                 .assoc  = "",
24273                 .alen   = 0,
24274                 .input  = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
24275                           "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
24276                           "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
24277                           "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
24278                           "\x2e",
24279                 .ilen   = 33,
24280                 .result = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
24281                           "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
24282                           "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
24283                           "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
24284                           "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
24285                           "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
24286                           "\x32",
24287                 .rlen   = 49,
24288         }, {
24289                 .key    = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
24290                           "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
24291                           "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
24292                           "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
24293                 .klen   = 32,
24294                 .iv     = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
24295                           "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
24296                 .assoc  = "",
24297                 .alen   = 0,
24298                 .input  = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
24299                           "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
24300                           "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
24301                           "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
24302                           "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
24303                           "\x22\xda\x52\x8b\x7d\x11\x98\xea"
24304                           "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
24305                           "\x20\x76\x5a\xdc\x4e\x71\x13",
24306                 .ilen   = 63,
24307                 .result = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
24308                           "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
24309                           "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
24310                           "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
24311                           "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
24312                           "\x01\xb7\x39\xa6\x51\x15\xca\xff"
24313                           "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
24314                           "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
24315                           "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
24316                           "\xaa\x2d\xfc\x4e\x35\x05\x59",
24317                 .rlen   = 79,
24318         }, {
24319                 .key    = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
24320                           "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
24321                           "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
24322                           "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
24323                 .klen   = 32,
24324                 .iv     = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
24325                           "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
24326                 .assoc  = "",
24327                 .alen   = 0,
24328                 .input  = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
24329                           "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
24330                           "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
24331                           "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
24332                           "\x4b\x62\x87\x7c\x15\x38\xda\x70"
24333                           "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
24334                           "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
24335                           "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
24336                 .ilen   = 64,
24337                 .result = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
24338                           "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
24339                           "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
24340                           "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
24341                           "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
24342                           "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
24343                           "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
24344                           "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
24345                           "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
24346                           "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
24347                 .rlen   = 80,
24348         }, {
24349                 .key    = "\x90\x96\x36\xea\x03\x74\x18\x7a"
24350                           "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
24351                           "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
24352                           "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
24353                 .klen   = 32,
24354                 .iv     = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
24355                           "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
24356                 .assoc  = "\xaf",
24357                 .alen   = 1,
24358                 .input  = "",
24359                 .ilen   = 0,
24360                 .result = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
24361                           "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
24362                 .rlen   = 16,
24363         }, {
24364                 .key    = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
24365                           "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
24366                           "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
24367                           "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
24368                 .klen   = 32,
24369                 .iv     = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
24370                           "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
24371                 .assoc  = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
24372                           "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
24373                           "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
24374                           "\x4e\xf6\x29\xd1\x8b\x6f\x56",
24375                 .alen   = 31,
24376                 .input  = "",
24377                 .ilen   = 0,
24378                 .result = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
24379                           "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
24380                 .rlen   = 16,
24381         }, {
24382                 .key    = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
24383                           "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
24384                           "\xa0\xce\x8a\x91\xae\x40\x43\x68"
24385                           "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
24386                 .klen   = 32,
24387                 .iv     = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
24388                           "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
24389                 .assoc  = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
24390                           "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
24391                           "\x35\x2f\x90\xd3\x31\x90\x04\x74"
24392                           "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
24393                 .alen   = 32,
24394                 .input  = "",
24395                 .ilen   = 0,
24396                 .result = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
24397                           "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
24398                 .rlen   = 16,
24399         }, {
24400                 .key    = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
24401                           "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
24402                           "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
24403                           "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
24404                 .klen   = 32,
24405                 .iv     = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
24406                           "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
24407                 .assoc  = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
24408                           "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
24409                           "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
24410                           "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
24411                           "\x01",
24412                 .alen   = 33,
24413                 .input  = "",
24414                 .ilen   = 0,
24415                 .result = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
24416                           "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
24417                 .rlen   = 16,
24418         }, {
24419                 .key    = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
24420                           "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
24421                           "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
24422                           "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
24423                 .klen   = 32,
24424                 .iv     = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
24425                           "\x41\xe5\x36\x97\x25\xe7\x90\x61",
24426                 .assoc  = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
24427                           "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
24428                           "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
24429                           "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
24430                           "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
24431                           "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
24432                           "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
24433                           "\x07\x8c\xfc\x88\x2d\xb8\x53",
24434                 .alen   = 63,
24435                 .input  = "",
24436                 .ilen   = 0,
24437                 .result = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
24438                           "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
24439                 .rlen   = 16,
24440         }, {
24441                 .key    = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
24442                           "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
24443                           "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
24444                           "\xf3\x95\x35\x46\x86\xbb\x04\x03",
24445                 .klen   = 32,
24446                 .iv     = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
24447                           "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
24448                 .assoc  = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
24449                           "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
24450                           "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
24451                           "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
24452                           "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
24453                           "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
24454                           "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
24455                           "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
24456                 .alen   = 64,
24457                 .input  = "",
24458                 .ilen   = 0,
24459                 .result = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
24460                           "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
24461                 .rlen   = 16,
24462         }, {
24463                 .key    = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
24464                           "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
24465                           "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
24466                           "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
24467                 .klen   = 32,
24468                 .iv     = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
24469                           "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
24470                 .assoc  = "\x1a",
24471                 .alen   = 1,
24472                 .input  = "\x29",
24473                 .ilen   = 1,
24474                 .result = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
24475                           "\x17\x75\x81\x16\xdf\x26\xff\x67"
24476                           "\x92",
24477                 .rlen   = 17,
24478         }, {
24479                 .key    = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
24480                           "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
24481                           "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
24482                           "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
24483                 .klen   = 32,
24484                 .iv     = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
24485                           "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
24486                 .assoc  = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
24487                           "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
24488                           "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
24489                           "\xd6\x07\x62\xe3\xa8\xa9\x12",
24490                 .alen   = 31,
24491                 .input  = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
24492                           "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
24493                           "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
24494                           "\x06\x13\x9a\xd9\x5e\xc0\xfa",
24495                 .ilen   = 31,
24496                 .result = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
24497                           "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
24498                           "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
24499                           "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
24500                           "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
24501                           "\x76\xc3\xf5\x3a\x76\xfd\x4a",
24502                 .rlen   = 47,
24503         }, {
24504                 .key    = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
24505                           "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
24506                           "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
24507                           "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
24508                 .klen   = 32,
24509                 .iv     = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
24510                           "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
24511                 .assoc  = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
24512                           "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
24513                           "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
24514                           "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
24515                 .alen   = 32,
24516                 .input  = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
24517                           "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
24518                           "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
24519                           "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
24520                 .ilen   = 32,
24521                 .result = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
24522                           "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
24523                           "\x62\x48\x08\x64\x86\x6a\xdf\xec"
24524                           "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
24525                           "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
24526                           "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
24527                 .rlen   = 48,
24528         }, {
24529                 .key    = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
24530                           "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
24531                           "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
24532                           "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
24533                 .klen   = 32,
24534                 .iv     = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
24535                           "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
24536                 .assoc  = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
24537                           "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
24538                           "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
24539                           "\x59\x62\x20\x94\x5c\x67\x50\xc8"
24540                           "\x58",
24541                 .alen   = 33,
24542                 .input  = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
24543                           "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
24544                           "\x28\x30\x64\x92\x96\x98\x72\x2e"
24545                           "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
24546                           "\xdb",
24547                 .ilen   = 33,
24548                 .result = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
24549                           "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
24550                           "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
24551                           "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
24552                           "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
24553                           "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
24554                           "\xc3",
24555                 .rlen   = 49,
24556         }, {
24557                 .key    = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
24558                           "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
24559                           "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
24560                           "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
24561                 .klen   = 32,
24562                 .iv     = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
24563                           "\x46\x02\x63\x00\x01\xc1\x20\x87",
24564                 .assoc  = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
24565                           "\x66\x39\x8f\x24\xff\x8a\x50\x08"
24566                           "\x88\x42\xed\xf6\x5a\x90\x14\x42"
24567                           "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
24568                           "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
24569                           "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
24570                           "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
24571                           "\xe2\xa3\x84\x04\x0b\xe1\xce",
24572                 .alen   = 63,
24573                 .input  = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
24574                           "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
24575                           "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
24576                           "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
24577                           "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
24578                           "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
24579                           "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
24580                           "\xd5\xa4\x6a\xd4\x09\xc2\x08",
24581                 .ilen   = 63,
24582                 .result = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
24583                           "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
24584                           "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
24585                           "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
24586                           "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
24587                           "\x1b\x49\x21\x34\x23\x63\x55\x5e"
24588                           "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
24589                           "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
24590                           "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
24591                           "\x7f\xfa\xf0\xbf\xc4\x98\x78",
24592                 .rlen   = 79,
24593         }, {
24594                 .key    = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
24595                           "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
24596                           "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
24597                           "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
24598                 .klen   = 32,
24599                 .iv     = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
24600                           "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
24601                 .assoc  = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
24602                           "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
24603                           "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
24604                           "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
24605                           "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
24606                           "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
24607                           "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
24608                           "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
24609                 .alen   = 64,
24610                 .input  = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
24611                           "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
24612                           "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
24613                           "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
24614                           "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
24615                           "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
24616                           "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
24617                           "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
24618                 .ilen   = 64,
24619                 .result = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
24620                           "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
24621                           "\x35\x35\x60\x9d\x06\x40\x65\xc1"
24622                           "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
24623                           "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
24624                           "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
24625                           "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
24626                           "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
24627                           "\xce\x9e\x34\x81\xf0\x89\x11\x13"
24628                           "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
24629                 .rlen   = 80,
24630         }, {
24631                 .key    = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
24632                           "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
24633                           "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
24634                           "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
24635                 .klen   = 32,
24636                 .iv     = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
24637                           "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
24638                 .assoc  = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
24639                           "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
24640                           "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
24641                           "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
24642                           "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
24643                           "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
24644                           "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
24645                           "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
24646                           "\x04",
24647                 .alen   = 65,
24648                 .input  = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
24649                           "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
24650                           "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
24651                           "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
24652                           "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
24653                           "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
24654                           "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
24655                           "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
24656                           "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
24657                           "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
24658                           "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
24659                           "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
24660                           "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
24661                           "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
24662                           "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
24663                           "\x07\x68\x22\x2a\x88\x25\x53\xb2"
24664                           "\x2f",
24665                 .ilen   = 129,
24666                 .result = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
24667                           "\x85\x43\x88\xd0\xd7\x78\x60\x19"
24668                           "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
24669                           "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
24670                           "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
24671                           "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
24672                           "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
24673                           "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
24674                           "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
24675                           "\x20\xf8\x12\x54\x50\xb3\x11\xda"
24676                           "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
24677                           "\x38\x67\x56\x65\x59\xda\xe6\x97"
24678                           "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
24679                           "\x91\x59\x38\x18\x00\xe8\xba\x92"
24680                           "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
24681                           "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
24682                           "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
24683                           "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
24684                           "\xa5",
24685                 .rlen   = 145,
24686         }, {
24687                 .key    = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
24688                           "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
24689                           "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
24690                           "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
24691                 .klen   = 32,
24692                 .iv     = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
24693                           "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
24694                 .assoc  = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
24695                           "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
24696                           "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
24697                           "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
24698                           "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
24699                           "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
24700                           "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
24701                           "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
24702                           "\xce\x83\x2a\x88\x07\x55\xbb\x89"
24703                           "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
24704                           "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
24705                           "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
24706                           "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
24707                           "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
24708                           "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
24709                           "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
24710                           "\x4b",
24711                 .alen   = 129,
24712                 .input  = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
24713                           "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
24714                           "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
24715                           "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
24716                           "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
24717                           "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
24718                           "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
24719                           "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
24720                           "\x00",
24721                 .ilen   = 65,
24722                 .result = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
24723                           "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
24724                           "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
24725                           "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
24726                           "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
24727                           "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
24728                           "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
24729                           "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
24730                           "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
24731                           "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
24732                           "\x72",
24733                 .rlen   = 81,
24734         }, {
24735                 .key    = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
24736                           "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
24737                           "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
24738                           "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
24739                 .klen   = 32,
24740                 .iv     = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
24741                           "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
24742                 .assoc  = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
24743                           "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
24744                           "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
24745                           "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
24746                 .alen   = 32,
24747                 .input  = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
24748                           "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
24749                           "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
24750                           "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
24751                 .ilen   = 32,
24752                 .result = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
24753                           "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
24754                           "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
24755                           "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
24756                           "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
24757                           "\x69\x0e\x36\x5f\x2f\x22\x8c",
24758                 .rlen   = 47,
24759         }, {
24760                 .key    = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
24761                           "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
24762                           "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
24763                           "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
24764                 .klen   = 32,
24765                 .iv     = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
24766                           "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
24767                 .assoc  = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
24768                           "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
24769                           "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
24770                           "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
24771                 .alen   = 32,
24772                 .input  = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
24773                           "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
24774                           "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
24775                           "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
24776                 .ilen   = 32,
24777                 .result = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
24778                           "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
24779                           "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
24780                           "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
24781                           "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
24782                           "\x5b\x6f\x7b\xe2\x8c\xe8",
24783                 .rlen   = 46,
24784         }, {
24785                 .key    = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
24786                           "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
24787                           "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
24788                           "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
24789                 .klen   = 32,
24790                 .iv     = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
24791                           "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
24792                 .assoc  = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
24793                           "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
24794                           "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
24795                           "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
24796                 .alen   = 32,
24797                 .input  = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
24798                           "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
24799                           "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
24800                           "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
24801                 .ilen   = 32,
24802                 .result = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
24803                           "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
24804                           "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
24805                           "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
24806                           "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
24807                 .rlen   = 40,
24808         }, {
24809                 .key    = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
24810                           "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
24811                           "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
24812                           "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
24813                 .klen   = 32,
24814                 .iv     = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
24815                           "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
24816                 .assoc  = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
24817                           "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
24818                           "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
24819                           "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
24820                 .alen   = 32,
24821                 .input  = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
24822                           "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
24823                           "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
24824                           "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
24825                 .ilen   = 32,
24826                 .result = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
24827                           "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
24828                           "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
24829                           "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
24830                           "\x56",
24831                 .rlen   = 33,
24832         },
24833 };
24834
24835 static const struct aead_testvec morus1280_dec_tv_template[] = {
24836         {
24837                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
24838                           "\x00\x00\x00\x00\x00\x00\x00\x00",
24839                 .klen   = 16,
24840                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
24841                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
24842                 .assoc  = "",
24843                 .alen   = 0,
24844                 .input  = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
24845                           "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
24846                 .ilen   = 16,
24847                 .result = "",
24848                 .rlen   = 0,
24849         }, {
24850                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
24851                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
24852                 .klen   = 16,
24853                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
24854                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
24855                 .assoc  = "",
24856                 .alen   = 0,
24857                 .input  = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
24858                           "\x96\xda\x76\x34\x33\x4e\xd5\x39"
24859                           "\x73",
24860                 .ilen   = 17,
24861                 .result = "\x69",
24862                 .rlen   = 1,
24863         }, {
24864                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
24865                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
24866                 .klen   = 16,
24867                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
24868                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
24869                 .assoc  = "",
24870                 .alen   = 0,
24871                 .input  = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
24872                           "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
24873                           "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
24874                           "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
24875                           "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
24876                           "\xa4\x21\x74\xcf\x19\x16\x59",
24877                 .ilen   = 47,
24878                 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
24879                           "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
24880                           "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
24881                           "\x13\x7d\x64\x93\xd7\x05\xf5",
24882                 .rlen   = 31,
24883         }, {
24884                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
24885                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
24886                 .klen   = 16,
24887                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
24888                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
24889                 .assoc  = "",
24890                 .alen   = 0,
24891                 .input  = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
24892                           "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
24893                           "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
24894                           "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
24895                           "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
24896                           "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
24897                 .ilen   = 48,
24898                 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
24899                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
24900                           "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
24901                           "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
24902                 .rlen   = 32,
24903         }, {
24904                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
24905                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
24906                 .klen   = 16,
24907                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
24908                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
24909                 .assoc  = "",
24910                 .alen   = 0,
24911                 .input  = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
24912                           "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
24913                           "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
24914                           "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
24915                           "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
24916                           "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
24917                           "\xd0",
24918                 .ilen   = 49,
24919                 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
24920                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
24921                           "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
24922                           "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
24923                           "\xc4",
24924                 .rlen   = 33,
24925         }, {
24926                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
24927                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
24928                 .klen   = 16,
24929                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
24930                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
24931                 .assoc  = "",
24932                 .alen   = 0,
24933                 .input  = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
24934                           "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
24935                           "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
24936                           "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
24937                           "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
24938                           "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
24939                           "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
24940                           "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
24941                           "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
24942                           "\x99\x7a\x72\x9c\x54\x31\xa1",
24943                 .ilen   = 79,
24944                 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
24945                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
24946                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
24947                           "\x57\x05\x01\x1c\x66\x22\xd3\x51"
24948                           "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
24949                           "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
24950                           "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
24951                           "\xe6\x16\xa2\xac\xde\x47\x40",
24952                 .rlen   = 63,
24953         }, {
24954                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
24955                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
24956                 .klen   = 16,
24957                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
24958                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
24959                 .assoc  = "",
24960                 .alen   = 0,
24961                 .input  = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
24962                           "\xa5\x07\x12\xa7\x12\x39\x60\x66"
24963                           "\x30\x81\x4a\x03\x78\x28\x45\x52"
24964                           "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
24965                           "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
24966                           "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
24967                           "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
24968                           "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
24969                           "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
24970                           "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
24971                 .ilen   = 80,
24972                 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
24973                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
24974                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
24975                           "\x19\x33\xe0\xf4\x40\x81\x72\x28"
24976                           "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
24977                           "\xb0\x68\x69\xf2\x27\x35\x91\x84"
24978                           "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
24979                           "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
24980                 .rlen   = 64,
24981         }, {
24982                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
24983                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
24984                 .klen   = 16,
24985                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
24986                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
24987                 .assoc  = "\xc5",
24988                 .alen   = 1,
24989                 .input  = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
24990                           "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
24991                 .ilen   = 16,
24992                 .result = "",
24993                 .rlen   = 0,
24994         }, {
24995                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
24996                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
24997                 .klen   = 16,
24998                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
24999                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
25000                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
25001                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
25002                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
25003                           "\x6b\x83\x66\xaf\x3e\x27\xc9",
25004                 .alen   = 31,
25005                 .input  = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
25006                           "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
25007                 .ilen   = 16,
25008                 .result = "",
25009                 .rlen   = 0,
25010         }, {
25011                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
25012                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
25013                 .klen   = 16,
25014                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
25015                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
25016                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
25017                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
25018                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
25019                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
25020                 .alen   = 32,
25021                 .input  = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
25022                           "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
25023                 .ilen   = 16,
25024                 .result = "",
25025                 .rlen   = 0,
25026         }, {
25027                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
25028                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
25029                 .klen   = 16,
25030                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
25031                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
25032                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
25033                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
25034                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
25035                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
25036                           "\x97",
25037                 .alen   = 33,
25038                 .input  = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
25039                           "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
25040                 .ilen   = 16,
25041                 .result = "",
25042                 .rlen   = 0,
25043         }, {
25044                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
25045                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
25046                 .klen   = 16,
25047                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
25048                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
25049                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
25050                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
25051                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
25052                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
25053                           "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
25054                           "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
25055                           "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
25056                           "\xcd\x2c\x45\x58\xbd\x8e\x80",
25057                 .alen   = 63,
25058                 .input  = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
25059                           "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
25060                 .ilen   = 16,
25061                 .result = "",
25062                 .rlen   = 0,
25063         }, {
25064                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
25065                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
25066                 .klen   = 16,
25067                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
25068                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
25069                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
25070                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
25071                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
25072                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
25073                           "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
25074                           "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
25075                           "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
25076                           "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
25077                 .alen   = 64,
25078                 .input  = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
25079                           "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
25080                 .ilen   = 16,
25081                 .result = "",
25082                 .rlen   = 0,
25083         }, {
25084                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
25085                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
25086                 .klen   = 16,
25087                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
25088                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
25089                 .assoc  = "\x31",
25090                 .alen   = 1,
25091                 .input  = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
25092                           "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
25093                           "\xbf",
25094                 .ilen   = 17,
25095                 .result = "\x40",
25096                 .rlen   = 1,
25097         }, {
25098                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
25099                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
25100                 .klen   = 16,
25101                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
25102                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
25103                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
25104                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
25105                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
25106                           "\xf4\x94\x9f\xc1\x5a\x61\x85",
25107                 .alen   = 31,
25108                 .input  = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
25109                           "\x63\x09\x08\x58\xb5\x56\xbd\x72"
25110                           "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
25111                           "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
25112                           "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
25113                           "\x85\x87\x17\x09\x42\xed\x4e",
25114                 .ilen   = 47,
25115                 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
25116                           "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
25117                           "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
25118                           "\x24\xa0\xd6\xb7\x11\x79\x6c",
25119                 .rlen   = 31,
25120         }, {
25121                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
25122                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
25123                 .klen   = 16,
25124                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
25125                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
25126                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
25127                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
25128                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
25129                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
25130                 .alen   = 32,
25131                 .input  = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
25132                           "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
25133                           "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
25134                           "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
25135                           "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
25136                           "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
25137                 .ilen   = 48,
25138                 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
25139                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
25140                           "\xdb\x74\x36\x23\x11\x58\x3f\x93"
25141                           "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
25142                 .rlen   = 32,
25143         }, {
25144                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
25145                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
25146                 .klen   = 16,
25147                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
25148                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
25149                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
25150                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
25151                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
25152                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
25153                           "\xee",
25154                 .alen   = 33,
25155                 .input  = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
25156                           "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
25157                           "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
25158                           "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
25159                           "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
25160                           "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
25161                           "\x5e",
25162                 .ilen   = 49,
25163                 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
25164                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
25165                           "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
25166                           "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
25167                           "\x72",
25168                 .rlen   = 33,
25169         }, {
25170                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
25171                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
25172                 .klen   = 16,
25173                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
25174                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
25175                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
25176                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
25177                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
25178                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
25179                           "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
25180                           "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
25181                           "\x10\x0b\x56\x85\xad\x54\xaa\x66"
25182                           "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
25183                 .alen   = 63,
25184                 .input  = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
25185                           "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
25186                           "\xef\x36\x19\xae\x91\xfa\xd6\x63"
25187                           "\x46\xea\x8a\x39\x14\x21\xa6\x37"
25188                           "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
25189                           "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
25190                           "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
25191                           "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
25192                           "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
25193                           "\x4f\x20\x37\xdb\x7b\x22\xa3",
25194                 .ilen   = 79,
25195                 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
25196                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
25197                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
25198                           "\x68\x28\x73\x40\x9f\x96\x4a\x60"
25199                           "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
25200                           "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
25201                           "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
25202                           "\x9c\x44\xb2\xa4\x99\x98\x34",
25203                 .rlen   = 63,
25204         }, {
25205                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
25206                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
25207                 .klen   = 16,
25208                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
25209                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
25210                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
25211                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
25212                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
25213                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
25214                           "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
25215                           "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
25216                           "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
25217                           "\x77\x47\x63\x14\x95\x3d\xe4\x34",
25218                 .alen   = 64,
25219                 .input  = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
25220                           "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
25221                           "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
25222                           "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
25223                           "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
25224                           "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
25225                           "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
25226                           "\xec\x99\x7d\x61\xb3\x15\x93\xed"
25227                           "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
25228                           "\x95\x74\x44\xd5\x54\xa6\x27\x06",
25229                 .ilen   = 80,
25230                 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
25231                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
25232                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
25233                           "\x29\x56\x52\x19\x79\xf5\xe9\x37"
25234                           "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
25235                           "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
25236                           "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
25237                           "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
25238                 .rlen   = 64,
25239         }, {
25240                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
25241                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
25242                 .klen   = 16,
25243                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
25244                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
25245                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
25246                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
25247                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
25248                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
25249                           "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
25250                           "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
25251                           "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
25252                           "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
25253                           "\x58",
25254                 .alen   = 65,
25255                 .input  = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
25256                           "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
25257                           "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
25258                           "\x38\xa4\x74\xa5\x04\x15\x63\x05"
25259                           "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
25260                           "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
25261                           "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
25262                           "\x42\x01\xe6\xbc\x75\x15\x87\xee"
25263                           "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
25264                           "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
25265                           "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
25266                           "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
25267                           "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
25268                           "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
25269                           "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
25270                           "\x4f\x61\x64\x37\x22\x36\x6d\x78"
25271                           "\xed\xed\x35\xe8\x83\xa5\xec\x25"
25272                           "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
25273                           "\x20",
25274                 .ilen   = 145,
25275                 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
25276                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
25277                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
25278                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
25279                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
25280                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
25281                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
25282                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
25283                           "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
25284                           "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
25285                           "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
25286                           "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
25287                           "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
25288                           "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
25289                           "\x33\x16\x59\x6c\x3b\xef\x88\xad"
25290                           "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
25291                           "\x36",
25292                 .rlen   = 129,
25293         }, {
25294                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
25295                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
25296                 .klen   = 16,
25297                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
25298                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
25299                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
25300                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
25301                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
25302                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
25303                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
25304                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
25305                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
25306                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
25307                           "\x21\xf7\x42\x89\xac\x12\x2a\x54"
25308                           "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
25309                           "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
25310                           "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
25311                           "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
25312                           "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
25313                           "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
25314                           "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
25315                           "\x51",
25316                 .alen   = 129,
25317                 .input  = "\x36\x78\xb9\x22\xde\x62\x35\x55"
25318                           "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
25319                           "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
25320                           "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
25321                           "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
25322                           "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
25323                           "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
25324                           "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
25325                           "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
25326                           "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
25327                           "\xa2",
25328                 .ilen   = 81,
25329                 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
25330                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
25331                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
25332                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
25333                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
25334                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
25335                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
25336                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
25337                           "\x54",
25338                 .rlen   = 65,
25339         }, {
25340                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
25341                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
25342                 .klen   = 16,
25343                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
25344                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
25345                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
25346                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
25347                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
25348                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
25349                 .alen   = 32,
25350                 .input  = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
25351                           "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
25352                           "\x89\x14\x33\x70\x0a\xbc\xea\x39"
25353                           "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
25354                           "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
25355                           "\x2f\x03\x30\x05\x47\xaf\x34",
25356                 .ilen   = 47,
25357                 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
25358                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
25359                           "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
25360                           "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
25361                 .rlen   = 32,
25362         }, {
25363                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
25364                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
25365                 .klen   = 16,
25366                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
25367                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
25368                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
25369                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
25370                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
25371                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
25372                 .alen   = 32,
25373                 .input  = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
25374                           "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
25375                           "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
25376                           "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
25377                           "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
25378                           "\xb9\x9c\xe5\xef\xf2\x05",
25379                 .ilen   = 46,
25380                 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
25381                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
25382                           "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
25383                           "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
25384                 .rlen   = 32,
25385         }, {
25386                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
25387                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
25388                 .klen   = 16,
25389                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
25390                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
25391                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
25392                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
25393                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
25394                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
25395                 .alen   = 32,
25396                 .input  = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
25397                           "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
25398                           "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
25399                           "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
25400                           "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
25401                 .ilen   = 40,
25402                 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
25403                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
25404                           "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
25405                           "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
25406                 .rlen   = 32,
25407         }, {
25408                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
25409                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
25410                 .klen   = 16,
25411                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
25412                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
25413                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
25414                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
25415                           "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
25416                           "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
25417                 .alen   = 32,
25418                 .input  = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
25419                           "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
25420                           "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
25421                           "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
25422                           "\x1a",
25423                 .ilen   = 33,
25424                 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
25425                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
25426                           "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
25427                           "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
25428                 .rlen   = 32,
25429         }, {
25430                 .key    = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
25431                           "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
25432                           "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
25433                           "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
25434                 .klen   = 32,
25435                 .iv     = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
25436                           "\xb7\x85\x90\x58\x67\x57\x33\x1d",
25437                 .assoc  = "",
25438                 .alen   = 0,
25439                 .input  = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
25440                           "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
25441                 .ilen   = 16,
25442                 .result = "",
25443                 .rlen   = 0,
25444         }, {
25445                 .key    = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
25446                           "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
25447                           "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
25448                           "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
25449                 .klen   = 32,
25450                 .iv     = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
25451                           "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
25452                 .assoc  = "",
25453                 .alen   = 0,
25454                 .input  = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
25455                           "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
25456                           "\x53",
25457                 .ilen   = 17,
25458                 .result = "\x53",
25459                 .rlen   = 1,
25460         }, {
25461                 .key    = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
25462                           "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
25463                           "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
25464                           "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
25465                 .klen   = 32,
25466                 .iv     = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
25467                           "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
25468                 .assoc  = "",
25469                 .alen   = 0,
25470                 .input  = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
25471                           "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
25472                           "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
25473                           "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
25474                           "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
25475                           "\xb8\x4d\x11\x42\xd1\xf8\xf1",
25476                 .ilen   = 47,
25477                 .result = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
25478                           "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
25479                           "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
25480                           "\xf6\xf0\x27\xb4\x25\x4c\x83",
25481                 .rlen   = 31,
25482         }, {
25483                 .key    = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
25484                           "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
25485                           "\xa2\x40\x45\x77\x90\x80\x37\xce"
25486                           "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
25487                 .klen   = 32,
25488                 .iv     = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
25489                           "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
25490                 .assoc  = "",
25491                 .alen   = 0,
25492                 .input  = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
25493                           "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
25494                           "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
25495                           "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
25496                           "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
25497                           "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
25498                 .ilen   = 48,
25499                 .result = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
25500                           "\x7a\x81\xff\x55\x52\x56\xdc\x33"
25501                           "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
25502                           "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
25503                 .rlen   = 32,
25504         }, {
25505                 .key    = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
25506                           "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
25507                           "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
25508                           "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
25509                 .klen   = 32,
25510                 .iv     = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
25511                           "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
25512                 .assoc  = "",
25513                 .alen   = 0,
25514                 .input  = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
25515                           "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
25516                           "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
25517                           "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
25518                           "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
25519                           "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
25520                           "\x32",
25521                 .ilen   = 49,
25522                 .result = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
25523                           "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
25524                           "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
25525                           "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
25526                           "\x2e",
25527                 .rlen   = 33,
25528         }, {
25529                 .key    = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
25530                           "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
25531                           "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
25532                           "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
25533                 .klen   = 32,
25534                 .iv     = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
25535                           "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
25536                 .assoc  = "",
25537                 .alen   = 0,
25538                 .input  = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
25539                           "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
25540                           "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
25541                           "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
25542                           "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
25543                           "\x01\xb7\x39\xa6\x51\x15\xca\xff"
25544                           "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
25545                           "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
25546                           "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
25547                           "\xaa\x2d\xfc\x4e\x35\x05\x59",
25548                 .ilen   = 79,
25549                 .result = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
25550                           "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
25551                           "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
25552                           "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
25553                           "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
25554                           "\x22\xda\x52\x8b\x7d\x11\x98\xea"
25555                           "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
25556                           "\x20\x76\x5a\xdc\x4e\x71\x13",
25557                 .rlen   = 63,
25558         }, {
25559                 .key    = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
25560                           "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
25561                           "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
25562                           "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
25563                 .klen   = 32,
25564                 .iv     = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
25565                           "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
25566                 .assoc  = "",
25567                 .alen   = 0,
25568                 .input  = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
25569                           "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
25570                           "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
25571                           "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
25572                           "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
25573                           "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
25574                           "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
25575                           "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
25576                           "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
25577                           "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
25578                 .ilen   = 80,
25579                 .result = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
25580                           "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
25581                           "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
25582                           "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
25583                           "\x4b\x62\x87\x7c\x15\x38\xda\x70"
25584                           "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
25585                           "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
25586                           "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
25587                 .rlen   = 64,
25588         }, {
25589                 .key    = "\x90\x96\x36\xea\x03\x74\x18\x7a"
25590                           "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
25591                           "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
25592                           "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
25593                 .klen   = 32,
25594                 .iv     = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
25595                           "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
25596                 .assoc  = "\xaf",
25597                 .alen   = 1,
25598                 .input  = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
25599                           "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
25600                 .ilen   = 16,
25601                 .result = "",
25602                 .rlen   = 0,
25603         }, {
25604                 .key    = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
25605                           "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
25606                           "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
25607                           "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
25608                 .klen   = 32,
25609                 .iv     = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
25610                           "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
25611                 .assoc  = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
25612                           "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
25613                           "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
25614                           "\x4e\xf6\x29\xd1\x8b\x6f\x56",
25615                 .alen   = 31,
25616                 .input  = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
25617                           "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
25618                 .ilen   = 16,
25619                 .result = "",
25620                 .rlen   = 0,
25621         }, {
25622                 .key    = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
25623                           "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
25624                           "\xa0\xce\x8a\x91\xae\x40\x43\x68"
25625                           "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
25626                 .klen   = 32,
25627                 .iv     = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
25628                           "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
25629                 .assoc  = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
25630                           "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
25631                           "\x35\x2f\x90\xd3\x31\x90\x04\x74"
25632                           "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
25633                 .alen   = 32,
25634                 .input  = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
25635                           "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
25636                 .ilen   = 16,
25637                 .result = "",
25638                 .rlen   = 0,
25639         }, {
25640                 .key    = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
25641                           "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
25642                           "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
25643                           "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
25644                 .klen   = 32,
25645                 .iv     = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
25646                           "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
25647                 .assoc  = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
25648                           "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
25649                           "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
25650                           "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
25651                           "\x01",
25652                 .alen   = 33,
25653                 .input  = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
25654                           "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
25655                 .ilen   = 16,
25656                 .result = "",
25657                 .rlen   = 0,
25658         }, {
25659                 .key    = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
25660                           "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
25661                           "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
25662                           "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
25663                 .klen   = 32,
25664                 .iv     = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
25665                           "\x41\xe5\x36\x97\x25\xe7\x90\x61",
25666                 .assoc  = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
25667                           "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
25668                           "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
25669                           "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
25670                           "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
25671                           "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
25672                           "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
25673                           "\x07\x8c\xfc\x88\x2d\xb8\x53",
25674                 .alen   = 63,
25675                 .input  = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
25676                           "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
25677                 .ilen   = 16,
25678                 .result = "",
25679                 .rlen   = 0,
25680         }, {
25681                 .key    = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
25682                           "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
25683                           "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
25684                           "\xf3\x95\x35\x46\x86\xbb\x04\x03",
25685                 .klen   = 32,
25686                 .iv     = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
25687                           "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
25688                 .assoc  = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
25689                           "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
25690                           "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
25691                           "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
25692                           "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
25693                           "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
25694                           "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
25695                           "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
25696                 .alen   = 64,
25697                 .input  = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
25698                           "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
25699                 .ilen   = 16,
25700                 .result = "",
25701                 .rlen   = 0,
25702         }, {
25703                 .key    = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
25704                           "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
25705                           "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
25706                           "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
25707                 .klen   = 32,
25708                 .iv     = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
25709                           "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
25710                 .assoc  = "\x1a",
25711                 .alen   = 1,
25712                 .input  = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
25713                           "\x17\x75\x81\x16\xdf\x26\xff\x67"
25714                           "\x92",
25715                 .ilen   = 17,
25716                 .result = "\x29",
25717                 .rlen   = 1,
25718         }, {
25719                 .key    = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
25720                           "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
25721                           "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
25722                           "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
25723                 .klen   = 32,
25724                 .iv     = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
25725                           "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
25726                 .assoc  = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
25727                           "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
25728                           "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
25729                           "\xd6\x07\x62\xe3\xa8\xa9\x12",
25730                 .alen   = 31,
25731                 .input  = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
25732                           "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
25733                           "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
25734                           "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
25735                           "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
25736                           "\x76\xc3\xf5\x3a\x76\xfd\x4a",
25737                 .ilen   = 47,
25738                 .result = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
25739                           "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
25740                           "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
25741                           "\x06\x13\x9a\xd9\x5e\xc0\xfa",
25742                 .rlen   = 31,
25743         }, {
25744                 .key    = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
25745                           "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
25746                           "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
25747                           "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
25748                 .klen   = 32,
25749                 .iv     = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
25750                           "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
25751                 .assoc  = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
25752                           "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
25753                           "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
25754                           "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
25755                 .alen   = 32,
25756                 .input  = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
25757                           "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
25758                           "\x62\x48\x08\x64\x86\x6a\xdf\xec"
25759                           "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
25760                           "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
25761                           "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
25762                 .ilen   = 48,
25763                 .result = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
25764                           "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
25765                           "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
25766                           "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
25767                 .rlen   = 32,
25768         }, {
25769                 .key    = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
25770                           "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
25771                           "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
25772                           "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
25773                 .klen   = 32,
25774                 .iv     = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
25775                           "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
25776                 .assoc  = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
25777                           "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
25778                           "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
25779                           "\x59\x62\x20\x94\x5c\x67\x50\xc8"
25780                           "\x58",
25781                 .alen   = 33,
25782                 .input  = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
25783                           "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
25784                           "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
25785                           "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
25786                           "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
25787                           "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
25788                           "\xc3",
25789                 .ilen   = 49,
25790                 .result = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
25791                           "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
25792                           "\x28\x30\x64\x92\x96\x98\x72\x2e"
25793                           "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
25794                           "\xdb",
25795                 .rlen   = 33,
25796         }, {
25797                 .key    = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
25798                           "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
25799                           "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
25800                           "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
25801                 .klen   = 32,
25802                 .iv     = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
25803                           "\x46\x02\x63\x00\x01\xc1\x20\x87",
25804                 .assoc  = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
25805                           "\x66\x39\x8f\x24\xff\x8a\x50\x08"
25806                           "\x88\x42\xed\xf6\x5a\x90\x14\x42"
25807                           "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
25808                           "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
25809                           "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
25810                           "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
25811                           "\xe2\xa3\x84\x04\x0b\xe1\xce",
25812                 .alen   = 63,
25813                 .input  = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
25814                           "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
25815                           "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
25816                           "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
25817                           "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
25818                           "\x1b\x49\x21\x34\x23\x63\x55\x5e"
25819                           "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
25820                           "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
25821                           "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
25822                           "\x7f\xfa\xf0\xbf\xc4\x98\x78",
25823                 .ilen   = 79,
25824                 .result = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
25825                           "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
25826                           "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
25827                           "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
25828                           "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
25829                           "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
25830                           "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
25831                           "\xd5\xa4\x6a\xd4\x09\xc2\x08",
25832                 .rlen   = 63,
25833         }, {
25834                 .key    = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
25835                           "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
25836                           "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
25837                           "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
25838                 .klen   = 32,
25839                 .iv     = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
25840                           "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
25841                 .assoc  = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
25842                           "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
25843                           "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
25844                           "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
25845                           "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
25846                           "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
25847                           "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
25848                           "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
25849                 .alen   = 64,
25850                 .input  = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
25851                           "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
25852                           "\x35\x35\x60\x9d\x06\x40\x65\xc1"
25853                           "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
25854                           "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
25855                           "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
25856                           "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
25857                           "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
25858                           "\xce\x9e\x34\x81\xf0\x89\x11\x13"
25859                           "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
25860                 .ilen   = 80,
25861                 .result = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
25862                           "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
25863                           "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
25864                           "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
25865                           "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
25866                           "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
25867                           "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
25868                           "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
25869                 .rlen   = 64,
25870         }, {
25871                 .key    = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
25872                           "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
25873                           "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
25874                           "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
25875                 .klen   = 32,
25876                 .iv     = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
25877                           "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
25878                 .assoc  = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
25879                           "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
25880                           "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
25881                           "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
25882                           "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
25883                           "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
25884                           "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
25885                           "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
25886                           "\x04",
25887                 .alen   = 65,
25888                 .input  = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
25889                           "\x85\x43\x88\xd0\xd7\x78\x60\x19"
25890                           "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
25891                           "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
25892                           "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
25893                           "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
25894                           "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
25895                           "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
25896                           "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
25897                           "\x20\xf8\x12\x54\x50\xb3\x11\xda"
25898                           "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
25899                           "\x38\x67\x56\x65\x59\xda\xe6\x97"
25900                           "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
25901                           "\x91\x59\x38\x18\x00\xe8\xba\x92"
25902                           "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
25903                           "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
25904                           "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
25905                           "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
25906                           "\xa5",
25907                 .ilen   = 145,
25908                 .result = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
25909                           "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
25910                           "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
25911                           "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
25912                           "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
25913                           "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
25914                           "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
25915                           "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
25916                           "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
25917                           "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
25918                           "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
25919                           "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
25920                           "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
25921                           "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
25922                           "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
25923                           "\x07\x68\x22\x2a\x88\x25\x53\xb2"
25924                           "\x2f",
25925                 .rlen   = 129,
25926         }, {
25927                 .key    = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
25928                           "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
25929                           "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
25930                           "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
25931                 .klen   = 32,
25932                 .iv     = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
25933                           "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
25934                 .assoc  = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
25935                           "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
25936                           "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
25937                           "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
25938                           "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
25939                           "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
25940                           "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
25941                           "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
25942                           "\xce\x83\x2a\x88\x07\x55\xbb\x89"
25943                           "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
25944                           "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
25945                           "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
25946                           "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
25947                           "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
25948                           "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
25949                           "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
25950                           "\x4b",
25951                 .alen   = 129,
25952                 .input  = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
25953                           "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
25954                           "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
25955                           "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
25956                           "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
25957                           "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
25958                           "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
25959                           "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
25960                           "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
25961                           "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
25962                           "\x72",
25963                 .ilen   = 81,
25964                 .result = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
25965                           "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
25966                           "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
25967                           "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
25968                           "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
25969                           "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
25970                           "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
25971                           "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
25972                           "\x00",
25973                 .rlen   = 65,
25974         }, {
25975                 .key    = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
25976                           "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
25977                           "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
25978                           "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
25979                 .klen   = 32,
25980                 .iv     = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
25981                           "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
25982                 .assoc  = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
25983                           "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
25984                           "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
25985                           "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
25986                 .alen   = 32,
25987                 .input  = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
25988                           "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
25989                           "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
25990                           "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
25991                           "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
25992                           "\x69\x0e\x36\x5f\x2f\x22\x8c",
25993                 .ilen   = 47,
25994                 .result = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
25995                           "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
25996                           "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
25997                           "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
25998                 .rlen   = 32,
25999         }, {
26000                 .key    = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
26001                           "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
26002                           "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
26003                           "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
26004                 .klen   = 32,
26005                 .iv     = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
26006                           "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
26007                 .assoc  = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
26008                           "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
26009                           "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
26010                           "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
26011                 .alen   = 32,
26012                 .input  = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
26013                           "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
26014                           "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
26015                           "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
26016                           "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
26017                           "\x5b\x6f\x7b\xe2\x8c\xe8",
26018                 .ilen   = 46,
26019                 .result = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
26020                           "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
26021                           "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
26022                           "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
26023                 .rlen   = 32,
26024         }, {
26025                 .key    = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
26026                           "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
26027                           "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
26028                           "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
26029                 .klen   = 32,
26030                 .iv     = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
26031                           "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
26032                 .assoc  = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
26033                           "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
26034                           "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
26035                           "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
26036                 .alen   = 32,
26037                 .input  = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
26038                           "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
26039                           "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
26040                           "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
26041                           "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
26042                 .ilen   = 40,
26043                 .result = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
26044                           "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
26045                           "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
26046                           "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
26047                 .rlen   = 32,
26048         }, {
26049                 .key    = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
26050                           "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
26051                           "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
26052                           "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
26053                 .klen   = 32,
26054                 .iv     = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
26055                           "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
26056                 .assoc  = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
26057                           "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
26058                           "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
26059                           "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
26060                 .alen   = 32,
26061                 .input  = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
26062                           "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
26063                           "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
26064                           "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
26065                           "\x56",
26066                 .ilen   = 33,
26067                 .result = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
26068                           "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
26069                           "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
26070                           "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
26071                 .rlen   = 32,
26072         },
26073 };
26074
26075 /*
26076  * All key wrapping test vectors taken from
26077  * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
26078  *
26079  * Note: as documented in keywrap.c, the ivout for encryption is the first
26080  * semiblock of the ciphertext from the test vector. For decryption, iv is
26081  * the first semiblock of the ciphertext.
26082  */
26083 static const struct cipher_testvec aes_kw_tv_template[] = {
26084         {
26085                 .key    = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
26086                           "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
26087                 .klen   = 16,
26088                 .ptext  = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
26089                           "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
26090                 .ctext  = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
26091                           "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
26092                 .len    = 16,
26093                 .iv     = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
26094                 .generates_iv = true,
26095         }, {
26096                 .key    = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
26097                           "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
26098                           "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
26099                           "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
26100                 .klen   = 32,
26101                 .ptext  = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
26102                           "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
26103                 .ctext  = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
26104                           "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
26105                 .len    = 16,
26106                 .iv     = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
26107                 .generates_iv = true,
26108         },
26109 };
26110
26111 /*
26112  * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
26113  * test vectors, taken from Appendix B.2.9 and B.2.10:
26114  *     http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
26115  * Only AES-128 is supported at this time.
26116  */
26117 static const struct cprng_testvec ansi_cprng_aes_tv_template[] = {
26118         {
26119                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26120                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26121                 .klen   = 16,
26122                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26123                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
26124                 .dtlen  = 16,
26125                 .v      = "\x80\x00\x00\x00\x00\x00\x00\x00"
26126                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26127                 .vlen   = 16,
26128                 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
26129                           "\x84\x79\x66\x85\xc1\x2f\x76\x41",
26130                 .rlen   = 16,
26131                 .loops  = 1,
26132         }, {
26133                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26134                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26135                 .klen   = 16,
26136                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26137                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
26138                 .dtlen  = 16,
26139                 .v      = "\xc0\x00\x00\x00\x00\x00\x00\x00"
26140                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26141                 .vlen   = 16,
26142                 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
26143                           "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
26144                 .rlen   = 16,
26145                 .loops  = 1,
26146         }, {
26147                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26148                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26149                 .klen   = 16,
26150                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26151                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
26152                 .dtlen  = 16,
26153                 .v      = "\xe0\x00\x00\x00\x00\x00\x00\x00"
26154                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26155                 .vlen   = 16,
26156                 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
26157                           "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
26158                 .rlen   = 16,
26159                 .loops  = 1,
26160         }, {
26161                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26162                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26163                 .klen   = 16,
26164                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26165                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
26166                 .dtlen  = 16,
26167                 .v      = "\xf0\x00\x00\x00\x00\x00\x00\x00"
26168                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26169                 .vlen   = 16,
26170                 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
26171                           "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
26172                 .rlen   = 16,
26173                 .loops  = 1,
26174         }, {
26175                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26176                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26177                 .klen   = 16,
26178                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26179                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
26180                 .dtlen  = 16,
26181                 .v      = "\xf8\x00\x00\x00\x00\x00\x00\x00"
26182                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26183                 .vlen   = 16,
26184                 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
26185                           "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
26186                 .rlen   = 16,
26187                 .loops  = 1,
26188         }, {    /* Monte Carlo Test */
26189                 .key    = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
26190                           "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
26191                 .klen   = 16,
26192                 .dt     = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
26193                           "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
26194                 .dtlen  = 16,
26195                 .v      = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
26196                           "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
26197                 .vlen   = 16,
26198                 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
26199                           "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
26200                 .rlen   = 16,
26201                 .loops  = 10000,
26202         },
26203 };
26204
26205 /*
26206  * SP800-90A DRBG Test vectors from
26207  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
26208  *
26209  * Test vectors for DRBG with prediction resistance. All types of DRBGs
26210  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
26211  * w/o personalization string, w/ and w/o additional input string).
26212  */
26213 static const struct drbg_testvec drbg_pr_sha256_tv_template[] = {
26214         {
26215                 .entropy = (unsigned char *)
26216                         "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
26217                         "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
26218                         "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
26219                         "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
26220                 .entropylen = 48,
26221                 .entpra = (unsigned char *)
26222                         "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
26223                         "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
26224                         "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
26225                 .entprb = (unsigned char *)
26226                         "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
26227                         "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
26228                         "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
26229                 .entprlen = 32,
26230                 .expected = (unsigned char *)
26231                         "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
26232                         "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
26233                         "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
26234                         "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
26235                         "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
26236                         "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
26237                         "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
26238                         "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
26239                         "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
26240                         "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
26241                         "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
26242                 .expectedlen = 128,
26243                 .addtla = NULL,
26244                 .addtlb = NULL,
26245                 .addtllen = 0,
26246                 .pers = NULL,
26247                 .perslen = 0,
26248         }, {
26249                 .entropy = (unsigned char *)
26250                         "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
26251                         "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
26252                         "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
26253                         "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
26254                 .entropylen = 48,
26255                 .entpra = (unsigned char *)
26256                         "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
26257                         "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
26258                         "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
26259                 .entprb = (unsigned char *)
26260                         "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
26261                         "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
26262                         "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
26263                 .entprlen = 32,
26264                 .expected = (unsigned char *)
26265                         "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
26266                         "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
26267                         "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
26268                         "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
26269                         "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
26270                         "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
26271                         "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
26272                         "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
26273                         "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
26274                         "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
26275                         "\x50\x47\xa3\x63\x81\x16\xaf\x19",
26276                 .expectedlen = 128,
26277                 .addtla = (unsigned char *)
26278                         "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
26279                         "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
26280                         "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
26281                 .addtlb = (unsigned char *)
26282                         "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
26283                         "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
26284                         "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
26285                 .addtllen = 32,
26286                 .pers = NULL,
26287                 .perslen = 0,
26288         }, {
26289                 .entropy = (unsigned char *)
26290                         "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
26291                         "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
26292                         "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
26293                         "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
26294                 .entropylen = 48,
26295                 .entpra = (unsigned char *)
26296                         "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
26297                         "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
26298                         "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
26299                 .entprb = (unsigned char *)
26300                         "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
26301                         "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
26302                         "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
26303                 .entprlen = 32,
26304                 .expected = (unsigned char *)
26305                         "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
26306                         "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
26307                         "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
26308                         "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
26309                         "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
26310                         "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
26311                         "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
26312                         "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
26313                         "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
26314                         "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
26315                         "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
26316                 .expectedlen = 128,
26317                 .addtla = NULL,
26318                 .addtlb = NULL,
26319                 .addtllen = 0,
26320                 .pers = (unsigned char *)
26321                         "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
26322                         "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
26323                         "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
26324                 .perslen = 32,
26325         }, {
26326                 .entropy = (unsigned char *)
26327                         "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
26328                         "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
26329                         "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
26330                         "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
26331                 .entropylen = 48,
26332                 .entpra = (unsigned char *)
26333                         "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
26334                         "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
26335                         "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
26336                 .entprb = (unsigned char *)
26337                         "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
26338                         "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
26339                         "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
26340                 .entprlen = 32,
26341                 .expected = (unsigned char *)
26342                         "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
26343                         "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
26344                         "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
26345                         "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
26346                         "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
26347                         "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
26348                         "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
26349                         "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
26350                         "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
26351                         "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
26352                         "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
26353                 .expectedlen = 128,
26354                 .addtla = (unsigned char *)
26355                         "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
26356                         "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
26357                         "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
26358                 .addtlb = (unsigned char *)
26359                         "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
26360                         "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
26361                         "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
26362                 .addtllen = 32,
26363                 .pers = (unsigned char *)
26364                         "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
26365                         "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
26366                         "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
26367                 .perslen = 32,
26368         },
26369 };
26370
26371 static const struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
26372         {
26373                 .entropy = (unsigned char *)
26374                         "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
26375                         "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
26376                         "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
26377                         "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
26378                 .entropylen = 48,
26379                 .entpra = (unsigned char *)
26380                         "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
26381                         "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
26382                         "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
26383                 .entprb = (unsigned char *)
26384                         "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
26385                         "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
26386                         "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
26387                 .entprlen = 32,
26388                 .expected = (unsigned char *)
26389                         "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
26390                         "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
26391                         "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
26392                         "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
26393                         "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
26394                         "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
26395                         "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
26396                         "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
26397                         "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
26398                         "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
26399                         "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
26400                 .expectedlen = 128,
26401                 .addtla = NULL,
26402                 .addtlb = NULL,
26403                 .addtllen = 0,
26404                 .pers = NULL,
26405                 .perslen = 0,
26406         }, {
26407                 .entropy = (unsigned char *)
26408                         "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
26409                         "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
26410                         "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
26411                         "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
26412                 .entropylen = 48,
26413                 .entpra = (unsigned char *)
26414                         "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
26415                         "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
26416                         "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
26417                 .entprb = (unsigned char *)
26418                         "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
26419                         "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
26420                         "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
26421                 .entprlen = 32,
26422                 .expected = (unsigned char *)
26423                         "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
26424                         "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
26425                         "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
26426                         "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
26427                         "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
26428                         "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
26429                         "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
26430                         "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
26431                         "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
26432                         "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
26433                         "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
26434                 .expectedlen = 128,
26435                 .addtla = (unsigned char *)
26436                         "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
26437                         "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
26438                         "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
26439                 .addtlb = (unsigned char *)
26440                         "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
26441                         "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
26442                         "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
26443                 .addtllen = 32,
26444                 .pers = NULL,
26445                 .perslen = 0,
26446         }, {
26447                 .entropy = (unsigned char *)
26448                         "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
26449                         "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
26450                         "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
26451                         "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
26452                 .entropylen = 48,
26453                 .entpra = (unsigned char *)
26454                         "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
26455                         "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
26456                         "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
26457                 .entprb = (unsigned char *)
26458                         "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
26459                         "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
26460                         "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
26461                 .entprlen = 32,
26462                 .expected = (unsigned char *)
26463                         "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
26464                         "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
26465                         "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
26466                         "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
26467                         "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
26468                         "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
26469                         "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
26470                         "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
26471                         "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
26472                         "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
26473                         "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
26474                 .expectedlen = 128,
26475                 .addtla = NULL,
26476                 .addtlb = NULL,
26477                 .addtllen = 0,
26478                 .pers = (unsigned char *)
26479                         "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
26480                         "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
26481                         "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
26482                 .perslen = 32,
26483         }, {
26484                 .entropy = (unsigned char *)
26485                         "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
26486                         "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
26487                         "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
26488                         "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
26489                 .entropylen = 48,
26490                 .entpra = (unsigned char *)
26491                         "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
26492                         "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
26493                         "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
26494                 .entprb = (unsigned char *)
26495                         "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
26496                         "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
26497                         "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
26498                 .entprlen = 32,
26499                 .expected = (unsigned char *)
26500                         "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
26501                         "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
26502                         "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
26503                         "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
26504                         "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
26505                         "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
26506                         "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
26507                         "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
26508                         "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
26509                         "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
26510                         "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
26511                 .expectedlen = 128,
26512                 .addtla = (unsigned char *)
26513                         "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
26514                         "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
26515                         "\x86\x88\x55\x28\xc1\x69\xdd\x76",
26516                 .addtlb = (unsigned char *)
26517                         "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
26518                         "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
26519                         "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
26520                 .addtllen = 32,
26521                 .pers = (unsigned char *)
26522                         "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
26523                         "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
26524                         "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
26525                 .perslen = 32,
26526         },
26527 };
26528
26529 static const struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
26530         {
26531                 .entropy = (unsigned char *)
26532                         "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
26533                         "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
26534                 .entropylen = 24,
26535                 .entpra = (unsigned char *)
26536                         "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
26537                         "\xb4\xec\x80\xb1",
26538                 .entprb = (unsigned char *)
26539                         "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
26540                         "\x28\x07\xeb\xc2",
26541                 .entprlen = 16,
26542                 .expected = (unsigned char *)
26543                         "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
26544                         "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
26545                         "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
26546                         "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
26547                         "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
26548                         "\x8a\xf1\x23\xa8",
26549                 .expectedlen = 64,
26550                 .addtla = NULL,
26551                 .addtlb = NULL,
26552                 .addtllen = 0,
26553                 .pers = NULL,
26554                 .perslen = 0,
26555         }, {
26556                 .entropy = (unsigned char *)
26557                         "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
26558                         "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
26559                 .entropylen = 24,
26560                 .entpra = (unsigned char *)
26561                         "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
26562                         "\x67\xd1\x08\xf8",
26563                 .entprb = (unsigned char *)
26564                         "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
26565                         "\xd4\xba\x04\x58",
26566                 .entprlen = 16,
26567                 .expected = (unsigned char *)
26568                         "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
26569                         "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
26570                         "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
26571                         "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
26572                         "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
26573                         "\xc1\x02\x41\x82",
26574                 .expectedlen = 64,
26575                 .addtla = (unsigned char *)
26576                         "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
26577                         "\xeb\xb3\x01\x76",
26578                 .addtlb = (unsigned char *)
26579                         "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
26580                         "\xd0\x7f\xcc\x43",
26581                 .addtllen = 16,
26582                 .pers = NULL,
26583                 .perslen = 0,
26584         }, {
26585                 .entropy = (unsigned char *)
26586                         "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
26587                         "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
26588                 .entropylen = 24,
26589                 .entpra = (unsigned char *)
26590                         "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
26591                         "\xc3\x0f\xe3\xb0",
26592                 .entprb = (unsigned char *)
26593                         "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
26594                         "\xd6\x9c\x9d\xe8",
26595                 .entprlen = 16,
26596                 .expected = (unsigned char *)
26597                         "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
26598                         "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
26599                         "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
26600                         "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
26601                         "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
26602                         "\x72\x82\x0c\xcf",
26603                 .expectedlen = 64,
26604                 .addtla = NULL,
26605                 .addtlb = NULL,
26606                 .addtllen = 0,
26607                 .pers = (unsigned char *)
26608                         "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
26609                         "\x21\x52\xb3\xad",
26610                 .perslen = 16,
26611         }, {
26612                 .entropy = (unsigned char *)
26613                         "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
26614                         "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
26615                 .entropylen = 24,
26616                 .entpra = (unsigned char *)
26617                         "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
26618                         "\xc4\x2c\xe8\x10",
26619                 .entprb = (unsigned char *)
26620                         "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
26621                         "\x08\xf7\xa5\x01",
26622                 .entprlen = 16,
26623                 .expected = (unsigned char *)
26624                         "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
26625                         "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
26626                         "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
26627                         "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
26628                         "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
26629                         "\x23\xc5\x1f\x68",
26630                 .expectedlen = 64,
26631                 .addtla = (unsigned char *)
26632                         "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
26633                         "\x23\x6d\xad\x1d",
26634                 .addtlb = (unsigned char *)
26635                         "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
26636                         "\xbc\x59\x31\x8c",
26637                 .addtllen = 16,
26638                 .pers = (unsigned char *)
26639                         "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
26640                         "\x37\x3c\x5c\x0b",
26641                 .perslen = 16,
26642         },
26643 };
26644
26645 /*
26646  * SP800-90A DRBG Test vectors from
26647  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
26648  *
26649  * Test vectors for DRBG without prediction resistance. All types of DRBGs
26650  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
26651  * w/o personalization string, w/ and w/o additional input string).
26652  */
26653 static const struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
26654         {
26655                 .entropy = (unsigned char *)
26656                         "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
26657                         "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
26658                         "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
26659                         "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
26660                 .entropylen = 48,
26661                 .expected = (unsigned char *)
26662                         "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
26663                         "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
26664                         "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
26665                         "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
26666                         "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
26667                         "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
26668                         "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
26669                         "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
26670                         "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
26671                         "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
26672                         "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
26673                 .expectedlen = 128,
26674                 .addtla = NULL,
26675                 .addtlb = NULL,
26676                 .addtllen = 0,
26677                 .pers = NULL,
26678                 .perslen = 0,
26679         }, {
26680                 .entropy = (unsigned char *)
26681                         "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
26682                         "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
26683                         "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
26684                         "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
26685                 .entropylen = 48,
26686                 .expected = (unsigned char *)
26687                         "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
26688                         "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
26689                         "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
26690                         "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
26691                         "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
26692                         "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
26693                         "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
26694                         "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
26695                         "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
26696                         "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
26697                         "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
26698                 .expectedlen = 128,
26699                 .addtla = (unsigned char *)
26700                         "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
26701                         "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
26702                         "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
26703                 .addtlb = (unsigned char *)
26704                         "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
26705                         "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
26706                         "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
26707                 .addtllen = 32,
26708                 .pers = NULL,
26709                 .perslen = 0,
26710         }, {
26711                 .entropy = (unsigned char *)
26712                         "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
26713                         "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
26714                         "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
26715                         "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
26716                 .entropylen = 48,
26717                 .expected = (unsigned char *)
26718                         "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
26719                         "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
26720                         "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
26721                         "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
26722                         "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
26723                         "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
26724                         "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
26725                         "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
26726                         "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
26727                         "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
26728                         "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
26729                 .expectedlen = 128,
26730                 .addtla = NULL,
26731                 .addtlb = NULL,
26732                 .addtllen = 0,
26733                 .pers = (unsigned char *)
26734                         "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
26735                         "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
26736                         "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
26737                 .perslen = 32,
26738         }, {
26739                 .entropy = (unsigned char *)
26740                         "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
26741                         "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
26742                         "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
26743                         "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
26744                 .entropylen = 48,
26745                 .expected = (unsigned char *)
26746                         "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
26747                         "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
26748                         "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
26749                         "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
26750                         "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
26751                         "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
26752                         "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
26753                         "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
26754                         "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
26755                         "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
26756                         "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
26757                 .expectedlen = 128,
26758                 .addtla = (unsigned char *)
26759                         "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
26760                         "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
26761                         "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
26762                 .addtlb = (unsigned char *)
26763                         "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
26764                         "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
26765                         "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
26766                 .addtllen = 32,
26767                 .pers = (unsigned char *)
26768                         "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
26769                         "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
26770                         "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
26771                 .perslen = 32,
26772         },
26773 };
26774
26775 static const struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
26776         {
26777                 .entropy = (unsigned char *)
26778                         "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
26779                         "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
26780                         "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
26781                         "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
26782                 .entropylen = 48,
26783                 .expected = (unsigned char *)
26784                         "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
26785                         "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
26786                         "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
26787                         "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
26788                         "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
26789                         "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
26790                         "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
26791                         "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
26792                         "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
26793                         "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
26794                         "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
26795                 .expectedlen = 128,
26796                 .addtla = NULL,
26797                 .addtlb = NULL,
26798                 .addtllen = 0,
26799                 .pers = NULL,
26800                 .perslen = 0,
26801         }, {
26802                 .entropy = (unsigned char *)
26803                         "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
26804                         "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
26805                         "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
26806                         "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
26807                 .entropylen = 48,
26808                 .expected = (unsigned char *)
26809                         "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
26810                         "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
26811                         "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
26812                         "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
26813                         "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
26814                         "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
26815                         "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
26816                         "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
26817                         "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
26818                         "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
26819                         "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
26820                 .expectedlen = 128,
26821                 .addtla = (unsigned char *)
26822                         "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
26823                         "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
26824                         "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
26825                 .addtlb = (unsigned char *)
26826                         "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
26827                         "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
26828                         "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
26829                 .addtllen = 32,
26830                 .pers = NULL,
26831                 .perslen = 0,
26832         }, {
26833                 .entropy = (unsigned char *)
26834                         "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
26835                         "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
26836                         "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
26837                         "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
26838                 .entropylen = 48,
26839                 .expected = (unsigned char *)
26840                         "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
26841                         "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
26842                         "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
26843                         "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
26844                         "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
26845                         "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
26846                         "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
26847                         "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
26848                         "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
26849                         "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
26850                         "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
26851                 .expectedlen = 128,
26852                 .addtla = NULL,
26853                 .addtlb = NULL,
26854                 .addtllen = 0,
26855                 .pers = (unsigned char *)
26856                         "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
26857                         "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
26858                         "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
26859                 .perslen = 32,
26860         }, {
26861                 .entropy = (unsigned char *)
26862                         "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
26863                         "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
26864                         "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
26865                         "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
26866                 .entropylen = 48,
26867                 .expected = (unsigned char *)
26868                         "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
26869                         "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
26870                         "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
26871                         "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
26872                         "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
26873                         "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
26874                         "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
26875                         "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
26876                         "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
26877                         "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
26878                         "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
26879                 .expectedlen = 128,
26880                 .addtla = (unsigned char *)
26881                         "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
26882                         "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
26883                         "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
26884                 .addtlb = (unsigned char *)
26885                         "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
26886                         "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
26887                         "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
26888                 .addtllen = 32,
26889                 .pers = (unsigned char *)
26890                         "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
26891                         "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
26892                         "\x36\x60\x3b\xca\x37\xc9\xee\x29",
26893                 .perslen = 32,
26894         },
26895 };
26896
26897 static const struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
26898         {
26899                 .entropy = (unsigned char *)
26900                         "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
26901                         "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
26902                         "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
26903                         "\xac\x9b\xbb\x00",
26904                 .entropylen = 40,
26905                 .expected = (unsigned char *)
26906                         "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
26907                         "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
26908                         "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
26909                         "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
26910                         "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
26911                         "\x9a\x9d\xf1\x0d",
26912                 .expectedlen = 64,
26913                 .addtla = NULL,
26914                 .addtlb = NULL,
26915                 .addtllen = 0,
26916                 .pers = NULL,
26917                 .perslen = 0,
26918         },
26919 };
26920
26921 static const struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
26922         {
26923                 .entropy = (unsigned char *)
26924                         "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
26925                         "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
26926                         "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
26927                         "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
26928                 .entropylen = 48,
26929                 .expected = (unsigned char *)
26930                         "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
26931                         "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
26932                         "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
26933                         "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
26934                         "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
26935                         "\xb4\xf0\x7e\x1d",
26936                 .expectedlen = 64,
26937                 .addtla = NULL,
26938                 .addtlb = NULL,
26939                 .addtllen = 0,
26940                 .pers = NULL,
26941                 .perslen = 0,
26942         },
26943 };
26944
26945 static const struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
26946         {
26947                 .entropy = (unsigned char *)
26948                         "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
26949                         "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
26950                 .entropylen = 24,
26951                 .expected = (unsigned char *)
26952                         "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
26953                         "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
26954                         "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
26955                         "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
26956                         "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
26957                         "\xcb\x2d\xd6\xb0",
26958                 .expectedlen = 64,
26959                 .addtla = NULL,
26960                 .addtlb = NULL,
26961                 .addtllen = 0,
26962                 .pers = NULL,
26963                 .perslen = 0,
26964         }, {
26965                 .entropy = (unsigned char *)
26966                         "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
26967                         "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
26968                 .entropylen = 24,
26969                 .expected = (unsigned char *)
26970                         "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
26971                         "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
26972                         "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
26973                         "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
26974                         "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
26975                         "\xc3\xdf\xb3\x81",
26976                 .expectedlen = 64,
26977                 .addtla = (unsigned char *)
26978                         "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
26979                         "\x91\x4d\x81\x56",
26980                 .addtlb = (unsigned char *)
26981                         "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
26982                         "\x4a\x55\xd1\xc6",
26983                 .addtllen = 16,
26984                 .pers = NULL,
26985                 .perslen = 0,
26986         }, {
26987                 .entropy = (unsigned char *)
26988                         "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
26989                         "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
26990                 .entropylen = 24,
26991                 .expected = (unsigned char *)
26992                         "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
26993                         "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
26994                         "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
26995                         "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
26996                         "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
26997                         "\x34\x30\x0c\x3d",
26998                 .expectedlen = 64,
26999                 .addtla = NULL,
27000                 .addtlb = NULL,
27001                 .addtllen = 0,
27002                 .pers = (unsigned char *)
27003                         "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
27004                         "\x0b\xc6\x97\x54",
27005                 .perslen = 16,
27006         }, {
27007                 .entropy = (unsigned char *)
27008                         "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
27009                         "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
27010                 .entropylen = 24,
27011                 .expected = (unsigned char *)
27012                         "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
27013                         "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
27014                         "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
27015                         "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
27016                         "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
27017                         "\x2b\x49\x1e\x5c",
27018                 .expectedlen = 64,
27019                 .addtla = (unsigned char *)
27020                         "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
27021                         "\x44\x85\xe7\xfe",
27022                 .addtlb = (unsigned char *)
27023                         "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
27024                         "\x82\x16\x62\x7f",
27025                 .addtllen = 16,
27026                 .pers = (unsigned char *)
27027                         "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
27028                         "\x8e\xcf\xe0\x02",
27029                 .perslen = 16,
27030         },
27031 };
27032
27033 /* Cast5 test vectors from RFC 2144 */
27034 static const struct cipher_testvec cast5_tv_template[] = {
27035         {
27036                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
27037                           "\x23\x45\x67\x89\x34\x56\x78\x9a",
27038                 .klen   = 16,
27039                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27040                 .ctext  = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
27041                 .len    = 8,
27042         }, {
27043                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
27044                           "\x23\x45",
27045                 .klen   = 10,
27046                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27047                 .ctext  = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
27048                 .len    = 8,
27049         }, {
27050                 .key    = "\x01\x23\x45\x67\x12",
27051                 .klen   = 5,
27052                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27053                 .ctext  = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
27054                 .len    = 8,
27055         }, { /* Generated from TF test vectors */
27056                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27057                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27058                 .klen   = 16,
27059                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27060                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27061                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27062                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27063                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27064                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27065                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27066                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27067                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27068                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27069                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27070                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27071                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27072                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27073                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27074                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27075                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27076                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27077                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27078                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27079                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27080                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27081                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27082                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27083                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27084                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27085                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27086                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27087                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27088                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27089                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27090                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27091                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27092                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27093                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27094                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27095                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27096                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27097                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27098                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27099                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27100                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27101                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27102                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27103                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27104                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27105                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27106                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27107                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27108                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27109                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27110                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27111                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27112                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27113                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27114                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27115                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27116                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27117                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27118                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27119                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27120                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27121                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
27122                 .ctext  = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
27123                           "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
27124                           "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
27125                           "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
27126                           "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
27127                           "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
27128                           "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
27129                           "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
27130                           "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
27131                           "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
27132                           "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
27133                           "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
27134                           "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
27135                           "\xED\x34\x35\x78\x6B\x91\xC9\x32"
27136                           "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
27137                           "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
27138                           "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
27139                           "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
27140                           "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
27141                           "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
27142                           "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
27143                           "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
27144                           "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
27145                           "\x78\x75\x37\x55\xC1\xF5\x90\x40"
27146                           "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
27147                           "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
27148                           "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
27149                           "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
27150                           "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
27151                           "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
27152                           "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
27153                           "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
27154                           "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
27155                           "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
27156                           "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
27157                           "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
27158                           "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
27159                           "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
27160                           "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
27161                           "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
27162                           "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
27163                           "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
27164                           "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
27165                           "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
27166                           "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
27167                           "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
27168                           "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
27169                           "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
27170                           "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
27171                           "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
27172                           "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
27173                           "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
27174                           "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
27175                           "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
27176                           "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
27177                           "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
27178                           "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
27179                           "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
27180                           "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
27181                           "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
27182                           "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
27183                           "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
27184                 .len    = 496,
27185                 .also_non_np = 1,
27186                 .np     = 3,
27187                 .tap    = { 496 - 20, 4, 16 },
27188         },
27189 };
27190
27191 static const struct cipher_testvec cast5_cbc_tv_template[] = {
27192         { /* Generated from TF test vectors */
27193                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27194                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27195                 .klen   = 16,
27196                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27197                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27198                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27199                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27200                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27201                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27202                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27203                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27204                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27205                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27206                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27207                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27208                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27209                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27210                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27211                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27212                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27213                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27214                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27215                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27216                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27217                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27218                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27219                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27220                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27221                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27222                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27223                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27224                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27225                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27226                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27227                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27228                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27229                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27230                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27231                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27232                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27233                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27234                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27235                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27236                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27237                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27238                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27239                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27240                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27241                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27242                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27243                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27244                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27245                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27246                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27247                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27248                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27249                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27250                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27251                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27252                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27253                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27254                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27255                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27256                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27257                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27258                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
27259                 .ctext  = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
27260                           "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
27261                           "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
27262                           "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
27263                           "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
27264                           "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
27265                           "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
27266                           "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
27267                           "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
27268                           "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
27269                           "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
27270                           "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
27271                           "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
27272                           "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
27273                           "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
27274                           "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
27275                           "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
27276                           "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
27277                           "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
27278                           "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
27279                           "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
27280                           "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
27281                           "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
27282                           "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
27283                           "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
27284                           "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
27285                           "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
27286                           "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
27287                           "\x90\x12\x37\x49\x27\x98\x69\x18"
27288                           "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
27289                           "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
27290                           "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
27291                           "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
27292                           "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
27293                           "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
27294                           "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
27295                           "\x03\x55\x0E\x02\x41\x4A\x45\x06"
27296                           "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
27297                           "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
27298                           "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
27299                           "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
27300                           "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
27301                           "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
27302                           "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
27303                           "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
27304                           "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
27305                           "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
27306                           "\x11\xB4\x18\x17\x1A\x65\x92\x56"
27307                           "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
27308                           "\x1A\x01\x22\x45\x17\x62\x52\x6C"
27309                           "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
27310                           "\x32\x66\x6F\x23\x7F\x94\x36\x88"
27311                           "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
27312                           "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
27313                           "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
27314                           "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
27315                           "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
27316                           "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
27317                           "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
27318                           "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
27319                           "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
27320                           "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
27321                 .len    = 496,
27322                 .also_non_np = 1,
27323                 .np     = 3,
27324                 .tap    = { 496 - 20, 4, 16 },
27325         },
27326 };
27327
27328 static const struct cipher_testvec cast5_ctr_tv_template[] = {
27329         { /* Generated from TF test vectors */
27330                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27331                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27332                 .klen   = 16,
27333                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27334                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27335                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27336                           "\x3A",
27337                 .ctext  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
27338                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
27339                           "\x0C",
27340                 .len    = 17,
27341         }, { /* Generated from TF test vectors */
27342                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27343                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27344                 .klen   = 16,
27345                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27346                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27347                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27348                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27349                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27350                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27351                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27352                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27353                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27354                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27355                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27356                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27357                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27358                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27359                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27360                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27361                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27362                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27363                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27364                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27365                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27366                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27367                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27368                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27369                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27370                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27371                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27372                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27373                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27374                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27375                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27376                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27377                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27378                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27379                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27380                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27381                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27382                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27383                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27384                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27385                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27386                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27387                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27388                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27389                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27390                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27391                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27392                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27393                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27394                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27395                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27396                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27397                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27398                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27399                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27400                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27401                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27402                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27403                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27404                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27405                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27406                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27407                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
27408                 .ctext  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
27409                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
27410                           "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
27411                           "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
27412                           "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
27413                           "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
27414                           "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
27415                           "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
27416                           "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
27417                           "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
27418                           "\x88\x18\x52\x56\x48\x58\xD1\x6B"
27419                           "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
27420                           "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
27421                           "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
27422                           "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
27423                           "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
27424                           "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
27425                           "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
27426                           "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
27427                           "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
27428                           "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
27429                           "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
27430                           "\x44\x67\x90\x20\xAC\x41\xDF\x43"
27431                           "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
27432                           "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
27433                           "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
27434                           "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
27435                           "\xAE\x59\x0F\x07\x88\x79\x53\x26"
27436                           "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
27437                           "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
27438                           "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
27439                           "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
27440                           "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
27441                           "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
27442                           "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
27443                           "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
27444                           "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
27445                           "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
27446                           "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
27447                           "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
27448                           "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
27449                           "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
27450                           "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
27451                           "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
27452                           "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
27453                           "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
27454                           "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
27455                           "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
27456                           "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
27457                           "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
27458                           "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
27459                           "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
27460                           "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
27461                           "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
27462                           "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
27463                           "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
27464                           "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
27465                           "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
27466                           "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
27467                           "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
27468                           "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
27469                           "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
27470                 .len    = 496,
27471                 .also_non_np = 1,
27472                 .np     = 3,
27473                 .tap    = { 496 - 20, 4, 16 },
27474         },
27475 };
27476
27477 /*
27478  * ARC4 test vectors from OpenSSL
27479  */
27480 static const struct cipher_testvec arc4_tv_template[] = {
27481         {
27482                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27483                 .klen   = 8,
27484                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27485                 .ctext  = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
27486                 .len    = 8,
27487         }, {
27488                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27489                 .klen   = 8,
27490                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27491                 .ctext  = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
27492                 .len    = 8,
27493         }, {
27494                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
27495                 .klen   = 8,
27496                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27497                 .ctext  = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
27498                 .len    = 8,
27499         }, {
27500                 .key    = "\xef\x01\x23\x45",
27501                 .klen   = 4,
27502                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
27503                           "\x00\x00\x00\x00\x00\x00\x00\x00"
27504                           "\x00\x00\x00\x00",
27505                 .ctext  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
27506                           "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
27507                           "\x36\xb6\x78\x58",
27508                 .len    = 20,
27509         }, {
27510                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27511                 .klen   = 8,
27512                 .ptext  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27513                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27514                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27515                           "\x12\x34\x56\x78",
27516                 .ctext  = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
27517                           "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
27518                           "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
27519                           "\x40\x01\x1e\xcf",
27520                 .len    = 28,
27521         }, {
27522                 .key    = "\xef\x01\x23\x45",
27523                 .klen   = 4,
27524                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
27525                           "\x00\x00",
27526                 .ctext  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
27527                           "\xbd\x61",
27528                 .len    = 10,
27529         }, {
27530                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
27531                         "\x00\x00\x00\x00\x00\x00\x00\x00",
27532                 .klen   = 16,
27533                 .ptext  = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
27534                 .ctext  = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
27535                 .len    = 8,
27536         },
27537 };
27538
27539 /*
27540  * TEA test vectors
27541  */
27542 static const struct cipher_testvec tea_tv_template[] = {
27543         {
27544                 .key    = zeroed_string,
27545                 .klen   = 16,
27546                 .ptext  = zeroed_string,
27547                 .ctext  = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
27548                 .len    = 8,
27549         }, {
27550                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27551                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27552                 .klen   = 16,
27553                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27554                 .ctext  = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
27555                 .len    = 8,
27556         }, {
27557                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27558                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27559                 .klen   = 16,
27560                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27561                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27562                 .ctext  = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
27563                           "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
27564                 .len    = 16,
27565         }, {
27566                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27567                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27568                 .klen   = 16,
27569                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27570                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27571                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27572                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27573                 .ctext  = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
27574                           "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
27575                           "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
27576                           "\x07\x89\x73\xc2\x45\x92\xc6\x90",
27577                 .len    = 32,
27578         }
27579 };
27580
27581 /*
27582  * XTEA test vectors
27583  */
27584 static const struct cipher_testvec xtea_tv_template[] = {
27585         {
27586                 .key    = zeroed_string,
27587                 .klen   = 16,
27588                 .ptext  = zeroed_string,
27589                 .ctext  = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27590                 .len    = 8,
27591         }, {
27592                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27593                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27594                 .klen   = 16,
27595                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27596                 .ctext  = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27597                 .len    = 8,
27598         }, {
27599                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27600                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27601                 .klen   = 16,
27602                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27603                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27604                 .ctext  = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27605                           "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27606                 .len    = 16,
27607         }, {
27608                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27609                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27610                 .klen   = 16,
27611                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27612                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27613                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27614                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27615                 .ctext  = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27616                           "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27617                           "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27618                           "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27619                 .len    = 32,
27620         }
27621 };
27622
27623 /*
27624  * KHAZAD test vectors.
27625  */
27626 static const struct cipher_testvec khazad_tv_template[] = {
27627         {
27628                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
27629                           "\x00\x00\x00\x00\x00\x00\x00\x00",
27630                 .klen   = 16,
27631                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27632                 .ctext  = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27633                 .len    = 8,
27634         }, {
27635                 .key    = "\x38\x38\x38\x38\x38\x38\x38\x38"
27636                           "\x38\x38\x38\x38\x38\x38\x38\x38",
27637                 .klen   = 16,
27638                 .ptext  = "\x38\x38\x38\x38\x38\x38\x38\x38",
27639                 .ctext  = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27640                 .len    = 8,
27641         }, {
27642                 .key    = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27643                         "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27644                 .klen   = 16,
27645                 .ptext  = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27646                 .ctext  = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27647                 .len    = 8,
27648         }, {
27649                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27650                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27651                 .klen   = 16,
27652                 .ptext  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27653                 .ctext  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27654                 .len    = 8,
27655         }, {
27656                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27657                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27658                 .klen   = 16,
27659                 .ptext  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27660                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27661                 .ctext  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27662                         "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27663                 .len    = 16,
27664         },
27665 };
27666
27667 /*
27668  * Anubis test vectors.
27669  */
27670
27671 static const struct cipher_testvec anubis_tv_template[] = {
27672         {
27673                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27674                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27675                 .klen   = 16,
27676                 .ptext  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27677                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27678                 .ctext  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27679                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27680                 .len    = 16,
27681         }, {
27682
27683                 .key    = "\x03\x03\x03\x03\x03\x03\x03\x03"
27684                           "\x03\x03\x03\x03\x03\x03\x03\x03"
27685                           "\x03\x03\x03\x03",
27686                 .klen   = 20,
27687                 .ptext  = "\x03\x03\x03\x03\x03\x03\x03\x03"
27688                           "\x03\x03\x03\x03\x03\x03\x03\x03",
27689                 .ctext  = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27690                           "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27691                 .len    = 16,
27692         }, {
27693                 .key    = "\x24\x24\x24\x24\x24\x24\x24\x24"
27694                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27695                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27696                           "\x24\x24\x24\x24",
27697                 .klen   = 28,
27698                 .ptext  = "\x24\x24\x24\x24\x24\x24\x24\x24"
27699                           "\x24\x24\x24\x24\x24\x24\x24\x24",
27700                 .ctext  = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27701                           "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27702                 .len    = 16,
27703         }, {
27704                 .key    = "\x25\x25\x25\x25\x25\x25\x25\x25"
27705                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27706                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27707                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27708                 .klen   = 32,
27709                 .ptext  = "\x25\x25\x25\x25\x25\x25\x25\x25"
27710                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27711                 .ctext  = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27712                         "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27713                 .len    = 16,
27714         }, {
27715                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27716                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27717                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27718                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27719                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27720                 .klen   = 40,
27721                 .ptext  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27722                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27723                 .ctext  = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27724                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27725                 .len    = 16,
27726         },
27727 };
27728
27729 static const struct cipher_testvec anubis_cbc_tv_template[] = {
27730         {
27731                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27732                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27733                 .klen   = 16,
27734                 .ptext  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27735                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27736                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27737                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27738                 .ctext  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27739                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27740                           "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27741                           "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27742                 .len    = 32,
27743         }, {
27744                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27745                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27746                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27747                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27748                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27749                 .klen   = 40,
27750                 .ptext  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27751                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27752                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27753                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27754                 .ctext  = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27755                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27756                           "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27757                           "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27758                 .len    = 32,
27759         },
27760 };
27761
27762 /*
27763  * XETA test vectors
27764  */
27765 static const struct cipher_testvec xeta_tv_template[] = {
27766         {
27767                 .key    = zeroed_string,
27768                 .klen   = 16,
27769                 .ptext  = zeroed_string,
27770                 .ctext  = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27771                 .len    = 8,
27772         }, {
27773                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27774                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27775                 .klen   = 16,
27776                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27777                 .ctext  = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27778                 .len    = 8,
27779         }, {
27780                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27781                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27782                 .klen   = 16,
27783                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27784                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27785                 .ctext  = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27786                           "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27787                 .len    = 16,
27788         }, {
27789                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27790                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27791                 .klen   = 16,
27792                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27793                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27794                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27795                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27796                 .ctext  = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27797                           "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27798                           "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27799                           "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27800                 .len    = 32,
27801         }
27802 };
27803
27804 /*
27805  * FCrypt test vectors
27806  */
27807 static const struct cipher_testvec fcrypt_pcbc_tv_template[] = {
27808         { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27809                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
27810                 .klen   = 8,
27811                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27812                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27813                 .ctext  = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27814                 .len    = 8,
27815         }, {
27816                 .key    = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27817                 .klen   = 8,
27818                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27819                 .ptext  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27820                 .ctext  = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27821                 .len    = 8,
27822         }, { /* From Arla */
27823                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27824                 .klen   = 8,
27825                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27826                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27827                 .ctext  = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27828                           "\xee\xac\x98\x62\x44\x51\xe4\x84"
27829                           "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27830                           "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27831                           "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27832                           "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27833                 .len    = 48,
27834         }, {
27835                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27836                 .klen   = 8,
27837                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27838                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27839                 .ctext  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27840                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27841                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27842                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27843                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27844                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27845                 .len    = 48,
27846         }, { /* split-page version */
27847                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27848                 .klen   = 8,
27849                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27850                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27851                 .ctext  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27852                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27853                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27854                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27855                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27856                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27857                 .len    = 48,
27858                 .np     = 2,
27859                 .tap    = { 20, 28 },
27860         }
27861 };
27862
27863 /*
27864  * CAMELLIA test vectors.
27865  */
27866 static const struct cipher_testvec camellia_tv_template[] = {
27867         {
27868                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27869                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27870                 .klen   = 16,
27871                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27872                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27873                 .ctext  = "\x67\x67\x31\x38\x54\x96\x69\x73"
27874                           "\x08\x57\x06\x56\x48\xea\xbe\x43",
27875                 .len    = 16,
27876         }, {
27877                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27878                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27879                           "\x00\x11\x22\x33\x44\x55\x66\x77",
27880                 .klen   = 24,
27881                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27882                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27883                 .ctext  = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27884                           "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27885                 .len    = 16,
27886         }, {
27887                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27888                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27889                           "\x00\x11\x22\x33\x44\x55\x66\x77"
27890                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27891                 .klen   = 32,
27892                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27893                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27894                 .ctext  = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27895                           "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27896                 .len    = 16,
27897         }, { /* Generated with Crypto++ */
27898                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27899                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27900                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27901                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27902                 .klen   = 32,
27903                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27904                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27905                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27906                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27907                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27908                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27909                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27910                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27911                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27912                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27913                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27914                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27915                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27916                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27917                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27918                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27919                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27920                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27921                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27922                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27923                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27924                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27925                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27926                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27927                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27928                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27929                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27930                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27931                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27932                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27933                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27934                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27935                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27936                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27937                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27938                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27939                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27940                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27941                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27942                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27943                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27944                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27945                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27946                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27947                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27948                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27949                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27950                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27951                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27952                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27953                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27954                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27955                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27956                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27957                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27958                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27959                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27960                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27961                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27962                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27963                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27964                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27965                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27966                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27967                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27968                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27969                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27970                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27971                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27972                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27973                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27974                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27975                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27976                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27977                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27978                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27979                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27980                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27981                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27982                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27983                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27984                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27985                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27986                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27987                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27988                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27989                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27990                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27991                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27992                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27993                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27994                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27995                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27996                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27997                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27998                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27999                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28000                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28001                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28002                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28003                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28004                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28005                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28006                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28007                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28008                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28009                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28010                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28011                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28012                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28013                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28014                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28015                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28016                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28017                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28018                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28019                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28020                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28021                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28022                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28023                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28024                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28025                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28026                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28027                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28028                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28029                 .ctext  = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
28030                           "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
28031                           "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
28032                           "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
28033                           "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
28034                           "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
28035                           "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
28036                           "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
28037                           "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
28038                           "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
28039                           "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
28040                           "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
28041                           "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
28042                           "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
28043                           "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
28044                           "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
28045                           "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
28046                           "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
28047                           "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
28048                           "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
28049                           "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
28050                           "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
28051                           "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
28052                           "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
28053                           "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
28054                           "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
28055                           "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
28056                           "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
28057                           "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
28058                           "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
28059                           "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
28060                           "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
28061                           "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
28062                           "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
28063                           "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
28064                           "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
28065                           "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
28066                           "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
28067                           "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
28068                           "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
28069                           "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
28070                           "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
28071                           "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
28072                           "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
28073                           "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
28074                           "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
28075                           "\x83\x06\xAB\x82\x99\x01\x16\x1A"
28076                           "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
28077                           "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
28078                           "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
28079                           "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
28080                           "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
28081                           "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
28082                           "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
28083                           "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
28084                           "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
28085                           "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
28086                           "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
28087                           "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
28088                           "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
28089                           "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
28090                           "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
28091                           "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
28092                           "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
28093                           "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
28094                           "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
28095                           "\xED\x28\x39\xE9\x63\xED\x41\x70"
28096                           "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
28097                           "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
28098                           "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
28099                           "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
28100                           "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
28101                           "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
28102                           "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
28103                           "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
28104                           "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
28105                           "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
28106                           "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
28107                           "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
28108                           "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
28109                           "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
28110                           "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
28111                           "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
28112                           "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
28113                           "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
28114                           "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
28115                           "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
28116                           "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
28117                           "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
28118                           "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
28119                           "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
28120                           "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
28121                           "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
28122                           "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
28123                           "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
28124                           "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
28125                           "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
28126                           "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
28127                           "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
28128                           "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
28129                           "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
28130                           "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
28131                           "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
28132                           "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
28133                           "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
28134                           "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
28135                           "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
28136                           "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
28137                           "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
28138                           "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
28139                           "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
28140                           "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
28141                           "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
28142                           "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
28143                           "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
28144                           "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
28145                           "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
28146                           "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
28147                           "\x31\x93\x51\x1C\x63\x97\x70\xB0"
28148                           "\x99\x78\x83\x13\xFD\xCF\x53\x81"
28149                           "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
28150                           "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
28151                           "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
28152                           "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
28153                           "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
28154                           "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
28155                 .len    = 1008,
28156                 .also_non_np = 1,
28157                 .np     = 3,
28158                 .tap    = { 1008 - 20, 4, 16 },
28159         },
28160 };
28161
28162 static const struct cipher_testvec camellia_cbc_tv_template[] = {
28163         {
28164                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28165                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28166                 .klen   = 16,
28167                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28168                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28169                 .ptext  = "Single block msg",
28170                 .ctext  = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28171                           "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28172                 .len    = 16,
28173         }, {
28174                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28175                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28176                 .klen   = 16,
28177                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28178                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28179                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
28180                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28181                           "\x10\x11\x12\x13\x14\x15\x16\x17"
28182                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28183                 .ctext  = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28184                           "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28185                           "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28186                           "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28187                 .len    = 32,
28188         }, { /* Generated with Crypto++ */
28189                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28190                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28191                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28192                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28193                 .klen   = 32,
28194                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28195                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28196                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28197                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28198                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28199                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28200                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28201                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28202                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28203                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28204                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28205                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28206                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28207                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28208                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28209                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28210                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28211                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28212                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28213                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28214                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28215                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28216                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28217                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28218                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28219                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28220                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28221                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28222                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28223                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28224                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28225                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28226                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28227                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28228                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28229                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28230                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28231                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28232                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28233                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28234                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28235                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28236                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28237                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28238                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28239                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28240                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28241                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28242                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28243                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28244                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28245                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28246                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28247                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28248                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28249                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28250                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28251                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28252                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28253                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28254                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28255                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28256                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28257                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28258                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28259                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28260                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28261                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28262                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28263                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28264                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28265                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28266                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28267                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28268                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28269                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28270                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28271                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28272                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28273                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28274                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28275                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28276                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28277                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28278                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28279                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28280                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28281                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28282                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28283                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28284                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28285                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28286                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28287                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28288                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28289                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28290                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28291                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28292                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28293                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28294                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28295                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28296                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28297                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28298                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28299                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28300                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28301                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28302                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28303                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28304                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28305                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28306                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28307                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28308                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28309                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28310                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28311                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28312                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28313                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28314                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28315                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28316                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28317                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28318                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28319                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28320                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28321                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28322                 .ctext  = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28323                           "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28324                           "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28325                           "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28326                           "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28327                           "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28328                           "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28329                           "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28330                           "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28331                           "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28332                           "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28333                           "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28334                           "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28335                           "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28336                           "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28337                           "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28338                           "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28339                           "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28340                           "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28341                           "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28342                           "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28343                           "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28344                           "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28345                           "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28346                           "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28347                           "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28348                           "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28349                           "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28350                           "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28351                           "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28352                           "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28353                           "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28354                           "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28355                           "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28356                           "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28357                           "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28358                           "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28359                           "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28360                           "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28361                           "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28362                           "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28363                           "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28364                           "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28365                           "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28366                           "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28367                           "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28368                           "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28369                           "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28370                           "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28371                           "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28372                           "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28373                           "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28374                           "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28375                           "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28376                           "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28377                           "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28378                           "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28379                           "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28380                           "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28381                           "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28382                           "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28383                           "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28384                           "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28385                           "\x21\x41\x56\x72\x13\xE1\x86\x07"
28386                           "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28387                           "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28388                           "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28389                           "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28390                           "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28391                           "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28392                           "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28393                           "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28394                           "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28395                           "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28396                           "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28397                           "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28398                           "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28399                           "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28400                           "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28401                           "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28402                           "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28403                           "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28404                           "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28405                           "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28406                           "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28407                           "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28408                           "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28409                           "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28410                           "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28411                           "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28412                           "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28413                           "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28414                           "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28415                           "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28416                           "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28417                           "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28418                           "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28419                           "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28420                           "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28421                           "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28422                           "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28423                           "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28424                           "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28425                           "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28426                           "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28427                           "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28428                           "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28429                           "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28430                           "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28431                           "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28432                           "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28433                           "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28434                           "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28435                           "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28436                           "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28437                           "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28438                           "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28439                           "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28440                           "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28441                           "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28442                           "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28443                           "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28444                           "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28445                           "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28446                           "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28447                           "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28448                 .len    = 1008,
28449                 .also_non_np = 1,
28450                 .np     = 3,
28451                 .tap    = { 1008 - 20, 4, 16 },
28452         },
28453 };
28454
28455 static const struct cipher_testvec camellia_ctr_tv_template[] = {
28456         { /* Generated with Crypto++ */
28457                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28458                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28459                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28460                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28461                 .klen   = 32,
28462                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28463                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28464                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28465                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28466                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28467                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28468                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28469                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28470                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28471                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28472                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28473                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28474                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28475                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28476                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28477                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28478                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28479                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28480                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28481                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28482                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28483                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28484                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28485                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28486                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28487                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28488                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28489                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28490                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28491                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28492                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28493                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28494                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28495                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28496                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28497                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28498                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28499                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28500                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28501                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28502                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28503                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28504                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28505                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28506                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28507                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28508                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28509                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28510                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28511                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28512                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28513                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28514                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28515                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28516                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28517                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28518                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28519                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28520                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28521                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28522                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28523                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28524                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28525                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
28526                 .ctext  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28527                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28528                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28529                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28530                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28531                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28532                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28533                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28534                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28535                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28536                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28537                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28538                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28539                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28540                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28541                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28542                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28543                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28544                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28545                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28546                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28547                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28548                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28549                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28550                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28551                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28552                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28553                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28554                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28555                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28556                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28557                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28558                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28559                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28560                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28561                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28562                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28563                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28564                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28565                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28566                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28567                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28568                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28569                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28570                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28571                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28572                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28573                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28574                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28575                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28576                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
28577                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28578                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28579                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28580                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28581                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28582                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28583                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28584                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28585                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28586                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28587                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
28588                 .len    = 496,
28589         }, { /* Generated with Crypto++ */
28590                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28591                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28592                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28593                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28594                 .klen   = 32,
28595                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28596                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28597                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28598                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28599                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28600                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28601                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28602                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28603                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28604                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28605                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28606                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28607                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28608                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28609                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28610                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28611                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28612                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28613                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28614                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28615                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28616                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28617                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28618                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28619                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28620                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28621                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28622                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28623                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28624                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28625                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28626                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28627                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28628                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28629                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28630                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28631                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28632                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28633                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28634                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28635                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28636                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28637                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28638                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28639                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28640                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28641                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28642                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28643                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28644                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28645                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28646                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28647                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28648                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28649                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28650                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28651                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28652                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28653                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28654                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28655                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28656                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28657                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28658                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28659                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28660                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28661                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28662                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28663                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28664                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28665                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28666                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28667                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28668                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28669                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28670                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28671                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28672                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28673                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28674                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28675                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28676                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28677                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28678                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28679                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28680                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28681                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28682                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28683                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28684                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28685                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28686                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28687                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28688                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28689                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28690                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28691                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28692                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28693                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28694                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28695                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28696                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28697                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28698                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28699                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28700                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28701                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28702                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28703                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28704                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28705                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28706                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28707                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28708                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28709                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28710                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28711                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28712                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28713                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28714                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28715                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28716                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28717                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28718                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28719                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28720                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28721                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28722                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
28723                           "\xE4\x7B\x12",
28724                 .ctext  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28725                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28726                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28727                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28728                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28729                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28730                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28731                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28732                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28733                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28734                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28735                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28736                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28737                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28738                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28739                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28740                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28741                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28742                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28743                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28744                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28745                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28746                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28747                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28748                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28749                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28750                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28751                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28752                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28753                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28754                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28755                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28756                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28757                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28758                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28759                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28760                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28761                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28762                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28763                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28764                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28765                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28766                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28767                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28768                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28769                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28770                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28771                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28772                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28773                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28774                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
28775                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28776                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28777                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28778                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28779                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28780                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28781                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28782                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28783                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28784                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28785                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
28786                           "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
28787                           "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
28788                           "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
28789                           "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
28790                           "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
28791                           "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
28792                           "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
28793                           "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
28794                           "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
28795                           "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
28796                           "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
28797                           "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
28798                           "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
28799                           "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
28800                           "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
28801                           "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
28802                           "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
28803                           "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
28804                           "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
28805                           "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
28806                           "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
28807                           "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
28808                           "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
28809                           "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
28810                           "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
28811                           "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
28812                           "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
28813                           "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
28814                           "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
28815                           "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
28816                           "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
28817                           "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
28818                           "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
28819                           "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
28820                           "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
28821                           "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
28822                           "\x00\x70\x12\x56\x56\x50\xAD\x14"
28823                           "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
28824                           "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
28825                           "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
28826                           "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
28827                           "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
28828                           "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
28829                           "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
28830                           "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
28831                           "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
28832                           "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
28833                           "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
28834                           "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
28835                           "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
28836                           "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
28837                           "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
28838                           "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
28839                           "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
28840                           "\x40\x48\x19\x73\x7C\x78\x64\x0B"
28841                           "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
28842                           "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
28843                           "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
28844                           "\x74\x28\x9D\x05\x30\x20\x62\x41"
28845                           "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
28846                           "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
28847                           "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
28848                           "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
28849                           "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
28850                           "\xF1\x6B\xD9",
28851                 .len    = 1011,
28852                 .also_non_np = 1,
28853                 .np     = 2,
28854                 .tap    = { 1011 - 16, 16 },
28855         }, { /* Generated with Crypto++ */
28856                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28857                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28858                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28859                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28860                 .klen   = 32,
28861                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
28862                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
28863                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28864                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28865                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28866                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28867                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28868                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28869                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28870                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28871                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28872                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28873                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28874                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28875                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28876                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28877                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28878                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28879                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28880                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28881                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28882                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28883                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28884                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28885                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28886                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28887                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28888                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28889                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28890                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28891                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28892                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28893                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28894                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28895                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28896                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28897                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28898                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28899                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28900                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28901                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28902                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28903                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28904                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28905                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28906                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28907                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28908                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28909                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28910                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28911                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28912                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28913                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28914                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28915                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28916                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28917                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28918                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28919                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28920                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28921                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28922                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28923                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28924                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28925                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28926                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28927                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28928                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28929                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28930                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28931                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28932                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28933                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28934                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28935                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28936                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28937                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28938                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28939                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28940                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28941                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28942                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28943                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28944                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28945                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28946                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28947                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28948                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28949                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28950                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28951                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28952                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28953                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28954                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28955                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28956                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28957                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28958                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28959                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28960                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28961                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28962                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28963                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28964                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28965                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28966                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28967                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28968                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28969                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28970                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28971                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28972                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28973                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28974                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28975                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28976                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28977                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28978                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28979                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28980                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28981                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28982                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28983                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28984                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28985                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28986                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28987                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28988                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28989                 .ctext  = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
28990                           "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
28991                           "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
28992                           "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
28993                           "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
28994                           "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
28995                           "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
28996                           "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
28997                           "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
28998                           "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
28999                           "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29000                           "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29001                           "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29002                           "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29003                           "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29004                           "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29005                           "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29006                           "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29007                           "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29008                           "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29009                           "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29010                           "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29011                           "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29012                           "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29013                           "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29014                           "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29015                           "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29016                           "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29017                           "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29018                           "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29019                           "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29020                           "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29021                           "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29022                           "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29023                           "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29024                           "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29025                           "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29026                           "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29027                           "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29028                           "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29029                           "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29030                           "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29031                           "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29032                           "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29033                           "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29034                           "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29035                           "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29036                           "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29037                           "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29038                           "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29039                           "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29040                           "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29041                           "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29042                           "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29043                           "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29044                           "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29045                           "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29046                           "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29047                           "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29048                           "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29049                           "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
29050                           "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29051                           "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29052                           "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29053                           "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29054                           "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29055                           "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29056                           "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29057                           "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29058                           "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29059                           "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29060                           "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29061                           "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29062                           "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29063                           "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29064                           "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29065                           "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29066                           "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29067                           "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29068                           "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29069                           "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29070                           "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29071                           "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29072                           "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29073                           "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29074                           "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29075                           "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29076                           "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29077                           "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29078                           "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29079                           "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29080                           "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29081                           "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29082                           "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29083                           "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29084                           "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29085                           "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29086                           "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29087                           "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29088                           "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29089                           "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29090                           "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29091                           "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29092                           "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29093                           "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29094                           "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29095                           "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29096                           "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29097                           "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29098                           "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29099                           "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29100                           "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29101                           "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29102                           "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29103                           "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29104                           "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
29105                           "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
29106                           "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
29107                           "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
29108                           "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
29109                           "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
29110                           "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
29111                           "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
29112                           "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
29113                           "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
29114                           "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
29115                 .len    = 1008,
29116         },
29117 };
29118
29119 static const struct cipher_testvec camellia_lrw_tv_template[] = {
29120         /* Generated from AES-LRW test vectors */
29121         {
29122                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
29123                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
29124                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
29125                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
29126                 .klen   = 32,
29127                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29128                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29129                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29130                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29131                 .ctext  = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
29132                           "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
29133                 .len    = 16,
29134         }, {
29135                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
29136                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
29137                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
29138                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
29139                 .klen   = 32,
29140                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29141                           "\x00\x00\x00\x00\x00\x00\x00\x02",
29142                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29143                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29144                 .ctext  = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
29145                           "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
29146                 .len    = 16,
29147         }, {
29148                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
29149                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
29150                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
29151                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
29152                 .klen   = 32,
29153                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29154                           "\x00\x00\x00\x02\x00\x00\x00\x00",
29155                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29156                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29157                 .ctext  = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
29158                           "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
29159                 .len    = 16,
29160         }, {
29161                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
29162                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
29163                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
29164                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
29165                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
29166                 .klen   = 40,
29167                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29168                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29169                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29170                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29171                 .ctext  = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
29172                           "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
29173                 .len    = 16,
29174         }, {
29175                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
29176                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
29177                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
29178                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
29179                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
29180                 .klen   = 40,
29181                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29182                           "\x00\x00\x00\x02\x00\x00\x00\x00",
29183                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29184                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29185                 .ctext  = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
29186                           "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
29187                 .len    = 16,
29188         }, {
29189                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
29190                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
29191                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
29192                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
29193                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
29194                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
29195                 .klen   = 48,
29196                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29197                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29198                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29199                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29200                 .ctext  = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
29201                           "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
29202                 .len    = 16,
29203         }, {
29204                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
29205                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
29206                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
29207                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
29208                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
29209                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
29210                 .klen   = 48,
29211                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29212                           "\x00\x00\x00\x02\x00\x00\x00\x00",
29213                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29214                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29215                 .ctext  = "\x04\xab\x28\x37\x31\x7a\x26\xab"
29216                           "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
29217                 .len    = 16,
29218         }, {
29219                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
29220                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
29221                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
29222                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
29223                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
29224                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
29225                 .klen   = 48,
29226                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29227                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29228                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
29229                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
29230                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
29231                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
29232                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
29233                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
29234                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
29235                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
29236                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
29237                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
29238                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
29239                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
29240                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
29241                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
29242                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
29243                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
29244                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
29245                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
29246                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
29247                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
29248                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
29249                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
29250                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
29251                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
29252                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
29253                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
29254                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
29255                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
29256                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
29257                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
29258                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
29259                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
29260                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
29261                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
29262                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
29263                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
29264                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
29265                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
29266                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
29267                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
29268                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
29269                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
29270                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
29271                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
29272                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
29273                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
29274                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
29275                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
29276                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
29277                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
29278                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
29279                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
29280                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
29281                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
29282                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
29283                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
29284                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
29285                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
29286                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
29287                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
29288                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
29289                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
29290                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
29291                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
29292                 .ctext  = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
29293                           "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
29294                           "\x67\x76\xac\x2c\xd2\x63\x18\x93"
29295                           "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
29296                           "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
29297                           "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
29298                           "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
29299                           "\x62\xdd\x78\x81\xea\x1d\xef\x04"
29300                           "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
29301                           "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
29302                           "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
29303                           "\x40\x41\x69\xaa\x71\xc0\x37\xec"
29304                           "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
29305                           "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
29306                           "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
29307                           "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
29308                           "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
29309                           "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
29310                           "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
29311                           "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
29312                           "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
29313                           "\x42\x08\x40\x82\x06\x1c\x2d\x55"
29314                           "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
29315                           "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
29316                           "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
29317                           "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
29318                           "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
29319                           "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
29320                           "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
29321                           "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
29322                           "\xed\x14\xa9\x57\x19\x63\x40\x04"
29323                           "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
29324                           "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
29325                           "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
29326                           "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
29327                           "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
29328                           "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
29329                           "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
29330                           "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
29331                           "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
29332                           "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
29333                           "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
29334                           "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
29335                           "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
29336                           "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
29337                           "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
29338                           "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
29339                           "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
29340                           "\x35\xa5\x83\x04\x84\x01\x99\x56"
29341                           "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
29342                           "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
29343                           "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
29344                           "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
29345                           "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
29346                           "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
29347                           "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
29348                           "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
29349                           "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
29350                           "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
29351                           "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
29352                           "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
29353                           "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
29354                           "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
29355                           "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
29356                 .len    = 512,
29357                 .also_non_np = 1,
29358                 .np     = 3,
29359                 .tap    = { 512 - 20, 4, 16 },
29360         },
29361 };
29362
29363 static const struct cipher_testvec camellia_xts_tv_template[] = {
29364         /* Generated from AES-XTS test vectors */
29365         {
29366                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29367                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29368                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29369                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29370                 .klen   = 32,
29371                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29372                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29373                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29374                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29375                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29376                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29377                 .ctext  = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
29378                           "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
29379                           "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
29380                           "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
29381                 .len    = 32,
29382         }, {
29383                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
29384                           "\x11\x11\x11\x11\x11\x11\x11\x11"
29385                           "\x22\x22\x22\x22\x22\x22\x22\x22"
29386                           "\x22\x22\x22\x22\x22\x22\x22\x22",
29387                 .klen   = 32,
29388                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
29389                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29390                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
29391                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29392                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29393                           "\x44\x44\x44\x44\x44\x44\x44\x44",
29394                 .ctext  = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
29395                           "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
29396                           "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
29397                           "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
29398                 .len    = 32,
29399         }, {
29400                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
29401                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
29402                           "\x22\x22\x22\x22\x22\x22\x22\x22"
29403                           "\x22\x22\x22\x22\x22\x22\x22\x22",
29404                 .klen   = 32,
29405                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
29406                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29407                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
29408                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29409                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29410                           "\x44\x44\x44\x44\x44\x44\x44\x44",
29411                 .ctext  = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
29412                           "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
29413                           "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
29414                           "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
29415                 .len    = 32,
29416         }, {
29417                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
29418                           "\x23\x53\x60\x28\x74\x71\x35\x26"
29419                           "\x31\x41\x59\x26\x53\x58\x97\x93"
29420                           "\x23\x84\x62\x64\x33\x83\x27\x95",
29421                 .klen   = 32,
29422                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29423                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29424                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
29425                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29426                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29427                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29428                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29429                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29430                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29431                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29432                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29433                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29434                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29435                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29436                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29437                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29438                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29439                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29440                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29441                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29442                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29443                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29444                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29445                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29446                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29447                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29448                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29449                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29450                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29451                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29452                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29453                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29454                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29455                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29456                           "\x00\x01\x02\x03\x04\x05\x06\x07"
29457                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29458                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29459                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29460                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29461                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29462                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29463                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29464                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29465                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29466                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29467                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29468                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29469                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29470                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29471                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29472                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29473                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29474                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29475                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29476                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29477                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29478                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29479                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29480                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29481                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29482                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29483                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29484                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29485                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29486                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29487                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
29488                 .ctext  = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
29489                           "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
29490                           "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
29491                           "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
29492                           "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
29493                           "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
29494                           "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
29495                           "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
29496                           "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
29497                           "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
29498                           "\x08\xda\x76\x00\x65\xcf\x7b\x31"
29499                           "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
29500                           "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
29501                           "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
29502                           "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
29503                           "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
29504                           "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
29505                           "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
29506                           "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
29507                           "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
29508                           "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
29509                           "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
29510                           "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
29511                           "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
29512                           "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
29513                           "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
29514                           "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
29515                           "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
29516                           "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
29517                           "\x16\x31\xb2\x47\x91\x67\xaa\x28"
29518                           "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
29519                           "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
29520                           "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
29521                           "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
29522                           "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
29523                           "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
29524                           "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
29525                           "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
29526                           "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
29527                           "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
29528                           "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
29529                           "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
29530                           "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
29531                           "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
29532                           "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
29533                           "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
29534                           "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
29535                           "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
29536                           "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
29537                           "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
29538                           "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
29539                           "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
29540                           "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
29541                           "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
29542                           "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
29543                           "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
29544                           "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
29545                           "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
29546                           "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
29547                           "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
29548                           "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
29549                           "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
29550                           "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
29551                           "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
29552                 .len    = 512,
29553         }, {
29554                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
29555                           "\x23\x53\x60\x28\x74\x71\x35\x26"
29556                           "\x62\x49\x77\x57\x24\x70\x93\x69"
29557                           "\x99\x59\x57\x49\x66\x96\x76\x27"
29558                           "\x31\x41\x59\x26\x53\x58\x97\x93"
29559                           "\x23\x84\x62\x64\x33\x83\x27\x95"
29560                           "\x02\x88\x41\x97\x16\x93\x99\x37"
29561                           "\x51\x05\x82\x09\x74\x94\x45\x92",
29562                 .klen   = 64,
29563                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
29564                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29565                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
29566                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29567                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29568                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29569                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29570                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29571                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29572                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29573                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29574                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29575                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29576                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29577                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29578                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29579                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29580                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29581                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29582                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29583                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29584                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29585                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29586                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29587                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29588                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29589                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29590                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29591                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29592                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29593                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29594                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29595                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29596                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29597                           "\x00\x01\x02\x03\x04\x05\x06\x07"
29598                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29599                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29600                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29601                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29602                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29603                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29604                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29605                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29606                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29607                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29608                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29609                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29610                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29611                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29612                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29613                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29614                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29615                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29616                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29617                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29618                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29619                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29620                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29621                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29622                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29623                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29624                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29625                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29626                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29627                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29628                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
29629                 .ctext  = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
29630                           "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
29631                           "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
29632                           "\xf1\x74\xac\x96\x05\x7b\x32\xca"
29633                           "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
29634                           "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
29635                           "\x97\x07\x82\xf0\x07\x12\x38\x0a"
29636                           "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
29637                           "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
29638                           "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
29639                           "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
29640                           "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
29641                           "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
29642                           "\x41\x82\x0c\x45\x39\x35\xa8\x75"
29643                           "\x03\x29\x01\x84\x8c\xab\x48\xbe"
29644                           "\x11\x56\x22\x67\xb7\x67\x1a\x09"
29645                           "\xa1\x72\x25\x41\x3c\x39\x65\x80"
29646                           "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
29647                           "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
29648                           "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
29649                           "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
29650                           "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
29651                           "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
29652                           "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
29653                           "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
29654                           "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
29655                           "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
29656                           "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
29657                           "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
29658                           "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
29659                           "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
29660                           "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
29661                           "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
29662                           "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
29663                           "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
29664                           "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
29665                           "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
29666                           "\xef\x38\x52\x18\x0e\x29\x7e\xef"
29667                           "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
29668                           "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
29669                           "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
29670                           "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
29671                           "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
29672                           "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
29673                           "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
29674                           "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
29675                           "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
29676                           "\x21\x17\xf8\x59\x15\x24\x64\x22"
29677                           "\x57\x48\x80\xd5\x3d\x92\x30\x07"
29678                           "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
29679                           "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
29680                           "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
29681                           "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
29682                           "\x6b\x84\xf3\x00\xba\x52\x05\x02"
29683                           "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
29684                           "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
29685                           "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
29686                           "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
29687                           "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
29688                           "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
29689                           "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
29690                           "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
29691                           "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
29692                           "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
29693                 .len    = 512,
29694                 .also_non_np = 1,
29695                 .np     = 3,
29696                 .tap    = { 512 - 20, 4, 16 },
29697         },
29698 };
29699
29700 /*
29701  * SEED test vectors
29702  */
29703 static const struct cipher_testvec seed_tv_template[] = {
29704         {
29705                 .key    = zeroed_string,
29706                 .klen   = 16,
29707                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
29708                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
29709                 .ctext  = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
29710                           "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
29711                 .len    = 16,
29712         }, {
29713                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
29714                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
29715                 .klen   = 16,
29716                 .ptext  = zeroed_string,
29717                 .ctext  = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
29718                           "\x84\x48\x35\x97\xe4\x37\x0f\x43",
29719                 .len    = 16,
29720         }, {
29721                 .key    = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
29722                           "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
29723                 .klen   = 16,
29724                 .ptext  = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
29725                           "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
29726                 .ctext  = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
29727                           "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
29728                 .len    = 16,
29729         }, {
29730                 .key    = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
29731                           "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
29732                 .klen   = 16,
29733                 .ptext  = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
29734                           "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
29735                 .ctext  = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
29736                           "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
29737                 .len    = 16,
29738         }
29739 };
29740
29741 static const struct cipher_testvec salsa20_stream_tv_template[] = {
29742         /*
29743         * Testvectors from verified.test-vectors submitted to ECRYPT.
29744         * They are truncated to size 39, 64, 111, 129 to test a variety
29745         * of input length.
29746         */
29747         { /* Set 3, vector 0 */
29748                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
29749                         "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
29750                 .klen   = 16,
29751                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
29752                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29753                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29754                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29755                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29756                         "\x00\x00\x00\x00\x00\x00\x00",
29757                 .ctext  = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
29758                          "\x68\x02\x41\x0C\x68\x86\x88\x89"
29759                          "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
29760                          "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
29761                          "\x58\x3F\x52\x79\x70\xEB\xC1",
29762                 .len    = 39,
29763         }, { /* Set 5, vector 0 */
29764                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29765                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29766                 .klen   = 16,
29767                 .iv     = "\x80\x00\x00\x00\x00\x00\x00\x00",
29768                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29769                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29770                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29771                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29772                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29773                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29774                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29775                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29776                 .ctext  = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
29777                          "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
29778                          "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
29779                          "\x46\x26\xBF\x44\x3F\x21\x97\x76"
29780                          "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
29781                          "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
29782                          "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
29783                          "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
29784                 .len    = 64,
29785         }, { /* Set 3, vector 27 */
29786                 .key    = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
29787                         "\x23\x24\x25\x26\x27\x28\x29\x2A"
29788                         "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
29789                         "\x33\x34\x35\x36\x37\x38\x39\x3A",
29790                 .klen   = 32,
29791                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
29792                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29793                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29794                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29795                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29796                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29797                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29798                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29799                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29800                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29801                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29802                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29803                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29804                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29805                         "\x00\x00\x00\x00\x00\x00\x00",
29806                 .ctext  = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
29807                          "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
29808                          "\x87\xD9\x47\xF8\x28\x91\x35\x98"
29809                          "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
29810                          "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
29811                          "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
29812                          "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
29813                          "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
29814                          "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
29815                          "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
29816                          "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
29817                          "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
29818                          "\x95\x46\x45\x54\xE9\x75\x03\x08"
29819                          "\x44\xAF\xE5\x8A\x81\x12\x09",
29820                 .len    = 111,
29821         }, { /* Set 5, vector 27 */
29822                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29823                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29824                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29825                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29826                 .klen   = 32,
29827                 .iv     = "\x00\x00\x00\x10\x00\x00\x00\x00",
29828                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29829                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29830                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29831                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29832                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29833                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29834                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29835                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29836                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29837                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29838                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29839                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29840                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29841                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29842                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29843                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29844                         "\x00",
29845                 .ctext  = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
29846                          "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
29847                          "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
29848                          "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
29849                          "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
29850                          "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
29851                          "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
29852                          "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
29853                          "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
29854                          "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
29855                          "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
29856                          "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
29857                          "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
29858                          "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
29859                          "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
29860                          "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
29861                          "\x5A",
29862                 .len    = 129,
29863         }, { /* large test vector generated using Crypto++ */
29864                 .key =  "\x00\x01\x02\x03\x04\x05\x06\x07"
29865                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29866                         "\x10\x11\x12\x13\x14\x15\x16\x17"
29867                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
29868                 .klen = 32,
29869                 .iv =   "\x00\x00\x00\x00\x00\x00\x00\x00"
29870                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29871                 .ptext =
29872                         "\x00\x01\x02\x03\x04\x05\x06\x07"
29873                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29874                         "\x10\x11\x12\x13\x14\x15\x16\x17"
29875                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29876                         "\x20\x21\x22\x23\x24\x25\x26\x27"
29877                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29878                         "\x30\x31\x32\x33\x34\x35\x36\x37"
29879                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29880                         "\x40\x41\x42\x43\x44\x45\x46\x47"
29881                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29882                         "\x50\x51\x52\x53\x54\x55\x56\x57"
29883                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29884                         "\x60\x61\x62\x63\x64\x65\x66\x67"
29885                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29886                         "\x70\x71\x72\x73\x74\x75\x76\x77"
29887                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29888                         "\x80\x81\x82\x83\x84\x85\x86\x87"
29889                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29890                         "\x90\x91\x92\x93\x94\x95\x96\x97"
29891                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29892                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29893                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29894                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29895                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29896                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29897                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29898                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29899                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29900                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29901                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29902                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29903                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29904                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
29905                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
29906                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
29907                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
29908                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
29909                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
29910                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
29911                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
29912                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
29913                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
29914                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
29915                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
29916                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
29917                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
29918                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
29919                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
29920                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
29921                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
29922                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
29923                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
29924                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
29925                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
29926                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
29927                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
29928                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
29929                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
29930                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
29931                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
29932                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
29933                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
29934                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
29935                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
29936                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
29937                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
29938                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
29939                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
29940                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
29941                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
29942                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
29943                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
29944                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
29945                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
29946                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
29947                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
29948                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
29949                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
29950                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
29951                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
29952                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
29953                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
29954                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
29955                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
29956                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
29957                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
29958                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
29959                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
29960                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
29961                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
29962                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
29963                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
29964                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
29965                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
29966                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
29967                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
29968                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
29969                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
29970                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
29971                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
29972                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
29973                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
29974                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
29975                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
29976                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
29977                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
29978                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
29979                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
29980                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
29981                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
29982                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
29983                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
29984                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
29985                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
29986                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
29987                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
29988                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
29989                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
29990                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
29991                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
29992                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
29993                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
29994                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
29995                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
29996                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
29997                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
29998                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
29999                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
30000                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
30001                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
30002                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
30003                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
30004                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
30005                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
30006                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
30007                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
30008                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
30009                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
30010                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
30011                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
30012                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
30013                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
30014                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
30015                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
30016                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
30017                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
30018                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
30019                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
30020                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
30021                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
30022                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
30023                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
30024                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
30025                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
30026                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
30027                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
30028                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
30029                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
30030                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
30031                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
30032                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
30033                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
30034                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
30035                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
30036                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
30037                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
30038                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
30039                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
30040                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
30041                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
30042                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
30043                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
30044                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
30045                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
30046                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
30047                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
30048                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
30049                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
30050                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
30051                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
30052                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
30053                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
30054                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
30055                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
30056                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
30057                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
30058                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
30059                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
30060                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
30061                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
30062                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
30063                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
30064                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
30065                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
30066                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
30067                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
30068                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
30069                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
30070                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
30071                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
30072                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
30073                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
30074                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
30075                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
30076                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
30077                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
30078                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
30079                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
30080                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
30081                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
30082                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
30083                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
30084                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
30085                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
30086                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
30087                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
30088                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
30089                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
30090                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
30091                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
30092                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
30093                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
30094                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
30095                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
30096                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
30097                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
30098                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
30099                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
30100                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
30101                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
30102                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
30103                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
30104                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
30105                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
30106                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
30107                         "\x28\x37\x46\x55\x64\x73\x82\x91"
30108                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
30109                         "\x18\x27\x36\x45\x54\x63\x72\x81"
30110                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
30111                         "\x08\x17\x26\x35\x44\x53\x62\x71"
30112                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
30113                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
30114                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
30115                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
30116                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
30117                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
30118                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
30119                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
30120                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
30121                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
30122                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
30123                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
30124                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
30125                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
30126                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
30127                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
30128                         "\x00\x11\x22\x33\x44\x55\x66\x77"
30129                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
30130                         "\x10\x21\x32\x43\x54\x65\x76\x87"
30131                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
30132                         "\x20\x31\x42\x53\x64\x75\x86\x97"
30133                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
30134                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
30135                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
30136                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
30137                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
30138                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
30139                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
30140                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
30141                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
30142                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
30143                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
30144                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
30145                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
30146                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
30147                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
30148                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
30149                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
30150                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
30151                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
30152                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
30153                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
30154                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
30155                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
30156                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
30157                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
30158                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
30159                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
30160                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
30161                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
30162                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
30163                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
30164                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
30165                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
30166                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
30167                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
30168                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
30169                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
30170                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
30171                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
30172                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
30173                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
30174                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
30175                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
30176                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
30177                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
30178                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
30179                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
30180                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
30181                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
30182                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
30183                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
30184                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
30185                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
30186                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
30187                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
30188                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
30189                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
30190                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
30191                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
30192                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
30193                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
30194                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
30195                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
30196                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
30197                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
30198                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
30199                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
30200                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
30201                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
30202                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
30203                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
30204                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
30205                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
30206                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
30207                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
30208                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
30209                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
30210                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
30211                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
30212                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
30213                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
30214                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
30215                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
30216                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
30217                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
30218                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
30219                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
30220                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
30221                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
30222                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
30223                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
30224                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
30225                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
30226                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
30227                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
30228                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
30229                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
30230                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
30231                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
30232                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
30233                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
30234                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
30235                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
30236                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
30237                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
30238                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
30239                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
30240                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
30241                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
30242                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
30243                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
30244                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
30245                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
30246                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
30247                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
30248                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
30249                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
30250                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
30251                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
30252                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
30253                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
30254                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
30255                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
30256                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
30257                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
30258                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
30259                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
30260                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
30261                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
30262                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
30263                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
30264                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
30265                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
30266                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
30267                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
30268                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
30269                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
30270                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
30271                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
30272                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
30273                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
30274                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
30275                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
30276                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
30277                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
30278                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
30279                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
30280                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
30281                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
30282                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
30283                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
30284                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
30285                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
30286                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
30287                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
30288                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
30289                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
30290                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
30291                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
30292                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
30293                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
30294                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
30295                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
30296                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
30297                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
30298                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
30299                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
30300                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
30301                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
30302                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
30303                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
30304                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
30305                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
30306                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
30307                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
30308                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
30309                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
30310                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
30311                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
30312                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
30313                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
30314                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
30315                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
30316                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
30317                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
30318                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
30319                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
30320                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
30321                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
30322                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
30323                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
30324                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
30325                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
30326                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
30327                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
30328                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
30329                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
30330                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
30331                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
30332                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
30333                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
30334                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
30335                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
30336                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
30337                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
30338                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
30339                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
30340                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
30341                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
30342                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
30343                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
30344                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
30345                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
30346                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
30347                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
30348                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
30349                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
30350                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
30351                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
30352                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
30353                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
30354                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
30355                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
30356                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
30357                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
30358                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
30359                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
30360                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
30361                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
30362                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
30363                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
30364                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
30365                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
30366                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
30367                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
30368                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
30369                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
30370                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
30371                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
30372                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
30373                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
30374                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
30375                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
30376                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
30377                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
30378                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
30379                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
30380                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
30381                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
30382                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
30383                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
30384                         "\x00\x21\x42\x63",
30385                 .ctext =
30386                         "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
30387                         "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
30388                         "\x29\x01\xce\x98\x55\x53\xf9\x0c"
30389                         "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
30390                         "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
30391                         "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
30392                         "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
30393                         "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
30394                         "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
30395                         "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
30396                         "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
30397                         "\xbb\xde\x56\x86\xab\x65\x21\x30"
30398                         "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
30399                         "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
30400                         "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
30401                         "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
30402                         "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
30403                         "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
30404                         "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
30405                         "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
30406                         "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
30407                         "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
30408                         "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
30409                         "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
30410                         "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
30411                         "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
30412                         "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
30413                         "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
30414                         "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
30415                         "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
30416                         "\x45\xff\x3f\xce\x55\xf6\x95\x10"
30417                         "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
30418                         "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
30419                         "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
30420                         "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
30421                         "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
30422                         "\x62\x08\x18\x7a\x25\x49\x28\xac"
30423                         "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
30424                         "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
30425                         "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
30426                         "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
30427                         "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
30428                         "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
30429                         "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
30430                         "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
30431                         "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
30432                         "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
30433                         "\x33\xee\x14\x19\x22\x52\x89\xa7"
30434                         "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
30435                         "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
30436                         "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
30437                         "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
30438                         "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
30439                         "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
30440                         "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
30441                         "\x04\x07\x08\x52\xe6\xc0\xda\x93"
30442                         "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
30443                         "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
30444                         "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
30445                         "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
30446                         "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
30447                         "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
30448                         "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
30449                         "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
30450                         "\x5a\x90\xae\x75\x0a\x74\x18\x89"
30451                         "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
30452                         "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
30453                         "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
30454                         "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
30455                         "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
30456                         "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
30457                         "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
30458                         "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
30459                         "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
30460                         "\x49\x97\x33\xab\x36\x14\x0a\x70"
30461                         "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
30462                         "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
30463                         "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
30464                         "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
30465                         "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
30466                         "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
30467                         "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
30468                         "\x47\x13\x28\x73\x3c\xbb\x00\x90"
30469                         "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
30470                         "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
30471                         "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
30472                         "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
30473                         "\xad\x04\x07\xae\x22\x90\x4a\x93"
30474                         "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
30475                         "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
30476                         "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
30477                         "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
30478                         "\x53\xf9\x80\x10\xde\x80\xa2\x41"
30479                         "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
30480                         "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
30481                         "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
30482                         "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
30483                         "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
30484                         "\xde\xff\x07\x44\xdd\x56\x1b\xad"
30485                         "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
30486                         "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
30487                         "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
30488                         "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
30489                         "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
30490                         "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
30491                         "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
30492                         "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
30493                         "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
30494                         "\x23\xf8\x66\x18\x14\x28\x34\x0f"
30495                         "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
30496                         "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
30497                         "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
30498                         "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
30499                         "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
30500                         "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
30501                         "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
30502                         "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
30503                         "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
30504                         "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
30505                         "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
30506                         "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
30507                         "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
30508                         "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
30509                         "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
30510                         "\xca\x8e\x61\x87\xde\xad\x80\xd2"
30511                         "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
30512                         "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
30513                         "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
30514                         "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
30515                         "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
30516                         "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
30517                         "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
30518                         "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
30519                         "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
30520                         "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
30521                         "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
30522                         "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
30523                         "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
30524                         "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
30525                         "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
30526                         "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
30527                         "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
30528                         "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
30529                         "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
30530                         "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
30531                         "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
30532                         "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
30533                         "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
30534                         "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
30535                         "\x54\xda\x24\x6a\xc4\x41\x65\x46"
30536                         "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
30537                         "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
30538                         "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
30539                         "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
30540                         "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
30541                         "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
30542                         "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
30543                         "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
30544                         "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
30545                         "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
30546                         "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
30547                         "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
30548                         "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
30549                         "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
30550                         "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
30551                         "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
30552                         "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
30553                         "\xef\xcc\xa7\xec\xab\x43\x09\x18"
30554                         "\xd3\xab\x68\xd1\x07\x99\x44\x47"
30555                         "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
30556                         "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
30557                         "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
30558                         "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
30559                         "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
30560                         "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
30561                         "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
30562                         "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
30563                         "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
30564                         "\x71\x6e\x9f\x58\x15\x67\x72\x87"
30565                         "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
30566                         "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
30567                         "\xba\x41\x54\xac\xf0\xfc\x59\x12"
30568                         "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
30569                         "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
30570                         "\x2e\x53\x49\x97\x94\x33\xae\x40"
30571                         "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
30572                         "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
30573                         "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
30574                         "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
30575                         "\xce\x87\xad\xcc\x72\x05\x00\x29"
30576                         "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
30577                         "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
30578                         "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
30579                         "\xac\xc0\x79\x50\x69\xca\x59\x32"
30580                         "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
30581                         "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
30582                         "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
30583                         "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
30584                         "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
30585                         "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
30586                         "\x05\x68\x6b\xab\xe3\x41\x49\xed"
30587                         "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
30588                         "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
30589                         "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
30590                         "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
30591                         "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
30592                         "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
30593                         "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
30594                         "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
30595                         "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
30596                         "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
30597                         "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
30598                         "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
30599                         "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
30600                         "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
30601                         "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
30602                         "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
30603                         "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
30604                         "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
30605                         "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
30606                         "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
30607                         "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
30608                         "\x85\x75\xe6\x43\xf6\x87\x08\x68"
30609                         "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
30610                         "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
30611                         "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
30612                         "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
30613                         "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
30614                         "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
30615                         "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
30616                         "\xaf\x55\xeb\x22\xac\x93\x68\x32"
30617                         "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
30618                         "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
30619                         "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
30620                         "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
30621                         "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
30622                         "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
30623                         "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
30624                         "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
30625                         "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
30626                         "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
30627                         "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
30628                         "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
30629                         "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
30630                         "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
30631                         "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
30632                         "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
30633                         "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
30634                         "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
30635                         "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
30636                         "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
30637                         "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
30638                         "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
30639                         "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
30640                         "\x38\x55\xab\x33\x26\xef\x9f\x43"
30641                         "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
30642                         "\x58\x09\x09\x1b\xc3\x65\x46\x46"
30643                         "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
30644                         "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
30645                         "\x63\x86\xf2\x03\x67\x45\xd2\x72"
30646                         "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
30647                         "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
30648                         "\x2b\x82\x39\xbd\x69\x54\xed\x62"
30649                         "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
30650                         "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
30651                         "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
30652                         "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
30653                         "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
30654                         "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
30655                         "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
30656                         "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
30657                         "\x55\xad\xa4\xd1\x22\x54\x70\x94"
30658                         "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
30659                         "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
30660                         "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
30661                         "\x62\x36\x43\xb2\x82\x15\x75\x50"
30662                         "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
30663                         "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
30664                         "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
30665                         "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
30666                         "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
30667                         "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
30668                         "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
30669                         "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
30670                         "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
30671                         "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
30672                         "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
30673                         "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
30674                         "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
30675                         "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
30676                         "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
30677                         "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
30678                         "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
30679                         "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
30680                         "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
30681                         "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
30682                         "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
30683                         "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
30684                         "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
30685                         "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
30686                         "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
30687                         "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
30688                         "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
30689                         "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
30690                         "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
30691                         "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
30692                         "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
30693                         "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
30694                         "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
30695                         "\x42\x19\x23\x7d\xc8\x73\xee\x25"
30696                         "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
30697                         "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
30698                         "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
30699                         "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
30700                         "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
30701                         "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
30702                         "\xdb\x87\xee\xef\x55\x89\x2a\x59"
30703                         "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
30704                         "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
30705                         "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
30706                         "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
30707                         "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
30708                         "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
30709                         "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
30710                         "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
30711                         "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
30712                         "\xae\xab\x86\x09\x89\xc9\xc2\x40"
30713                         "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
30714                         "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
30715                         "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
30716                         "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
30717                         "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
30718                         "\x95\xd9\x34\x34\x86\xc6\x41\x94"
30719                         "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
30720                         "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
30721                         "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
30722                         "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
30723                         "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
30724                         "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
30725                         "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
30726                         "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
30727                         "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
30728                         "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
30729                         "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
30730                         "\xa7\x33\x34\x86\xca\xe4\x96\x23"
30731                         "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
30732                         "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
30733                         "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
30734                         "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
30735                         "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
30736                         "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
30737                         "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
30738                         "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
30739                         "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
30740                         "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
30741                         "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
30742                         "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
30743                         "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
30744                         "\x68\xc8\x7f\x51\x22\x42\xef\x49"
30745                         "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
30746                         "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
30747                         "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
30748                         "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
30749                         "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
30750                         "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
30751                         "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
30752                         "\x73\x2e\x71\x79\x16\x06\x63\x28"
30753                         "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
30754                         "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
30755                         "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
30756                         "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
30757                         "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
30758                         "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
30759                         "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
30760                         "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
30761                         "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
30762                         "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
30763                         "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
30764                         "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
30765                         "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
30766                         "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
30767                         "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
30768                         "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
30769                         "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
30770                         "\x19\x07\xaf\x90\x62\x5c\x68\x98"
30771                         "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
30772                         "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
30773                         "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
30774                         "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
30775                         "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
30776                         "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
30777                         "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
30778                         "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
30779                         "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
30780                         "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
30781                         "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
30782                         "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
30783                         "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
30784                         "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
30785                         "\x21\x33\x44\xfe\x7f\x35\x32\x93"
30786                         "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
30787                         "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
30788                         "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
30789                         "\x64\xf0\x48\xe5\x57\x99\xee\x75"
30790                         "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
30791                         "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
30792                         "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
30793                         "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
30794                         "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
30795                         "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
30796                         "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
30797                         "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
30798                         "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
30799                         "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
30800                         "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
30801                         "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
30802                         "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
30803                         "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
30804                         "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
30805                         "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
30806                         "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
30807                         "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
30808                         "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
30809                         "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
30810                         "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
30811                         "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
30812                         "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
30813                         "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
30814                         "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
30815                         "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
30816                         "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
30817                         "\x56\xf5\x4e\x01\x35\x27\x45\x77"
30818                         "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
30819                         "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
30820                         "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
30821                         "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
30822                         "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
30823                         "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
30824                         "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
30825                         "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
30826                         "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
30827                         "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
30828                         "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
30829                         "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
30830                         "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
30831                         "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
30832                         "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
30833                         "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
30834                         "\x87\x8f\x03\x21\x28\x95\x0c\x89"
30835                         "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
30836                         "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
30837                         "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
30838                         "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
30839                         "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
30840                         "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
30841                         "\x85\x73\x78\x45\x20\x7f\xae\x13"
30842                         "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
30843                         "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
30844                         "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
30845                         "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
30846                         "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
30847                         "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
30848                         "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
30849                         "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
30850                         "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
30851                         "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
30852                         "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
30853                         "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
30854                         "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
30855                         "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
30856                         "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
30857                         "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
30858                         "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
30859                         "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
30860                         "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
30861                         "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
30862                         "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
30863                         "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
30864                         "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
30865                         "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
30866                         "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
30867                         "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
30868                         "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
30869                         "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
30870                         "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
30871                         "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
30872                         "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
30873                         "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
30874                         "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
30875                         "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
30876                         "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
30877                         "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
30878                         "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
30879                         "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
30880                         "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
30881                         "\x6e\x12\x17\x72\x63\x57\xc7\xba"
30882                         "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
30883                         "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
30884                         "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
30885                         "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
30886                         "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
30887                         "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
30888                         "\x0c\x24\x43\x31\x40\x57\xf1\x72"
30889                         "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
30890                         "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
30891                         "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
30892                         "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
30893                         "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
30894                         "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
30895                         "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
30896                         "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
30897                         "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
30898                         "\xaf\xdf\x11\x95",
30899                 .len    = 4100,
30900                 .np     = 2,
30901                 .tap    = { 4064, 36 },
30902         },
30903 };
30904
30905 static const struct cipher_testvec chacha20_tv_template[] = {
30906         { /* RFC7539 A.2. Test Vector #1 */
30907                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
30908                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30909                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30910                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30911                 .klen   = 32,
30912                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30913                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30914                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
30915                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30916                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30917                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30918                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30919                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30920                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30921                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30922                 .ctext  = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
30923                           "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
30924                           "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
30925                           "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
30926                           "\xda\x41\x59\x7c\x51\x57\x48\x8d"
30927                           "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
30928                           "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
30929                           "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
30930                 .len    = 64,
30931         }, { /* RFC7539 A.2. Test Vector #2 */
30932                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
30933                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30934                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30935                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30936                 .klen   = 32,
30937                 .iv     = "\x01\x00\x00\x00\x00\x00\x00\x00"
30938                           "\x00\x00\x00\x00\x00\x00\x00\x02",
30939                 .ptext  = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
30940                           "\x69\x73\x73\x69\x6f\x6e\x20\x74"
30941                           "\x6f\x20\x74\x68\x65\x20\x49\x45"
30942                           "\x54\x46\x20\x69\x6e\x74\x65\x6e"
30943                           "\x64\x65\x64\x20\x62\x79\x20\x74"
30944                           "\x68\x65\x20\x43\x6f\x6e\x74\x72"
30945                           "\x69\x62\x75\x74\x6f\x72\x20\x66"
30946                           "\x6f\x72\x20\x70\x75\x62\x6c\x69"
30947                           "\x63\x61\x74\x69\x6f\x6e\x20\x61"
30948                           "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
30949                           "\x20\x70\x61\x72\x74\x20\x6f\x66"
30950                           "\x20\x61\x6e\x20\x49\x45\x54\x46"
30951                           "\x20\x49\x6e\x74\x65\x72\x6e\x65"
30952                           "\x74\x2d\x44\x72\x61\x66\x74\x20"
30953                           "\x6f\x72\x20\x52\x46\x43\x20\x61"
30954                           "\x6e\x64\x20\x61\x6e\x79\x20\x73"
30955                           "\x74\x61\x74\x65\x6d\x65\x6e\x74"
30956                           "\x20\x6d\x61\x64\x65\x20\x77\x69"
30957                           "\x74\x68\x69\x6e\x20\x74\x68\x65"
30958                           "\x20\x63\x6f\x6e\x74\x65\x78\x74"
30959                           "\x20\x6f\x66\x20\x61\x6e\x20\x49"
30960                           "\x45\x54\x46\x20\x61\x63\x74\x69"
30961                           "\x76\x69\x74\x79\x20\x69\x73\x20"
30962                           "\x63\x6f\x6e\x73\x69\x64\x65\x72"
30963                           "\x65\x64\x20\x61\x6e\x20\x22\x49"
30964                           "\x45\x54\x46\x20\x43\x6f\x6e\x74"
30965                           "\x72\x69\x62\x75\x74\x69\x6f\x6e"
30966                           "\x22\x2e\x20\x53\x75\x63\x68\x20"
30967                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30968                           "\x74\x73\x20\x69\x6e\x63\x6c\x75"
30969                           "\x64\x65\x20\x6f\x72\x61\x6c\x20"
30970                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30971                           "\x74\x73\x20\x69\x6e\x20\x49\x45"
30972                           "\x54\x46\x20\x73\x65\x73\x73\x69"
30973                           "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
30974                           "\x77\x65\x6c\x6c\x20\x61\x73\x20"
30975                           "\x77\x72\x69\x74\x74\x65\x6e\x20"
30976                           "\x61\x6e\x64\x20\x65\x6c\x65\x63"
30977                           "\x74\x72\x6f\x6e\x69\x63\x20\x63"
30978                           "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
30979                           "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
30980                           "\x64\x65\x20\x61\x74\x20\x61\x6e"
30981                           "\x79\x20\x74\x69\x6d\x65\x20\x6f"
30982                           "\x72\x20\x70\x6c\x61\x63\x65\x2c"
30983                           "\x20\x77\x68\x69\x63\x68\x20\x61"
30984                           "\x72\x65\x20\x61\x64\x64\x72\x65"
30985                           "\x73\x73\x65\x64\x20\x74\x6f",
30986                 .ctext  = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
30987                           "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
30988                           "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
30989                           "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
30990                           "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
30991                           "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
30992                           "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
30993                           "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
30994                           "\x40\x42\xe0\x27\x85\xec\xec\xfa"
30995                           "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
30996                           "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
30997                           "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
30998                           "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
30999                           "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
31000                           "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
31001                           "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
31002                           "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
31003                           "\xd6\x62\xab\x05\x26\x91\xca\x66"
31004                           "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
31005                           "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
31006                           "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
31007                           "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
31008                           "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
31009                           "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
31010                           "\x08\x71\xcd\xac\x63\x89\x39\xe2"
31011                           "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
31012                           "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
31013                           "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
31014                           "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
31015                           "\x37\x20\xfc\x88\xdc\x95\xed\x84"
31016                           "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
31017                           "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
31018                           "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
31019                           "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
31020                           "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
31021                           "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
31022                           "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
31023                           "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
31024                           "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
31025                           "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
31026                           "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
31027                           "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
31028                           "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
31029                           "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
31030                           "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
31031                           "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
31032                           "\xc4\xfd\x80\x6c\x22\xf2\x21",
31033                 .len    = 375,
31034                 .also_non_np = 1,
31035                 .np     = 3,
31036                 .tap    = { 375 - 20, 4, 16 },
31037
31038         }, { /* RFC7539 A.2. Test Vector #3 */
31039                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
31040                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
31041                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
31042                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
31043                 .klen   = 32,
31044                 .iv     = "\x2a\x00\x00\x00\x00\x00\x00\x00"
31045                           "\x00\x00\x00\x00\x00\x00\x00\x02",
31046                 .ptext  = "\x27\x54\x77\x61\x73\x20\x62\x72"
31047                           "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
31048                           "\x6e\x64\x20\x74\x68\x65\x20\x73"
31049                           "\x6c\x69\x74\x68\x79\x20\x74\x6f"
31050                           "\x76\x65\x73\x0a\x44\x69\x64\x20"
31051                           "\x67\x79\x72\x65\x20\x61\x6e\x64"
31052                           "\x20\x67\x69\x6d\x62\x6c\x65\x20"
31053                           "\x69\x6e\x20\x74\x68\x65\x20\x77"
31054                           "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
31055                           "\x20\x6d\x69\x6d\x73\x79\x20\x77"
31056                           "\x65\x72\x65\x20\x74\x68\x65\x20"
31057                           "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
31058                           "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
31059                           "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
31060                           "\x72\x61\x74\x68\x73\x20\x6f\x75"
31061                           "\x74\x67\x72\x61\x62\x65\x2e",
31062                 .ctext  = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
31063                           "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
31064                           "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
31065                           "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
31066                           "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
31067                           "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
31068                           "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
31069                           "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
31070                           "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
31071                           "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
31072                           "\x1a\x55\x32\x05\x57\x16\xea\xd6"
31073                           "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
31074                           "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
31075                           "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
31076                           "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
31077                           "\x75\x7a\x79\x7a\xc1\x88\xd1",
31078                 .len    = 127,
31079         }, { /* Self-made test vector for long data */
31080                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
31081                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
31082                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
31083                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
31084                 .klen   = 32,
31085                 .iv     = "\x1c\x00\x00\x00\x00\x00\x00\x00"
31086                           "\x00\x00\x00\x00\x00\x00\x00\x01",
31087                 .ptext  = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
31088                           "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
31089                           "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
31090                           "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
31091                           "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
31092                           "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
31093                           "\x01\xc6\x67\xda\x03\x91\x18\x90"
31094                           "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
31095                           "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
31096                           "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
31097                           "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
31098                           "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
31099                           "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
31100                           "\x33\x97\xc3\x77\xba\xc5\x70\xde"
31101                           "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
31102                           "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
31103                           "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
31104                           "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
31105                           "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
31106                           "\x79\x49\x41\xf4\x58\x18\xcb\x86"
31107                           "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
31108                           "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
31109                           "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
31110                           "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
31111                           "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
31112                           "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
31113                           "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
31114                           "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
31115                           "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
31116                           "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
31117                           "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
31118                           "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
31119                           "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
31120                           "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
31121                           "\x24\x74\x75\x7f\x95\x81\xb7\x30"
31122                           "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
31123                           "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
31124                           "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
31125                           "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
31126                           "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
31127                           "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
31128                           "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
31129                           "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
31130                           "\x49\x46\x00\x88\x22\x8d\xce\xea"
31131                           "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
31132                           "\x72\x11\xf5\x50\x73\x04\x40\x47"
31133                           "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
31134                           "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
31135                           "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
31136                           "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
31137                           "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
31138                           "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
31139                           "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
31140                           "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
31141                           "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
31142                           "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
31143                           "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
31144                           "\x8b\x10\x67\xa3\x01\x57\x94\x25"
31145                           "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
31146                           "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
31147                           "\x58\xb1\x47\x90\xfe\x42\x21\x72"
31148                           "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
31149                           "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
31150                           "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
31151                           "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
31152                           "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
31153                           "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
31154                           "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
31155                           "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
31156                           "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
31157                           "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
31158                           "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
31159                           "\x65\x69\x8a\x45\x29\xef\x74\x85"
31160                           "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
31161                           "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
31162                           "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
31163                           "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
31164                           "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
31165                           "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
31166                           "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
31167                           "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
31168                           "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
31169                           "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
31170                           "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
31171                           "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
31172                           "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
31173                           "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
31174                           "\x10\x26\x38\x07\xe5\xc7\x36\x80"
31175                           "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
31176                           "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
31177                           "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
31178                           "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
31179                           "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
31180                           "\x83\x66\x80\x47\x80\xe8\xfd\x35"
31181                           "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
31182                           "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
31183                           "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
31184                           "\x25\x94\x10\x5f\x40\x00\x64\x99"
31185                           "\xdc\xae\xd7\x21\x09\x78\x50\x15"
31186                           "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
31187                           "\x87\x6e\x6d\xab\xde\x08\x51\x16"
31188                           "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
31189                           "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
31190                           "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
31191                           "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
31192                           "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
31193                           "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
31194                           "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
31195                           "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
31196                           "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
31197                           "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
31198                           "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
31199                           "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
31200                           "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
31201                           "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
31202                           "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
31203                           "\xb9\x83\x90\xef\x20\x59\x46\xff"
31204                           "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
31205                           "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
31206                           "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
31207                           "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
31208                           "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
31209                           "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
31210                           "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
31211                           "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
31212                           "\x94\x97\xea\xdd\x58\x9e\xae\x76"
31213                           "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
31214                           "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
31215                           "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
31216                           "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
31217                           "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
31218                           "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
31219                           "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
31220                           "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
31221                           "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
31222                           "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
31223                           "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
31224                           "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
31225                           "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
31226                           "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
31227                           "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
31228                           "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
31229                           "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
31230                           "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
31231                           "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
31232                           "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
31233                           "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
31234                           "\xac\xf3\x13\x53\x27\x45\xaf\x64"
31235                           "\x46\xdc\xea\x23\xda\x97\xd1\xab"
31236                           "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
31237                           "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
31238                           "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
31239                           "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
31240                           "\xca\x34\x83\x27\x10\x5b\x68\x45"
31241                           "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
31242                           "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
31243                           "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
31244                           "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
31245                           "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
31246                           "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
31247                           "\x72",
31248                 .ctext  = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
31249                           "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
31250                           "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
31251                           "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
31252                           "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
31253                           "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
31254                           "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
31255                           "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
31256                           "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
31257                           "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
31258                           "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
31259                           "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
31260                           "\x33\x4a\x71\x15\xfe\xee\x12\x54"
31261                           "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
31262                           "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
31263                           "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
31264                           "\x57\x0e\x94\x17\x26\x39\xbb\x54"
31265                           "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
31266                           "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
31267                           "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
31268                           "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
31269                           "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
31270                           "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
31271                           "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
31272                           "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
31273                           "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
31274                           "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
31275                           "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
31276                           "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
31277                           "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
31278                           "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
31279                           "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
31280                           "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
31281                           "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
31282                           "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
31283                           "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
31284                           "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
31285                           "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
31286                           "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
31287                           "\xae\xe7\x61\x32\xef\x41\x6c\x75"
31288                           "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
31289                           "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
31290                           "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
31291                           "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
31292                           "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
31293                           "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
31294                           "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
31295                           "\xc1\x22\xf3\x79\xae\x95\x78\x66"
31296                           "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
31297                           "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
31298                           "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
31299                           "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
31300                           "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
31301                           "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
31302                           "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
31303                           "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
31304                           "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
31305                           "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
31306                           "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
31307                           "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
31308                           "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
31309                           "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
31310                           "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
31311                           "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
31312                           "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
31313                           "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
31314                           "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
31315                           "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
31316                           "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
31317                           "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
31318                           "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
31319                           "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
31320                           "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
31321                           "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
31322                           "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
31323                           "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
31324                           "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
31325                           "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
31326                           "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
31327                           "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
31328                           "\x54\x1c\x34\x72\xde\x0c\x68\x39"
31329                           "\x9d\x32\xa5\x75\x92\x13\x32\xea"
31330                           "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
31331                           "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
31332                           "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
31333                           "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
31334                           "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
31335                           "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
31336                           "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
31337                           "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
31338                           "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
31339                           "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
31340                           "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
31341                           "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
31342                           "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
31343                           "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
31344                           "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
31345                           "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
31346                           "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
31347                           "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
31348                           "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
31349                           "\x79\x61\x23\xe0\xa2\x99\x73\x55"
31350                           "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
31351                           "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
31352                           "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
31353                           "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
31354                           "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
31355                           "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
31356                           "\x48\x56\xaa\x85\x22\xd8\x36\xed"
31357                           "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
31358                           "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
31359                           "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
31360                           "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
31361                           "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
31362                           "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
31363                           "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
31364                           "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
31365                           "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
31366                           "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
31367                           "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
31368                           "\xec\x83\x92\x99\x87\x47\xe0\x7c"
31369                           "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
31370                           "\x98\xb0\x87\xb6\x86\x13\x64\x33"
31371                           "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
31372                           "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
31373                           "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
31374                           "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
31375                           "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
31376                           "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
31377                           "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
31378                           "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
31379                           "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
31380                           "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
31381                           "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
31382                           "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
31383                           "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
31384                           "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
31385                           "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
31386                           "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
31387                           "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
31388                           "\x5f\xae\x25\x84\x22\x90\x5f\x26"
31389                           "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
31390                           "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
31391                           "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
31392                           "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
31393                           "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
31394                           "\x74\x06\x89\x0e\x90\xeb\x85\xff"
31395                           "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
31396                           "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
31397                           "\x02\x85\x68\xd0\x03\x12\xde\x92"
31398                           "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
31399                           "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
31400                           "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
31401                           "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
31402                           "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
31403                           "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
31404                           "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
31405                           "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
31406                           "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
31407                           "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
31408                           "\x98",
31409                 .len    = 1281,
31410                 .also_non_np = 1,
31411                 .np     = 3,
31412                 .tap    = { 1200, 1, 80 },
31413         },
31414 };
31415
31416 /*
31417  * CTS (Cipher Text Stealing) mode tests
31418  */
31419 static const struct cipher_testvec cts_mode_tv_template[] = {
31420         { /* from rfc3962 */
31421                 .klen   = 16,
31422                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31423                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31424                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31425                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31426                           "\x20",
31427                 .len    = 17,
31428                 .ctext  = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
31429                           "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
31430                           "\x97",
31431         }, {
31432                 .klen   = 16,
31433                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31434                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31435                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31436                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31437                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31438                           "\x20\x47\x61\x75\x27\x73\x20",
31439                 .len    = 31,
31440                 .ctext  = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
31441                           "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
31442                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31443                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
31444         }, {
31445                 .klen   = 16,
31446                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31447                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31448                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31449                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31450                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31451                           "\x20\x47\x61\x75\x27\x73\x20\x43",
31452                 .len    = 32,
31453                 .ctext  = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31454                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
31455                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31456                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
31457         }, {
31458                 .klen   = 16,
31459                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31460                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31461                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31462                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31463                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31464                           "\x20\x47\x61\x75\x27\x73\x20\x43"
31465                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31466                           "\x70\x6c\x65\x61\x73\x65\x2c",
31467                 .len    = 47,
31468                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31469                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31470                           "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
31471                           "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
31472                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31473                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
31474         }, {
31475                 .klen   = 16,
31476                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31477                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31478                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31479                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31480                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31481                           "\x20\x47\x61\x75\x27\x73\x20\x43"
31482                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31483                           "\x70\x6c\x65\x61\x73\x65\x2c\x20",
31484                 .len    = 48,
31485                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31486                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31487                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
31488                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
31489                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31490                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
31491         }, {
31492                 .klen   = 16,
31493                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31494                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31495                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31496                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31497                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31498                           "\x20\x47\x61\x75\x27\x73\x20\x43"
31499                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31500                           "\x70\x6c\x65\x61\x73\x65\x2c\x20"
31501                           "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
31502                           "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
31503                 .len    = 64,
31504                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31505                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31506                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31507                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
31508                           "\x48\x07\xef\xe8\x36\xee\x89\xa5"
31509                           "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
31510                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
31511                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
31512         }
31513 };
31514
31515 /*
31516  * Compression stuff.
31517  */
31518 #define COMP_BUF_SIZE           512
31519
31520 struct comp_testvec {
31521         int inlen, outlen;
31522         char input[COMP_BUF_SIZE];
31523         char output[COMP_BUF_SIZE];
31524 };
31525
31526 /*
31527  * Deflate test vectors (null-terminated strings).
31528  * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
31529  */
31530
31531 static const struct comp_testvec deflate_comp_tv_template[] = {
31532         {
31533                 .inlen  = 70,
31534                 .outlen = 38,
31535                 .input  = "Join us now and share the software "
31536                         "Join us now and share the software ",
31537                 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
31538                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
31539                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
31540                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
31541                           "\x71\xbc\x08\x2b\x01\x00",
31542         }, {
31543                 .inlen  = 191,
31544                 .outlen = 122,
31545                 .input  = "This document describes a compression method based on the DEFLATE"
31546                         "compression algorithm.  This document defines the application of "
31547                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31548                 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
31549                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
31550                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
31551                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
31552                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
31553                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
31554                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
31555                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
31556                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
31557                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
31558                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
31559                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
31560                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
31561                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
31562                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
31563                           "\xfa\x02",
31564         },
31565 };
31566
31567 static const struct comp_testvec deflate_decomp_tv_template[] = {
31568         {
31569                 .inlen  = 122,
31570                 .outlen = 191,
31571                 .input  = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
31572                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
31573                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
31574                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
31575                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
31576                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
31577                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
31578                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
31579                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
31580                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
31581                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
31582                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
31583                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
31584                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
31585                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
31586                           "\xfa\x02",
31587                 .output = "This document describes a compression method based on the DEFLATE"
31588                         "compression algorithm.  This document defines the application of "
31589                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31590         }, {
31591                 .inlen  = 38,
31592                 .outlen = 70,
31593                 .input  = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
31594                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
31595                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
31596                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
31597                           "\x71\xbc\x08\x2b\x01\x00",
31598                 .output = "Join us now and share the software "
31599                         "Join us now and share the software ",
31600         },
31601 };
31602
31603 static const struct comp_testvec zlib_deflate_comp_tv_template[] = {
31604         {
31605                 .inlen  = 70,
31606                 .outlen = 44,
31607                 .input  = "Join us now and share the software "
31608                         "Join us now and share the software ",
31609                 .output = "\x78\x5e\xf3\xca\xcf\xcc\x53\x28"
31610                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31611                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31612                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31613                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31614                           "\x7c\x65\x19\x3d",
31615         }, {
31616                 .inlen  = 191,
31617                 .outlen = 129,
31618                 .input  = "This document describes a compression method based on the DEFLATE"
31619                         "compression algorithm.  This document defines the application of "
31620                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31621                 .output = "\x78\x5e\x5d\xce\x41\x0a\xc3\x30"
31622                           "\x0c\x04\xc0\xaf\xec\x0b\xf2\x87"
31623                           "\xd2\xa6\x50\xe8\xc1\x07\x7f\x40"
31624                           "\xb1\x95\x5a\x60\x5b\xc6\x56\x0f"
31625                           "\xfd\x7d\x93\x1e\x42\xe8\x51\xec"
31626                           "\xee\x20\x9f\x64\x20\x6a\x78\x17"
31627                           "\xae\x86\xc8\x23\x74\x59\x78\x80"
31628                           "\x10\xb4\xb4\xce\x63\x88\x56\x14"
31629                           "\xb6\xa4\x11\x0b\x0d\x8e\xd8\x6e"
31630                           "\x4b\x8c\xdb\x7c\x7f\x5e\xfc\x7c"
31631                           "\xae\x51\x7e\x69\x17\x4b\x65\x02"
31632                           "\xfc\x1f\xbc\x4a\xdd\xd8\x7d\x48"
31633                           "\xad\x65\x09\x64\x3b\xac\xeb\xd9"
31634                           "\xc2\x01\xc0\xf4\x17\x3c\x1c\x1c"
31635                           "\x7d\xb2\x52\xc4\xf5\xf4\x8f\xeb"
31636                           "\x6a\x1a\x34\x4f\x5f\x2e\x32\x45"
31637                           "\x4e",
31638         },
31639 };
31640
31641 static const struct comp_testvec zlib_deflate_decomp_tv_template[] = {
31642         {
31643                 .inlen  = 128,
31644                 .outlen = 191,
31645                 .input  = "\x78\x9c\x5d\x8d\x31\x0e\xc2\x30"
31646                           "\x10\x04\xbf\xb2\x2f\xc8\x1f\x10"
31647                           "\x04\x09\x89\xc2\x85\x3f\x70\xb1"
31648                           "\x2f\xf8\x24\xdb\x67\xd9\x47\xc1"
31649                           "\xef\x49\x68\x12\x51\xae\x76\x67"
31650                           "\xd6\x27\x19\x88\x1a\xde\x85\xab"
31651                           "\x21\xf2\x08\x5d\x16\x1e\x20\x04"
31652                           "\x2d\xad\xf3\x18\xa2\x15\x85\x2d"
31653                           "\x69\xc4\x42\x83\x23\xb6\x6c\x89"
31654                           "\x71\x9b\xef\xcf\x8b\x9f\xcf\x33"
31655                           "\xca\x2f\xed\x62\xa9\x4c\x80\xff"
31656                           "\x13\xaf\x52\x37\xed\x0e\x52\x6b"
31657                           "\x59\x02\xd9\x4e\xe8\x7a\x76\x1d"
31658                           "\x02\x98\xfe\x8a\x87\x83\xa3\x4f"
31659                           "\x56\x8a\xb8\x9e\x8e\x5c\x57\xd3"
31660                           "\xa0\x79\xfa\x02\x2e\x32\x45\x4e",
31661                 .output = "This document describes a compression method based on the DEFLATE"
31662                         "compression algorithm.  This document defines the application of "
31663                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31664         }, {
31665                 .inlen  = 44,
31666                 .outlen = 70,
31667                 .input  = "\x78\x9c\xf3\xca\xcf\xcc\x53\x28"
31668                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31669                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31670                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31671                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31672                           "\x7c\x65\x19\x3d",
31673                 .output = "Join us now and share the software "
31674                         "Join us now and share the software ",
31675         },
31676 };
31677
31678 /*
31679  * LZO test vectors (null-terminated strings).
31680  */
31681 static const struct comp_testvec lzo_comp_tv_template[] = {
31682         {
31683                 .inlen  = 70,
31684                 .outlen = 57,
31685                 .input  = "Join us now and share the software "
31686                         "Join us now and share the software ",
31687                 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
31688                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31689                           "\x64\x20\x73\x68\x61\x72\x65\x20"
31690                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
31691                           "\x77\x70\x01\x32\x88\x00\x0c\x65"
31692                           "\x20\x74\x68\x65\x20\x73\x6f\x66"
31693                           "\x74\x77\x61\x72\x65\x20\x11\x00"
31694                           "\x00",
31695         }, {
31696                 .inlen  = 159,
31697                 .outlen = 131,
31698                 .input  = "This document describes a compression method based on the LZO "
31699                         "compression algorithm.  This document defines the application of "
31700                         "the LZO algorithm used in UBIFS.",
31701                 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
31702                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31703                           "\x64\x65\x73\x63\x72\x69\x62\x65"
31704                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31705                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31706                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31707                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
31708                           "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
31709                           "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
31710                           "\x72\x69\x74\x68\x6d\x2e\x20\x20"
31711                           "\x2e\x54\x01\x03\x66\x69\x6e\x65"
31712                           "\x73\x20\x74\x06\x05\x61\x70\x70"
31713                           "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
31714                           "\x66\x88\x02\x60\x09\x27\xf0\x00"
31715                           "\x0c\x20\x75\x73\x65\x64\x20\x69"
31716                           "\x6e\x20\x55\x42\x49\x46\x53\x2e"
31717                           "\x11\x00\x00",
31718         },
31719 };
31720
31721 static const struct comp_testvec lzo_decomp_tv_template[] = {
31722         {
31723                 .inlen  = 133,
31724                 .outlen = 159,
31725                 .input  = "\x00\x2b\x54\x68\x69\x73\x20\x64"
31726                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31727                           "\x64\x65\x73\x63\x72\x69\x62\x65"
31728                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31729                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31730                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31731                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
31732                           "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
31733                           "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
31734                           "\x69\x74\x68\x6d\x2e\x20\x20\x54"
31735                           "\x68\x69\x73\x2a\x54\x01\x02\x66"
31736                           "\x69\x6e\x65\x73\x94\x06\x05\x61"
31737                           "\x70\x70\x6c\x69\x63\x61\x74\x76"
31738                           "\x0a\x6f\x66\x88\x02\x60\x09\x27"
31739                           "\xf0\x00\x0c\x20\x75\x73\x65\x64"
31740                           "\x20\x69\x6e\x20\x55\x42\x49\x46"
31741                           "\x53\x2e\x11\x00\x00",
31742                 .output = "This document describes a compression method based on the LZO "
31743                         "compression algorithm.  This document defines the application of "
31744                         "the LZO algorithm used in UBIFS.",
31745         }, {
31746                 .inlen  = 46,
31747                 .outlen = 70,
31748                 .input  = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
31749                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31750                           "\x64\x20\x73\x68\x61\x72\x65\x20"
31751                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
31752                           "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
31753                           "\x3d\x88\x00\x11\x00\x00",
31754                 .output = "Join us now and share the software "
31755                         "Join us now and share the software ",
31756         },
31757 };
31758
31759 /*
31760  * Michael MIC test vectors from IEEE 802.11i
31761  */
31762 #define MICHAEL_MIC_TEST_VECTORS 6
31763
31764 static const struct hash_testvec michael_mic_tv_template[] = {
31765         {
31766                 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
31767                 .ksize = 8,
31768                 .plaintext = zeroed_string,
31769                 .psize = 0,
31770                 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31771         },
31772         {
31773                 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31774                 .ksize = 8,
31775                 .plaintext = "M",
31776                 .psize = 1,
31777                 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31778         },
31779         {
31780                 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31781                 .ksize = 8,
31782                 .plaintext = "Mi",
31783                 .psize = 2,
31784                 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31785         },
31786         {
31787                 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31788                 .ksize = 8,
31789                 .plaintext = "Mic",
31790                 .psize = 3,
31791                 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31792         },
31793         {
31794                 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31795                 .ksize = 8,
31796                 .plaintext = "Mich",
31797                 .psize = 4,
31798                 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31799         },
31800         {
31801                 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31802                 .ksize = 8,
31803                 .plaintext = "Michael",
31804                 .psize = 7,
31805                 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
31806         }
31807 };
31808
31809 /*
31810  * CRC32 test vectors
31811  */
31812 static const struct hash_testvec crc32_tv_template[] = {
31813         {
31814                 .psize = 0,
31815                 .digest = "\x00\x00\x00\x00",
31816         },
31817         {
31818                 .plaintext = "abcdefg",
31819                 .psize = 7,
31820                 .digest = "\xd8\xb5\x46\xac",
31821         },
31822         {
31823                 .key = "\x87\xa9\xcb\xed",
31824                 .ksize = 4,
31825                 .psize = 0,
31826                 .digest = "\x87\xa9\xcb\xed",
31827         },
31828         {
31829                 .key = "\xff\xff\xff\xff",
31830                 .ksize = 4,
31831                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31832                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31833                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31834                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31835                              "\x21\x22\x23\x24\x25\x26\x27\x28",
31836                 .psize = 40,
31837                 .digest = "\x3a\xdf\x4b\xb0",
31838         },
31839         {
31840                 .key = "\xff\xff\xff\xff",
31841                 .ksize = 4,
31842                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31843                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31844                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31845                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31846                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31847                 .psize = 40,
31848                 .digest = "\xa9\x7a\x7f\x7b",
31849         },
31850         {
31851                 .key = "\xff\xff\xff\xff",
31852                 .ksize = 4,
31853                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31854                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31855                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31856                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31857                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31858                 .psize = 40,
31859                 .digest = "\xba\xd3\xf8\x1c",
31860         },
31861         {
31862                 .key = "\xff\xff\xff\xff",
31863                 .ksize = 4,
31864                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31865                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31866                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31867                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31868                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31869                 .psize = 40,
31870                 .digest = "\xa8\xa9\xc2\x02",
31871         },
31872         {
31873                 .key = "\xff\xff\xff\xff",
31874                 .ksize = 4,
31875                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31876                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31877                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31878                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31879                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31880                 .psize = 40,
31881                 .digest = "\x27\xf0\x57\xe2",
31882         },
31883         {
31884                 .key = "\xff\xff\xff\xff",
31885                 .ksize = 4,
31886                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31887                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31888                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31889                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31890                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31891                 .psize = 40,
31892                 .digest = "\x49\x78\x10\x08",
31893         },
31894         {
31895                 .key = "\x80\xea\xd3\xf1",
31896                 .ksize = 4,
31897                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31898                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31899                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31900                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31901                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31902                 .psize = 40,
31903                 .digest = "\x9a\xb1\xdc\xf0",
31904         },
31905         {
31906                 .key = "\xf3\x4a\x1d\x5d",
31907                 .ksize = 4,
31908                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31909                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31910                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31911                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31912                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31913                 .psize = 40,
31914                 .digest = "\xb4\x97\xcc\xd4",
31915         },
31916         {
31917                 .key = "\x2e\x80\x04\x59",
31918                 .ksize = 4,
31919                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31920                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31921                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31922                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31923                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31924                 .psize = 40,
31925                 .digest = "\x67\x9b\xfa\x79",
31926         },
31927         {
31928                 .key = "\xa6\xcc\x19\x85",
31929                 .ksize = 4,
31930                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31931                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31932                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31933                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31934                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31935                 .psize = 40,
31936                 .digest = "\x24\xb5\x16\xef",
31937         },
31938         {
31939                 .key = "\x41\xfc\xfe\x2d",
31940                 .ksize = 4,
31941                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31942                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31943                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31944                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31945                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31946                 .psize = 40,
31947                 .digest = "\x15\x94\x80\x39",
31948         },
31949         {
31950                 .key = "\xff\xff\xff\xff",
31951                 .ksize = 4,
31952                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31953                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31954                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31955                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31956                              "\x21\x22\x23\x24\x25\x26\x27\x28"
31957                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31958                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31959                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31960                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31961                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
31962                              "\x51\x52\x53\x54\x55\x56\x57\x58"
31963                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31964                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31965                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31966                              "\x71\x72\x73\x74\x75\x76\x77\x78"
31967                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31968                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31969                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31970                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31971                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
31972                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31973                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31974                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31975                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31976                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
31977                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31978                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31979                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31980                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31981                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31982                 .psize = 240,
31983                 .digest = "\x6c\xc6\x56\xde",
31984                 .np = 2,
31985                 .tap = { 31, 209 }
31986         }, {
31987                 .key = "\xff\xff\xff\xff",
31988                 .ksize = 4,
31989                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
31990                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
31991                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
31992                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
31993                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
31994                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
31995                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
31996                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
31997                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
31998                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
31999                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
32000                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
32001                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
32002                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
32003                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
32004                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
32005                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
32006                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
32007                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
32008                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
32009                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
32010                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
32011                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
32012                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
32013                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
32014                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
32015                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
32016                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
32017                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
32018                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
32019                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
32020                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
32021                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
32022                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
32023                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
32024                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
32025                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
32026                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
32027                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
32028                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
32029                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
32030                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
32031                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
32032                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
32033                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
32034                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
32035                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
32036                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
32037                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
32038                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
32039                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
32040                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
32041                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
32042                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
32043                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
32044                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
32045                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
32046                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
32047                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
32048                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
32049                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
32050                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
32051                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
32052                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
32053                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
32054                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
32055                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
32056                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
32057                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
32058                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
32059                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
32060                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
32061                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
32062                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
32063                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
32064                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
32065                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
32066                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
32067                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
32068                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
32069                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
32070                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
32071                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
32072                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
32073                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
32074                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
32075                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
32076                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
32077                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
32078                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
32079                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
32080                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
32081                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
32082                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
32083                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
32084                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
32085                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
32086                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
32087                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
32088                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
32089                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
32090                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
32091                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
32092                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
32093                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
32094                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
32095                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
32096                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
32097                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
32098                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
32099                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
32100                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
32101                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
32102                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
32103                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
32104                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
32105                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
32106                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
32107                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
32108                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
32109                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
32110                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
32111                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
32112                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
32113                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
32114                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
32115                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
32116                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
32117                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
32118                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
32119                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
32120                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
32121                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
32122                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
32123                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
32124                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
32125                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
32126                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
32127                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
32128                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
32129                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
32130                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
32131                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
32132                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
32133                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
32134                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
32135                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
32136                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
32137                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
32138                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
32139                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
32140                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
32141                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
32142                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
32143                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
32144                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
32145                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
32146                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
32147                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
32148                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
32149                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
32150                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
32151                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
32152                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
32153                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
32154                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
32155                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
32156                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
32157                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
32158                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
32159                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
32160                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
32161                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
32162                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
32163                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
32164                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
32165                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
32166                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
32167                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
32168                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
32169                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
32170                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
32171                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
32172                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
32173                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
32174                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
32175                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
32176                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
32177                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
32178                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
32179                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
32180                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
32181                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
32182                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
32183                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
32184                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
32185                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
32186                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
32187                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
32188                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
32189                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
32190                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
32191                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
32192                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
32193                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
32194                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
32195                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
32196                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
32197                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
32198                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
32199                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
32200                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
32201                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
32202                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
32203                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
32204                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
32205                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
32206                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
32207                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
32208                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
32209                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
32210                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
32211                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
32212                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
32213                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
32214                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
32215                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
32216                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
32217                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
32218                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
32219                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
32220                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
32221                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
32222                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
32223                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
32224                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
32225                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
32226                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
32227                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
32228                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
32229                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
32230                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
32231                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
32232                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
32233                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
32234                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
32235                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
32236                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
32237                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
32238                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
32239                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
32240                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
32241                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
32242                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
32243                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
32244                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
32245                 .psize = 2048,
32246                 .digest = "\xfb\x3a\x7a\xda",
32247         }
32248 };
32249
32250 /*
32251  * CRC32C test vectors
32252  */
32253 static const struct hash_testvec crc32c_tv_template[] = {
32254         {
32255                 .psize = 0,
32256                 .digest = "\x00\x00\x00\x00",
32257         },
32258         {
32259                 .plaintext = "abcdefg",
32260                 .psize = 7,
32261                 .digest = "\x41\xf4\x27\xe6",
32262         },
32263         {
32264                 .key = "\x87\xa9\xcb\xed",
32265                 .ksize = 4,
32266                 .psize = 0,
32267                 .digest = "\x78\x56\x34\x12",
32268         },
32269         {
32270                 .key = "\xff\xff\xff\xff",
32271                 .ksize = 4,
32272                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
32273                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
32274                              "\x11\x12\x13\x14\x15\x16\x17\x18"
32275                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
32276                              "\x21\x22\x23\x24\x25\x26\x27\x28",
32277                 .psize = 40,
32278                 .digest = "\x7f\x15\x2c\x0e",
32279         },
32280         {
32281                 .key = "\xff\xff\xff\xff",
32282                 .ksize = 4,
32283                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32284                              "\x31\x32\x33\x34\x35\x36\x37\x38"
32285                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32286                              "\x41\x42\x43\x44\x45\x46\x47\x48"
32287                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32288                 .psize = 40,
32289                 .digest = "\xf6\xeb\x80\xe9",
32290         },
32291         {
32292                 .key = "\xff\xff\xff\xff",
32293                 .ksize = 4,
32294                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32295                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32296                              "\x61\x62\x63\x64\x65\x66\x67\x68"
32297                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32298                              "\x71\x72\x73\x74\x75\x76\x77\x78",
32299                 .psize = 40,
32300                 .digest = "\xed\xbd\x74\xde",
32301         },
32302         {
32303                 .key = "\xff\xff\xff\xff",
32304                 .ksize = 4,
32305                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32306                              "\x81\x82\x83\x84\x85\x86\x87\x88"
32307                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32308                              "\x91\x92\x93\x94\x95\x96\x97\x98"
32309                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32310                 .psize = 40,
32311                 .digest = "\x62\xc8\x79\xd5",
32312         },
32313         {
32314                 .key = "\xff\xff\xff\xff",
32315                 .ksize = 4,
32316                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32317                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32318                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32319                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32320                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32321                 .psize = 40,
32322                 .digest = "\xd0\x9a\x97\xba",
32323         },
32324         {
32325                 .key = "\xff\xff\xff\xff",
32326                 .ksize = 4,
32327                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32328                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32329                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32330                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32331                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32332                 .psize = 40,
32333                 .digest = "\x13\xd9\x29\x2b",
32334         },
32335         {
32336                 .key = "\x80\xea\xd3\xf1",
32337                 .ksize = 4,
32338                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32339                              "\x31\x32\x33\x34\x35\x36\x37\x38"
32340                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32341                              "\x41\x42\x43\x44\x45\x46\x47\x48"
32342                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32343                 .psize = 40,
32344                 .digest = "\x0c\xb5\xe2\xa2",
32345         },
32346         {
32347                 .key = "\xf3\x4a\x1d\x5d",
32348                 .ksize = 4,
32349                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32350                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32351                              "\x61\x62\x63\x64\x65\x66\x67\x68"
32352                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32353                              "\x71\x72\x73\x74\x75\x76\x77\x78",
32354                 .psize = 40,
32355                 .digest = "\xd1\x7f\xfb\xa6",
32356         },
32357         {
32358                 .key = "\x2e\x80\x04\x59",
32359                 .ksize = 4,
32360                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32361                              "\x81\x82\x83\x84\x85\x86\x87\x88"
32362                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32363                              "\x91\x92\x93\x94\x95\x96\x97\x98"
32364                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32365                 .psize = 40,
32366                 .digest = "\x59\x33\xe6\x7a",
32367         },
32368         {
32369                 .key = "\xa6\xcc\x19\x85",
32370                 .ksize = 4,
32371                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32372                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32373                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32374                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32375                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32376                 .psize = 40,
32377                 .digest = "\xbe\x03\x01\xd2",
32378         },
32379         {
32380                 .key = "\x41\xfc\xfe\x2d",
32381                 .ksize = 4,
32382                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32383                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32384                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32385                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32386                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32387                 .psize = 40,
32388                 .digest = "\x75\xd3\xc5\x24",
32389         },
32390         {
32391                 .key = "\xff\xff\xff\xff",
32392                 .ksize = 4,
32393                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
32394                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
32395                              "\x11\x12\x13\x14\x15\x16\x17\x18"
32396                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
32397                              "\x21\x22\x23\x24\x25\x26\x27\x28"
32398                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32399                              "\x31\x32\x33\x34\x35\x36\x37\x38"
32400                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32401                              "\x41\x42\x43\x44\x45\x46\x47\x48"
32402                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
32403                              "\x51\x52\x53\x54\x55\x56\x57\x58"
32404                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32405                              "\x61\x62\x63\x64\x65\x66\x67\x68"
32406                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32407                              "\x71\x72\x73\x74\x75\x76\x77\x78"
32408                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32409                              "\x81\x82\x83\x84\x85\x86\x87\x88"
32410                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32411                              "\x91\x92\x93\x94\x95\x96\x97\x98"
32412                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
32413                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32414                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32415                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32416                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32417                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
32418                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32419                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32420                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32421                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32422                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32423                 .psize = 240,
32424                 .digest = "\x75\xd3\xc5\x24",
32425                 .np = 2,
32426                 .tap = { 31, 209 }
32427         }, {
32428                 .key = "\xff\xff\xff\xff",
32429                 .ksize = 4,
32430                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
32431                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
32432                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
32433                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
32434                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
32435                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
32436                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
32437                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
32438                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
32439                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
32440                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
32441                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
32442                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
32443                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
32444                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
32445                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
32446                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
32447                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
32448                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
32449                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
32450                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
32451                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
32452                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
32453                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
32454                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
32455                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
32456                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
32457                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
32458                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
32459                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
32460                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
32461                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
32462                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
32463                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
32464                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
32465                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
32466                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
32467                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
32468                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
32469                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
32470                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
32471                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
32472                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
32473                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
32474                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
32475                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
32476                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
32477                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
32478                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
32479                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
32480                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
32481                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
32482                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
32483                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
32484                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
32485                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
32486                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
32487                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
32488                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
32489                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
32490                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
32491                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
32492                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
32493                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
32494                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
32495                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
32496                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
32497                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
32498                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
32499                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
32500                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
32501                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
32502                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
32503                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
32504                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
32505                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
32506                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
32507                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
32508                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
32509                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
32510                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
32511                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
32512                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
32513                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
32514                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
32515                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
32516                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
32517                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
32518                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
32519                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
32520                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
32521                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
32522                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
32523                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
32524                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
32525                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
32526                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
32527                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
32528                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
32529                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
32530                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
32531                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
32532                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
32533                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
32534                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
32535                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
32536                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
32537                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
32538                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
32539                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
32540                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
32541                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
32542                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
32543                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
32544                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
32545                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
32546                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
32547                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
32548                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
32549                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
32550                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
32551                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
32552                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
32553                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
32554                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
32555                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
32556                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
32557                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
32558                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
32559                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
32560                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
32561                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
32562                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
32563                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
32564                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
32565                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
32566                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
32567                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
32568                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
32569                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
32570                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
32571                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
32572                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
32573                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
32574                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
32575                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
32576                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
32577                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
32578                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
32579                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
32580                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
32581                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
32582                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
32583                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
32584                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
32585                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
32586                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
32587                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
32588                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
32589                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
32590                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
32591                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
32592                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
32593                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
32594                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
32595                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
32596                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
32597                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
32598                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
32599                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
32600                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
32601                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
32602                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
32603                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
32604                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
32605                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
32606                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
32607                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
32608                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
32609                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
32610                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
32611                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
32612                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
32613                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
32614                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
32615                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
32616                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
32617                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
32618                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
32619                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
32620                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
32621                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
32622                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
32623                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
32624                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
32625                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
32626                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
32627                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
32628                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
32629                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
32630                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
32631                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
32632                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
32633                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
32634                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
32635                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
32636                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
32637                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
32638                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
32639                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
32640                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
32641                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
32642                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
32643                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
32644                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
32645                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
32646                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
32647                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
32648                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
32649                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
32650                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
32651                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
32652                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
32653                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
32654                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
32655                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
32656                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
32657                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
32658                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
32659                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
32660                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
32661                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
32662                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
32663                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
32664                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
32665                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
32666                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
32667                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
32668                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
32669                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
32670                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
32671                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
32672                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
32673                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
32674                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
32675                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
32676                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
32677                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
32678                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
32679                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
32680                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
32681                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
32682                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
32683                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
32684                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
32685                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
32686                 .psize = 2048,
32687                 .digest = "\xec\x26\x4d\x95",
32688         }
32689 };
32690
32691 static const struct comp_testvec lz4_comp_tv_template[] = {
32692         {
32693                 .inlen  = 255,
32694                 .outlen = 218,
32695                 .input  = "LZ4 is lossless compression algorithm, providing"
32696                          " compression speed at 400 MB/s per core, scalable "
32697                          "with multi-cores CPU. It features an extremely fast "
32698                          "decoder, with speed in multiple GB/s per core, "
32699                          "typically reaching RAM speed limits on multi-core "
32700                          "systems.",
32701                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32702                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32703                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32704                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32705                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32706                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32707                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32708                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32709                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32710                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32711                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32712                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32713                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32714                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32715                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32716                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32717                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32718
32719         },
32720 };
32721
32722 static const struct comp_testvec lz4_decomp_tv_template[] = {
32723         {
32724                 .inlen  = 218,
32725                 .outlen = 255,
32726                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32727                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32728                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32729                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32730                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32731                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32732                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32733                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32734                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32735                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32736                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32737                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32738                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32739                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32740                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32741                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32742                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32743                 .output = "LZ4 is lossless compression algorithm, providing"
32744                          " compression speed at 400 MB/s per core, scalable "
32745                          "with multi-cores CPU. It features an extremely fast "
32746                          "decoder, with speed in multiple GB/s per core, "
32747                          "typically reaching RAM speed limits on multi-core "
32748                          "systems.",
32749         },
32750 };
32751
32752 static const struct comp_testvec lz4hc_comp_tv_template[] = {
32753         {
32754                 .inlen  = 255,
32755                 .outlen = 216,
32756                 .input  = "LZ4 is lossless compression algorithm, providing"
32757                          " compression speed at 400 MB/s per core, scalable "
32758                          "with multi-cores CPU. It features an extremely fast "
32759                          "decoder, with speed in multiple GB/s per core, "
32760                          "typically reaching RAM speed limits on multi-core "
32761                          "systems.",
32762                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32763                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32764                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32765                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32766                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32767                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32768                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32769                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32770                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32771                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32772                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32773                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32774                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32775                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32776                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32777                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32778                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32779
32780         },
32781 };
32782
32783 static const struct comp_testvec lz4hc_decomp_tv_template[] = {
32784         {
32785                 .inlen  = 216,
32786                 .outlen = 255,
32787                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32788                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32789                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32790                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32791                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32792                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32793                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32794                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32795                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32796                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32797                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32798                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32799                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32800                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32801                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32802                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32803                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32804                 .output = "LZ4 is lossless compression algorithm, providing"
32805                          " compression speed at 400 MB/s per core, scalable "
32806                          "with multi-cores CPU. It features an extremely fast "
32807                          "decoder, with speed in multiple GB/s per core, "
32808                          "typically reaching RAM speed limits on multi-core "
32809                          "systems.",
32810         },
32811 };
32812
32813 static const struct comp_testvec zstd_comp_tv_template[] = {
32814         {
32815                 .inlen  = 68,
32816                 .outlen = 39,
32817                 .input  = "The algorithm is zstd. "
32818                           "The algorithm is zstd. "
32819                           "The algorithm is zstd.",
32820                 .output = "\x28\xb5\x2f\xfd\x00\x50\xf5\x00\x00\xb8\x54\x68\x65"
32821                           "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
32822                           "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
32823                           ,
32824         },
32825         {
32826                 .inlen  = 244,
32827                 .outlen = 151,
32828                 .input  = "zstd, short for Zstandard, is a fast lossless "
32829                           "compression algorithm, targeting real-time "
32830                           "compression scenarios at zlib-level and better "
32831                           "compression ratios. The zstd compression library "
32832                           "provides in-memory compression and decompression "
32833                           "functions.",
32834                 .output = "\x28\xb5\x2f\xfd\x00\x50\x75\x04\x00\x42\x4b\x1e\x17"
32835                           "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
32836                           "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
32837                           "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
32838                           "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
32839                           "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
32840                           "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
32841                           "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
32842                           "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
32843                           "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
32844                           "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
32845                           "\x20\xa9\x0e\x82\xb9\x43\x45\x01",
32846         },
32847 };
32848
32849 static const struct comp_testvec zstd_decomp_tv_template[] = {
32850         {
32851                 .inlen  = 43,
32852                 .outlen = 68,
32853                 .input  = "\x28\xb5\x2f\xfd\x04\x50\xf5\x00\x00\xb8\x54\x68\x65"
32854                           "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
32855                           "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
32856                           "\x6b\xf4\x13\x35",
32857                 .output = "The algorithm is zstd. "
32858                           "The algorithm is zstd. "
32859                           "The algorithm is zstd.",
32860         },
32861         {
32862                 .inlen  = 155,
32863                 .outlen = 244,
32864                 .input  = "\x28\xb5\x2f\xfd\x04\x50\x75\x04\x00\x42\x4b\x1e\x17"
32865                           "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
32866                           "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
32867                           "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
32868                           "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
32869                           "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
32870                           "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
32871                           "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
32872                           "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
32873                           "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
32874                           "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
32875                           "\x20\xa9\x0e\x82\xb9\x43\x45\x01\xaa\x6d\xda\x0d",
32876                 .output = "zstd, short for Zstandard, is a fast lossless "
32877                           "compression algorithm, targeting real-time "
32878                           "compression scenarios at zlib-level and better "
32879                           "compression ratios. The zstd compression library "
32880                           "provides in-memory compression and decompression "
32881                           "functions.",
32882         },
32883 };
32884 #endif  /* _CRYPTO_TESTMGR_H */